Version Description
Download this release
Release Info
Developer | adbox |
Plugin | WordPress Landing Pages |
Version | 1.3.1 |
Comparing to | |
See all releases |
Code changes from version 1.1.0 to 1.3.1
- LICENSE +339 -0
- README.md +169 -0
- css/admin-post-edit.css +3 -1
- css/admin-split-testing-splash.css +0 -7
- css/admin-split-testing.css +0 -1
- css/customizer.media-uploader.css +6 -0
- css/frontend/global-landing-page-style.css +40 -0
- css/kool-swap.css +0 -118
- css/new-customizer-admin.css +116 -0
- functions/functions.admin.php +62 -355
- functions/functions.global.php +786 -1
- images/image.php +1 -1
- js/admin/admin.ajax.edit.js +0 -94
- js/admin/admin.post-edit.js +189 -6
- js/admin/admin.post-new.js +1 -1
- js/admin/admin.split-testing-splash.js +0 -1
- js/admin/admin.split-testing.js +0 -1
- js/admin/admin.store.js +1 -1
- js/admin/new-customizer-admin.js +57 -0
- js/ajax.clearstats.js +1 -1
- js/ajax.split-testing.js +0 -1
- js/ajax.tracking.js +0 -1
- js/ajax.tracking.js.php +0 -1
- js/customizer.ab-testing.js +1 -1
- js/{jquery.funnel-tracking.js → funnel-tracking.js} +0 -0
- js/jquery.kool-swap.js +0 -577
- js/libraries/jquery-datepicker/picker_functions.js +1 -1
- js/page_view_track.js +24 -0
- landing-pages.php +97 -131
- libraries/class-tgm-plugin-activation.php +78 -88
- load.extensions.php +108 -14
- modules/module.ab-testing.php +228 -314
- modules/module.addon.php +5 -1
- modules/module.ajax-setup.php +1 -1
- modules/module.alert.php +6 -4
- modules/module.click-tracking.php +199 -0
- modules/module.cookies.php +1 -0
- modules/module.customizer.php +1 -1
- modules/module.extension-licensing.php +84 -0
- modules/module.global-settings.php +380 -51
- modules/module.install.php +9 -3
- modules/module.lead-collection.php +0 -143
- modules/module.lead-splash.php +1 -0
- modules/module.metaboxes-ab-testing.php +5 -8
- modules/module.metaboxes.php +223 -90
- modules/module.post-type.php +1 -1
- modules/module.redirect-ab-testing.php +4 -13
- modules/module.redirect.php +0 -1
- modules/module.sidebar.php +1 -0
- modules/module.split-testing-splash.php +0 -605
- modules/module.split-testing.php +0 -1
- modules/module.store.php +1 -1
- modules/module.subscribe.php +1 -1
- modules/module.templates-upload.php +2 -4
- modules/module.templates.php +16 -10
- modules/module.track.php +1 -1
- modules/module.utils.php +44 -22
- modules/module.widgets.php +4 -2
- readme.txt +45 -9
- shared/classes/form.class.php +415 -0
- shared/functions.templates.php +1 -1
- shared/inbound-shortcodes/css/form-cpt.css +38 -0
- shared/inbound-shortcodes/css/frontend-render.css +1568 -0
- shared/inbound-shortcodes/css/ie7-render.css +1 -0
- shared/inbound-shortcodes/css/shortcodes.css +491 -0
- shared/inbound-shortcodes/fonts/fontawesome/FontAwesome.otf +0 -0
- shared/inbound-shortcodes/fonts/fontawesome/README.md +17 -0
- shared/inbound-shortcodes/fonts/fontawesome/fontawesome-webfont.eot +0 -0
- shared/inbound-shortcodes/fonts/fontawesome/fontawesome-webfont.svg +284 -0
- shared/inbound-shortcodes/fonts/fontawesome/fontawesome-webfont.ttf +0 -0
- shared/inbound-shortcodes/fonts/fontawesome/fontawesome-webfont.woff +0 -0
- shared/inbound-shortcodes/images/inbound_button_ico.png +0 -0
- shared/inbound-shortcodes/images/inbound_columns_ico.png +0 -0
- shared/inbound-shortcodes/images/inbound_form_ico.png +0 -0
- shared/inbound-shortcodes/images/inbound_form_insert_ico.png +0 -0
- shared/inbound-shortcodes/inbound-shortcodes.php +198 -0
- shared/inbound-shortcodes/js/form-cpt.js +78 -0
- shared/inbound-shortcodes/js/shortcodes-plugins.js +27 -0
- shared/inbound-shortcodes/js/shortcodes.js +598 -0
- shared/inbound-shortcodes/js/tinymce.js +145 -0
- shared/inbound-shortcodes/popup.php +68 -0
- shared/inbound-shortcodes/preview.php +139 -0
- shared/inbound-shortcodes/readme.txt +53 -0
- shared/inbound-shortcodes/shortcodes-blue.png +0 -0
- shared/inbound-shortcodes/shortcodes-fields.php +279 -0
- shared/inbound-shortcodes/shortcodes-includes.php +94 -0
- shared/inbound-shortcodes/shortcodes.png +0 -0
- shared/inbound-shortcodes/shortcodes/alert.php +51 -0
- shared/inbound-shortcodes/shortcodes/button.php +143 -0
- shared/inbound-shortcodes/shortcodes/call-to-action.php +21 -0
- shared/inbound-shortcodes/shortcodes/callout.php +172 -0
- shared/inbound-shortcodes/shortcodes/column.php +175 -0
- shared/inbound-shortcodes/shortcodes/content-box.php +83 -0
- shared/inbound-shortcodes/shortcodes/divider.php +119 -0
- shared/inbound-shortcodes/shortcodes/forms.php +551 -0
- shared/inbound-shortcodes/shortcodes/gmap.php +160 -0
- shared/inbound-shortcodes/shortcodes/icon.php +64 -0
- shared/inbound-shortcodes/shortcodes/intro.php +98 -0
- shared/inbound-shortcodes/shortcodes/landing-page-list.php +142 -0
- shared/inbound-shortcodes/shortcodes/landing_pages.php +211 -0
- shared/inbound-shortcodes/shortcodes/leadp.php +49 -0
- shared/inbound-shortcodes/shortcodes/list-icon.php +70 -0
- shared/inbound-shortcodes/shortcodes/pricing.php +217 -0
- shared/inbound-shortcodes/shortcodes/profile.php +189 -0
- shared/inbound-shortcodes/shortcodes/quick-forms.php +36 -0
- shared/inbound-shortcodes/shortcodes/social.php +99 -0
- shared/inbound-shortcodes/shortcodes/tabs.php +136 -0
- shared/inbound-shortcodes/shortcodes/teaser.php +260 -0
- shared/inbound-shortcodes/shortcodes/testimonial.php +184 -0
- shared/inbound-shortcodes/shortcodes/video.php +37 -0
- shared/inboundnow/inboundnow.extension-licensing.php +278 -0
- shared/inboundnow/inboundnow.extension-updating.php +164 -0
- shared/post-type.lead.php +0 -39
- shared/tracking/js/store.lead.ajax.js +512 -0
- shared/tracking/store.lead.php +113 -85
- templates/countdown-lander/config.php +1 -54
LICENSE
ADDED
@@ -0,0 +1,339 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
GNU GENERAL PUBLIC LICENSE
|
2 |
+
Version 2, June 1991
|
3 |
+
|
4 |
+
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
|
5 |
+
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
6 |
+
Everyone is permitted to copy and distribute verbatim copies
|
7 |
+
of this license document, but changing it is not allowed.
|
8 |
+
|
9 |
+
Preamble
|
10 |
+
|
11 |
+
The licenses for most software are designed to take away your
|
12 |
+
freedom to share and change it. By contrast, the GNU General Public
|
13 |
+
License is intended to guarantee your freedom to share and change free
|
14 |
+
software--to make sure the software is free for all its users. This
|
15 |
+
General Public License applies to most of the Free Software
|
16 |
+
Foundation's software and to any other program whose authors commit to
|
17 |
+
using it. (Some other Free Software Foundation software is covered by
|
18 |
+
the GNU Lesser General Public License instead.) You can apply it to
|
19 |
+
your programs, too.
|
20 |
+
|
21 |
+
When we speak of free software, we are referring to freedom, not
|
22 |
+
price. Our General Public Licenses are designed to make sure that you
|
23 |
+
have the freedom to distribute copies of free software (and charge for
|
24 |
+
this service if you wish), that you receive source code or can get it
|
25 |
+
if you want it, that you can change the software or use pieces of it
|
26 |
+
in new free programs; and that you know you can do these things.
|
27 |
+
|
28 |
+
To protect your rights, we need to make restrictions that forbid
|
29 |
+
anyone to deny you these rights or to ask you to surrender the rights.
|
30 |
+
These restrictions translate to certain responsibilities for you if you
|
31 |
+
distribute copies of the software, or if you modify it.
|
32 |
+
|
33 |
+
For example, if you distribute copies of such a program, whether
|
34 |
+
gratis or for a fee, you must give the recipients all the rights that
|
35 |
+
you have. You must make sure that they, too, receive or can get the
|
36 |
+
source code. And you must show them these terms so they know their
|
37 |
+
rights.
|
38 |
+
|
39 |
+
We protect your rights with two steps: (1) copyright the software, and
|
40 |
+
(2) offer you this license which gives you legal permission to copy,
|
41 |
+
distribute and/or modify the software.
|
42 |
+
|
43 |
+
Also, for each author's protection and ours, we want to make certain
|
44 |
+
that everyone understands that there is no warranty for this free
|
45 |
+
software. If the software is modified by someone else and passed on, we
|
46 |
+
want its recipients to know that what they have is not the original, so
|
47 |
+
that any problems introduced by others will not reflect on the original
|
48 |
+
authors' reputations.
|
49 |
+
|
50 |
+
Finally, any free program is threatened constantly by software
|
51 |
+
patents. We wish to avoid the danger that redistributors of a free
|
52 |
+
program will individually obtain patent licenses, in effect making the
|
53 |
+
program proprietary. To prevent this, we have made it clear that any
|
54 |
+
patent must be licensed for everyone's free use or not licensed at all.
|
55 |
+
|
56 |
+
The precise terms and conditions for copying, distribution and
|
57 |
+
modification follow.
|
58 |
+
|
59 |
+
GNU GENERAL PUBLIC LICENSE
|
60 |
+
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
61 |
+
|
62 |
+
0. This License applies to any program or other work which contains
|
63 |
+
a notice placed by the copyright holder saying it may be distributed
|
64 |
+
under the terms of this General Public License. The "Program", below,
|
65 |
+
refers to any such program or work, and a "work based on the Program"
|
66 |
+
means either the Program or any derivative work under copyright law:
|
67 |
+
that is to say, a work containing the Program or a portion of it,
|
68 |
+
either verbatim or with modifications and/or translated into another
|
69 |
+
language. (Hereinafter, translation is included without limitation in
|
70 |
+
the term "modification".) Each licensee is addressed as "you".
|
71 |
+
|
72 |
+
Activities other than copying, distribution and modification are not
|
73 |
+
covered by this License; they are outside its scope. The act of
|
74 |
+
running the Program is not restricted, and the output from the Program
|
75 |
+
is covered only if its contents constitute a work based on the
|
76 |
+
Program (independent of having been made by running the Program).
|
77 |
+
Whether that is true depends on what the Program does.
|
78 |
+
|
79 |
+
1. You may copy and distribute verbatim copies of the Program's
|
80 |
+
source code as you receive it, in any medium, provided that you
|
81 |
+
conspicuously and appropriately publish on each copy an appropriate
|
82 |
+
copyright notice and disclaimer of warranty; keep intact all the
|
83 |
+
notices that refer to this License and to the absence of any warranty;
|
84 |
+
and give any other recipients of the Program a copy of this License
|
85 |
+
along with the Program.
|
86 |
+
|
87 |
+
You may charge a fee for the physical act of transferring a copy, and
|
88 |
+
you may at your option offer warranty protection in exchange for a fee.
|
89 |
+
|
90 |
+
2. You may modify your copy or copies of the Program or any portion
|
91 |
+
of it, thus forming a work based on the Program, and copy and
|
92 |
+
distribute such modifications or work under the terms of Section 1
|
93 |
+
above, provided that you also meet all of these conditions:
|
94 |
+
|
95 |
+
a) You must cause the modified files to carry prominent notices
|
96 |
+
stating that you changed the files and the date of any change.
|
97 |
+
|
98 |
+
b) You must cause any work that you distribute or publish, that in
|
99 |
+
whole or in part contains or is derived from the Program or any
|
100 |
+
part thereof, to be licensed as a whole at no charge to all third
|
101 |
+
parties under the terms of this License.
|
102 |
+
|
103 |
+
c) If the modified program normally reads commands interactively
|
104 |
+
when run, you must cause it, when started running for such
|
105 |
+
interactive use in the most ordinary way, to print or display an
|
106 |
+
announcement including an appropriate copyright notice and a
|
107 |
+
notice that there is no warranty (or else, saying that you provide
|
108 |
+
a warranty) and that users may redistribute the program under
|
109 |
+
these conditions, and telling the user how to view a copy of this
|
110 |
+
License. (Exception: if the Program itself is interactive but
|
111 |
+
does not normally print such an announcement, your work based on
|
112 |
+
the Program is not required to print an announcement.)
|
113 |
+
|
114 |
+
These requirements apply to the modified work as a whole. If
|
115 |
+
identifiable sections of that work are not derived from the Program,
|
116 |
+
and can be reasonably considered independent and separate works in
|
117 |
+
themselves, then this License, and its terms, do not apply to those
|
118 |
+
sections when you distribute them as separate works. But when you
|
119 |
+
distribute the same sections as part of a whole which is a work based
|
120 |
+
on the Program, the distribution of the whole must be on the terms of
|
121 |
+
this License, whose permissions for other licensees extend to the
|
122 |
+
entire whole, and thus to each and every part regardless of who wrote it.
|
123 |
+
|
124 |
+
Thus, it is not the intent of this section to claim rights or contest
|
125 |
+
your rights to work written entirely by you; rather, the intent is to
|
126 |
+
exercise the right to control the distribution of derivative or
|
127 |
+
collective works based on the Program.
|
128 |
+
|
129 |
+
In addition, mere aggregation of another work not based on the Program
|
130 |
+
with the Program (or with a work based on the Program) on a volume of
|
131 |
+
a storage or distribution medium does not bring the other work under
|
132 |
+
the scope of this License.
|
133 |
+
|
134 |
+
3. You may copy and distribute the Program (or a work based on it,
|
135 |
+
under Section 2) in object code or executable form under the terms of
|
136 |
+
Sections 1 and 2 above provided that you also do one of the following:
|
137 |
+
|
138 |
+
a) Accompany it with the complete corresponding machine-readable
|
139 |
+
source code, which must be distributed under the terms of Sections
|
140 |
+
1 and 2 above on a medium customarily used for software interchange; or,
|
141 |
+
|
142 |
+
b) Accompany it with a written offer, valid for at least three
|
143 |
+
years, to give any third party, for a charge no more than your
|
144 |
+
cost of physically performing source distribution, a complete
|
145 |
+
machine-readable copy of the corresponding source code, to be
|
146 |
+
distributed under the terms of Sections 1 and 2 above on a medium
|
147 |
+
customarily used for software interchange; or,
|
148 |
+
|
149 |
+
c) Accompany it with the information you received as to the offer
|
150 |
+
to distribute corresponding source code. (This alternative is
|
151 |
+
allowed only for noncommercial distribution and only if you
|
152 |
+
received the program in object code or executable form with such
|
153 |
+
an offer, in accord with Subsection b above.)
|
154 |
+
|
155 |
+
The source code for a work means the preferred form of the work for
|
156 |
+
making modifications to it. For an executable work, complete source
|
157 |
+
code means all the source code for all modules it contains, plus any
|
158 |
+
associated interface definition files, plus the scripts used to
|
159 |
+
control compilation and installation of the executable. However, as a
|
160 |
+
special exception, the source code distributed need not include
|
161 |
+
anything that is normally distributed (in either source or binary
|
162 |
+
form) with the major components (compiler, kernel, and so on) of the
|
163 |
+
operating system on which the executable runs, unless that component
|
164 |
+
itself accompanies the executable.
|
165 |
+
|
166 |
+
If distribution of executable or object code is made by offering
|
167 |
+
access to copy from a designated place, then offering equivalent
|
168 |
+
access to copy the source code from the same place counts as
|
169 |
+
distribution of the source code, even though third parties are not
|
170 |
+
compelled to copy the source along with the object code.
|
171 |
+
|
172 |
+
4. You may not copy, modify, sublicense, or distribute the Program
|
173 |
+
except as expressly provided under this License. Any attempt
|
174 |
+
otherwise to copy, modify, sublicense or distribute the Program is
|
175 |
+
void, and will automatically terminate your rights under this License.
|
176 |
+
However, parties who have received copies, or rights, from you under
|
177 |
+
this License will not have their licenses terminated so long as such
|
178 |
+
parties remain in full compliance.
|
179 |
+
|
180 |
+
5. You are not required to accept this License, since you have not
|
181 |
+
signed it. However, nothing else grants you permission to modify or
|
182 |
+
distribute the Program or its derivative works. These actions are
|
183 |
+
prohibited by law if you do not accept this License. Therefore, by
|
184 |
+
modifying or distributing the Program (or any work based on the
|
185 |
+
Program), you indicate your acceptance of this License to do so, and
|
186 |
+
all its terms and conditions for copying, distributing or modifying
|
187 |
+
the Program or works based on it.
|
188 |
+
|
189 |
+
6. Each time you redistribute the Program (or any work based on the
|
190 |
+
Program), the recipient automatically receives a license from the
|
191 |
+
original licensor to copy, distribute or modify the Program subject to
|
192 |
+
these terms and conditions. You may not impose any further
|
193 |
+
restrictions on the recipients' exercise of the rights granted herein.
|
194 |
+
You are not responsible for enforcing compliance by third parties to
|
195 |
+
this License.
|
196 |
+
|
197 |
+
7. If, as a consequence of a court judgment or allegation of patent
|
198 |
+
infringement or for any other reason (not limited to patent issues),
|
199 |
+
conditions are imposed on you (whether by court order, agreement or
|
200 |
+
otherwise) that contradict the conditions of this License, they do not
|
201 |
+
excuse you from the conditions of this License. If you cannot
|
202 |
+
distribute so as to satisfy simultaneously your obligations under this
|
203 |
+
License and any other pertinent obligations, then as a consequence you
|
204 |
+
may not distribute the Program at all. For example, if a patent
|
205 |
+
license would not permit royalty-free redistribution of the Program by
|
206 |
+
all those who receive copies directly or indirectly through you, then
|
207 |
+
the only way you could satisfy both it and this License would be to
|
208 |
+
refrain entirely from distribution of the Program.
|
209 |
+
|
210 |
+
If any portion of this section is held invalid or unenforceable under
|
211 |
+
any particular circumstance, the balance of the section is intended to
|
212 |
+
apply and the section as a whole is intended to apply in other
|
213 |
+
circumstances.
|
214 |
+
|
215 |
+
It is not the purpose of this section to induce you to infringe any
|
216 |
+
patents or other property right claims or to contest validity of any
|
217 |
+
such claims; this section has the sole purpose of protecting the
|
218 |
+
integrity of the free software distribution system, which is
|
219 |
+
implemented by public license practices. Many people have made
|
220 |
+
generous contributions to the wide range of software distributed
|
221 |
+
through that system in reliance on consistent application of that
|
222 |
+
system; it is up to the author/donor to decide if he or she is willing
|
223 |
+
to distribute software through any other system and a licensee cannot
|
224 |
+
impose that choice.
|
225 |
+
|
226 |
+
This section is intended to make thoroughly clear what is believed to
|
227 |
+
be a consequence of the rest of this License.
|
228 |
+
|
229 |
+
8. If the distribution and/or use of the Program is restricted in
|
230 |
+
certain countries either by patents or by copyrighted interfaces, the
|
231 |
+
original copyright holder who places the Program under this License
|
232 |
+
may add an explicit geographical distribution limitation excluding
|
233 |
+
those countries, so that distribution is permitted only in or among
|
234 |
+
countries not thus excluded. In such case, this License incorporates
|
235 |
+
the limitation as if written in the body of this License.
|
236 |
+
|
237 |
+
9. The Free Software Foundation may publish revised and/or new versions
|
238 |
+
of the General Public License from time to time. Such new versions will
|
239 |
+
be similar in spirit to the present version, but may differ in detail to
|
240 |
+
address new problems or concerns.
|
241 |
+
|
242 |
+
Each version is given a distinguishing version number. If the Program
|
243 |
+
specifies a version number of this License which applies to it and "any
|
244 |
+
later version", you have the option of following the terms and conditions
|
245 |
+
either of that version or of any later version published by the Free
|
246 |
+
Software Foundation. If the Program does not specify a version number of
|
247 |
+
this License, you may choose any version ever published by the Free Software
|
248 |
+
Foundation.
|
249 |
+
|
250 |
+
10. If you wish to incorporate parts of the Program into other free
|
251 |
+
programs whose distribution conditions are different, write to the author
|
252 |
+
to ask for permission. For software which is copyrighted by the Free
|
253 |
+
Software Foundation, write to the Free Software Foundation; we sometimes
|
254 |
+
make exceptions for this. Our decision will be guided by the two goals
|
255 |
+
of preserving the free status of all derivatives of our free software and
|
256 |
+
of promoting the sharing and reuse of software generally.
|
257 |
+
|
258 |
+
NO WARRANTY
|
259 |
+
|
260 |
+
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
261 |
+
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
262 |
+
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
263 |
+
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
264 |
+
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
265 |
+
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
266 |
+
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
267 |
+
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
268 |
+
REPAIR OR CORRECTION.
|
269 |
+
|
270 |
+
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
271 |
+
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
272 |
+
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
273 |
+
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
274 |
+
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
275 |
+
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
276 |
+
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
277 |
+
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
278 |
+
POSSIBILITY OF SUCH DAMAGES.
|
279 |
+
|
280 |
+
END OF TERMS AND CONDITIONS
|
281 |
+
|
282 |
+
How to Apply These Terms to Your New Programs
|
283 |
+
|
284 |
+
If you develop a new program, and you want it to be of the greatest
|
285 |
+
possible use to the public, the best way to achieve this is to make it
|
286 |
+
free software which everyone can redistribute and change under these terms.
|
287 |
+
|
288 |
+
To do so, attach the following notices to the program. It is safest
|
289 |
+
to attach them to the start of each source file to most effectively
|
290 |
+
convey the exclusion of warranty; and each file should have at least
|
291 |
+
the "copyright" line and a pointer to where the full notice is found.
|
292 |
+
|
293 |
+
WordPress Landing Pages
|
294 |
+
Copyright (C) 2013 Inbound Now
|
295 |
+
|
296 |
+
This program is free software; you can redistribute it and/or modify
|
297 |
+
it under the terms of the GNU General Public License as published by
|
298 |
+
the Free Software Foundation; either version 2 of the License, or
|
299 |
+
(at your option) any later version.
|
300 |
+
|
301 |
+
This program is distributed in the hope that it will be useful,
|
302 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
303 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
304 |
+
GNU General Public License for more details.
|
305 |
+
|
306 |
+
You should have received a copy of the GNU General Public License along
|
307 |
+
with this program; if not, write to the Free Software Foundation, Inc.,
|
308 |
+
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
309 |
+
|
310 |
+
Also add information on how to contact you by electronic and paper mail.
|
311 |
+
|
312 |
+
If the program is interactive, make it output a short notice like this
|
313 |
+
when it starts in an interactive mode:
|
314 |
+
|
315 |
+
Gnomovision version 69, Copyright (C) year name of author
|
316 |
+
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
317 |
+
This is free software, and you are welcome to redistribute it
|
318 |
+
under certain conditions; type `show c' for details.
|
319 |
+
|
320 |
+
The hypothetical commands `show w' and `show c' should show the appropriate
|
321 |
+
parts of the General Public License. Of course, the commands you use may
|
322 |
+
be called something other than `show w' and `show c'; they could even be
|
323 |
+
mouse-clicks or menu items--whatever suits your program.
|
324 |
+
|
325 |
+
You should also get your employer (if you work as a programmer) or your
|
326 |
+
school, if any, to sign a "copyright disclaimer" for the program, if
|
327 |
+
necessary. Here is a sample; alter the names:
|
328 |
+
|
329 |
+
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
330 |
+
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
331 |
+
|
332 |
+
{signature of Ty Coon}, 1 April 1989
|
333 |
+
Ty Coon, President of Vice
|
334 |
+
|
335 |
+
This General Public License does not permit incorporating your program into
|
336 |
+
proprietary programs. If your program is a subroutine library, you may
|
337 |
+
consider it more useful to permit linking proprietary applications with the
|
338 |
+
library. If this is what you want to do, use the GNU Lesser General
|
339 |
+
Public License instead of this License.
|
README.md
ADDED
@@ -0,0 +1,169 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
landing-pages
|
2 |
+
=============
|
3 |
+
|
4 |
+
WordPress Landing Pages - Plugin
|
5 |
+
|
6 |
+
=== WordPress Landing Pages ===
|
7 |
+
|
8 |
+
Contributors: David Wells, adbox
|
9 |
+
Donate link: mailto:Hudson.Atwell@gmail.com
|
10 |
+
License: GPLv2 or later
|
11 |
+
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
+
Tags: landing pages, inbound marketing, conversion pages, split testing, a b test, a b testing, a/b test, a/b testing, coming soon page, email list, landing page, list building, maintenance page, squeeze page, inbound now, landing-pages, splash pages, cpa, click tracking, goal tracking, analytics
|
13 |
+
Requires at least: 3.3
|
14 |
+
Tested up to: 3.5
|
15 |
+
Stable Tag: 1.1.0.1
|
16 |
+
|
17 |
+
Create landing pages for your WordPress site. Monitor and improve conversion rates, run A/B split tests, customize your own templates and more.
|
18 |
+
|
19 |
+
== Description ==
|
20 |
+
|
21 |
+
This plugin creates landing pages (a.k.a. conversion or splash pages) for your WordPress site. It gives site owners the ability to monitor and track conversion rates, run a/b or multivariate split tests on landing pages, and most importantly increase lead flow!
|
22 |
+
|
23 |
+
The landing page plugin was specifically designed with inbound marketing best practices in mind and will help you drive & convert more leads on your site.
|
24 |
+
|
25 |
+
Landing pages are an ideal way to convert more of your passive website visitors into active leads or email list subscribers.
|
26 |
+
|
27 |
+
= Highlights =
|
28 |
+
|
29 |
+
* Create beautiful Landing Pages on your WordPress site.
|
30 |
+
* Visual Editor to view changes being made on the fly!
|
31 |
+
* Track conversion rates on your landing pages for continual optimization.
|
32 |
+
* Easily clone existing landing pages and run A/B Split tests on variations.
|
33 |
+
* Use your current WordPress theme or choose from our library of custom landing page designs.
|
34 |
+
* Pre-populate Forms with visitor information to increase conversion rates
|
35 |
+
* Gather lead intelligence and track lead activity with <a href="http://wordpress.org/plugins/leads/screenshots/">WordPress Leads</a>
|
36 |
+
* Extend functionality with our growing repository of <a href="http://www.inboundnow.com/market/category/landing-pages/extensions/">third party add ons</a>.
|
37 |
+
* Easily implement your own custom landing page design.
|
38 |
+
|
39 |
+
This plugin is form agnostic meaning it will work with any form system you use.
|
40 |
+
|
41 |
+
Recommended form plugins (Gravity forms, Ninja Forms or Contact form 7)
|
42 |
+
|
43 |
+
= About the Plugin =
|
44 |
+
|
45 |
+
http://www.youtube.com/watch?v=BzcD6PgvLP4
|
46 |
+
|
47 |
+
= Developers & Designers =
|
48 |
+
|
49 |
+
We built the landing page plugin as a framework! Need A/B testing out of the box implemented for your existing designs? Use WordPress Landing Pages to quickly spin up new landing pages that have all the functionality your clients will need.
|
50 |
+
|
51 |
+
You can quickly take your existing designs and implement them using our <a href="http://docs.inboundnow.com/landing-pages/dev">templating framework</a>.
|
52 |
+
|
53 |
+
The plugin is also fully extendable and has a number of actions, filters, and hooks available for use. If a hook doesn't exist, simply ask and we can implement custom changes.
|
54 |
+
|
55 |
+
== Installation ==
|
56 |
+
|
57 |
+
1. Upload `landing-pages` folder to the `/wp-content/plugins/` directory
|
58 |
+
1. Activate the plugin through the 'Plugins' menu in WordPress
|
59 |
+
|
60 |
+
== Frequently Asked Questions ==
|
61 |
+
*Can I create my own landing page designs?,
|
62 |
+
*Yes! You can learn how to <a href="http://docs.inboundnow.com/landing-pages/dev/creating-templates">create your own landing page template here</a>.
|
63 |
+
|
64 |
+
== Screenshots ==
|
65 |
+
|
66 |
+
1. Landing Page Custom Post Type
|
67 |
+
2. Track conversion rates and continuously improve your landing pages
|
68 |
+
3. Manage Split Testing Page
|
69 |
+
4. Choose from a ton of pre-made templates, use your existing design, or design your own theme!
|
70 |
+
|
71 |
+
== Changelog ==
|
72 |
+
|
73 |
+
= 1.1.0.1 =
|
74 |
+
|
75 |
+
* Fixed: Variation saves for custom css and custom js.
|
76 |
+
* Fixed: jQuery error related to wysiwyg content formatting.
|
77 |
+
|
78 |
+
= 1.0.9.9 =
|
79 |
+
* Improved extension metabox loading for quicker load times and optimized meta data storage.
|
80 |
+
* Phased out more 'old method' split testing components.
|
81 |
+
* Improved .htaccess parsing.
|
82 |
+
* Addressed issue with line breaks being removed from WYSIWYG editors.
|
83 |
+
|
84 |
+
= 1.0.9.4 =
|
85 |
+
* Added in tours for the edit screen and the list of landing page screen for new users to learn how to use the tool quickly and easily
|
86 |
+
* Updated conversion tracking for wp-leads addon plugin
|
87 |
+
* Added in option for default templates to toggle on/off navigation
|
88 |
+
|
89 |
+
= 1.0.9.3 =
|
90 |
+
|
91 |
+
* Removed old A/B split testing and the new system is fully in place!
|
92 |
+
|
93 |
+
= 1.0.9.0 =
|
94 |
+
|
95 |
+
* Added in A/B stats to the main landing page list view
|
96 |
+
|
97 |
+
= 1.0.8.6 =
|
98 |
+
|
99 |
+
* Release new and improved version of A/B testing!
|
100 |
+
* Ajax saving on landing page options for faster page edits
|
101 |
+
* Frontend Visual Editor to see what you are editing/changing
|
102 |
+
* Enabled frontend editor for use on normal pages and posts
|
103 |
+
|
104 |
+
= 1.0.8.5 =
|
105 |
+
|
106 |
+
Providing better conversion and impression tracking for landing pages that are set as homepage.
|
107 |
+
|
108 |
+
= 1.0.8.4 =
|
109 |
+
|
110 |
+
Fixing activation bug
|
111 |
+
|
112 |
+
= 1.0.8.1 =
|
113 |
+
|
114 |
+
Fixing issue with jquery submission errors.
|
115 |
+
|
116 |
+
= 1.0.7.9 =
|
117 |
+
|
118 |
+
Added capability to activate and update license keys for premium extensions. Added ability to define white listed HTML elements for Form Standardization process.
|
119 |
+
|
120 |
+
= 1.0.7.3 =
|
121 |
+
|
122 |
+
Fixed issue with WP_List_table causing posts to to save or edit propperly Attempt 001
|
123 |
+
|
124 |
+
= 1.0.7.1 =
|
125 |
+
|
126 |
+
Added cookie based auto-field population & lead data collection to core.
|
127 |
+
|
128 |
+
= 1.0.5.6 =
|
129 |
+
|
130 |
+
Fixed issue with global setting's radio buttons not holding new set values.
|
131 |
+
|
132 |
+
= 1.0.5.3 =
|
133 |
+
|
134 |
+
Solutions for custom post type wp rewrite issue on activation.
|
135 |
+
|
136 |
+
= 1.0.5.1 =
|
137 |
+
|
138 |
+
Introducing version control system for extensions.
|
139 |
+
|
140 |
+
= 1.0.4.4 =
|
141 |
+
|
142 |
+
Migrating store to new location. Updating version control systems
|
143 |
+
|
144 |
+
= 1.0.4.2 =
|
145 |
+
|
146 |
+
Added new defitions to form standardization parser. Limited .htaccess rewrites to plugin activation to try and mitigate .htaccess corruptions.
|
147 |
+
|
148 |
+
= 1.0.4.1 =
|
149 |
+
|
150 |
+
Fixed issue with conversions not recording on some servers by forcing form submittal to wait until ajax has completely finnished loading before continuing to process form.
|
151 |
+
|
152 |
+
= 1.0.3.9 =
|
153 |
+
|
154 |
+
Fixed issue with plugins and wp core refusing to update on some installations when landing page plugin is activated.
|
155 |
+
|
156 |
+
= 1.0.3.8 =
|
157 |
+
|
158 |
+
Debugging cross browser impressions and conversion tracking. Implemented soltion for url-to-postid conversions that's compatible with the /slug/ removal extension for landing pages plugin.
|
159 |
+
Added email validation check to prevent false positives when form standardization is turned on.
|
160 |
+
|
161 |
+
= 1.0.3.7 =
|
162 |
+
|
163 |
+
Bug Fix: 'Clear Stats' button.
|
164 |
+
|
165 |
+
= 1.1 =
|
166 |
+
|
167 |
+
Released
|
168 |
+
|
169 |
+
|
css/admin-post-edit.css
CHANGED
@@ -21,7 +21,9 @@
|
|
21 |
#titlediv #title:focus, #lp-notes-area input:focus{
|
22 |
border: solid 1px #dfdfdf;
|
23 |
}
|
24 |
-
|
|
|
|
|
25 |
.lp-delete-var-stats, .lp-clear-success {
|
26 |
color: red;
|
27 |
opacity: .7;
|
21 |
#titlediv #title:focus, #lp-notes-area input:focus{
|
22 |
border: solid 1px #dfdfdf;
|
23 |
}
|
24 |
+
.select2-container {
|
25 |
+
min-width: 320px;
|
26 |
+
}
|
27 |
.lp-delete-var-stats, .lp-clear-success {
|
28 |
color: red;
|
29 |
opacity: .7;
|
css/admin-split-testing-splash.css
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
::-webkit-input-placeholder {
|
2 |
color: #999;
|
3 |
color: #999;
|
4 |
color: #999;
|
5 |
-
webkit-box-shadow: inset 0 1px 0 rgba(120,200,230,0.5);
|
6 |
-
webkit-border-radius: 3px;
|
7 |
-
webkit-appearance: none;
|
8 |
-
webkit-box-sizing: border-box;
|
9 |
-
moz-box-sizing: border-box;
|
10 |
-
webkit-box-shadow: inset 0 1px 0 rgba(120,200,230,0.6);
|
|
|
0 |
color: #999;
|
1 |
color: #999;
|
2 |
color: #999;
|
|
|
|
|
|
|
|
|
|
|
|
css/admin-split-testing.css
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
.lp-st-container, .lp-st-table
|
2 |
text-align:left;
|
3 |
text-align:left;
|
4 |
border-top-left-radius: 3px;
|
5 |
border-top-right-radius: 3px;
|
6 |
border-width: 1px 1px 0;
|
7 |
color: #AAAAAA;
|
8 |
display: inline-block;
|
9 |
font-size: 12px;
|
10 |
line-height: 16px;
|
11 |
margin: 0 6px -1px 0;
|
12 |
padding: 4px 14px 6px;
|
13 |
text-decoration: none;
|
14 |
text-shadow: 0 1px 0 #FFFFFF;
|
15 |
border-top-left-radius: 3px;
|
16 |
border-top-right-radius: 3px;
|
17 |
border-width: 1px 1px 0;
|
18 |
color: #000;
|
19 |
display: inline-block;
|
20 |
font-size: 12px;
|
21 |
line-height: 16px;
|
22 |
margin: 0 6px -1px 0;
|
23 |
padding: 4px 14px 6px;
|
24 |
text-decoration: none;
|
25 |
text-shadow: 0 1px 0 #FFFFFF;
|
|
|
0 |
text-align:left;
|
1 |
text-align:left;
|
2 |
border-top-left-radius: 3px;
|
3 |
border-top-right-radius: 3px;
|
4 |
border-width: 1px 1px 0;
|
5 |
color: #AAAAAA;
|
6 |
display: inline-block;
|
7 |
font-size: 12px;
|
8 |
line-height: 16px;
|
9 |
margin: 0 6px -1px 0;
|
10 |
padding: 4px 14px 6px;
|
11 |
text-decoration: none;
|
12 |
text-shadow: 0 1px 0 #FFFFFF;
|
13 |
border-top-left-radius: 3px;
|
14 |
border-top-right-radius: 3px;
|
15 |
border-width: 1px 1px 0;
|
16 |
color: #000;
|
17 |
display: inline-block;
|
18 |
font-size: 12px;
|
19 |
line-height: 16px;
|
20 |
margin: 0 6px -1px 0;
|
21 |
padding: 4px 14px 6px;
|
22 |
text-decoration: none;
|
23 |
text-shadow: 0 1px 0 #FFFFFF;
|
css/customizer.media-uploader.css
CHANGED
@@ -8,6 +8,9 @@ width: 376px;
|
|
8 |
.post_title, .image_alt, .post_excerpt, .post_content, .url, .align, .upload-flash-bypass, .max-upload-size {
|
9 |
display: none;
|
10 |
}
|
|
|
|
|
|
|
11 |
.savesend input.button {
|
12 |
background-color: #21759b;
|
13 |
background-image: -webkit-gradient(linear,left top,left bottom,from(#2a95c5),to(#21759b));
|
@@ -25,4 +28,7 @@ text-decoration: none;
|
|
25 |
text-shadow: 0 1px 0 rgba(0,0,0,0.1);
|
26 |
height: 35px;
|
27 |
font-size: 20px;
|
|
|
|
|
|
|
28 |
}
|
8 |
.post_title, .image_alt, .post_excerpt, .post_content, .url, .align, .upload-flash-bypass, .max-upload-size {
|
9 |
display: none;
|
10 |
}
|
11 |
+
.media-upload-form {
|
12 |
+
width: 60% !important;
|
13 |
+
}
|
14 |
.savesend input.button {
|
15 |
background-color: #21759b;
|
16 |
background-image: -webkit-gradient(linear,left top,left bottom,from(#2a95c5),to(#21759b));
|
28 |
text-shadow: 0 1px 0 rgba(0,0,0,0.1);
|
29 |
height: 35px;
|
30 |
font-size: 20px;
|
31 |
+
}
|
32 |
+
.media-upload-form.type-form.validate, #image-form {
|
33 |
+
width: 60% !important;
|
34 |
}
|
css/frontend/global-landing-page-style.css
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* WordPress required styles
|
3 |
+
* Needed for editor media floats
|
4 |
+
*/
|
5 |
+
/* ---------------------------------------------- */
|
6 |
+
.wp-caption{
|
7 |
+
background:#FBFBFB;
|
8 |
+
border:1px solid #EEE;
|
9 |
+
padding:10px;
|
10 |
+
max-width: 100%;
|
11 |
+
}
|
12 |
+
.wp-caption img{
|
13 |
+
display:block;
|
14 |
+
margin-bottom:5px;
|
15 |
+
}
|
16 |
+
.wp-caption-text,
|
17 |
+
.gallery-caption{
|
18 |
+
margin:0;
|
19 |
+
font-size:12px;
|
20 |
+
font-style:italic
|
21 |
+
}
|
22 |
+
.alignright{
|
23 |
+
float:right;
|
24 |
+
margin: 10px 0px 10px 20px;
|
25 |
+
}
|
26 |
+
.alignleft{
|
27 |
+
float:left;
|
28 |
+
margin: 10px 20px 10px 0px;
|
29 |
+
}
|
30 |
+
.aligncenter{
|
31 |
+
display:block;
|
32 |
+
margin-left:auto;
|
33 |
+
margin-right:auto;
|
34 |
+
}
|
35 |
+
.alignnone{
|
36 |
+
display:block;
|
37 |
+
margin: 10px 0px;
|
38 |
+
}
|
39 |
+
.bypostauthor{}
|
40 |
+
/* ---------------------------------------------- */
|
css/kool-swap.css
DELETED
@@ -1,118 +0,0 @@
|
|
1 |
-
@CHARSET "UTF-8";
|
2 |
-
/* This stylesheet only contains the loading box styles */
|
3 |
-
#ks-loading-box {
|
4 |
-
background: rgba(255, 255, 255, .5);
|
5 |
-
border-radius: 4px;
|
6 |
-
box-shadow: 0 0 10px rgba(0, 0, 0, .3);
|
7 |
-
bottom: 50%;
|
8 |
-
display: none;
|
9 |
-
left: 40%;
|
10 |
-
position: fixed;
|
11 |
-
right: 40%;
|
12 |
-
top: 30%;
|
13 |
-
z-index: 9999999;
|
14 |
-
}
|
15 |
-
|
16 |
-
/* Loader animations */
|
17 |
-
@keyframes spinPulse {
|
18 |
-
0% {
|
19 |
-
transform: rotate(0deg);
|
20 |
-
opacity: 0;
|
21 |
-
}
|
22 |
-
|
23 |
-
50% {
|
24 |
-
transform: rotate(180deg);
|
25 |
-
opacity: 1;
|
26 |
-
}
|
27 |
-
|
28 |
-
100% {
|
29 |
-
transform: rotate(-360deg);
|
30 |
-
opacity: 0;
|
31 |
-
}
|
32 |
-
}
|
33 |
-
|
34 |
-
@-moz-keyframes spinPulse {
|
35 |
-
0% {
|
36 |
-
-moz-transform: rotate(0deg);
|
37 |
-
opacity: 0;
|
38 |
-
}
|
39 |
-
|
40 |
-
50% {
|
41 |
-
-moz-transform: rotate(180deg);
|
42 |
-
opacity: 1;
|
43 |
-
}
|
44 |
-
|
45 |
-
100% {
|
46 |
-
-moz-transform: rotate(-360deg);
|
47 |
-
opacity: 0;
|
48 |
-
}
|
49 |
-
}
|
50 |
-
|
51 |
-
@-webkit-keyframes spinPulse {
|
52 |
-
0% {
|
53 |
-
-webkit-transform: rotate(0deg);
|
54 |
-
opacity: 0;
|
55 |
-
}
|
56 |
-
|
57 |
-
50% {
|
58 |
-
-webkit-transform: rotate(180deg);
|
59 |
-
opacity: 1;
|
60 |
-
}
|
61 |
-
|
62 |
-
100% {
|
63 |
-
-webkit-transform: rotate(-360deg);
|
64 |
-
opacity: 0;
|
65 |
-
}
|
66 |
-
}
|
67 |
-
|
68 |
-
@-ms-keyframes spinPulse {
|
69 |
-
0% {
|
70 |
-
-ms-transform: rotate(0deg);
|
71 |
-
opacity: 0;
|
72 |
-
}
|
73 |
-
|
74 |
-
50% {
|
75 |
-
-ms-transform: rotate(180deg);
|
76 |
-
opacity: 1;
|
77 |
-
}
|
78 |
-
|
79 |
-
100% {
|
80 |
-
-ms-transform: rotate(-360deg);
|
81 |
-
opacity: 0;
|
82 |
-
}
|
83 |
-
}
|
84 |
-
|
85 |
-
@-o-keyframes spinPulse {
|
86 |
-
0% {
|
87 |
-
-o-transform: rotate(0deg);
|
88 |
-
opacity: 0;
|
89 |
-
}
|
90 |
-
|
91 |
-
50% {
|
92 |
-
-o-transform: rotate(180deg);
|
93 |
-
opacity: 1;
|
94 |
-
}
|
95 |
-
|
96 |
-
100% {
|
97 |
-
-o-transform: rotate(-360deg);
|
98 |
-
opacity: 0;
|
99 |
-
}
|
100 |
-
}
|
101 |
-
|
102 |
-
.ks-loading {
|
103 |
-
border: 5px solid #000;
|
104 |
-
border-radius: 50px;
|
105 |
-
border-left: 5px solid rgba(255, 255, 255, 0);
|
106 |
-
border-right: 5px solid rgba(255, 255, 255, 0);
|
107 |
-
height: 26px;
|
108 |
-
left: 50%;
|
109 |
-
margin: -13px 0 0 -13px;
|
110 |
-
position: absolute;
|
111 |
-
top: 50%;
|
112 |
-
width: 26px;
|
113 |
-
animation: spinPulse 1.3s infinite linear;
|
114 |
-
-moz-animation: spinPulse 1.3s infinite linear;
|
115 |
-
-webkit-animation: spinPulse 1.3s infinite linear;
|
116 |
-
-ms-animation: spinPulse 1.3s infinite linear;
|
117 |
-
-o-animation: spinPulse 1.3s infinite linear;
|
118 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
css/new-customizer-admin.css
ADDED
@@ -0,0 +1,116 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#wpadminbar, #edit-slug-box, #post-status-info, #screen-options-link-wrap, #leads-table-container, .misc-pub-section, #minor-publishing, .misc-pub-section, .misc-pub-section.curtime, #delete-action, #convert-header, #lp-tour, #view-post-btn, #launch-visual-editer, #adminmenuwrap, #lp_ab_display_stats_metabox, #lp-thumbnail-sidebar-preview, #landing_page_categorydiv, #postimagediv, #leads-table-container-inside, .updated.below-h2 a {
|
2 |
+
display: none !important;
|
3 |
+
}
|
4 |
+
html.wp-toolbar {
|
5 |
+
padding-top: 0px !important;
|
6 |
+
}
|
7 |
+
.auto-fold #adminmenuback, .auto-fold #adminmenuwrap, .auto-fold #adminmenu, .auto-fold #adminmenu li.menu-top {
|
8 |
+
width: 0px !important;
|
9 |
+
}
|
10 |
+
.auto-fold #wpcontent, .auto-fold #wpfooter {
|
11 |
+
margin-left: 10px !important;
|
12 |
+
}
|
13 |
+
/* Need to test */
|
14 |
+
#wpbody-content {
|
15 |
+
padding-bottom: 60px !important;
|
16 |
+
width: 76% !important;
|
17 |
+
}
|
18 |
+
#submitdiv .handlediv , #submitdiv .hndle {
|
19 |
+
display: none !important;
|
20 |
+
}
|
21 |
+
.wrap div.updated, .wrap div.error, .media-upload-form div.error {
|
22 |
+
margin: 5px 0 0px !important;
|
23 |
+
}
|
24 |
+
#publishing-action {
|
25 |
+
text-align: center !important;
|
26 |
+
float: none !important;}
|
27 |
+
#minor-publishing-actions input, #major-publishing-actions input, #minor-publishing-actions .preview {
|
28 |
+
text-align: center !important;
|
29 |
+
width: 280px !important;
|
30 |
+
margin: auto !important;
|
31 |
+
height: 44px !important;
|
32 |
+
font-size: 17px !important;
|
33 |
+
}
|
34 |
+
#major-publishing-actions {
|
35 |
+
padding: 15px 10px 15px !important;}
|
36 |
+
.select2-container {
|
37 |
+
min-width: 100% !important;
|
38 |
+
}
|
39 |
+
#submitdiv {
|
40 |
+
position: fixed !important;
|
41 |
+
bottom: 0px !important;
|
42 |
+
z-index: 999999 !important;
|
43 |
+
width: 100% !important;
|
44 |
+
margin-left: -10px !important;
|
45 |
+
padding-bottom: 10px !important;
|
46 |
+
margin-bottom: 0px !important;
|
47 |
+
|
48 |
+
}
|
49 |
+
.jPicker .Grid {
|
50 |
+
display: none;
|
51 |
+
}
|
52 |
+
.jPicker .Button {
|
53 |
+
text-align: center;
|
54 |
+
padding: 0 4px;
|
55 |
+
width: 264px;
|
56 |
+
position: absolute;
|
57 |
+
border-bottom: none;
|
58 |
+
left: 0px;
|
59 |
+
bottom: 3px;
|
60 |
+
}
|
61 |
+
.jPicker .Button input {
|
62 |
+
font-size: 18px !important;
|
63 |
+
}
|
64 |
+
.jPicker .Icon span.Color, .jPicker .Icon span.Alpha {
|
65 |
+
width: 97% !important;
|
66 |
+
}
|
67 |
+
.jPicker .Title {
|
68 |
+
width: 254px;
|
69 |
+
}
|
70 |
+
.jPicker hr {
|
71 |
+
display: none !important;
|
72 |
+
}
|
73 |
+
table.jPicker {
|
74 |
+
width: 430px !important;}
|
75 |
+
@media only screen and (max-width: 600px) {
|
76 |
+
.media-modal {
|
77 |
+
width: 432px !important;
|
78 |
+
position: fixed !important;
|
79 |
+
height: 484px !important;
|
80 |
+
}
|
81 |
+
.media-modal-backdrop {
|
82 |
+
width: 600px;
|
83 |
+
position: fixed !important;
|
84 |
+
}
|
85 |
+
}
|
86 |
+
ul#template-filter {
|
87 |
+
clear: both !important;
|
88 |
+
margin: 0px 0;
|
89 |
+
padding: 0;
|
90 |
+
padding-left: 0px;
|
91 |
+
line-height: 28px;
|
92 |
+
}
|
93 |
+
#lp-cancel-selection {
|
94 |
+
display: block;
|
95 |
+
float: none;
|
96 |
+
width: 70%;
|
97 |
+
text-align: center;
|
98 |
+
margin: auto;
|
99 |
+
margin-bottom: 10px;
|
100 |
+
margin-top: 10px;
|
101 |
+
}
|
102 |
+
#template-item {
|
103 |
+
width: 200px;}
|
104 |
+
ul#template-filter li {
|
105 |
+
display: inline-block;
|
106 |
+
|
107 |
+
padding-bottom: 0px;
|
108 |
+
padding-top: 0px;
|
109 |
+
margin: 0px;
|
110 |
+
line-height: 20px;
|
111 |
+
}
|
112 |
+
.lp-selection-heading h1 {
|
113 |
+
font-size: 18px;
|
114 |
+
display: block;
|
115 |
+
text-align: center;
|
116 |
+
}
|
functions/functions.admin.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
add_action('admin_enqueue_scripts','lp_admin_enqueue');
|
4 |
|
5 |
-
function lp_admin_enqueue($hook)
|
6 |
{
|
7 |
global $post;
|
8 |
$screen = get_current_screen(); //print_r($screen);
|
@@ -82,8 +82,13 @@ function lp_admin_enqueue($hook)
|
|
82 |
wp_localize_script( 'jquery-datepicker', 'jquery_datepicker', array( 'thispath' => LANDINGPAGES_URLPATH.'js/libraries/jquery-datepicker/' ));
|
83 |
wp_enqueue_script('jquery-datepicker-functions', LANDINGPAGES_URLPATH . 'js/libraries/jquery-datepicker/picker_functions.js');
|
84 |
wp_enqueue_style('jquery-timepicker-css', LANDINGPAGES_URLPATH . 'js/libraries/jquery-datepicker/jquery.timepicker.css');
|
85 |
-
wp_enqueue_style('jquery-datepicker-base.css', LANDINGPAGES_URLPATH . 'js/libraries/jquery-datepicker/lib/base.css');
|
86 |
-
|
|
|
|
|
|
|
|
|
|
|
87 |
}
|
88 |
|
89 |
// Add New Screen
|
@@ -91,7 +96,7 @@ function lp_admin_enqueue($hook)
|
|
91 |
{
|
92 |
// Create New Landing Jquery UI
|
93 |
wp_enqueue_script('lp-js-create-new-lander', LANDINGPAGES_URLPATH . 'js/admin/admin.post-new.js', array('jquery'), '1.0', true );
|
94 |
-
wp_localize_script( 'lp-js-create-new-lander', 'lp_post_new_ui', array( 'ajaxurl' => admin_url( 'admin-ajax.php' ), 'post_id' => $post->ID , 'wp_landing_page_meta_nonce' => wp_create_nonce('lp_nonce') ) );
|
95 |
wp_enqueue_style('lp-css-post-new', LANDINGPAGES_URLPATH . 'css/admin-post-new.css');
|
96 |
}
|
97 |
|
@@ -109,6 +114,29 @@ function lp_admin_enqueue($hook)
|
|
109 |
}
|
110 |
}
|
111 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
112 |
function lp_list_feature($label,$url=null)
|
113 |
{
|
114 |
return array(
|
@@ -117,18 +145,6 @@ function lp_list_feature($label,$url=null)
|
|
117 |
);
|
118 |
}
|
119 |
|
120 |
-
// The Callback
|
121 |
-
function lp_show_metabox($post,$key)
|
122 |
-
{
|
123 |
-
$extension_data = lp_get_extension_data();
|
124 |
-
$key = $key['args']['key'];
|
125 |
-
|
126 |
-
$lp_custom_fields = $extension_data[$key]['options'];
|
127 |
-
$lp_custom_fields = apply_filters('lp_show_metabox',$lp_custom_fields, $key);
|
128 |
-
|
129 |
-
lp_render_metabox($key,$lp_custom_fields,$post);
|
130 |
-
}
|
131 |
-
|
132 |
|
133 |
add_action('wp_trash_post', 'lp_trash_lander');
|
134 |
function lp_trash_lander($post_id) {
|
@@ -176,7 +192,7 @@ function lp_trash_lander($post_id) {
|
|
176 |
if (in_array($lp_id,$lp_ids))
|
177 |
{
|
178 |
unset($group_data[$lp_id]);
|
179 |
-
|
180 |
$this_data = json_encode($group_data);
|
181 |
//print_r($this_data);
|
182 |
$new_post = array(
|
@@ -203,8 +219,8 @@ function lp_add_option($key,$type,$id,$default=null,$label=null,$description=nul
|
|
203 |
case "colorpicker":
|
204 |
return array(
|
205 |
'label' => $label,
|
206 |
-
'
|
207 |
-
'id' => $
|
208 |
'type' => 'colorpicker',
|
209 |
'default' => $default
|
210 |
);
|
@@ -212,8 +228,8 @@ function lp_add_option($key,$type,$id,$default=null,$label=null,$description=nul
|
|
212 |
case "text":
|
213 |
return array(
|
214 |
'label' => $label,
|
215 |
-
'
|
216 |
-
'id' => $
|
217 |
'type' => 'text',
|
218 |
'default' => $default
|
219 |
);
|
@@ -221,8 +237,8 @@ function lp_add_option($key,$type,$id,$default=null,$label=null,$description=nul
|
|
221 |
case "license-key":
|
222 |
return array(
|
223 |
'label' => $label,
|
224 |
-
'
|
225 |
-
'id' => $
|
226 |
'type' => 'license-key',
|
227 |
'default' => $default,
|
228 |
'slug' => $id
|
@@ -231,8 +247,8 @@ function lp_add_option($key,$type,$id,$default=null,$label=null,$description=nul
|
|
231 |
case "textarea":
|
232 |
return array(
|
233 |
'label' => $label,
|
234 |
-
'
|
235 |
-
'id' => $
|
236 |
'type' => 'textarea',
|
237 |
'default' => $default
|
238 |
);
|
@@ -240,8 +256,8 @@ function lp_add_option($key,$type,$id,$default=null,$label=null,$description=nul
|
|
240 |
case "wysiwyg":
|
241 |
return array(
|
242 |
'label' => $label,
|
243 |
-
'
|
244 |
-
'id' => $
|
245 |
'type' => 'wysiwyg',
|
246 |
'default' => $default
|
247 |
);
|
@@ -249,8 +265,8 @@ function lp_add_option($key,$type,$id,$default=null,$label=null,$description=nul
|
|
249 |
case "media":
|
250 |
return array(
|
251 |
'label' => $label,
|
252 |
-
'
|
253 |
-
'id' => $
|
254 |
'type' => 'media',
|
255 |
'default' => $default
|
256 |
);
|
@@ -258,8 +274,8 @@ function lp_add_option($key,$type,$id,$default=null,$label=null,$description=nul
|
|
258 |
case "checkbox":
|
259 |
return array(
|
260 |
'label' => $label,
|
261 |
-
'
|
262 |
-
'id' => $
|
263 |
'type' => 'checkbox',
|
264 |
'default' => $default,
|
265 |
'options' => $options
|
@@ -268,8 +284,8 @@ function lp_add_option($key,$type,$id,$default=null,$label=null,$description=nul
|
|
268 |
case "radio":
|
269 |
return array(
|
270 |
'label' => $label,
|
271 |
-
'
|
272 |
-
'id'
|
273 |
'type' => 'radio',
|
274 |
'default' => $default,
|
275 |
'options' => $options
|
@@ -278,8 +294,8 @@ function lp_add_option($key,$type,$id,$default=null,$label=null,$description=nul
|
|
278 |
case "dropdown":
|
279 |
return array(
|
280 |
'label' => $label,
|
281 |
-
'
|
282 |
-
'id' => $
|
283 |
'type' => 'dropdown',
|
284 |
'default' => $default,
|
285 |
'options' => $options
|
@@ -288,8 +304,8 @@ function lp_add_option($key,$type,$id,$default=null,$label=null,$description=nul
|
|
288 |
case "datepicker":
|
289 |
return array(
|
290 |
'label' => $label,
|
291 |
-
'
|
292 |
-
'id' => $
|
293 |
'type' => 'datepicker',
|
294 |
'default' => $default
|
295 |
);
|
@@ -297,8 +313,8 @@ function lp_add_option($key,$type,$id,$default=null,$label=null,$description=nul
|
|
297 |
case "default-content":
|
298 |
return array(
|
299 |
'label' => $label,
|
300 |
-
'
|
301 |
-
'id' => $
|
302 |
'type' => 'default-content',
|
303 |
'default' => $default
|
304 |
);
|
@@ -306,8 +322,8 @@ function lp_add_option($key,$type,$id,$default=null,$label=null,$description=nul
|
|
306 |
case "html":
|
307 |
return array(
|
308 |
'label' => $label,
|
309 |
-
'
|
310 |
-
'id' => $
|
311 |
'type' => 'html',
|
312 |
'default' => $default
|
313 |
);
|
@@ -315,276 +331,7 @@ function lp_add_option($key,$type,$id,$default=null,$label=null,$description=nul
|
|
315 |
}
|
316 |
}
|
317 |
|
318 |
-
function lp_render_metabox($key,$custom_fields,$post)
|
319 |
-
{
|
320 |
-
// Use nonce for verification
|
321 |
-
echo "<input type='hidden' name='lp_{$key}_custom_fields_nonce' value='".wp_create_nonce('lp-nonce')."' />";
|
322 |
-
|
323 |
-
// Begin the field table and loop
|
324 |
-
echo '<table class="form-table" >';
|
325 |
-
//print_r($custom_fields);exit;
|
326 |
-
foreach ($custom_fields as $field) {
|
327 |
-
$raw_option_id = str_replace($key . "-", "", $field['id']);
|
328 |
-
$label_class = $raw_option_id . "-label";
|
329 |
-
// get value of this field if it exists for this post
|
330 |
-
$meta = get_post_meta($post->ID, $field['id'], true);
|
331 |
-
|
332 |
-
|
333 |
-
if ((!isset($meta)&&isset($field['default'])&&!is_numeric($meta))||isset($meta)&&empty($meta)&&isset($field['default'])&&!is_numeric($meta))
|
334 |
-
{
|
335 |
-
//echo $field['id'].":".$meta;
|
336 |
-
//echo "<br>";
|
337 |
-
$meta = $field['default'];
|
338 |
-
}
|
339 |
|
340 |
-
// begin a table row with
|
341 |
-
echo '<tr class="'.$field['id'].' '.$raw_option_id.' landing-page-option-row">
|
342 |
-
<th class="landing-page-table-header '.$label_class.'"><label for="'.$field['id'].'">'.$field['label'].'</label></th>
|
343 |
-
<td class="landing-page-option-td">';
|
344 |
-
switch($field['type']) {
|
345 |
-
// default content for the_content
|
346 |
-
case 'default-content':
|
347 |
-
echo '<span id="overwrite-content" class="button-secondary">Insert Default Content into main Content area</span><div style="display:none;"><textarea name="'.$field['id'].'" id="'.$field['id'].'" class="default-content" cols="106" rows="6" style="width: 75%; display:hidden;">'.$meta.'</textarea></div>';
|
348 |
-
break;
|
349 |
-
// text
|
350 |
-
case 'colorpicker':
|
351 |
-
if (!$meta)
|
352 |
-
{
|
353 |
-
$meta = $field['default'];
|
354 |
-
}
|
355 |
-
echo '<input type="text" class="jpicker" style="background-color:#'.$meta.'" name="'.$field['id'].'" id="'.$field['id'].'" value="'.$meta.'" size="5" /><span class="button-primary new-save-lp" id="'.$field['id'].'" style="margin-left:10px; display:none;">Update</span>
|
356 |
-
<div class="lp_tooltip tool_color" title="'.$field['desc'].'"></div>';
|
357 |
-
break;
|
358 |
-
case 'datepicker':
|
359 |
-
echo '<div class="jquery-date-picker" id="date-picking">
|
360 |
-
<span class="datepair" data-language="javascript">
|
361 |
-
Date: <input type="text" id="date-picker-'.$key.'" class="date start" /></span>
|
362 |
-
Time: <input id="time-picker-'.$key.'" type="text" class="time time-picker" />
|
363 |
-
<input type="hidden" name="'.$field['id'].'" id="'.$field['id'].'" value="'.$meta.'" class="new-date" value="" >
|
364 |
-
<p class="description">'.$field['desc'].'</p>
|
365 |
-
</div>';
|
366 |
-
break;
|
367 |
-
case 'text':
|
368 |
-
echo '<input type="text" name="'.$field['id'].'" id="'.$field['id'].'" value="'.$meta.'" size="30" />
|
369 |
-
<div class="lp_tooltip" title="'.$field['desc'].'"></div>';
|
370 |
-
break;
|
371 |
-
// textarea
|
372 |
-
case 'textarea':
|
373 |
-
echo '<textarea name="'.$field['id'].'" id="'.$field['id'].'" cols="106" rows="6" style="width: 75%;">'.$meta.'</textarea>
|
374 |
-
<div class="lp_tooltip tool_textarea" title="'.$field['desc'].'"></div>';
|
375 |
-
break;
|
376 |
-
// wysiwyg
|
377 |
-
case 'wysiwyg':
|
378 |
-
wp_editor( $meta, $field['id'], $settings = array() );
|
379 |
-
echo '<p class="description">'.$field['desc'].'</p>';
|
380 |
-
break;
|
381 |
-
// media
|
382 |
-
case 'media':
|
383 |
-
//echo 1; exit;
|
384 |
-
echo '<label for="upload_image">';
|
385 |
-
echo '<input name="'.$field['id'].'" id="'.$field['id'].'" type="text" size="36" name="upload_image" value="'.$meta.'" />';
|
386 |
-
echo '<input class="upload_image_button" id="uploader_'.$field['id'].'" type="button" value="Upload Image" />';
|
387 |
-
echo '<p class="description">'.$field['desc'].'</p>';
|
388 |
-
break;
|
389 |
-
// checkbox
|
390 |
-
case 'checkbox':
|
391 |
-
$i = 1;
|
392 |
-
echo "<table class='lp_check_box_table'>";
|
393 |
-
if (!isset($meta)){$meta=array();}
|
394 |
-
elseif (!is_array($meta)){
|
395 |
-
$meta = array($meta);
|
396 |
-
}
|
397 |
-
foreach ($field['options'] as $value=>$label) {
|
398 |
-
if ($i==5||$i==1)
|
399 |
-
{
|
400 |
-
echo "<tr>";
|
401 |
-
$i=1;
|
402 |
-
}
|
403 |
-
echo '<td><input type="checkbox" name="'.$field['id'].'[]" id="'.$field['id'].'" value="'.$value.'" ',in_array($value,$meta) ? ' checked="checked"' : '','/>';
|
404 |
-
echo '<label for="'.$value.'"> '.$label.'</label></td>';
|
405 |
-
if ($i==4)
|
406 |
-
{
|
407 |
-
echo "</tr>";
|
408 |
-
}
|
409 |
-
$i++;
|
410 |
-
}
|
411 |
-
echo "</table>";
|
412 |
-
echo '<div class="lp_tooltip tool_checkbox" title="'.$field['desc'].'"></div>';
|
413 |
-
break;
|
414 |
-
// radio
|
415 |
-
case 'radio':
|
416 |
-
foreach ($field['options'] as $value=>$label) {
|
417 |
-
//echo $meta.":".$field['id'];
|
418 |
-
//echo "<br>";
|
419 |
-
echo '<input type="radio" name="'.$field['id'].'" id="'.$field['id'].'" value="'.$value.'" ',$meta==$value ? ' checked="checked"' : '','/>';
|
420 |
-
echo '<label for="'.$value.'"> '.$label.'</label> ';
|
421 |
-
}
|
422 |
-
echo '<div class="lp_tooltip" title="'.$field['desc'].'"></div>';
|
423 |
-
break;
|
424 |
-
// select
|
425 |
-
case 'dropdown':
|
426 |
-
echo '<select name="'.$field['id'].'" id="'.$field['id'].'" class="'.$raw_option_id.'">';
|
427 |
-
foreach ($field['options'] as $value=>$label) {
|
428 |
-
echo '<option', $meta == $value ? ' selected="selected"' : '', ' value="'.$value.'">'.$label.'</option>';
|
429 |
-
}
|
430 |
-
echo '</select><div class="lp_tooltip" title="'.$field['desc'].'"></div>';
|
431 |
-
break;
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
} //end switch
|
436 |
-
echo '</td></tr>';
|
437 |
-
} // end foreach
|
438 |
-
echo '</table>'; // end table
|
439 |
-
}
|
440 |
-
|
441 |
-
function lp_render_global_settings($key,$custom_fields,$active_tab)
|
442 |
-
{
|
443 |
-
|
444 |
-
//Check if active tab
|
445 |
-
if ($key==$active_tab)
|
446 |
-
{
|
447 |
-
$display = 'block';
|
448 |
-
}
|
449 |
-
else
|
450 |
-
{
|
451 |
-
$display = 'none';
|
452 |
-
}
|
453 |
-
|
454 |
-
//echo $display;
|
455 |
-
|
456 |
-
// Use nonce for verification
|
457 |
-
echo "<input type='hidden' name='lp_{$key}_custom_fields_nonce' value='".wp_create_nonce('lp-nonce')."' />";
|
458 |
-
|
459 |
-
// Begin the field table and loop
|
460 |
-
echo '<table class="lp-tab-display" id="'.$key.'" style="display:'.$display.'">';
|
461 |
-
//print_r($custom_fields);exit;
|
462 |
-
foreach ($custom_fields as $field) {
|
463 |
-
//echo $field['type'];exit;
|
464 |
-
// get value of this field if it exists for this post
|
465 |
-
if (isset($field['default']))
|
466 |
-
{
|
467 |
-
$default = $field['default'];
|
468 |
-
}
|
469 |
-
else
|
470 |
-
{
|
471 |
-
$default = null;
|
472 |
-
}
|
473 |
-
|
474 |
-
$option = get_option($field['id'], $default);
|
475 |
-
|
476 |
-
// begin a table row with
|
477 |
-
echo '<tr>
|
478 |
-
<th class="lp-gs-th" valign="top" style="font-weight:300px;"><small>'.$field['label'].':</small></th>
|
479 |
-
<td>';
|
480 |
-
switch($field['type']) {
|
481 |
-
// text
|
482 |
-
case 'colorpicker':
|
483 |
-
if (!$option)
|
484 |
-
{
|
485 |
-
$option = $field['default'];
|
486 |
-
}
|
487 |
-
echo '<input type="text" class="jpicker" name="'.$field['id'].'" id="'.$field['id'].'" value="'.$option.'" size="5" />
|
488 |
-
<div class="lp_tooltip tool_color" title="'.$field['desc'].'"></div>';
|
489 |
-
break;
|
490 |
-
case 'datepicker':
|
491 |
-
echo '<input id="datepicker-example2" class="Zebra_DatePicker_Icon" type="text" name="'.$field['id'].'" id="'.$field['id'].'" value="'.$option.'" size="8" />
|
492 |
-
<div class="lp_tooltip tool_date" title="'.$field['desc'].'"></div><p class="description">'.$field['desc'].'</p>';
|
493 |
-
break;
|
494 |
-
case 'license-key':
|
495 |
-
$license_status = lp_check_license_status($field);
|
496 |
-
//echo $license_status;exit;
|
497 |
-
echo '<input type="hidden" name="lp_license_status-'.$field['slug'].'" id="'.$field['id'].'" value="'.$license_status.'" size="30" />
|
498 |
-
<input type="text" name="'.$field['id'].'" id="'.$field['id'].'" value="'.$option.'" size="30" />
|
499 |
-
<div class="lp_tooltip tool_text" title="'.$field['desc'].'"></div>';
|
500 |
-
|
501 |
-
if ($license_status=='valid')
|
502 |
-
{
|
503 |
-
echo '<div class="lp_license_status_valid">Valid</div>';
|
504 |
-
}
|
505 |
-
else
|
506 |
-
{
|
507 |
-
echo '<div class="lp_license_status_invalid">Invalid</div>';
|
508 |
-
}
|
509 |
-
break;
|
510 |
-
case 'text':
|
511 |
-
echo '<input type="text" name="'.$field['id'].'" id="'.$field['id'].'" value="'.$option.'" size="30" />
|
512 |
-
<div class="lp_tooltip tool_text" title="'.$field['desc'].'"></div>';
|
513 |
-
break;
|
514 |
-
// textarea
|
515 |
-
case 'textarea':
|
516 |
-
echo '<textarea name="'.$field['id'].'" id="'.$field['id'].'" cols="106" rows="6">'.$option.'</textarea>
|
517 |
-
<div class="lp_tooltip tool_textarea" title="'.$field['desc'].'"></div>';
|
518 |
-
break;
|
519 |
-
// wysiwyg
|
520 |
-
case 'wysiwyg':
|
521 |
-
wp_editor( $option, $field['id'], $settings = array() );
|
522 |
-
echo '<span class="description">'.$field['desc'].'</span><br><br>';
|
523 |
-
break;
|
524 |
-
// media
|
525 |
-
case 'media':
|
526 |
-
//echo 1; exit;
|
527 |
-
echo '<label for="upload_image">';
|
528 |
-
echo '<input name="'.$field['id'].'" id="'.$field['id'].'" type="text" size="36" name="upload_image" value="'.$option.'" />';
|
529 |
-
echo '<input class="upload_image_button" id="uploader_'.$field['id'].'" type="button" value="Upload Image" />';
|
530 |
-
echo '<br /><div class="lp_tooltip tool_media" title="'.$field['desc'].'"></div>';
|
531 |
-
break;
|
532 |
-
// checkbox
|
533 |
-
case 'checkbox':
|
534 |
-
$i = 1;
|
535 |
-
echo "<table>";
|
536 |
-
if (!isset($option)){$option=array();}
|
537 |
-
elseif (!is_array($option)){
|
538 |
-
$option = array($option);
|
539 |
-
}
|
540 |
-
foreach ($field['options'] as $value=>$label) {
|
541 |
-
if ($i==5||$i==1)
|
542 |
-
{
|
543 |
-
echo "<tr>";
|
544 |
-
$i=1;
|
545 |
-
}
|
546 |
-
echo '<td><input type="checkbox" name="'.$field['id'].'[]" id="'.$field['id'].'" value="'.$value.'" ',in_array($value,$option) ? ' checked="checked"' : '','/>';
|
547 |
-
echo '<label for="'.$value.'"> '.$label.'</label></td>';
|
548 |
-
if ($i==4)
|
549 |
-
{
|
550 |
-
echo "</tr>";
|
551 |
-
}
|
552 |
-
$i++;
|
553 |
-
}
|
554 |
-
echo "</table>";
|
555 |
-
echo '<br><div class="lp_tooltip tool_checkbox" title="'.$field['desc'].'"></div>';
|
556 |
-
break;
|
557 |
-
// radio
|
558 |
-
case 'radio':
|
559 |
-
foreach ($field['options'] as $value=>$label) {
|
560 |
-
//echo $meta.":".$field['id'];
|
561 |
-
//echo "<br>";
|
562 |
-
echo '<input type="radio" name="'.$field['id'].'" id="'.$field['id'].'" value="'.$value.'" ',$option==$value ? ' checked="checked"' : '','/>';
|
563 |
-
echo '<label for="'.$value.'"> '.$label.'</label> ';
|
564 |
-
}
|
565 |
-
echo '<div class="lp_tooltip tool_radio" title="'.$field['desc'].'"></div>';
|
566 |
-
break;
|
567 |
-
// select
|
568 |
-
case 'dropdown':
|
569 |
-
echo '<select name="'.$field['id'].'" id="'.$field['id'].'">';
|
570 |
-
foreach ($field['options'] as $value=>$label) {
|
571 |
-
echo '<option', $option == $value ? ' selected="selected"' : '', ' value="'.$value.'">'.$label.'</option>';
|
572 |
-
}
|
573 |
-
echo '</select><br /><div class="lp_tooltip tool_dropdown" title="'.$field['desc'].'"></div>';
|
574 |
-
break;
|
575 |
-
case 'html':
|
576 |
-
//print_r($field);
|
577 |
-
echo $option;
|
578 |
-
echo '<br /><div class="lp_tooltip tool_dropdown" title="'.$field['desc'].'"></div>';
|
579 |
-
break;
|
580 |
-
|
581 |
-
|
582 |
-
|
583 |
-
} //end switch
|
584 |
-
echo '</td></tr>';
|
585 |
-
} // end foreach
|
586 |
-
echo '</table>'; // end table
|
587 |
-
}
|
588 |
|
589 |
|
590 |
//generates drop down select of landing pages
|
@@ -617,8 +364,8 @@ function lp_wp_editor( $content, $id, $settings = array() )
|
|
617 |
$content = apply_filters('lp_wp_editor_content',$content);
|
618 |
$id = apply_filters('lp_wp_editor_id',$id);
|
619 |
$settings = apply_filters('lp_wp_editor_settings',$settings);
|
620 |
-
|
621 |
-
|
622 |
wp_editor( $content, $id, $settings);
|
623 |
}
|
624 |
|
@@ -654,7 +401,6 @@ function lp_display_success($message)
|
|
654 |
|
655 |
function lp_make_percent($rate, $return = false)
|
656 |
{
|
657 |
-
//echo "1{$rate}2";exit;
|
658 |
//yes, we know this is not a true filter
|
659 |
if (is_numeric($rate))
|
660 |
{
|
@@ -668,47 +414,6 @@ function lp_make_percent($rate, $return = false)
|
|
668 |
}
|
669 |
}
|
670 |
|
671 |
-
function lp_check_license_status($field)
|
672 |
-
{
|
673 |
-
//print_r($field);exit;
|
674 |
-
$date = date("Y-m-d");
|
675 |
-
$cache_date = get_option($field['id']."-expire");
|
676 |
-
$license_status = get_option('lp_license_status-'.$field['slug']);
|
677 |
-
|
678 |
-
if (isset($cache_date)&&($date<$cache_date)&&$license_status=='valid')
|
679 |
-
{
|
680 |
-
return "valid";
|
681 |
-
}
|
682 |
-
|
683 |
-
$license_key = get_option($field['id']);
|
684 |
-
|
685 |
-
$api_params = array(
|
686 |
-
'edd_action' => 'check_license',
|
687 |
-
'license' => $license_key,
|
688 |
-
'item_name' => urlencode( $field['slug'] )
|
689 |
-
);
|
690 |
-
//print_r($api_params);
|
691 |
-
|
692 |
-
// Call the custom API.
|
693 |
-
$response = wp_remote_get( add_query_arg( $api_params, LANDINGPAGES_STORE_URL ), array( 'timeout' => 15, 'sslverify' => false ) );
|
694 |
-
//print_r($response);
|
695 |
-
|
696 |
-
if ( is_wp_error( $response ) )
|
697 |
-
return false;
|
698 |
-
|
699 |
-
$license_data = json_decode( wp_remote_retrieve_body( $response ) );
|
700 |
-
//echo $license_data;exit;
|
701 |
-
|
702 |
-
if( $license_data->license == 'valid' ) {
|
703 |
-
$newDate = date('Y-m-d', strtotime("+15 days"));
|
704 |
-
update_option($field['id']."-expire", $newDate);
|
705 |
-
return 'valid';
|
706 |
-
// this license is still valid
|
707 |
-
} else {
|
708 |
-
return 'invalid';
|
709 |
-
}
|
710 |
-
}
|
711 |
-
|
712 |
|
713 |
function landing_page_get_version() {
|
714 |
if ( ! function_exists( 'get_plugins' ) )
|
@@ -775,4 +480,6 @@ function lp_ab_get_lp_active_status($post,$vid=null)
|
|
775 |
{
|
776 |
return $variation_status;
|
777 |
}
|
778 |
-
}
|
|
|
|
2 |
|
3 |
add_action('admin_enqueue_scripts','lp_admin_enqueue');
|
4 |
|
5 |
+
function lp_admin_enqueue($hook)
|
6 |
{
|
7 |
global $post;
|
8 |
$screen = get_current_screen(); //print_r($screen);
|
82 |
wp_localize_script( 'jquery-datepicker', 'jquery_datepicker', array( 'thispath' => LANDINGPAGES_URLPATH.'js/libraries/jquery-datepicker/' ));
|
83 |
wp_enqueue_script('jquery-datepicker-functions', LANDINGPAGES_URLPATH . 'js/libraries/jquery-datepicker/picker_functions.js');
|
84 |
wp_enqueue_style('jquery-timepicker-css', LANDINGPAGES_URLPATH . 'js/libraries/jquery-datepicker/jquery.timepicker.css');
|
85 |
+
wp_enqueue_style('jquery-datepicker-base.css', LANDINGPAGES_URLPATH . 'js/libraries/jquery-datepicker/lib/base.css');
|
86 |
+
// New frontend editor
|
87 |
+
if (isset($_GET['frontend']) && $_GET['frontend'] === 'true') {
|
88 |
+
//show_admin_bar( false ); // doesnt work
|
89 |
+
wp_enqueue_style('new-customizer-admin', LANDINGPAGES_URLPATH . '/css/new-customizer-admin.css');
|
90 |
+
wp_enqueue_script('new-customizer-admin', LANDINGPAGES_URLPATH . 'js/admin/new-customizer-admin.js');
|
91 |
+
}
|
92 |
}
|
93 |
|
94 |
// Add New Screen
|
96 |
{
|
97 |
// Create New Landing Jquery UI
|
98 |
wp_enqueue_script('lp-js-create-new-lander', LANDINGPAGES_URLPATH . 'js/admin/admin.post-new.js', array('jquery'), '1.0', true );
|
99 |
+
wp_localize_script( 'lp-js-create-new-lander', 'lp_post_new_ui', array( 'ajaxurl' => admin_url( 'admin-ajax.php' ), 'post_id' => $post->ID , 'wp_landing_page_meta_nonce' => wp_create_nonce('lp_nonce') , 'LANDINGPAGES_URLPATH' => LANDINGPAGES_URLPATH ) );
|
100 |
wp_enqueue_style('lp-css-post-new', LANDINGPAGES_URLPATH . 'css/admin-post-new.css');
|
101 |
}
|
102 |
|
114 |
}
|
115 |
}
|
116 |
|
117 |
+
add_filter('admin_url','lp_add_fullscreen_param');
|
118 |
+
function lp_add_fullscreen_param( $link )
|
119 |
+
{
|
120 |
+
if (isset($_GET['page']))
|
121 |
+
return $link;
|
122 |
+
|
123 |
+
if ( ( isset($post) && 'landing-page' == $post->post_type ) || ( isset($_REQUEST['post_type']) && $_REQUEST['post_type']=='landing-page' ) )
|
124 |
+
{
|
125 |
+
$params['frontend'] = 'false';
|
126 |
+
if(isset($_GET['frontend']) && $_GET['frontend'] == 'true') {
|
127 |
+
$params['frontend'] = 'true';
|
128 |
+
}
|
129 |
+
if(isset($_REQUEST['frontend']) && $_REQUEST['frontend'] == 'true') {
|
130 |
+
$params['frontend'] = 'true';
|
131 |
+
}
|
132 |
+
$link = add_query_arg( $params, $link );
|
133 |
+
|
134 |
+
}
|
135 |
+
|
136 |
+
return $link;
|
137 |
+
}
|
138 |
+
|
139 |
+
|
140 |
function lp_list_feature($label,$url=null)
|
141 |
{
|
142 |
return array(
|
145 |
);
|
146 |
}
|
147 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
148 |
|
149 |
add_action('wp_trash_post', 'lp_trash_lander');
|
150 |
function lp_trash_lander($post_id) {
|
192 |
if (in_array($lp_id,$lp_ids))
|
193 |
{
|
194 |
unset($group_data[$lp_id]);
|
195 |
+
|
196 |
$this_data = json_encode($group_data);
|
197 |
//print_r($this_data);
|
198 |
$new_post = array(
|
219 |
case "colorpicker":
|
220 |
return array(
|
221 |
'label' => $label,
|
222 |
+
'description' => $description,
|
223 |
+
'id' => $id,
|
224 |
'type' => 'colorpicker',
|
225 |
'default' => $default
|
226 |
);
|
228 |
case "text":
|
229 |
return array(
|
230 |
'label' => $label,
|
231 |
+
'description' => $description,
|
232 |
+
'id' => $id,
|
233 |
'type' => 'text',
|
234 |
'default' => $default
|
235 |
);
|
237 |
case "license-key":
|
238 |
return array(
|
239 |
'label' => $label,
|
240 |
+
'description' => $description,
|
241 |
+
'id' => $id,
|
242 |
'type' => 'license-key',
|
243 |
'default' => $default,
|
244 |
'slug' => $id
|
247 |
case "textarea":
|
248 |
return array(
|
249 |
'label' => $label,
|
250 |
+
'description' => $description,
|
251 |
+
'id' => $id,
|
252 |
'type' => 'textarea',
|
253 |
'default' => $default
|
254 |
);
|
256 |
case "wysiwyg":
|
257 |
return array(
|
258 |
'label' => $label,
|
259 |
+
'description' => $description,
|
260 |
+
'id' => $id,
|
261 |
'type' => 'wysiwyg',
|
262 |
'default' => $default
|
263 |
);
|
265 |
case "media":
|
266 |
return array(
|
267 |
'label' => $label,
|
268 |
+
'description' => $description,
|
269 |
+
'id' => $id,
|
270 |
'type' => 'media',
|
271 |
'default' => $default
|
272 |
);
|
274 |
case "checkbox":
|
275 |
return array(
|
276 |
'label' => $label,
|
277 |
+
'description' => $description,
|
278 |
+
'id' => $id,
|
279 |
'type' => 'checkbox',
|
280 |
'default' => $default,
|
281 |
'options' => $options
|
284 |
case "radio":
|
285 |
return array(
|
286 |
'label' => $label,
|
287 |
+
'description' => $description,
|
288 |
+
'id' =>$id,
|
289 |
'type' => 'radio',
|
290 |
'default' => $default,
|
291 |
'options' => $options
|
294 |
case "dropdown":
|
295 |
return array(
|
296 |
'label' => $label,
|
297 |
+
'description' => $description,
|
298 |
+
'id' => $id,
|
299 |
'type' => 'dropdown',
|
300 |
'default' => $default,
|
301 |
'options' => $options
|
304 |
case "datepicker":
|
305 |
return array(
|
306 |
'label' => $label,
|
307 |
+
'description' => $description,
|
308 |
+
'id' => $id,
|
309 |
'type' => 'datepicker',
|
310 |
'default' => $default
|
311 |
);
|
313 |
case "default-content":
|
314 |
return array(
|
315 |
'label' => $label,
|
316 |
+
'description' => $description,
|
317 |
+
'id' => $id,
|
318 |
'type' => 'default-content',
|
319 |
'default' => $default
|
320 |
);
|
322 |
case "html":
|
323 |
return array(
|
324 |
'label' => $label,
|
325 |
+
'description' => $description,
|
326 |
+
'id' => $id,
|
327 |
'type' => 'html',
|
328 |
'default' => $default
|
329 |
);
|
331 |
}
|
332 |
}
|
333 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
334 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
335 |
|
336 |
|
337 |
//generates drop down select of landing pages
|
364 |
$content = apply_filters('lp_wp_editor_content',$content);
|
365 |
$id = apply_filters('lp_wp_editor_id',$id);
|
366 |
$settings = apply_filters('lp_wp_editor_settings',$settings);
|
367 |
+
|
368 |
+
|
369 |
wp_editor( $content, $id, $settings);
|
370 |
}
|
371 |
|
401 |
|
402 |
function lp_make_percent($rate, $return = false)
|
403 |
{
|
|
|
404 |
//yes, we know this is not a true filter
|
405 |
if (is_numeric($rate))
|
406 |
{
|
414 |
}
|
415 |
}
|
416 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
417 |
|
418 |
function landing_page_get_version() {
|
419 |
if ( ! function_exists( 'get_plugins' ) )
|
480 |
{
|
481 |
return $variation_status;
|
482 |
}
|
483 |
+
}
|
484 |
+
|
485 |
+
?>
|
functions/functions.global.php
CHANGED
@@ -1 +1,786 @@
|
|
1 |
-
<?php
|
2 |
} else if(stristr($_SERVER['SERVER_SOFTWARE'], 'IIS')){
|
3 |
$array = explode('\\',$path);
|
4 |
}else {
|
5 |
$alphabet = array( 'A', 'B', 'C', 'D', 'E',
|
6 |
'F', 'G', 'H', 'I', 'J',
|
7 |
'K', 'L', 'M', 'N', 'O',
|
8 |
'P', 'Q', 'R', 'S', 'T',
|
9 |
'U', 'V', 'W', 'X', 'Y',
|
10 |
'Z'
|
11 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
} else if(stristr($_SERVER['SERVER_SOFTWARE'], 'IIS')){
|
2 |
$array = explode('\\',$path);
|
3 |
}else {
|
4 |
$alphabet = array( 'A', 'B', 'C', 'D', 'E',
|
5 |
'F', 'G', 'H', 'I', 'J',
|
6 |
'K', 'L', 'M', 'N', 'O',
|
7 |
'P', 'Q', 'R', 'S', 'T',
|
8 |
'U', 'V', 'W', 'X', 'Y',
|
9 |
'Z'
|
10 |
);
|
11 |
+
<?php
|
12 |
+
|
13 |
+
add_action('wp_enqueue_scripts','lp_fontend_enqueue_scripts');
|
14 |
+
|
15 |
+
function lp_fontend_enqueue_scripts($hook)
|
16 |
+
{
|
17 |
+
global $post;
|
18 |
+
|
19 |
+
if (!isset($post))
|
20 |
+
return;
|
21 |
+
|
22 |
+
$post_type = $post->post_type;
|
23 |
+
$post_id = $post->ID;
|
24 |
+
(isset($_SERVER['REMOTE_ADDR'])) ? $ip_address = $_SERVER['REMOTE_ADDR'] : $ip_address = '0.0.0.0.0';
|
25 |
+
$current_page = "http://".$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"];
|
26 |
+
|
27 |
+
wp_enqueue_script('jquery');
|
28 |
+
|
29 |
+
// jquery cookie
|
30 |
+
wp_dequeue_script('jquery-cookie');
|
31 |
+
wp_enqueue_script('jquery-cookie', LANDINGPAGES_URLPATH . 'js/jquery.lp.cookie.js', array( 'jquery' ));
|
32 |
+
|
33 |
+
// load local storage script
|
34 |
+
wp_register_script('jquery-total-storage',LANDINGPAGES_URLPATH . 'js/jquery.total-storage.min.js', array( 'jquery' ));
|
35 |
+
wp_enqueue_script('jquery-total-storage');
|
36 |
+
|
37 |
+
// Load funnel tracking. Force Leads to load its version if active
|
38 |
+
if ($post_type!=='wp-call-to-action')
|
39 |
+
{
|
40 |
+
wp_register_script('funnel-tracking',LANDINGPAGES_URLPATH . 'js/funnel-tracking.js', array( 'jquery', 'jquery-cookie'));
|
41 |
+
wp_enqueue_script('funnel-tracking');
|
42 |
+
wp_localize_script( 'funnel-tracking' , 'wplft', array( 'post_id' => $post_id , 'ip_address' => $ip_address ));
|
43 |
+
}
|
44 |
+
|
45 |
+
if (isset($post)&&$post->post_type=='landing-page')
|
46 |
+
{
|
47 |
+
|
48 |
+
|
49 |
+
// Shared Core Inbound Scripts
|
50 |
+
if (@function_exists('wpleads_check_active'))
|
51 |
+
{
|
52 |
+
wp_enqueue_script( 'store-lead-ajax', WPL_URL . '/shared/tracking/js/store.lead.ajax.js', array( 'jquery','jquery-cookie', 'funnel-tracking'));
|
53 |
+
}
|
54 |
+
else
|
55 |
+
{
|
56 |
+
wp_enqueue_script( 'store-lead-ajax', LANDINGPAGES_URLPATH .'shared/tracking/js/store.lead.ajax.js', array( 'jquery','jquery-cookie'));
|
57 |
+
}
|
58 |
+
wp_localize_script( 'store-lead-ajax' , 'inbound_ajax', array( 'admin_url' => admin_url( 'admin-ajax.php' ), 'post_id' => $post_id, 'post_type' => $post_type));
|
59 |
+
|
60 |
+
$variation = (isset($_GET['lp-variation-id'])) ? $_GET['lp-variation-id'] : '0';
|
61 |
+
wp_enqueue_script( 'landing-page-view-track' , LANDINGPAGES_URLPATH . 'js/page_view_track.js', array( 'jquery','jquery-cookie'));
|
62 |
+
wp_localize_script( 'landing-page-view-track' , 'landing_path_info', array( 'variation' => $variation, 'admin_url' => admin_url( 'admin-ajax.php' )));
|
63 |
+
|
64 |
+
$form_prepopulation = get_option( 'lp-main-landing-page-prepopulate-forms' , 1);
|
65 |
+
|
66 |
+
// load form pre-population script
|
67 |
+
if ($form_prepopulation)
|
68 |
+
{
|
69 |
+
wp_register_script('form-population',LANDINGPAGES_URLPATH . 'js/jquery.form-population.js', array( 'jquery', 'jquery-cookie' ));
|
70 |
+
wp_enqueue_script('form-population');
|
71 |
+
}
|
72 |
+
|
73 |
+
|
74 |
+
|
75 |
+
|
76 |
+
if (isset($_GET['template-customize']) &&$_GET['template-customize']=='on') {
|
77 |
+
// wp_register_script('lp-customizer-load-js', LANDINGPAGES_URLPATH . 'js/customizer.load.js', array('jquery'));
|
78 |
+
// wp_enqueue_script('lp-customizer-load-js');
|
79 |
+
echo "<style type='text/css'>#variation-list{background:#eaeaea !important; top: 26px !important; height: 35px !important;padding-top: 10px !important;}#wpadminbar {height: 29px !important;}</style>"; // enqueue styles not firing
|
80 |
+
}
|
81 |
+
if (isset($_GET['live-preview-area'])) {
|
82 |
+
show_admin_bar( false );
|
83 |
+
wp_register_script('lp-customizer-load-js', LANDINGPAGES_URLPATH . 'js/customizer.load.js', array('jquery'));
|
84 |
+
wp_enqueue_script('lp-customizer-load-js');
|
85 |
+
// wp_enqueue_style('lp-customizer-load-css', LANDINGPAGES_URLPATH . 'css/customizer-load.css'); doesn't work
|
86 |
+
/* Almost working
|
87 |
+
define("QUICK_CACHE_ALLOWED", false);
|
88 |
+
define("DONOTCACHEPAGE", true);
|
89 |
+
define('DONOTCACHCEOBJECT', true);
|
90 |
+
define('DONOTCDN', true);
|
91 |
+
|
92 |
+
// Function to wrap outputted meta in spans for front end editing
|
93 |
+
add_filter( 'lp_get_value', 'lp_customizer_add_span_meta' , 10 , 4);
|
94 |
+
function lp_customizer_add_span_meta( $content , $post = null , $key=null, $id=null)
|
95 |
+
{
|
96 |
+
$id = apply_filters('lp_customizer_span_id',$id);
|
97 |
+
$exclude_list = "color|default|tile|repeat-x|repeat-y|left|right";
|
98 |
+
// need to exclude these matches only if exact match with no other content
|
99 |
+
// Need to exclude /images/img.jpg
|
100 |
+
// Need to find single strings with only a url to a .png,.jpg, .gif file and exclude
|
101 |
+
// Check for media upload type and ignore. Also ignore common setting words
|
102 |
+
//echo $key.':'.$id.":".$content;
|
103 |
+
//echo "<hr>";
|
104 |
+
//echo "<br>";
|
105 |
+
//<img alt="" src="/wp-content/uploads/landing-pages/templates/minimal-responsive/img/placeholder.jpg" /> matches the below preg match but we only want to match the string if its exactly /wp-content/uploads/landing-pages/templates/minimal-responsive/img/placeholder.jpg and nothing else
|
106 |
+
if (!@preg_match('/^(http|https|ftp)://([A-Z0-9][A-Z0-9_-]*(?:.[A-Z0-9][A-Z0-9_-]*)+):?(d+)?/?/i', $content)&&!strstr($content,'/wp-content/') && !@preg_match('/^[a-f0-9]{1,}$/is', $content) && $content != "color") {
|
107 |
+
$content = "<span id='$key-$id' class='live-preview-area-box'>" . $content . "</span>";
|
108 |
+
}
|
109 |
+
|
110 |
+
return $content;
|
111 |
+
}
|
112 |
+
|
113 |
+
add_filter( 'lp_main_headline', 'lp_customizer_add_span_title' ,99);
|
114 |
+
function lp_customizer_add_span_title( $content, $id ='title' )
|
115 |
+
{
|
116 |
+
|
117 |
+
$id = apply_filters('lp_customizer_span_id' , $id );
|
118 |
+
$content = "<span id='lp-main-headline' class='live-preview-area-box' >" . $content . "</span>";
|
119 |
+
|
120 |
+
return $content;
|
121 |
+
}
|
122 |
+
|
123 |
+
// Function to wrap outputted meta in spans for front end editing
|
124 |
+
add_filter( 'the_content', 'lp_customizer_add_span_content' );
|
125 |
+
function lp_customizer_add_span_content( $content , $id = 'content' )
|
126 |
+
{
|
127 |
+
|
128 |
+
$id = apply_filters('lp_customizer_span_id', $id );
|
129 |
+
$content = "<span id='the-content' class='live-preview-area-box' >" . $content . "</span>";
|
130 |
+
|
131 |
+
return $content;
|
132 |
+
}
|
133 |
+
|
134 |
+
// Function to wrap outputted meta in spans for front end editing
|
135 |
+
add_filter( 'lp_conversion_area', 'lp_customizer_add_span_conversion_area' );
|
136 |
+
function lp_customizer_add_span_conversion_area( $content , $id = 'lp-conversion-area' )
|
137 |
+
{
|
138 |
+
//echo "here";exit;
|
139 |
+
$id = apply_filters('lp_customizer_span_id', $id );
|
140 |
+
$content = "<span id='lp-conversion-area' class='live-preview-area-box' >" . $content . "</span>";
|
141 |
+
|
142 |
+
return $content;
|
143 |
+
} */
|
144 |
+
}
|
145 |
+
}
|
146 |
+
|
147 |
+
}
|
148 |
+
|
149 |
+
add_action('wp_head', 'lp_header_load');
|
150 |
+
function lp_header_load(){
|
151 |
+
global $post;
|
152 |
+
if (isset($post)&&$post->post_type=='landing-page')
|
153 |
+
{
|
154 |
+
wp_enqueue_style('inbound-wordpress-base-css', LANDINGPAGES_URLPATH . 'css/frontend/global-landing-page-style.css');
|
155 |
+
if (isset($_GET['lp-variation-id']) && !isset($_GET['template-customize']) && !isset($_GET['iframe_window']) && !isset($_GET['live-preview-area'])) { ?>
|
156 |
+
<script type="text/javascript">
|
157 |
+
if (typeof window.history.pushState == 'function') {
|
158 |
+
var current=window.location.href;var cleanparams=current.split("?");var clean_url=cleanparams[0];history.replaceState({},"landing page",clean_url);
|
159 |
+
//console.log("push state supported.");
|
160 |
+
}</script>
|
161 |
+
<?php }
|
162 |
+
}
|
163 |
+
}
|
164 |
+
|
165 |
+
function lp_discover_important_wrappers($content)
|
166 |
+
{
|
167 |
+
$wrapper_class = "";
|
168 |
+
if (strstr($content,'gform_wrapper'))
|
169 |
+
{
|
170 |
+
$wrapper_class = 'gform_wrapper';
|
171 |
+
}
|
172 |
+
return $wrapper_class;
|
173 |
+
}
|
174 |
+
|
175 |
+
function lp_rebuild_attributes($content=null, $wrapper_class=null, $standardize_form = 0)
|
176 |
+
{
|
177 |
+
if (strstr($content,'<form'))
|
178 |
+
{
|
179 |
+
if ($standardize_form)
|
180 |
+
{
|
181 |
+
$tag_whitelist = trim(get_option( 'lp-main-landing-page-auto-format-forms-retain-elements' , '<button><script><textarea><style><input><form><select><label><a><p><b><u><strong><i><img><strong><span><font><h1><h2><h3><center><blockquote><embed><object><small>'));
|
182 |
+
$content = strip_tags($content, $tag_whitelist);
|
183 |
+
|
184 |
+
if (!strstr($content,'<label')&&strstr($content,'<p'))
|
185 |
+
{
|
186 |
+
$content = str_replace('<p>','<label >',$content);
|
187 |
+
$content = str_replace('</p>','</label>',$content);
|
188 |
+
//echo $content; exit;
|
189 |
+
}
|
190 |
+
|
191 |
+
if (!strstr($content,'<label')&&strstr($content,'<span'))
|
192 |
+
{
|
193 |
+
$content = str_replace('<span','<label',$content);
|
194 |
+
$content = str_replace('</span>','</label>',$content);
|
195 |
+
}
|
196 |
+
|
197 |
+
// Match Form tags
|
198 |
+
$form = preg_match_all('/\<form(.*?)\>/s',$content, $matches);
|
199 |
+
if (!empty($matches[0]))
|
200 |
+
{
|
201 |
+
foreach ($matches[0] as $key=> $value)
|
202 |
+
{
|
203 |
+
$new_value = $value;
|
204 |
+
$form_name = preg_match('/ name *= *["\']?([^"\']*)/i',$value, $name); // 1 for true. 0 for false
|
205 |
+
$form_id = stristr($value, ' id=');
|
206 |
+
$form_class = stristr($value, ' class=');
|
207 |
+
|
208 |
+
($form_name) ? $name = $name[1] : $name = $key;
|
209 |
+
|
210 |
+
if ($form_class)
|
211 |
+
{
|
212 |
+
$new_value = preg_replace('/ class=(["\'])(.*?)(["\'])/',' class="lp-form wpl-track-me $2"', $new_value);
|
213 |
+
}
|
214 |
+
else
|
215 |
+
{
|
216 |
+
$new_value = str_replace('<form ','<form class="lp-form wpl-track-me" ', $new_value);
|
217 |
+
}
|
218 |
+
|
219 |
+
$content = str_replace($value,$new_value,$content);
|
220 |
+
}
|
221 |
+
}
|
222 |
+
|
223 |
+
// Standardize all Labels
|
224 |
+
$inputs = preg_match_all('/\<label(.*?)\>/s',$content, $matches);
|
225 |
+
if (!empty($matches[0]))
|
226 |
+
{
|
227 |
+
foreach ($matches[0] as $value)
|
228 |
+
{
|
229 |
+
$new_value = $value;
|
230 |
+
// regex to match text in label /(?<=[>])[^<>]+(?=[<])/g
|
231 |
+
(preg_match('/ for *= *["\']?([^"\']*)/i',$value, $for)) ? $for = $for[1] : $for = 'input';
|
232 |
+
$for = str_replace(' ','-',$for);
|
233 |
+
|
234 |
+
$new_value = preg_replace('/ id=(["\'])(.*?)(["\'])/','', $new_value);
|
235 |
+
|
236 |
+
$new_value = preg_replace('/ class=(["\'])(.*?)(["\'])/','', $new_value);
|
237 |
+
|
238 |
+
$new_value = str_replace('<label ','<label id="lp-label-'.$for.'" ', $new_value);
|
239 |
+
$new_value = str_replace('<label ','<label class="lp-input-label" ', $new_value);
|
240 |
+
//$new_value = str_replace('<label>','<label class="lp-select-heading"> ', $new_value); // fix select headings
|
241 |
+
|
242 |
+
|
243 |
+
//$new_value = "<div id='lp_field_'
|
244 |
+
$content = str_replace($value, $new_value, $content);
|
245 |
+
}
|
246 |
+
}
|
247 |
+
|
248 |
+
// Standardize all input fields
|
249 |
+
$inputs = preg_match_all('/\<input(.*?)\>/s',$content, $matches);
|
250 |
+
if (!empty($matches[0]))
|
251 |
+
{
|
252 |
+
foreach ($matches[0] as $value)
|
253 |
+
{
|
254 |
+
$new_value = $value;
|
255 |
+
//get input name
|
256 |
+
(preg_match( '/ name *= *["\']?([^"\']*)/i', $new_value, $name )) ? $name = $name[1] : $name = "button";
|
257 |
+
// get input type
|
258 |
+
(preg_match('/ type *= *["\']?([^"\']*)/i',$new_value, $type)) ? $type = $type[1] : $type = "text";
|
259 |
+
|
260 |
+
// if class exists do this
|
261 |
+
if (preg_match('/ class *= *["\']?([^"\']*)/i', $new_value, $class)) {
|
262 |
+
$new_value = preg_replace('/ class=(["\'])(.*?)(["\'])/',' class="lp-input-'.$type.'"', $new_value);
|
263 |
+
}
|
264 |
+
else
|
265 |
+
{
|
266 |
+
$new_value = str_replace('<input ','<input class="lp-input-'.$type.'" ', $new_value);
|
267 |
+
}
|
268 |
+
|
269 |
+
// if id exists do this
|
270 |
+
if (preg_match('/ id *= *["\']?([^"\']*)/i', $new_value, $class))
|
271 |
+
{
|
272 |
+
$new_value = preg_replace('/ id=(["\'])(.*?)(["\'])/',' id="lp-'.$type.'-'.$name.'"', $new_value);
|
273 |
+
}
|
274 |
+
else
|
275 |
+
{
|
276 |
+
$new_value = str_replace('<input ','<input id="lp-'.$type.'-'.$name.'" ', $new_value);
|
277 |
+
}
|
278 |
+
|
279 |
+
$content = str_replace($value,$new_value, $content);
|
280 |
+
}
|
281 |
+
}
|
282 |
+
|
283 |
+
// Standardize All Select Fields
|
284 |
+
$selects = preg_match_all('/\<select(.*?)\>/s',$content, $matches);
|
285 |
+
if (!empty($matches[0]))
|
286 |
+
{
|
287 |
+
foreach ($matches[0] as $value)
|
288 |
+
{
|
289 |
+
preg_match('/ name *= *["\']?([^"\']*)/i',$value, $name);
|
290 |
+
$name = $name[1];
|
291 |
+
|
292 |
+
$new_value = preg_replace('/ id=(["\'])(.*?)(["\'])/',' id="lp-select-'.$name.'"', $value);
|
293 |
+
$new_value = preg_replace('/ class=(["\'])(.*?)(["\'])/',' class="lp-input-select"', $new_value);
|
294 |
+
$content = str_replace($value,$new_value, $content);
|
295 |
+
}
|
296 |
+
}
|
297 |
+
|
298 |
+
// Match Form text to common inputs
|
299 |
+
$fields = preg_match_all("/\<label(.*?)\<input(.*?)\>/si",$content, $matches);
|
300 |
+
if (!empty($matches[0]))
|
301 |
+
{
|
302 |
+
foreach ($matches[0] as $value)
|
303 |
+
{
|
304 |
+
//echo $value;exit;
|
305 |
+
//echo "<hr>";
|
306 |
+
(preg_match( '/Email|e-mail|email/i', $value, $email_input)) ? $email_input = "lp-email-value" : $email_input = "";
|
307 |
+
|
308 |
+
// match name or first name. (minus: name=, last name, last_name,)
|
309 |
+
(preg_match( '/(?<!((last |last_)))name(?!\=)/im', $value, $first_name_input)) ? $first_name_input = "lp-first-name-value" : $first_name_input = "";
|
310 |
+
|
311 |
+
// Match Last Name
|
312 |
+
(preg_match( '/(?<!((first)))(last name|last_name|last)(?!\=)/im', $value, $last_name_input)) ? $last_name_input = "lp-last-name-value" : $last_name_input = "";
|
313 |
+
|
314 |
+
$new_value = "<div class='lp_form_field $email_input $first_name_input $last_name_input'>".$value."</div>";
|
315 |
+
|
316 |
+
$content = str_replace($value,$new_value, $content);
|
317 |
+
}
|
318 |
+
|
319 |
+
}
|
320 |
+
|
321 |
+
// Fix All Span Tags
|
322 |
+
$inputs = preg_match_all('/\<span(.*?)\>/s',$content, $matches);
|
323 |
+
if (!empty($matches[0]))
|
324 |
+
{
|
325 |
+
foreach ($matches[0] as $value)
|
326 |
+
{
|
327 |
+
$new_value = preg_replace('/\<span(.*?)\>/s','<span class="lp-span">', $value);
|
328 |
+
$content = str_replace($value,$new_value, $content);
|
329 |
+
}
|
330 |
+
}
|
331 |
+
|
332 |
+
// Fix All <p> Tags
|
333 |
+
$inputs = preg_match_all('/\<p(.*?)\>/s',$content, $matches);
|
334 |
+
if (!empty($matches[0]))
|
335 |
+
{
|
336 |
+
foreach ($matches[0] as $value)
|
337 |
+
{
|
338 |
+
$new_value = preg_replace('/\<p(.*?)\>/s','<p class="lp-paragraph">', $value);
|
339 |
+
$content = str_replace($value,$new_value, $content);
|
340 |
+
}
|
341 |
+
}
|
342 |
+
|
343 |
+
//handle gform error messages
|
344 |
+
if (strstr($content,'There was a problem with your submission. Errors have been highlighted below.'))
|
345 |
+
{
|
346 |
+
$content = preg_replace('/(There was a problem with your submission. Errors have been highlighted below.)/','<div class="validation_error">$1</div>', $content);
|
347 |
+
$content = preg_replace('/(Please enter a valid email address.)/','<div class="gfield_description validation_message">$1</div>', $content);
|
348 |
+
$content = preg_replace('/(This field is required.)/','<div class="gfield_description validation_message">$1</div>', $content);
|
349 |
+
}
|
350 |
+
|
351 |
+
$content = str_replace('name="submit"','name="s"',$content);
|
352 |
+
$content = "<div id='lp_container_form' class='$wrapper_class'>{$content}</div>";
|
353 |
+
}
|
354 |
+
else
|
355 |
+
{
|
356 |
+
|
357 |
+
$form = preg_match_all('/\<form(.*?)\>/s',$content, $matches);
|
358 |
+
if (!empty($matches[0]))
|
359 |
+
{
|
360 |
+
foreach ($matches[0] as $key=>$value)
|
361 |
+
{
|
362 |
+
//echo "here";exit;
|
363 |
+
$new_value = $value;
|
364 |
+
$form_name = preg_match('/ name *= *["\']?([^"\']*)/i',$value, $name); // 1 for true. 0 for false
|
365 |
+
$form_id = stristr($value, ' id=');
|
366 |
+
$form_class = stristr($value, ' class=');
|
367 |
+
|
368 |
+
($form_name) ? $name = $name[1] : $name = $key;
|
369 |
+
/* We are breaking the ids here need to only fix/add classes
|
370 |
+
if ($form_id)
|
371 |
+
{
|
372 |
+
$new_value = preg_replace('/ id=(["\'])(.*?)(["\'])/',' id="lp-form-'.$name.' $2"', $new_value);
|
373 |
+
}
|
374 |
+
else
|
375 |
+
{
|
376 |
+
$new_value = str_replace('<form ','<form id="lp-form-'.$name.'" ', $new_value);
|
377 |
+
}
|
378 |
+
*/
|
379 |
+
if ($form_class)
|
380 |
+
{
|
381 |
+
$new_value = preg_replace('/ class=(["\'])(.*?)(["\'])/',' class="lp-form wpl-track-me $2"', $new_value);
|
382 |
+
}
|
383 |
+
else
|
384 |
+
{
|
385 |
+
$new_value = str_replace('<form ','<form class="lp-form wpl-track-me" ', $new_value);
|
386 |
+
}
|
387 |
+
|
388 |
+
$content = str_replace($value,$new_value,$content);
|
389 |
+
|
390 |
+
}
|
391 |
+
}
|
392 |
+
|
393 |
+
$check_wrap = preg_match_all('/lp_container_form/s',$content, $check);
|
394 |
+
if (empty($check[0]))
|
395 |
+
{
|
396 |
+
$content = str_replace('name="submit"','name="s"',$content);
|
397 |
+
$content = "<div id='lp_container_form' >{$content}</div>";
|
398 |
+
}
|
399 |
+
}
|
400 |
+
|
401 |
+
|
402 |
+
}
|
403 |
+
else
|
404 |
+
{
|
405 |
+
|
406 |
+
// Standardize all links
|
407 |
+
$inputs = preg_match_all('/\<a(.*?)\>/s',$content, $matches);
|
408 |
+
if (!empty($matches[0]))
|
409 |
+
{
|
410 |
+
foreach ($matches[0] as $key => $value)
|
411 |
+
{
|
412 |
+
if ($key==0)
|
413 |
+
{
|
414 |
+
$new_value = $value;
|
415 |
+
$new_value = preg_replace('/ class=(["\'])(.*?)(["\'])/','class="$2 lp-track-link"', $new_value);
|
416 |
+
|
417 |
+
|
418 |
+
|
419 |
+
$content = str_replace($value, $new_value, $content);
|
420 |
+
break;
|
421 |
+
}
|
422 |
+
}
|
423 |
+
}
|
424 |
+
|
425 |
+
$check_wrap = preg_match_all('/lp_container_noform/s',$content, $check);
|
426 |
+
if (empty($check[0]))
|
427 |
+
{
|
428 |
+
$content = "<div id='lp_container_noform' class='$wrapper_class link-click-tracking'>{$content}</div>";
|
429 |
+
}
|
430 |
+
}
|
431 |
+
|
432 |
+
return $content;
|
433 |
+
}
|
434 |
+
|
435 |
+
|
436 |
+
|
437 |
+
function lp_conversion_area($post = null, $content=null,$return=false, $doshortcode = true, $rebuild_attributes = true)
|
438 |
+
{
|
439 |
+
if (!isset($post))
|
440 |
+
global $post;
|
441 |
+
|
442 |
+
$wrapper_class = "";
|
443 |
+
|
444 |
+
$content = get_post_meta($post->ID, 'lp-conversion-area', true);
|
445 |
+
|
446 |
+
$content = apply_filters('lp_conversion_area_pre_standardize',$content, $post, $doshortcode);
|
447 |
+
|
448 |
+
$standardize_form = get_option( 'lp-main-landing-page-auto-format-forms' , 0); // conditional to check for options
|
449 |
+
|
450 |
+
$wrapper_class = lp_discover_important_wrappers($content);
|
451 |
+
|
452 |
+
|
453 |
+
|
454 |
+
if ($doshortcode)
|
455 |
+
{
|
456 |
+
$content = do_shortcode($content);
|
457 |
+
}
|
458 |
+
|
459 |
+
if ($rebuild_attributes)
|
460 |
+
{
|
461 |
+
$content = lp_rebuild_attributes($content, $wrapper_class, $standardize_form );
|
462 |
+
}
|
463 |
+
|
464 |
+
|
465 |
+
$content = apply_filters('lp_conversion_area_post',$content, $post);
|
466 |
+
|
467 |
+
if(!$return)
|
468 |
+
{
|
469 |
+
|
470 |
+
echo do_shortcode($content);
|
471 |
+
}
|
472 |
+
else
|
473 |
+
{
|
474 |
+
return $content;
|
475 |
+
}
|
476 |
+
|
477 |
+
}
|
478 |
+
|
479 |
+
add_shortcode( 'lp_conversion_area', 'lp_conversion_area_shortcode');
|
480 |
+
function lp_conversion_area_shortcode( $atts, $content = null ) {
|
481 |
+
extract(shortcode_atts(array(
|
482 |
+
'id' => '',
|
483 |
+
'align' => ''
|
484 |
+
//'style' => ''
|
485 |
+
), $atts));
|
486 |
+
|
487 |
+
$conversion_area = "";
|
488 |
+
$conversion_area .= lp_conversion_area($post = null, $content=null,$return=true, $doshortcode = true, $rebuild_attributes = true);
|
489 |
+
|
490 |
+
return $conversion_area;
|
491 |
+
}
|
492 |
+
|
493 |
+
function lp_main_headline($post = null, $headline=null,$return=false)
|
494 |
+
{
|
495 |
+
if (!isset($post))
|
496 |
+
global $post;
|
497 |
+
|
498 |
+
if (!$headline)
|
499 |
+
{
|
500 |
+
$main_headline = lp_get_value($post, 'lp', 'main-headline');
|
501 |
+
$main_headline = apply_filters('lp_main_headline',$main_headline, $post);
|
502 |
+
|
503 |
+
if(!$return)
|
504 |
+
{
|
505 |
+
echo $main_headline;
|
506 |
+
|
507 |
+
}
|
508 |
+
else
|
509 |
+
{
|
510 |
+
return $main_headline;
|
511 |
+
}
|
512 |
+
}
|
513 |
+
else
|
514 |
+
{
|
515 |
+
$main_headline = apply_filters('lp_main_headline',$main_headline, $post);
|
516 |
+
if(!$return)
|
517 |
+
{
|
518 |
+
echo $headline;
|
519 |
+
}
|
520 |
+
else
|
521 |
+
{
|
522 |
+
return $headline;
|
523 |
+
}
|
524 |
+
}
|
525 |
+
}
|
526 |
+
|
527 |
+
function lp_content_area($post = null, $content=null,$return=false )
|
528 |
+
{
|
529 |
+
if (!isset($post))
|
530 |
+
global $post;
|
531 |
+
|
532 |
+
if (!$content)
|
533 |
+
{
|
534 |
+
global $post;
|
535 |
+
|
536 |
+
if (!isset($post)&&isset($_REQUEST['post']))
|
537 |
+
{
|
538 |
+
|
539 |
+
$post = get_post($_REQUEST['post']);
|
540 |
+
}
|
541 |
+
|
542 |
+
else if (!isset($post)&&isset($_REQUEST['lp_id']))
|
543 |
+
{
|
544 |
+
$post = get_post($_REQUEST['lp_id']);
|
545 |
+
}
|
546 |
+
|
547 |
+
//var_dump($post);
|
548 |
+
$content_area = $post->post_content;
|
549 |
+
|
550 |
+
if (!is_admin())
|
551 |
+
$content_area = apply_filters('the_content', $content_area);
|
552 |
+
|
553 |
+
$content_area = apply_filters('lp_content_area',$content_area, $post);
|
554 |
+
|
555 |
+
if(!$return)
|
556 |
+
{
|
557 |
+
echo $content_area;
|
558 |
+
|
559 |
+
}
|
560 |
+
else
|
561 |
+
{
|
562 |
+
return $content_area;
|
563 |
+
}
|
564 |
+
}
|
565 |
+
else
|
566 |
+
{
|
567 |
+
if(!$return)
|
568 |
+
{
|
569 |
+
echo $content_area;
|
570 |
+
}
|
571 |
+
else
|
572 |
+
{
|
573 |
+
return $content_area;
|
574 |
+
}
|
575 |
+
}
|
576 |
+
}
|
577 |
+
|
578 |
+
function lp_body_class()
|
579 |
+
{
|
580 |
+
global $post;
|
581 |
+
global $lp_data;
|
582 |
+
// Need to add in lp_right or lp_left classes based on the meta to float forms
|
583 |
+
// like $conversion_layout = lp_get_value($post, $key, 'conversion-area-placement');
|
584 |
+
if (get_post_meta($post->ID, 'lp-selected-template', true))
|
585 |
+
{
|
586 |
+
$lp_body_class = "template-" . get_post_meta($post->ID, 'lp-selected-template', true);
|
587 |
+
$postid = "page-id-" . get_the_ID();
|
588 |
+
echo 'class="';
|
589 |
+
echo $lp_body_class . " " . $postid . " wordpress-landing-page";
|
590 |
+
echo '"';
|
591 |
+
}
|
592 |
+
return $lp_body_class;
|
593 |
+
}
|
594 |
+
|
595 |
+
function lp_get_parent_directory($path)
|
596 |
+
{
|
597 |
+
if(stristr($_SERVER['SERVER_SOFTWARE'], 'Win32')){
|
598 |
+
$array = explode('\\',$path);
|
599 |
+
$count = count($array);
|
600 |
+
$key = $count -1;
|
601 |
+
$parent = $array[$key];
|
602 |
+
return $parent;
|
603 |
+
} else if(stristr($_SERVER['SERVER_SOFTWARE'], 'IIS')){
|
604 |
+
$array = explode('\\',$path);
|
605 |
+
$count = count($array);
|
606 |
+
$key = $count -1;
|
607 |
+
$parent = $array[$key];
|
608 |
+
return $parent;
|
609 |
+
}else {
|
610 |
+
$array = explode('/',$path);
|
611 |
+
$count = count($array);
|
612 |
+
$key = $count -1;
|
613 |
+
$parent = $array[$key];
|
614 |
+
return $parent;
|
615 |
+
}
|
616 |
+
}
|
617 |
+
|
618 |
+
function lp_get_value($post, $key, $id)
|
619 |
+
{
|
620 |
+
//echo 1; exit;
|
621 |
+
if (isset($post))
|
622 |
+
{
|
623 |
+
$return = get_post_meta($post->ID, $key.'-'.$id , true);
|
624 |
+
$return = apply_filters('lp_get_value',$return,$post,$key,$id);
|
625 |
+
|
626 |
+
return $return;
|
627 |
+
}
|
628 |
+
|
629 |
+
|
630 |
+
}
|
631 |
+
|
632 |
+
|
633 |
+
function lp_check_active()
|
634 |
+
{
|
635 |
+
return 1;
|
636 |
+
}
|
637 |
+
|
638 |
+
if (!function_exists('lp_remote_connect')) {
|
639 |
+
function lp_remote_connect($url)
|
640 |
+
{
|
641 |
+
$method1 = ini_get('allow_url_fopen') ? "Enabled" : "Disabled";
|
642 |
+
if ($method1 == 'Disabled')
|
643 |
+
{
|
644 |
+
//do curl
|
645 |
+
$ch = curl_init();
|
646 |
+
curl_setopt($ch, CURLOPT_URL, "$url");
|
647 |
+
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
|
648 |
+
curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, 1);
|
649 |
+
curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookie.txt');
|
650 |
+
curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookie.txt');
|
651 |
+
curl_setopt ($ch, CURLOPT_TIMEOUT, 60);
|
652 |
+
$string = curl_exec($ch);
|
653 |
+
}
|
654 |
+
else
|
655 |
+
{
|
656 |
+
$string = file_get_contents($url);
|
657 |
+
}
|
658 |
+
|
659 |
+
return $string;
|
660 |
+
}
|
661 |
+
}
|
662 |
+
|
663 |
+
//***********FUNCTION THAT WILL FIND POST ID FROM URL FOR CUSTOM POST TYPES******************/
|
664 |
+
function lp_url_to_postid($url)
|
665 |
+
{
|
666 |
+
global $wpdb;
|
667 |
+
|
668 |
+
if (strstr($url,'?landing-page='))
|
669 |
+
{
|
670 |
+
$url = explode('?landing-page=',$url);
|
671 |
+
$url = $url[1];
|
672 |
+
$url = explode('&',$url);
|
673 |
+
$post_id = $url[0];
|
674 |
+
|
675 |
+
return $post_id;
|
676 |
+
}
|
677 |
+
|
678 |
+
//first check if URL is homepage
|
679 |
+
$wordpress_url = get_bloginfo('url');
|
680 |
+
if (substr($wordpress_url, -1, -1)!='/')
|
681 |
+
{
|
682 |
+
$wordpress_url = $wordpress_url."/";
|
683 |
+
}
|
684 |
+
|
685 |
+
if (str_replace('/','',$url)==str_replace('/','',$wordpress_url))
|
686 |
+
{
|
687 |
+
return get_option('page_on_front');
|
688 |
+
}
|
689 |
+
|
690 |
+
$parsed = parse_url($url);
|
691 |
+
$url = $parsed['path'];
|
692 |
+
|
693 |
+
$parts = explode('/',$url);
|
694 |
+
|
695 |
+
$count = count($parts);
|
696 |
+
$count = $count -1;
|
697 |
+
|
698 |
+
if (empty($parts[$count]))
|
699 |
+
{
|
700 |
+
$i = $count-1;
|
701 |
+
$slug = $parts[$i];
|
702 |
+
}
|
703 |
+
else
|
704 |
+
{
|
705 |
+
$slug = $parts[$count];
|
706 |
+
}
|
707 |
+
|
708 |
+
$my_id = $wpdb->get_var("SELECT ID FROM $wpdb->posts WHERE post_name = '$slug' AND post_type='landing-page'");
|
709 |
+
|
710 |
+
if ($my_id)
|
711 |
+
{
|
712 |
+
return $my_id;
|
713 |
+
}
|
714 |
+
else
|
715 |
+
{
|
716 |
+
return 0;
|
717 |
+
}
|
718 |
+
}
|
719 |
+
|
720 |
+
|
721 |
+
/************** AB TESTING GLOBAL FUNCTIONS **********************/
|
722 |
+
|
723 |
+
|
724 |
+
function lp_ab_key_to_letter($key) {
|
725 |
+
$alphabet = array( 'A', 'B', 'C', 'D', 'E',
|
726 |
+
'F', 'G', 'H', 'I', 'J',
|
727 |
+
'K', 'L', 'M', 'N', 'O',
|
728 |
+
'P', 'Q', 'R', 'S', 'T',
|
729 |
+
'U', 'V', 'W', 'X', 'Y',
|
730 |
+
'Z'
|
731 |
+
);
|
732 |
+
|
733 |
+
if (isset($alphabet[$key]))
|
734 |
+
return $alphabet[$key];
|
735 |
+
}
|
736 |
+
|
737 |
+
|
738 |
+
function lp_ab_testing_get_current_variation_id()
|
739 |
+
{
|
740 |
+
if (!isset($_GET['lp-variation-id'])&&isset($_SESSION['lp_ab_test_open_variation'])&&is_admin())
|
741 |
+
{
|
742 |
+
//$current_variation_id = $_SESSION['lp_ab_test_open_variation'];
|
743 |
+
}
|
744 |
+
|
745 |
+
if (!isset($_SESSION['lp_ab_test_open_variation'])&&!isset($_GET['lp-variation-id']))
|
746 |
+
{
|
747 |
+
$current_variation_id = 0;
|
748 |
+
}
|
749 |
+
//echo $_GET['lp-variation-id'];
|
750 |
+
if (isset($_GET['lp-variation-id']))
|
751 |
+
{
|
752 |
+
$_SESSION['lp_ab_test_open_variation'] = $_GET['lp-variation-id'];
|
753 |
+
$current_variation_id = $_GET['lp-variation-id'];
|
754 |
+
//echo "setting session $current_variation_id";
|
755 |
+
}
|
756 |
+
|
757 |
+
if (isset($_GET['message'])&&$_GET['message']==1&&isset( $_SESSION['lp_ab_test_open_variation'] ))
|
758 |
+
{
|
759 |
+
$current_variation_id = $_SESSION['lp_ab_test_open_variation'];
|
760 |
+
|
761 |
+
//echo "here:".$_SESSION['lp_ab_test_open_variation'];
|
762 |
+
}
|
763 |
+
|
764 |
+
if (isset($_GET['ab-action'])&&$_GET['ab-action']=='delete-variation')
|
765 |
+
{
|
766 |
+
$current_variation_id = 0;
|
767 |
+
$_SESSION['lp_ab_test_open_variation'] = 0;
|
768 |
+
}
|
769 |
+
|
770 |
+
if (!isset($current_variation_id))
|
771 |
+
$current_variation_id = 0 ;
|
772 |
+
|
773 |
+
return $current_variation_id;
|
774 |
+
}
|
775 |
+
|
776 |
+
function lp_global_config()
|
777 |
+
{
|
778 |
+
do_action('lp_global_config');
|
779 |
+
}
|
780 |
+
|
781 |
+
function lp_init()
|
782 |
+
{
|
783 |
+
do_action('lp_init');
|
784 |
+
}
|
785 |
+
|
786 |
+
function lp_head()
|
787 |
+
{
|
788 |
+
do_action('lp_head');
|
789 |
+
}
|
790 |
+
|
791 |
+
function lp_footer()
|
792 |
+
{
|
793 |
+
do_action('lp_footer');
|
794 |
+
}
|
795 |
+
|
796 |
+
?>
|
images/image.php
CHANGED
@@ -14,7 +14,7 @@ else {
|
|
14 |
|
15 |
// Convert Hex to RGB Value
|
16 |
function HexToRGB($hex) {
|
17 |
-
$hex =
|
18 |
$color = array();
|
19 |
|
20 |
if(strlen($hex) == 3) {
|
14 |
|
15 |
// Convert Hex to RGB Value
|
16 |
function HexToRGB($hex) {
|
17 |
+
$hex = preg_replace("/#/", "", $hex);
|
18 |
$color = array();
|
19 |
|
20 |
if(strlen($hex) == 3) {
|
js/admin/admin.ajax.edit.js
DELETED
@@ -1,94 +0,0 @@
|
|
1 |
-
// Prep Data and Save
|
2 |
-
var nonce_val = lp_post_edit_ui.wp_landing_page_meta_nonce; // NEED CORRECT NONCE
|
3 |
-
jQuery(document).on('mousedown', '.new-save-lp', function () {
|
4 |
-
var type_input = jQuery(this).parent().find("input").attr("type");
|
5 |
-
var type_select = jQuery(this).parent().find("select");
|
6 |
-
// var the_conversion_area_editor = jQuery(this).parent().parent().find('#lp-conversion-area_ifr').length;
|
7 |
-
jQuery(this).parent().find(".lp-success-message").hide();
|
8 |
-
// var the_content_editor = jQuery(this).parent().parent().find('#wp_content_ifr').length;
|
9 |
-
var type_wysiwyg = jQuery(this).parent().parent().find('iframe').length;
|
10 |
-
|
11 |
-
var type_textarea = jQuery(this).parent().find("textarea");
|
12 |
-
if (typeof (type_input) != "undefined" && type_input !== null) {
|
13 |
-
var type_of_field = type_input;
|
14 |
-
} else if (typeof (type_wysiwyg) != "undefined" && type_wysiwyg !== null && type_wysiwyg === 1) {
|
15 |
-
var type_of_field = 'wysiwyg';
|
16 |
-
} else if (typeof (type_textarea) != "undefined" && type_textarea !== null) {
|
17 |
-
var type_of_field = 'textarea';
|
18 |
-
} else {
|
19 |
-
(typeof (type_select) != "undefined" && type_select)
|
20 |
-
var type_of_field = 'select';
|
21 |
-
}
|
22 |
-
// console.log(type_of_field); // type of input
|
23 |
-
var new_value_meta_input = jQuery(this).parent().find("input").val();
|
24 |
-
//console.log(new_value_meta_input);
|
25 |
-
var new_value_meta_select = jQuery(this).parent().find("select").val();
|
26 |
-
var new_value_meta_textarea = jQuery(this).parent().find("textarea").val();
|
27 |
-
// console.log(new_value_meta_select);
|
28 |
-
var new_value_meta_radio = jQuery(this).parent().find("input:checked").val();
|
29 |
-
var new_value_meta_checkbox = jQuery(this).parent().find('input[type="checkbox"]:checked').val();
|
30 |
-
var new_wysiwyg_meta = jQuery(this).parent().parent().find("iframe").contents().find("body").html();
|
31 |
-
// prep data
|
32 |
-
if (typeof (new_value_meta_input) != "undefined" && new_value_meta_input !== null && type_of_field == "text") {
|
33 |
-
var meta_to_save = new_value_meta_input;
|
34 |
-
} else if (typeof (new_value_meta_textarea) != "undefined" && new_value_meta_textarea !== null && type_of_field == "textarea") {
|
35 |
-
var meta_to_save = new_value_meta_textarea;
|
36 |
-
} else if (typeof (new_value_meta_select) != "undefined" && new_value_meta_select !== null) {
|
37 |
-
var meta_to_save = new_value_meta_select;
|
38 |
-
} else if (typeof (new_value_meta_radio) != "undefined" && new_value_meta_radio !== null && type_of_field == "radio") {
|
39 |
-
var meta_to_save = new_value_meta_radio;
|
40 |
-
} else if (typeof (new_value_meta_checkbox) != "undefined" && new_value_meta_checkbox !== null && type_of_field == "checkbox") {
|
41 |
-
var meta_to_save = new_value_meta_checkbox;
|
42 |
-
} else if (typeof (new_wysiwyg_meta) != "undefined" && new_wysiwyg_meta !== null && type_of_field == "wysiwyg") {
|
43 |
-
var meta_to_save = new_wysiwyg_meta;
|
44 |
-
//alert('here');
|
45 |
-
} else {
|
46 |
-
var meta_to_save = "";
|
47 |
-
}
|
48 |
-
|
49 |
-
// if data exists save it
|
50 |
-
// console.log(meta_to_save);
|
51 |
-
|
52 |
-
var this_meta_id = jQuery(this).attr("id"); // From save button
|
53 |
-
console.log(this_meta_id);
|
54 |
-
var post_id = jQuery("#post_ID").text();
|
55 |
-
console.log(post_id);
|
56 |
-
console.log(meta_to_save);
|
57 |
-
|
58 |
-
// Run Ajax
|
59 |
-
jQuery.ajax({
|
60 |
-
type: 'POST',
|
61 |
-
url: lp_post_edit_ui.ajaxurl,
|
62 |
-
context: this,
|
63 |
-
data: {
|
64 |
-
action: 'wp_landing_page_meta_save',
|
65 |
-
meta_id: this_meta_id,
|
66 |
-
new_meta_val: meta_to_save,
|
67 |
-
page_id: post_id,
|
68 |
-
nonce: nonce_val
|
69 |
-
},
|
70 |
-
|
71 |
-
success: function (data) {
|
72 |
-
var self = this;
|
73 |
-
|
74 |
-
//alert(data);
|
75 |
-
// jQuery('.lp-form').unbind('submit').submit();
|
76 |
-
//var worked = '<span class="success-message-map">Success! ' + this_meta_id + ' set to ' + meta_to_save + '</span>';
|
77 |
-
var worked = '<span class="lp-success-message">Updated!</span>';
|
78 |
-
var s_message = jQuery(self).parent();
|
79 |
-
jQuery(worked).appendTo(s_message);
|
80 |
-
jQuery(self).parent().find("lp-success-message").remove();
|
81 |
-
jQuery(self).hide();
|
82 |
-
jQuery('.reload').click();
|
83 |
-
//alert("Changes Saved!");
|
84 |
-
},
|
85 |
-
|
86 |
-
error: function (MLHttpRequest, textStatus, errorThrown) {
|
87 |
-
alert("Ajax not enabled");
|
88 |
-
}
|
89 |
-
});
|
90 |
-
|
91 |
-
//reload_preview();
|
92 |
-
return false;
|
93 |
-
|
94 |
-
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
js/admin/admin.post-edit.js
CHANGED
@@ -9,6 +9,7 @@ jQuery(document).ready(function ($) {
|
|
9 |
jQuery('#templates-container').isotope({ filter: selector });
|
10 |
return false;
|
11 |
});
|
|
|
12 |
/* Ajax loading tabs
|
13 |
jQuery.koolSwap({
|
14 |
swapBox : '#poststuff',
|
@@ -16,7 +17,31 @@ jQuery(document).ready(function ($) {
|
|
16 |
inDuration : 600,
|
17 |
});
|
18 |
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
/* Tour Start JS */
|
21 |
var tourbutton = '<a class="" id="lp-tour" style="font-size:13px;">Need help? Take the tour</a>';
|
22 |
jQuery(tourbutton).appendTo("h2:eq(0)");
|
@@ -91,6 +116,22 @@ jQuery(document).ready(function ($) {
|
|
91 |
href = href.replace(/&width=[0-9]+/g, '');
|
92 |
href = href.replace(/&height=[0-9]+/g, '');
|
93 |
$(this).attr( 'href', href + '&width=' + ( W - 80 ) + '&height=' + ( H - 85 ) );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
});
|
95 |
|
96 |
};
|
@@ -201,9 +242,7 @@ jQuery(document).ready(function ($) {
|
|
201 |
if (confirm('Are you sure you want to overwrite what is currently in the main edit box above?')) {
|
202 |
var default_content = jQuery(".default-content").text();
|
203 |
jQuery("#content_ifr").contents().find("body").html(default_content);
|
204 |
-
|
205 |
-
// Do nothing!
|
206 |
-
}
|
207 |
});
|
208 |
|
209 |
// Colorpicker fix
|
@@ -253,9 +292,14 @@ jQuery(document).ready(function ($) {
|
|
253 |
// Add current title of template to selector
|
254 |
var selected_template = jQuery('#lp_select_template').val();
|
255 |
var selected_template_id = "#" + selected_template;
|
|
|
|
|
|
|
|
|
|
|
256 |
var currentlabel = jQuery(".currently_selected");
|
257 |
jQuery(selected_template_id).parent().addClass("default_template_highlight").prepend(currentlabel);
|
258 |
-
jQuery("#lp_metabox_select_template h3").first().
|
259 |
|
260 |
jQuery('#lp-change-template-button').live('click', function () {
|
261 |
jQuery(".wrap").fadeOut(500,function(){
|
@@ -341,7 +385,6 @@ jQuery(document).ready(function ($) {
|
|
341 |
}
|
342 |
|
343 |
// Ajax Saving for metadata
|
344 |
-
/*
|
345 |
jQuery('#lp_metabox_select_template input, #lp_metabox_select_template select, #lp_metabox_select_template textarea').on("change keyup", function (e) {
|
346 |
// iframe content change needs its own change function $("#iFrame").contents().find("#someDiv")
|
347 |
// media uploader needs its own change function
|
@@ -353,6 +396,7 @@ jQuery(document).ready(function ($) {
|
|
353 |
//console.log(parent_el);
|
354 |
jQuery(ajax_save_button).appendTo(parent_el);
|
355 |
});
|
|
|
356 |
jQuery('#lp-notes-area input').on("change keyup", function (e) {
|
357 |
var this_id = jQuery(this).attr("id");
|
358 |
var parent_el = jQuery(this).parent();
|
@@ -378,7 +422,146 @@ jQuery(document).ready(function ($) {
|
|
378 |
//console.log(parent_el);
|
379 |
jQuery(ajax_save_button).appendTo(parent_el);
|
380 |
});
|
381 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
382 |
|
383 |
|
384 |
});
|
9 |
jQuery('#templates-container').isotope({ filter: selector });
|
10 |
return false;
|
11 |
});
|
12 |
+
|
13 |
/* Ajax loading tabs
|
14 |
jQuery.koolSwap({
|
15 |
swapBox : '#poststuff',
|
17 |
inDuration : 600,
|
18 |
});
|
19 |
*/
|
20 |
+
|
21 |
+
jQuery("body").on('click', '#content-tmce, .wp-switch-editor.switch-tmce', function () {
|
22 |
+
$.cookie("lp-edit-view-choice", "editor", { path: '/', expires: 7 });
|
23 |
+
});
|
24 |
+
|
25 |
+
jQuery("body").on('click', '#content-html, .wp-switch-editor.switch-html', function () {
|
26 |
+
$.cookie("lp-edit-view-choice", "html", { path: '/', expires: 7 });
|
27 |
+
});
|
28 |
|
29 |
+
var which_editor = $.cookie("lp-edit-view-choice");
|
30 |
+
if(which_editor === null){
|
31 |
+
setTimeout(function() {
|
32 |
+
jQuery("#content-tmce").click();
|
33 |
+
//jQuery(".wp-switch-editor.switch-tmce").click();
|
34 |
+
}, 1000);
|
35 |
+
|
36 |
+
}
|
37 |
+
|
38 |
+
if(which_editor === 'editor'){
|
39 |
+
setTimeout(function() {
|
40 |
+
jQuery("#content-tmce").click();
|
41 |
+
//jQuery(".wp-switch-editor.switch-tmce").click();
|
42 |
+
}, 1000);
|
43 |
+
}
|
44 |
+
|
45 |
/* Tour Start JS */
|
46 |
var tourbutton = '<a class="" id="lp-tour" style="font-size:13px;">Need help? Take the tour</a>';
|
47 |
jQuery(tourbutton).appendTo("h2:eq(0)");
|
116 |
href = href.replace(/&width=[0-9]+/g, '');
|
117 |
href = href.replace(/&height=[0-9]+/g, '');
|
118 |
$(this).attr( 'href', href + '&width=' + ( W - 80 ) + '&height=' + ( H - 85 ) );
|
119 |
+
/*
|
120 |
+
var frontend_status = jQuery("#frontend-on").val();
|
121 |
+
if (typeof (frontend_status) != "undefined" && frontend_status !== null) {
|
122 |
+
console.log('clixk');
|
123 |
+
var custom_css = jQuery("#TB_iframeContent").contents().find('#custom-media-css').length;
|
124 |
+
// Not complete need to troubleshoot
|
125 |
+
if( custom_css < 1) {
|
126 |
+
console.log('yes');
|
127 |
+
setTimeout(function() {
|
128 |
+
jQuery("#TB_iframeContent").contents().find('head').append('<link rel="stylesheet" id="custom-media-css" href="/wp-content/plugins/landing-pages/css/customizer.media-uploader.css" type="text/css" />');
|
129 |
+
}, 500);
|
130 |
+
setTimeout(function() {
|
131 |
+
jQuery("#TB_iframeContent").contents().find('head').append('<link rel="stylesheet" id="custom-media-css" href="/wp-content/plugins/landing-pages/css/customizer.media-uploader.css" type="text/css" />');
|
132 |
+
}, 2000);
|
133 |
+
}
|
134 |
+
} */
|
135 |
});
|
136 |
|
137 |
};
|
242 |
if (confirm('Are you sure you want to overwrite what is currently in the main edit box above?')) {
|
243 |
var default_content = jQuery(".default-content").text();
|
244 |
jQuery("#content_ifr").contents().find("body").html(default_content);
|
245 |
+
}
|
|
|
|
|
246 |
});
|
247 |
|
248 |
// Colorpicker fix
|
292 |
// Add current title of template to selector
|
293 |
var selected_template = jQuery('#lp_select_template').val();
|
294 |
var selected_template_id = "#" + selected_template;
|
295 |
+
var clean_template_name = selected_template.replace(/-/g, ' ');
|
296 |
+
function capitaliseFirstLetter(string)
|
297 |
+
{
|
298 |
+
return string.charAt(0).toUpperCase() + string.slice(1);
|
299 |
+
}
|
300 |
var currentlabel = jQuery(".currently_selected");
|
301 |
jQuery(selected_template_id).parent().addClass("default_template_highlight").prepend(currentlabel);
|
302 |
+
jQuery("#lp_metabox_select_template h3").first().prepend('<strong>' + capitaliseFirstLetter(clean_template_name) + '</strong> - ');
|
303 |
|
304 |
jQuery('#lp-change-template-button').live('click', function () {
|
305 |
jQuery(".wrap").fadeOut(500,function(){
|
385 |
}
|
386 |
|
387 |
// Ajax Saving for metadata
|
|
|
388 |
jQuery('#lp_metabox_select_template input, #lp_metabox_select_template select, #lp_metabox_select_template textarea').on("change keyup", function (e) {
|
389 |
// iframe content change needs its own change function $("#iFrame").contents().find("#someDiv")
|
390 |
// media uploader needs its own change function
|
396 |
//console.log(parent_el);
|
397 |
jQuery(ajax_save_button).appendTo(parent_el);
|
398 |
});
|
399 |
+
|
400 |
jQuery('#lp-notes-area input').on("change keyup", function (e) {
|
401 |
var this_id = jQuery(this).attr("id");
|
402 |
var parent_el = jQuery(this).parent();
|
422 |
//console.log(parent_el);
|
423 |
jQuery(ajax_save_button).appendTo(parent_el);
|
424 |
});
|
425 |
+
|
426 |
+
// wysiwyg on keyup save action
|
427 |
+
/*
|
428 |
+
setTimeout(function() {
|
429 |
+
jQuery('.mceIframeContainer iframe, .landing-page-option-row iframe').contents().find('body').on("keyup", function (e) {
|
430 |
+
var thisclass = jQuery(this).attr("class");
|
431 |
+
var this_class_dirty = thisclass.replace("mceContentBody ", "");
|
432 |
+
var this_class_cleaner = this_class_dirty.replace("wp-editor", "");
|
433 |
+
var clean_1 = this_class_cleaner.replace("post-type-landing-page", "");
|
434 |
+
var clean_2 = clean_1.replace("post-status-publish", "");
|
435 |
+
var clean_3 = clean_2.replace(/[.\s]+$/g, ""); // remove trailing whitespace
|
436 |
+
var clean_spaces = clean_3.replace(/\s{2,}/g, ' '); // remove more than one space
|
437 |
+
var this_id = clean_spaces.replace(/[.\s]+$/g, ""); // remove trailing whitespace
|
438 |
+
console.log(this_id);
|
439 |
+
var parent_el = jQuery( "." + this_id + " .landing-page-table-header");
|
440 |
+
jQuery(parent_el).find(".lp-success-message").remove();
|
441 |
+
jQuery(parent_el).find(".new-save-lp").remove();
|
442 |
+
var ajax_save_button = jQuery('<span class="button-primary new-save-lp" id="' + this_id + '" style="margin-left:10px;">Update</span>');
|
443 |
+
//console.log(parent_el);
|
444 |
+
jQuery(ajax_save_button).appendTo(parent_el);
|
445 |
+
});
|
446 |
+
}, 4000);
|
447 |
+
*/
|
448 |
+
|
449 |
+
|
450 |
+
// SAVE META
|
451 |
+
var nonce_val = lp_post_edit_ui.wp_landing_page_meta_nonce; // NEED CORRECT NONCE
|
452 |
+
jQuery(document).on('mousedown', '.new-save-lp', function () {
|
453 |
+
var type_input = jQuery(this).parent().find("input").attr("type");
|
454 |
+
var type_select = jQuery(this).parent().find("select");
|
455 |
+
// var the_conversion_area_editor = jQuery(this).parent().parent().find('#lp-conversion-area_ifr').length;
|
456 |
+
jQuery(this).parent().find(".lp-success-message").hide();
|
457 |
+
// var the_content_editor = jQuery(this).parent().parent().find('#wp_content_ifr').length;
|
458 |
+
var type_wysiwyg = jQuery(this).parent().parent().find('iframe').length;
|
459 |
+
|
460 |
+
var type_textarea = jQuery(this).parent().find("textarea");
|
461 |
+
if (typeof (type_input) != "undefined" && type_input !== null) {
|
462 |
+
var type_of_field = type_input;
|
463 |
+
} else if (typeof (type_wysiwyg) != "undefined" && type_wysiwyg !== null && type_wysiwyg === 1) {
|
464 |
+
var type_of_field = 'wysiwyg';
|
465 |
+
} else if (typeof (type_textarea) != "undefined" && type_textarea !== null) {
|
466 |
+
var type_of_field = 'textarea';
|
467 |
+
} else {
|
468 |
+
(typeof (type_select) != "undefined" && type_select)
|
469 |
+
var type_of_field = 'select';
|
470 |
+
}
|
471 |
+
// console.log(type_of_field); // type of input
|
472 |
+
var new_value_meta_input = jQuery(this).parent().find("input").val();
|
473 |
+
//console.log(new_value_meta_input);
|
474 |
+
var new_value_meta_select = jQuery(this).parent().find("select").val();
|
475 |
+
var new_value_meta_textarea = jQuery(this).parent().find("textarea").val();
|
476 |
+
// console.log(new_value_meta_select);
|
477 |
+
var new_value_meta_radio = jQuery(this).parent().find("input:checked").val();
|
478 |
+
var new_value_meta_checkbox = jQuery(this).parent().find('input[type="checkbox"]:checked').val();
|
479 |
+
var new_wysiwyg_meta = jQuery(this).parent().parent().find("iframe").contents().find("body").html();
|
480 |
+
// prep data
|
481 |
+
if (typeof (new_value_meta_input) != "undefined" && new_value_meta_input !== null && type_of_field == "text") {
|
482 |
+
var meta_to_save = new_value_meta_input;
|
483 |
+
} else if (typeof (new_value_meta_textarea) != "undefined" && new_value_meta_textarea !== null && type_of_field == "textarea") {
|
484 |
+
var meta_to_save = new_value_meta_textarea;
|
485 |
+
} else if (typeof (new_value_meta_select) != "undefined" && new_value_meta_select !== null) {
|
486 |
+
var meta_to_save = new_value_meta_select;
|
487 |
+
} else if (typeof (new_value_meta_radio) != "undefined" && new_value_meta_radio !== null && type_of_field == "radio") {
|
488 |
+
var meta_to_save = new_value_meta_radio;
|
489 |
+
} else if (typeof (new_value_meta_checkbox) != "undefined" && new_value_meta_checkbox !== null && type_of_field == "checkbox") {
|
490 |
+
var meta_to_save = new_value_meta_checkbox;
|
491 |
+
} else if (typeof (new_wysiwyg_meta) != "undefined" && new_wysiwyg_meta !== null && type_of_field == "wysiwyg") {
|
492 |
+
var meta_to_save = new_wysiwyg_meta;
|
493 |
+
//alert('here');
|
494 |
+
} else {
|
495 |
+
var meta_to_save = "";
|
496 |
+
}
|
497 |
+
|
498 |
+
// if data exists save it
|
499 |
+
// console.log(meta_to_save);
|
500 |
+
|
501 |
+
var this_meta_id = jQuery(this).attr("id"); // From save button
|
502 |
+
console.log(this_meta_id);
|
503 |
+
var post_id = jQuery("#post_ID").val();
|
504 |
+
console.log(post_id);
|
505 |
+
console.log(meta_to_save);
|
506 |
+
var frontend_status = jQuery("#frontend-on").val();
|
507 |
+
|
508 |
+
function do_reload_preview() {
|
509 |
+
var cache_bust = generate_random_cache_bust(35);
|
510 |
+
var reload_url = parent.window.location.href;
|
511 |
+
reload_url = reload_url.replace('template-customize=on','');
|
512 |
+
//alert(reload_url);
|
513 |
+
var current_variation_id = jQuery("#lp-current-view").text();
|
514 |
+
|
515 |
+
// var reload = jQuery(parent.document).find("#lp-live-preview").attr("src");
|
516 |
+
var new_reload = reload_url + "&live-preview-area=" + cache_bust + "&lp-variation-id=" + current_variation_id;
|
517 |
+
//alert(new_reload);
|
518 |
+
jQuery(parent.document).find("#lp-live-preview").attr("src", new_reload);
|
519 |
+
// console.log(new_reload);
|
520 |
+
}
|
521 |
+
// Run Ajax
|
522 |
+
jQuery.ajax({
|
523 |
+
type: 'POST',
|
524 |
+
url: lp_post_edit_ui.ajaxurl,
|
525 |
+
context: this,
|
526 |
+
data: {
|
527 |
+
action: 'wp_landing_page_meta_save',
|
528 |
+
meta_id: this_meta_id,
|
529 |
+
new_meta_val: meta_to_save,
|
530 |
+
page_id: post_id,
|
531 |
+
nonce: nonce_val
|
532 |
+
},
|
533 |
+
|
534 |
+
success: function (data) {
|
535 |
+
var self = this;
|
536 |
+
|
537 |
+
//alert(data);
|
538 |
+
// jQuery('.lp-form').unbind('submit').submit();
|
539 |
+
//var worked = '<span class="success-message-map">Success! ' + this_meta_id + ' set to ' + meta_to_save + '</span>';
|
540 |
+
var worked = '<span class="lp-success-message">Updated!</span>';
|
541 |
+
var s_message = jQuery(self).parent();
|
542 |
+
jQuery(worked).appendTo(s_message);
|
543 |
+
jQuery(self).parent().find("lp-success-message").remove();
|
544 |
+
jQuery(self).hide();
|
545 |
+
// RUN RELOAD
|
546 |
+
if (typeof (frontend_status) != "undefined" && frontend_status !== null) {
|
547 |
+
|
548 |
+
console.log('reload frame');
|
549 |
+
do_reload_preview();
|
550 |
+
} else {
|
551 |
+
console.log('No reload frame');
|
552 |
+
}
|
553 |
+
//alert("Changes Saved!");
|
554 |
+
},
|
555 |
+
|
556 |
+
error: function (MLHttpRequest, textStatus, errorThrown) {
|
557 |
+
alert("Ajax not enabled");
|
558 |
+
}
|
559 |
+
});
|
560 |
+
|
561 |
+
//reload_preview();
|
562 |
+
return false;
|
563 |
+
|
564 |
+
});
|
565 |
|
566 |
|
567 |
});
|
js/admin/admin.post-new.js
CHANGED
@@ -28,7 +28,7 @@ jQuery(document).ready(function ($) {
|
|
28 |
jQuery("#lp_template_change a").removeClass("button-primary").addClass("button");
|
29 |
|
30 |
// New Sidebar
|
31 |
-
jQuery("#postbox-container-1").html("<div class='postbox'><center><h3>Download Additional Templates</h3><a target='_blank' href='/wp-admin/edit.php?post_type=landing-page&page=lp_store'><img src='
|
32 |
|
33 |
jQuery('.lp_select_template').click(function(){
|
34 |
jQuery(".mceIframeContainer iframe#content_ifr").css("height", "100%");
|
28 |
jQuery("#lp_template_change a").removeClass("button-primary").addClass("button");
|
29 |
|
30 |
// New Sidebar
|
31 |
+
jQuery("#postbox-container-1").html("<div class='postbox'><center><h3>Download Additional Templates</h3><a target='_blank' href='/wp-admin/edit.php?post_type=landing-page&page=lp_store'><img src='"+lp_post_new_ui.LANDINGPAGES_URLPATH+"images/get-wordpress-templates.png'></a><a target='_blank' href='/wp-admin/edit.php?post_type=landing-page&page=lp_store' class='button new-lp-button button-primary button-large'>Download Landing Page Templates</a></center></div><div class='postbox'><center><h3>Need Custom Template Design?</h3><a target='_blank' href='/wp-admin/edit.php?post_type=landing-page&page=lp_store'><img src='"+lp_post_new_ui.LANDINGPAGES_URLPATH+"/images/get-custom-setup.png'></a><a target='_blank' href='http://www.inboundnow.com/landing-pages/custom-wordpress-landing-page-setup/' class='button new-lp-button button-primary button-large'>Get Custom Template Setup</a></center></div>");
|
32 |
|
33 |
jQuery('.lp_select_template').click(function(){
|
34 |
jQuery(".mceIframeContainer iframe#content_ifr").css("height", "100%");
|
js/admin/admin.split-testing-splash.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
jQuery(document).ready(function($) {
|
2 |
jQuery("#edit-group-div h1").hide();
|
3 |
jQuery("#edit-group-div h1").show();
|
4 |
jQuery(".manage-split").html('Select split test group(s):');
|
5 |
jQuery("input[value='Save Placement']").val('Add to Split Test Group(s)');
|
6 |
jQuery(".clone_description").append("<p>The group(s) highlighted in <span style='background:#DFF2BF'>green</span> are the current group(s) this page is associated with.</p>"); }
|
7 |
jQuery(".clone-post-options input[value='Save Placement']").val('Clone Page and add to Split Test Group(s)');
|
8 |
var input = jQuery(this).attr('checked');
|
9 |
if (input == 'checked') {
|
10 |
jQuery(this).parent().parent().css("background-color", "#dff2bf");
|
11 |
// Check Secondary Radio Input Status for on/off
|
12 |
} else {
|
13 |
jQuery(this).parent().parent().css("background-color", "transparent");
|
14 |
}
|
15 |
});
|
|
|
0 |
jQuery("#edit-group-div h1").hide();
|
1 |
jQuery("#edit-group-div h1").show();
|
2 |
jQuery(".manage-split").html('Select split test group(s):');
|
3 |
jQuery("input[value='Save Placement']").val('Add to Split Test Group(s)');
|
4 |
jQuery(".clone_description").append("<p>The group(s) highlighted in <span style='background:#DFF2BF'>green</span> are the current group(s) this page is associated with.</p>"); }
|
5 |
jQuery(".clone-post-options input[value='Save Placement']").val('Clone Page and add to Split Test Group(s)');
|
6 |
var input = jQuery(this).attr('checked');
|
7 |
if (input == 'checked') {
|
8 |
jQuery(this).parent().parent().css("background-color", "#dff2bf");
|
9 |
// Check Secondary Radio Input Status for on/off
|
10 |
} else {
|
11 |
jQuery(this).parent().parent().css("background-color", "transparent");
|
12 |
}
|
13 |
});
|
js/admin/admin.split-testing.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
jQuery(document).ready(function()
|
2 |
|
|
|
0 |
|
js/admin/admin.store.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
jQuery(document).ready(function()
|
2 |
{
|
3 |
-
//
|
4 |
});
|
5 |
|
1 |
jQuery(document).ready(function()
|
2 |
{
|
3 |
+
// Store page jquery not in use
|
4 |
});
|
5 |
|
js/admin/new-customizer-admin.js
ADDED
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
function generate_random_cache_bust(length) {
|
2 |
+
var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz'.split('');
|
3 |
+
|
4 |
+
if (! length) {
|
5 |
+
length = Math.floor(Math.random() * chars.length);
|
6 |
+
}
|
7 |
+
|
8 |
+
var str = '';
|
9 |
+
for (var i = 0; i < length; i++) {
|
10 |
+
str += chars[Math.floor(Math.random() * chars.length)];
|
11 |
+
}
|
12 |
+
return str;
|
13 |
+
}
|
14 |
+
|
15 |
+
jQuery(document).ready(function($) {
|
16 |
+
jQuery('.nav-tab-wrapper.a_b_tabs a').each(function(){
|
17 |
+
var this_link = jQuery(this).attr('href');
|
18 |
+
jQuery(this).attr('href', this_link + "&frontend=true");
|
19 |
+
|
20 |
+
});
|
21 |
+
|
22 |
+
jQuery(".nav-tab-wrapper.a_b_tabs a").on('click', function (event) {
|
23 |
+
|
24 |
+
jQuery(parent.document).find(".lp-load-overlay").fadeIn('slow');
|
25 |
+
|
26 |
+
});
|
27 |
+
|
28 |
+
|
29 |
+
var open_varaition = jQuery("#open_variation").val();
|
30 |
+
var link_varaition = jQuery("#view-post-btn a").attr('href');
|
31 |
+
|
32 |
+
var preview_window = jQuery(parent.document).find("#lp-live-preview").attr('src');
|
33 |
+
console.log(preview_window);
|
34 |
+
|
35 |
+
console.log(link_varaition);
|
36 |
+
|
37 |
+
// reload the iframe preview page (for option toggles)
|
38 |
+
//jQuery('.reload').on('click', function (event) {
|
39 |
+
reload_preview(); // need to trigger reload from parent frame
|
40 |
+
//});
|
41 |
+
|
42 |
+
//alert(jQuery("#current_variation_id").text());
|
43 |
+
function reload_preview() {
|
44 |
+
var cache_bust = generate_random_cache_bust(35);
|
45 |
+
var reload_url = parent.window.location.href;
|
46 |
+
reload_url = reload_url.replace('template-customize=on','');
|
47 |
+
//alert(reload_url);
|
48 |
+
var current_variation_id = jQuery("#open_variation").val();
|
49 |
+
|
50 |
+
// var reload = jQuery(parent.document).find("#lp-live-preview").attr("src");
|
51 |
+
var new_reload = reload_url + "&live-preview-area=" + cache_bust + "&lp-variation-id=" + current_variation_id;
|
52 |
+
jQuery(parent.document).find("#lp-live-preview").attr("src", new_reload);
|
53 |
+
// console.log(new_reload);
|
54 |
+
jQuery(parent.document).find(".lp-load-overlay").fadeOut('slow');
|
55 |
+
}
|
56 |
+
|
57 |
+
});
|
js/ajax.clearstats.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
jQuery(document).ready(function($) {
|
2 |
$( '.clear_stats' ).on( 'click', function() {
|
3 |
$( 'body' ).on( 'click', '.lp-delete-var-stats', function() {
|
4 |
});
|
|
|
5 |
$( '.clear_stats' ).on( 'click', function() {
|
6 |
$( 'body' ).on( 'click', '.lp-delete-var-stats', function() {
|
7 |
});
|
|
|
1 |
$( '.clear_stats' ).on( 'click', function() {
|
2 |
$( 'body' ).on( 'click', '.lp-delete-var-stats', function() {
|
3 |
});
|
4 |
+
jQuery(document).ready(function($) {
|
5 |
$( '.clear_stats' ).on( 'click', function() {
|
6 |
$( 'body' ).on( 'click', '.lp-delete-var-stats', function() {
|
7 |
});
|
js/ajax.split-testing.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
jQuery(document).ready(function($) {
|
|
js/ajax.tracking.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
jQuery(document).ready(function($) {
|
|
js/ajax.tracking.js.php
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
<script type='text/javascript'>
|
2 |
/***record impressions***/
|
|
|
0 |
/***record impressions***/
|
js/customizer.ab-testing.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
jQuery(".variation-lp").on('click', function (event) {
|
1 |
+
jQuery(".variation-lp").on('click', function (event) {
|
js/{jquery.funnel-tracking.js → funnel-tracking.js}
RENAMED
File without changes
|
js/jquery.kool-swap.js
DELETED
@@ -1,577 +0,0 @@
|
|
1 |
-
/*
|
2 |
-
Kool Swap v0.2.2
|
3 |
-
by Joscha Schmidt - http://www.itsjoe.de
|
4 |
-
|
5 |
-
For more information, visit:
|
6 |
-
http://itsjoe.de/kool-swap/
|
7 |
-
|
8 |
-
Licensed under the Creative Commons Attribution 2.5 License - http://creativecommons.org/licenses/by/2.5/
|
9 |
-
- free for use in both personal and commercial projects
|
10 |
-
- attribution requires leaving author name, author link, and the license info intact
|
11 |
-
|
12 |
-
*/
|
13 |
-
(function( $ ){
|
14 |
-
var ksGlobal = {
|
15 |
-
defaults: {
|
16 |
-
swapBox : '',
|
17 |
-
loadBox : '',
|
18 |
-
swapTriggerBox : '.kool-swap',
|
19 |
-
swapTrigger : 'a',
|
20 |
-
loadErrorMessage : 'The requested page could not be loaded.',
|
21 |
-
loadErrorBacklinkText : 'Go back to the last page',
|
22 |
-
bouncingBoxes : '',
|
23 |
-
topToBottom : false,
|
24 |
-
leftToRight : false,
|
25 |
-
inEasing : 'easeInSine',
|
26 |
-
outEasing : 'easeInBack',
|
27 |
-
inDuration : 700,
|
28 |
-
outDuration : 500,
|
29 |
-
preloadImages : false,
|
30 |
-
direction: '',
|
31 |
-
positionType: 'fixed',
|
32 |
-
},
|
33 |
-
listenToPopState: function(settings, $swapTrigger) {
|
34 |
-
$(window)
|
35 |
-
.off('popstate')
|
36 |
-
.on('popstate', function(e) { // Listen to popstate
|
37 |
-
var $swapBoxIn;
|
38 |
-
switch (settings.direction) {
|
39 |
-
case 'left-to-right':
|
40 |
-
$swapBoxIn = 'ks-swap-box-in-l-pushstate';
|
41 |
-
break;
|
42 |
-
case 'right-to-left':
|
43 |
-
$swapBoxIn = 'ks-swap-box-in-r-pushstate';
|
44 |
-
break;
|
45 |
-
case 'top-to-bottom':
|
46 |
-
$swapBoxIn = 'ks-swap-box-in-t-pushstate';
|
47 |
-
break;
|
48 |
-
case 'bottom-to-top':
|
49 |
-
$swapBoxIn = 'ks-swap-box-in-b-pushstate';
|
50 |
-
break;
|
51 |
-
case '':
|
52 |
-
$swapBoxIn = 'ks-swap-box-in-pushstate';
|
53 |
-
break;
|
54 |
-
default:
|
55 |
-
alert('Kool Swap Error: \n The defined direction ' + settings.direction + ' does not exist.');
|
56 |
-
return false;
|
57 |
-
break;
|
58 |
-
}
|
59 |
-
ksPageSwap.swapHistoryPage(settings, $swapTrigger, $swapBoxIn);
|
60 |
-
e.stopPropagation();
|
61 |
-
});
|
62 |
-
}
|
63 |
-
};
|
64 |
-
|
65 |
-
var ksPageSwap = {
|
66 |
-
defaults: function($this, options) {
|
67 |
-
psSettings = $this.data('kool-swap-window');
|
68 |
-
|
69 |
-
if(typeof(psSettings) == 'undefined') {
|
70 |
-
psSettings = $.extend({}, ksGlobal.defaults, options);
|
71 |
-
$this.data('kool-swap-window', psSettings);
|
72 |
-
} else {
|
73 |
-
psSettings = $.extend(psSettings, options);
|
74 |
-
}
|
75 |
-
|
76 |
-
return psSettings;
|
77 |
-
},
|
78 |
-
init: function(options) {
|
79 |
-
var hasPushstate = (window.history && history.pushState);
|
80 |
-
|
81 |
-
return this.each(function() {
|
82 |
-
ksPageSwap.defaults($(this), options);
|
83 |
-
|
84 |
-
var $swapBox = $(psSettings.swapBox), // Use the swapBox option if it is called without selector
|
85 |
-
swapTriggerBox = psSettings.swapTriggerBox,
|
86 |
-
swapTrigger = psSettings.swapTrigger,
|
87 |
-
pageSwap = true;
|
88 |
-
|
89 |
-
if (hasPushstate && $('html').not('[data-ks-initialised]') ) {
|
90 |
-
$('html').attr('data-ks-initialised', 'true');
|
91 |
-
ksGlobal.listenToPopState(psSettings, $(swapTriggerBox + ' ' + swapTrigger));
|
92 |
-
}
|
93 |
-
|
94 |
-
ksMethods.trigger(psSettings, hasPushstate, swapTriggerBox, swapTrigger, pageSwap);
|
95 |
-
});
|
96 |
-
},
|
97 |
-
swapHistoryPage: function(psSettings, $swapTrigger, swapBoxIn) {
|
98 |
-
if($('html').is('[data-ks-history-pushed]')) {
|
99 |
-
var href = location.pathname;
|
100 |
-
//var currentpage = locationPath.replace(/^.*[\\\/]/, '');
|
101 |
-
ksMethods.ksLoadPage(psSettings, $swapTrigger, href, swapBoxIn);
|
102 |
-
}
|
103 |
-
},
|
104 |
-
destroy : function($this) {
|
105 |
-
$(document).off('click', psSettings.swapTriggerBox + ' ' + psSettings.swapTrigger);
|
106 |
-
return $(this).each(function() {
|
107 |
-
var $this = $(this);
|
108 |
-
$this.removeData('kool-swap-window');
|
109 |
-
});
|
110 |
-
},
|
111 |
-
};
|
112 |
-
|
113 |
-
var ksSelectorSwap = {
|
114 |
-
defaults: function($this, options) {
|
115 |
-
settings = $this.data('kool-swap');
|
116 |
-
|
117 |
-
if(typeof(settings) == 'undefined') {
|
118 |
-
settings = $.extend({}, ksGlobal.defaults, options);
|
119 |
-
$this.data('kool-swap', settings);
|
120 |
-
} else {
|
121 |
-
settings = $.extend(settings, options);
|
122 |
-
}
|
123 |
-
return settings;
|
124 |
-
},
|
125 |
-
init: function(options) {
|
126 |
-
return this.each(function() {
|
127 |
-
ksSelectorSwap.defaults($(this), options);
|
128 |
-
|
129 |
-
settings.swapBox = $(this); // use the given selector
|
130 |
-
|
131 |
-
var swapTriggerBox = settings.swapTriggerBox,
|
132 |
-
swapTrigger = settings.swapTrigger,
|
133 |
-
pageSwap = false;
|
134 |
-
|
135 |
-
ksMethods.trigger(settings, true, swapTriggerBox, swapTrigger, pageSwap);
|
136 |
-
});
|
137 |
-
},
|
138 |
-
destroy : function($this) {
|
139 |
-
$(document).off('click', settings.swapTriggerBox + ' ' + settings.swapTrigger);
|
140 |
-
return $(this).each(function() {
|
141 |
-
var $this = $(this);
|
142 |
-
$this.removeData('kool-swap');
|
143 |
-
});
|
144 |
-
},
|
145 |
-
|
146 |
-
};
|
147 |
-
|
148 |
-
var ksMethods = {
|
149 |
-
trigger: function(settings, hasPushstate, swapTriggerBox, swapTrigger, pageSwap) {
|
150 |
-
if (hasPushstate) {
|
151 |
-
function is_touch_device() { // check if the plugin's running on a touch device
|
152 |
-
var el = document.createElement('div');
|
153 |
-
el.setAttribute('ongesturestart', 'return;');
|
154 |
-
return typeof el.ongesturestart === "function";
|
155 |
-
};
|
156 |
-
|
157 |
-
|
158 |
-
if (is_touch_device()) {
|
159 |
-
$(document)
|
160 |
-
// for the 404 back link
|
161 |
-
.on('touchstart', '.ajaxPageSwitchBacklink', function() {
|
162 |
-
window.history.back();
|
163 |
-
})
|
164 |
-
.off('touchstart', swapTriggerBox + ' ' + swapTrigger)
|
165 |
-
.on('touchstart', swapTriggerBox + ' ' + swapTrigger, function(e) {
|
166 |
-
e.preventDefault();
|
167 |
-
var $swapTrigger = $(this);
|
168 |
-
|
169 |
-
ksMethods.ksDefineSwapBoxIn(settings, $swapTrigger, hasPushstate, pageSwap);
|
170 |
-
});
|
171 |
-
} else {
|
172 |
-
$(document)
|
173 |
-
// for the 404 back link
|
174 |
-
.on('click', '.ajaxPageSwitchBacklink', function() {
|
175 |
-
window.history.back();
|
176 |
-
})
|
177 |
-
.off('click', swapTriggerBox + ' ' + swapTrigger)
|
178 |
-
.on('click', swapTriggerBox + ' ' + swapTrigger, function(e) {
|
179 |
-
e.preventDefault();
|
180 |
-
var $swapTrigger = $(this);
|
181 |
-
|
182 |
-
ksMethods.ksDefineSwapBoxIn(settings, $swapTrigger, hasPushstate, pageSwap);
|
183 |
-
});
|
184 |
-
}
|
185 |
-
}
|
186 |
-
},
|
187 |
-
ksDefineSwapBoxIn: function(settings, $swapTrigger, hasPushstate, pageSwap) {
|
188 |
-
switch (settings.direction) {
|
189 |
-
case 'left-to-right':
|
190 |
-
case 'right-to-left':
|
191 |
-
case 'top-to-bottom':
|
192 |
-
case 'bottom-to-top':
|
193 |
-
case '':
|
194 |
-
$swapBoxIn = 'ks-swap-box-in';
|
195 |
-
if (!$('.ks-swap-box-in').length) {
|
196 |
-
var item = $(this);
|
197 |
-
ksMethods.ksCollectLoadPageInfo(settings, $swapTrigger, hasPushstate, $swapBoxIn, pageSwap);
|
198 |
-
} else {
|
199 |
-
return false;
|
200 |
-
}
|
201 |
-
break;
|
202 |
-
default:
|
203 |
-
alert('Kool Swap Error: \n The defined direction ' + settings.direction + ' does not exist.');
|
204 |
-
return false;
|
205 |
-
break;
|
206 |
-
}
|
207 |
-
},
|
208 |
-
ksCollectLoadPageInfo: function(settings, $swapTrigger, hasPushstate, $swapBoxIn, pageSwap) {
|
209 |
-
var url = $swapTrigger.attr('href');
|
210 |
-
|
211 |
-
var $swapBoxIn;
|
212 |
-
switch (settings.direction) {
|
213 |
-
case 'left-to-right':
|
214 |
-
$swapBoxIn = 'ks-swap-box-in-l';
|
215 |
-
break;
|
216 |
-
case 'right-to-left':
|
217 |
-
$swapBoxIn = 'ks-swap-box-in-r';
|
218 |
-
break;
|
219 |
-
case 'top-to-bottom':
|
220 |
-
$swapBoxIn = 'ks-swap-box-in-t';
|
221 |
-
break;
|
222 |
-
case 'bottom-to-top':
|
223 |
-
$swapBoxIn = 'ks-swap-box-in-b';
|
224 |
-
break;
|
225 |
-
case '':
|
226 |
-
$swapBoxIn = 'ks-swap-box-in';
|
227 |
-
break;
|
228 |
-
default:
|
229 |
-
alert('Kool Swap Error: \n The defined direction ' + settings.direction + ' does not exist.');
|
230 |
-
return false;
|
231 |
-
break;
|
232 |
-
}
|
233 |
-
|
234 |
-
// This generates a canvas from the current page to freeze the contents as they are. It may be used later.
|
235 |
-
// Include http://html2canvas.hertzen.com/build/html2canvas.js to test it.
|
236 |
-
// html2canvas($('#' + swapBoxId), {
|
237 |
-
// onrendered: function(canvas) {
|
238 |
-
// $('#' + swapBoxId).find('*').remove().end().append(canvas);
|
239 |
-
// }
|
240 |
-
// });
|
241 |
-
|
242 |
-
ksMethods.ksLoadPage(settings, $swapTrigger, url, $swapBoxIn, pageSwap);
|
243 |
-
|
244 |
-
if (pageSwap) {
|
245 |
-
history.pushState({'url':url}, null, url); // Update the url
|
246 |
-
$('html').attr('data-ks-history-pushed', 'true');
|
247 |
-
}
|
248 |
-
},
|
249 |
-
ksLoadPage: function(settings, $swapTrigger, href, swapBoxIn, pageSwap) {
|
250 |
-
var $swapBox = $(settings.swapBox); // redefine $swapBox variable
|
251 |
-
if (href != '') {
|
252 |
-
ksMethods.ksAddSwapBoxIn(settings, swapBoxIn);
|
253 |
-
$.ajax({
|
254 |
-
type: 'GET',
|
255 |
-
url: href,
|
256 |
-
data: {},
|
257 |
-
beforeSend: function() {
|
258 |
-
ksMethods.ksCreateLoadBox();
|
259 |
-
},
|
260 |
-
error : function(data, xhrStatusText, xhrStatus) {
|
261 |
-
$swapBox.html(settings.loadErrorMessage + '<p>' + xhrStatusText + ': <strong>' + xhrStatus + '</strong></p><p><a class="ajaxPageSwitchBacklink">' + settings.loadErrorBacklinkText + '</a></p>');
|
262 |
-
},
|
263 |
-
success: function(data) {
|
264 |
-
$(settings.swapTriggerBox).find(settings.swapTrigger).filter('.active').removeClass('active');
|
265 |
-
$swapTrigger.addClass('active');
|
266 |
-
|
267 |
-
if (settings.bouncingBoxes) {
|
268 |
-
ksMethods.ksFadeSiblings(settings, $swapTrigger, data, swapBoxIn, pageSwap);
|
269 |
-
|
270 |
-
} else {
|
271 |
-
ksMethods.ksPositionAndPrepare(settings, $swapTrigger, data, swapBoxIn, pageSwap);
|
272 |
-
}
|
273 |
-
},
|
274 |
-
dataType: 'html',
|
275 |
-
});
|
276 |
-
} else {
|
277 |
-
alert('There is no target defined! Please check the references (i.e. normally href) of the swapTriggers.');
|
278 |
-
}
|
279 |
-
},
|
280 |
-
ksAddSwapBoxIn: function(settings, swapBoxIn) {
|
281 |
-
var $swapBox = $(settings.swapBox), // redefine $swapBox variable
|
282 |
-
swapBoxClass = $swapBox.attr('class'),
|
283 |
-
swapBoxTagName = $swapBox.prop("tagName");
|
284 |
-
|
285 |
-
$(document).find('.ks-swap-box-in').remove();
|
286 |
-
|
287 |
-
if (settings.moveSwapBoxClasses) {
|
288 |
-
$swapBox.after('<' + swapBoxTagName.toLowerCase() + ' class="ks-swap-box-in ' + (typeof swapBoxClass != 'undefined' ? swapBoxClass : '') + '" id="' + swapBoxIn + '"></' + swapBoxTagName.toLowerCase() + '>'); // create the temp container
|
289 |
-
} else {
|
290 |
-
$swapBox.after('<' + swapBoxTagName.toLowerCase() + ' class="ks-swap-box-in" id="' + swapBoxIn + '"></' + swapBoxTagName.toLowerCase() + '>'); // create the temp container
|
291 |
-
}
|
292 |
-
|
293 |
-
$swapBox.siblings('.ks-swap-box-in')
|
294 |
-
.hide();
|
295 |
-
|
296 |
-
},
|
297 |
-
ksFadeSiblings: function(settings, $swapTrigger, data, swapBoxIn, pageSwap) {
|
298 |
-
$(document)
|
299 |
-
.find(settings.bouncingBoxes)
|
300 |
-
.animate({opacity: 0}, 50, function() {
|
301 |
-
ksMethods.ksPositionAndPrepare(settings, $swapTrigger, data, swapBoxIn);
|
302 |
-
});
|
303 |
-
},
|
304 |
-
ksPositionAndPrepare: function(settings, $swapTrigger, data, swapBoxIn, pageSwap) {
|
305 |
-
var $swapBox = $(settings.swapBox), // redefine $swapBox variable
|
306 |
-
swapBoxId = $swapBox.attr('id'),
|
307 |
-
mainOffset = $swapBox.position(),
|
308 |
-
mainWidth = $swapBox.width(),
|
309 |
-
mainMarginLeft = $swapBox.css('margin-left'),
|
310 |
-
mainMarginRight = $swapBox.css('margin-left'),
|
311 |
-
swapBoxLeftAbsolute = mainOffset.left + parseFloat(mainMarginLeft);
|
312 |
-
swapBoxRightAbsolute = mainOffset.left + parseFloat(mainMarginLeft) + mainWidth - parseFloat(mainMarginRight),
|
313 |
-
$swapBoxIn = $('#' + swapBoxIn),
|
314 |
-
loadSelector = $swapTrigger.attr('data-ks-load-selector');
|
315 |
-
|
316 |
-
if (pageSwap) {
|
317 |
-
var htmlId = data.match(/<\/*html\s+.*id="([^"].*)".*>/), // exclude html classes
|
318 |
-
bodyId = data.match(/<\/*body\s+.*id="([^"].*)".*>/), // exclude body classes
|
319 |
-
htmlClass = data.match(/<\/*html\s+.*class="([^"].*)".*>/), // exclude html classes
|
320 |
-
bodyClass = data.match(/<\/*body\s+.*class="([^"].*)".*>/), // exclude body classes
|
321 |
-
pageTitle = data.match(/<\/*title>(.*)<\/title>/); // exclude page title
|
322 |
-
}
|
323 |
-
|
324 |
-
$swapBox
|
325 |
-
.addClass('ks-swap-box-out')
|
326 |
-
.css({
|
327 |
-
position: 'absolute',
|
328 |
-
top: mainOffset.top,
|
329 |
-
left: swapBoxLeftAbsolute,
|
330 |
-
marginLeft: 0,
|
331 |
-
width: mainWidth,
|
332 |
-
});
|
333 |
-
|
334 |
-
if (swapBoxInContents = $(data).filter('#' + swapBoxId).html() != undefined) { // Check if we have to use .filter or .find to get the data
|
335 |
-
if (settings.loadBox) {
|
336 |
-
var swapBoxInContainer = $(data).filter(settings.loadBox);
|
337 |
-
} else if (loadSelector) {
|
338 |
-
var swapBoxInContainer = $(data).filter(loadSelector);
|
339 |
-
} else {
|
340 |
-
var swapBoxInContainer = $(data).filter('#' + swapBoxId);
|
341 |
-
}
|
342 |
-
swapBoxInContents = swapBoxInContainer.html();
|
343 |
-
var swapBoxInClasses = swapBoxInContainer.attr('class');
|
344 |
-
} else {
|
345 |
-
if (settings.loadBox) {
|
346 |
-
var swapBoxInContainer = $(data).find(settings.loadBox);
|
347 |
-
} else if (loadSelector) {
|
348 |
-
var swapBoxInContainer = $(data).find(loadSelector);
|
349 |
-
} else {
|
350 |
-
var swapBoxInContainer = $(data).find('#' + swapBoxId);
|
351 |
-
}
|
352 |
-
swapBoxInContents = swapBoxInContainer.html();
|
353 |
-
var swapBoxInClasses = swapBoxInContainer.attr('class');
|
354 |
-
}
|
355 |
-
|
356 |
-
$swapBoxIn
|
357 |
-
.addClass(swapBoxInClasses) // add the swapBoxIn classes
|
358 |
-
.css({
|
359 |
-
position: settings.positionType,
|
360 |
-
marginLeft: 0, // Set the margin to 0 because the swapBox was positioned in place
|
361 |
-
top: mainOffset.top,
|
362 |
-
left: swapBoxLeftAbsolute,
|
363 |
-
})
|
364 |
-
.html(swapBoxInContents); // Attach the contents to the target temp container
|
365 |
-
|
366 |
-
var swapBoxInImages = $swapBoxIn.find('img'); // Check if there are images in the swapIn box
|
367 |
-
var count = 0;
|
368 |
-
if (swapBoxInImages.length && settings.preloadImages == true) {
|
369 |
-
swapBoxInImages.on('load', function() {
|
370 |
-
count++;
|
371 |
-
if (count == swapBoxInImages.length){
|
372 |
-
$(document).trigger('ksLoadCallback'); // Trigger the ksLoad callback event
|
373 |
-
ksMethods.ksSwapContent(settings, swapBoxIn, $swapTrigger, mainOffset, swapBoxLeftAbsolute, mainWidth, htmlId, bodyId, htmlClass, bodyClass, pageTitle, pageSwap);
|
374 |
-
}
|
375 |
-
});
|
376 |
-
} else {
|
377 |
-
$(document).trigger('ksLoadCallback'); // Trigger the ksLoad callback event
|
378 |
-
ksMethods.ksSwapContent(settings, swapBoxIn, $swapTrigger, mainOffset, swapBoxLeftAbsolute, mainWidth, htmlId, bodyId, htmlClass, bodyClass, pageTitle, pageSwap);
|
379 |
-
}
|
380 |
-
},
|
381 |
-
// Swap the content
|
382 |
-
ksSwapContent: function(settings, swapBoxIn, $swapTrigger, mainOffset, swapBoxLeftAbsolute, mainWidth, htmlId, bodyId, htmlClass, bodyClass, pageTitle, pageSwap) {
|
383 |
-
var $swapBox = $(settings.swapBox), // redefine $swapBox variable
|
384 |
-
swapBoxId = $swapBox.attr('id'),
|
385 |
-
$swapBoxIn = $('#' + swapBoxIn),
|
386 |
-
swapBoxInHeight = $swapBoxIn.outerHeight(),
|
387 |
-
swapBoxInWidth = $swapBoxIn.outerWidth(),
|
388 |
-
swapBoxHeight = $swapBox.outerHeight(),
|
389 |
-
viewportHeight = $(window).outerHeight(),
|
390 |
-
viewportWidth = $(window).outerWidth(),
|
391 |
-
hash = $swapTrigger.prop('hash');
|
392 |
-
|
393 |
-
clearTimeout(loadTimer);
|
394 |
-
ksMethods.ksRemoveLoadBox();
|
395 |
-
|
396 |
-
if (settings.direction) {
|
397 |
-
$swapBoxIn.css({width: mainWidth});
|
398 |
-
|
399 |
-
var swapBoxOutAnimProperties = {}, swapBoxInAnimProperties = {};
|
400 |
-
// Define animation value
|
401 |
-
var swapBoxOutAnimValue;
|
402 |
-
switch (swapBoxIn) {
|
403 |
-
case 'ks-swap-box-in-b-pushstate':
|
404 |
-
case 'ks-swap-box-in-t':
|
405 |
-
$swapBoxIn.css('top', -swapBoxInHeight * 2);
|
406 |
-
swapBoxOutAnimValue = viewportHeight * 3;
|
407 |
-
break;
|
408 |
-
case 'ks-swap-box-in-t-pushstate':
|
409 |
-
case 'ks-swap-box-in-b':
|
410 |
-
$swapBoxIn.css('top', swapBoxHeight * 1.5);
|
411 |
-
swapBoxOutAnimValue = -swapBoxHeight * 1.5;
|
412 |
-
break;
|
413 |
-
case 'ks-swap-box-in-r-pushstate':
|
414 |
-
case 'ks-swap-box-in-l':
|
415 |
-
$swapBoxIn.css('left', -viewportWidth);
|
416 |
-
swapBoxOutAnimValue = viewportWidth;
|
417 |
-
break;
|
418 |
-
case 'ks-swap-box-in-l-pushstate':
|
419 |
-
case 'ks-swap-box-in-r':
|
420 |
-
$swapBoxIn.css('left', viewportWidth);
|
421 |
-
swapBoxOutAnimValue = -viewportWidth;
|
422 |
-
break;
|
423 |
-
default:
|
424 |
-
alert('Kool Swap Error: \n The swapBoxIn class is in an undefined format: ' + swapBoxIn + '.');
|
425 |
-
return false;
|
426 |
-
break;
|
427 |
-
}
|
428 |
-
|
429 |
-
switch (settings.direction) {
|
430 |
-
case 'left-to-right':
|
431 |
-
case 'right-to-left':
|
432 |
-
var finalInDuration = settings.inDuration,
|
433 |
-
finalOutDuration = settings.outDuration;
|
434 |
-
|
435 |
-
swapBoxOutAnimProperties = {left: swapBoxOutAnimValue};
|
436 |
-
swapBoxInAnimProperties = {left: swapBoxLeftAbsolute};
|
437 |
-
|
438 |
-
$swapBoxIn.css('top', mainOffset.top);
|
439 |
-
$('body') // Prevent horizontal scrollbars on animation
|
440 |
-
.css({
|
441 |
-
overflowX: 'hidden',
|
442 |
-
overflowY: 'scroll',
|
443 |
-
});
|
444 |
-
break;
|
445 |
-
case 'top-to-bottom':
|
446 |
-
case 'bottom-to-top':
|
447 |
-
/* Every page wants to reach the end position in the defined space of time (duration).
|
448 |
-
* This causes that high pages (based on the height in pixels after all content were loaded)
|
449 |
-
* seem to animate faster than low pages.
|
450 |
-
* I thought about a work around and came to the formula DURATION + (HEIGHT OF THE SWAP (IN) BOX / DURATION * 100)
|
451 |
-
* This calculates a final in-duration value that seems to work fine.
|
452 |
-
*/
|
453 |
-
|
454 |
-
var additionValue = (swapBoxHeight * settings.inDuration / 1000);
|
455 |
-
var finalVal = additionValue / 100;
|
456 |
-
var finalInDuration = settings.inDuration + finalVal;
|
457 |
-
var finalOutDuration = settings.outDuration;
|
458 |
-
|
459 |
-
swapBoxInAnimProperties = {top: mainOffset.top};
|
460 |
-
swapBoxOutAnimProperties = {top: swapBoxOutAnimValue};
|
461 |
-
|
462 |
-
$('body').css('overflow-y', 'scroll'); // Prevent vertical scrollbars on animation
|
463 |
-
break;
|
464 |
-
}
|
465 |
-
|
466 |
-
$swapBox
|
467 |
-
.stop()
|
468 |
-
.show()
|
469 |
-
.animate(
|
470 |
-
swapBoxOutAnimProperties, finalOutDuration, settings.outEasing, function() {
|
471 |
-
$(this).remove();
|
472 |
-
if (pageSwap) {
|
473 |
-
$(document).scrollTop(0); // Scroll the page to top to avoid flickering
|
474 |
-
ksMethods.ksSwitchClasses(htmlId, bodyId, htmlClass, bodyClass, pageTitle);
|
475 |
-
}
|
476 |
-
});
|
477 |
-
|
478 |
-
$swapBoxIn
|
479 |
-
.stop()
|
480 |
-
.show()
|
481 |
-
.animate(
|
482 |
-
swapBoxInAnimProperties, finalInDuration, settings.inEasing, function() {
|
483 |
-
$(this)
|
484 |
-
.css({display: '', left: '', marginLeft: '', position: '', top: '', width: '',}) // Reset all setted styles
|
485 |
-
.attr('id', swapBoxId) // Give the swapBox id back to the final animated swapBoxIn
|
486 |
-
.removeClass('ks-swap-box-in');
|
487 |
-
|
488 |
-
ksMethods.animationCallback(hash);
|
489 |
-
ksMethods.ksCheckForSiblings(settings);
|
490 |
-
});
|
491 |
-
} else {
|
492 |
-
$swapBox
|
493 |
-
.animate({opacity: 0}, settings.outDuration, function() {
|
494 |
-
$(this).remove(); // remove the $swapBox container
|
495 |
-
if (pageSwap) {
|
496 |
-
ksMethods.ksSwitchClasses(htmlId, bodyId, htmlClass, bodyClass, pageTitle);
|
497 |
-
}
|
498 |
-
$swapBoxIn
|
499 |
-
.css({display: '', left: '', marginLeft: '', opacity: 0, position: '', top: '', width: '',}) // Reset all setted styles
|
500 |
-
.animate({opacity: 1}, settings.inDuration, function() {
|
501 |
-
ksMethods.animationCallback(hash);
|
502 |
-
ksMethods.ksCheckForSiblings(settings);
|
503 |
-
})
|
504 |
-
.attr('id', swapBoxId).removeClass('ks-swap-box-in');
|
505 |
-
});
|
506 |
-
}
|
507 |
-
},
|
508 |
-
animationCallback: function(hash) {
|
509 |
-
if (hash) {
|
510 |
-
$('html:not(:animated),body:not(:animated)').animate({scrollTop: $(hash).position().top },'normal');
|
511 |
-
}
|
512 |
-
},
|
513 |
-
ksCheckForSiblings: function(settings) {
|
514 |
-
if (settings.bouncingBoxes) {
|
515 |
-
$(document)
|
516 |
-
.find(settings.bouncingBoxes)
|
517 |
-
.animate({opacity: 1}, 400, function() {
|
518 |
-
ksMethods.ksSwapCallback();
|
519 |
-
});
|
520 |
-
} else {
|
521 |
-
ksMethods.ksSwapCallback();
|
522 |
-
}
|
523 |
-
},
|
524 |
-
ksSwitchClasses : function(htmlId, bodyId, htmlClass, bodyClass, pageTitle) {
|
525 |
-
$('html, body').attr({ // remove ids and classes from html and body
|
526 |
-
'class': '',
|
527 |
-
'id' : '',
|
528 |
-
});
|
529 |
-
(htmlId ? $('html').attr('id', htmlId[1]) : ''); // Add IDs from the target page
|
530 |
-
(bodyId ? $('body').attr('id', bodyId[1]) : ''); // Add IDs from the target page
|
531 |
-
(htmlClass ? $('html').addClass(htmlClass[1]) : ''); // Add classes from the target page
|
532 |
-
(bodyClass ? $('body').addClass(bodyClass[1]) : ''); // Add classes from the target page
|
533 |
-
(pageTitle ? $('title').text(pageTitle[1]) : '');
|
534 |
-
},
|
535 |
-
ksCreateLoadBox: function() {
|
536 |
-
if (!$('#ks-loading-box').length) {
|
537 |
-
loadTimer = setTimeout(function() { // Show the loading box if the loadings of contents takes longer than 200ms
|
538 |
-
$('html').append('<div id="ks-loading-box"><div class="ks-loading"></div></div>');
|
539 |
-
$('#ks-loading-box').fadeIn('fast');
|
540 |
-
}, 200);
|
541 |
-
} else {
|
542 |
-
ksMethods.ksRemoveLoadBox();
|
543 |
-
ksMethods.ksCreateLoadBox();
|
544 |
-
}
|
545 |
-
},
|
546 |
-
ksRemoveLoadBox: function() {
|
547 |
-
$('#ks-loading-box').fadeOut('fast').remove();
|
548 |
-
},
|
549 |
-
ksSwapCallback: function() {
|
550 |
-
$('body').css({
|
551 |
-
// overflowY: 'auto',
|
552 |
-
overflowX: 'auto',
|
553 |
-
}); // Prevent scrollbars on animation
|
554 |
-
$(document).trigger('ksSwapCallback'); // Trigger the swap callback event
|
555 |
-
},
|
556 |
-
};
|
557 |
-
|
558 |
-
$.koolSwap = function(method) {
|
559 |
-
if (ksPageSwap[method]) {
|
560 |
-
return ksPageSwap[method].apply($(window), Array.prototype.slice.call(arguments, 1));
|
561 |
-
} else if (typeof method === 'object' || ! method) {
|
562 |
-
return ksPageSwap.init.apply($(window), arguments, false);
|
563 |
-
} else {
|
564 |
-
$.error( 'Method ' + method + ' does not exist on jQuery.KoolSwap' );
|
565 |
-
}
|
566 |
-
};
|
567 |
-
|
568 |
-
$.fn.koolSwap = function(method) {
|
569 |
-
if (ksSelectorSwap[method]) {
|
570 |
-
return ksSelectorSwap[method].apply(this, Array.prototype.slice.call(arguments, 1));
|
571 |
-
} else if (typeof method === 'object' || ! method) {
|
572 |
-
return ksSelectorSwap.init.apply(this, arguments);
|
573 |
-
} else {
|
574 |
-
$.error( 'Method ' + method + ' does not exist on jQuery.KoolSwap' );
|
575 |
-
}
|
576 |
-
};
|
577 |
-
})( jQuery );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
js/libraries/jquery-datepicker/picker_functions.js
CHANGED
@@ -12,7 +12,7 @@ jQuery(document).ready(function ($) {
|
|
12 |
var current_val = '';
|
13 |
}
|
14 |
|
15 |
-
|
16 |
var ret = current_val.split(" ");
|
17 |
var current_date = ret[0];
|
18 |
var current_time = ret[1];
|
12 |
var current_val = '';
|
13 |
}
|
14 |
|
15 |
+
|
16 |
var ret = current_val.split(" ");
|
17 |
var current_date = ret[0];
|
18 |
var current_time = ret[1];
|
js/page_view_track.js
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
jQuery(document).ready(function($) {
|
2 |
+
// Saves variation page views
|
3 |
+
var variation_id = landing_path_info.variation;
|
4 |
+
// Save page view count
|
5 |
+
jQuery.ajax({
|
6 |
+
type: 'POST',
|
7 |
+
url: landing_path_info.admin_url,
|
8 |
+
data: {
|
9 |
+
action: 'lp_record_impression',
|
10 |
+
current_url: window.location.href,
|
11 |
+
variation_id: variation_id
|
12 |
+
// add date?
|
13 |
+
},
|
14 |
+
success: function(user_id){
|
15 |
+
//console.log('LP Page View Fired');
|
16 |
+
},
|
17 |
+
error: function(MLHttpRequest, textStatus, errorThrown){
|
18 |
+
//alert(MLHttpRequest+' '+errorThrown+' '+textStatus);
|
19 |
+
//die();
|
20 |
+
}
|
21 |
+
|
22 |
+
});
|
23 |
+
|
24 |
+
});
|
landing-pages.php
CHANGED
@@ -3,19 +3,19 @@
|
|
3 |
Plugin Name: Landing Pages
|
4 |
Plugin URI: http://www.inboundnow.com/landing-pages/
|
5 |
Description: The first true all-in-one Landing Page solution for WordPress, including ongoing conversion metrics, a/b split testing, unlimited design options and so much more!
|
6 |
-
Version: 1.1
|
7 |
Author: David Wells, Hudson Atwell
|
8 |
Author URI: http://www.inboundnow.com/
|
9 |
*/
|
10 |
-
|
11 |
-
define('LANDINGPAGES_CURRENT_VERSION', '
|
12 |
define('LANDINGPAGES_URLPATH', WP_PLUGIN_URL.'/'.plugin_basename( dirname(__FILE__) ).'/' );
|
13 |
define('LANDINGPAGES_PATH', WP_PLUGIN_DIR.'/'.plugin_basename( dirname(__FILE__) ).'/' );
|
14 |
define('LANDINGPAGES_PLUGIN_SLUG', 'landing-pages' );
|
15 |
-
define('LANDINGPAGES_STORE_URL', 'http://
|
16 |
$uploads = wp_upload_dir();
|
17 |
-
define('LANDINGPAGES_UPLOADS_PATH', $uploads['basedir'].'/landing-pages/templates/' );
|
18 |
-
define('LANDINGPAGES_UPLOADS_URLPATH', $uploads['baseurl'].'/landing-pages/templates/' );
|
19 |
$current_url = "http://".$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"]."";
|
20 |
|
21 |
/* load frontend-only and load global core files */
|
@@ -27,29 +27,35 @@ include_once('modules/module.utils.php');
|
|
27 |
include_once('modules/module.sidebar.php');
|
28 |
include_once('modules/module.widgets.php');
|
29 |
include_once('modules/module.cookies.php');
|
30 |
-
include_once('modules/module.lead-collection.php');
|
31 |
include_once('modules/module.ab-testing.php');
|
|
|
|
|
32 |
|
33 |
-
/* Inbound Core Shared Files */
|
34 |
-
include_once('shared/tracking/store.lead.php'); // Lead Storage
|
35 |
-
include_once('shared/post-type.lead.php'); // Lead CPT
|
36 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
|
38 |
if (is_admin())
|
39 |
{
|
40 |
if(!isset($_SESSION)){@session_start();}
|
|
|
41 |
include_once('functions/functions.admin.php');
|
42 |
include_once('modules/module.global-settings.php');
|
43 |
include_once('modules/module.clone.php');
|
44 |
include_once('modules/module.extension-updater.php');
|
|
|
45 |
include_once('modules/module.install.php');
|
46 |
include_once('modules/module.alert.php');
|
47 |
}
|
48 |
-
|
49 |
-
|
50 |
-
* REGISTER LANDING PAGES ACTIVATION
|
51 |
-
*/
|
52 |
-
|
53 |
register_activation_hook(__FILE__, 'landing_page_activate');
|
54 |
|
55 |
function landing_page_activate()
|
@@ -57,21 +63,24 @@ function landing_page_activate()
|
|
57 |
|
58 |
add_option( 'lp_global_css', '', '', 'no' );
|
59 |
add_option( 'lp_global_js', '', '', 'no' );
|
60 |
-
add_option( 'lp_global_record_admin_actions', '1', '', 'no' );
|
61 |
add_option( 'lp_global_lp_slug', 'go', '', 'no' );
|
62 |
-
|
63 |
-
//add_option( 'lp_split_testing_slug', 'group', '', 'no' );
|
64 |
update_option( 'lp_activate_rewrite_check', '1');
|
65 |
-
|
66 |
//global $wp_rewrite;
|
67 |
//$wp_rewrite->flush_rules();
|
68 |
-
|
69 |
}
|
70 |
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
add_action('lp_init', 'inbound_include_template_functions');
|
76 |
|
77 |
if (!function_exists('inbound_include_template_functions')) {
|
@@ -79,46 +88,38 @@ if (!function_exists('inbound_include_template_functions')) {
|
|
79 |
include_once('shared/functions.templates.php');
|
80 |
}
|
81 |
}
|
82 |
-
|
83 |
-
|
84 |
-
* PREPARE LANDING PAGE TEMPLATE DATA
|
85 |
-
*/
|
86 |
-
|
87 |
if (is_admin())
|
88 |
-
{
|
89 |
include_once('load.extensions.php');
|
90 |
include_once('modules/module.metaboxes.php');
|
91 |
}
|
92 |
|
93 |
|
94 |
-
|
95 |
-
* Hook function that will apply css, js, and record impressions
|
96 |
-
*/
|
97 |
add_action('wp_head','landing_pages_insert_custom_head');
|
98 |
function landing_pages_insert_custom_head() {
|
99 |
global $post;
|
100 |
-
|
101 |
-
if (isset($post)&&'landing-page'==$post->post_type)
|
102 |
{
|
103 |
-
|
104 |
-
$global_record_admin_actions = get_option( 'lp_global_record_admin_actions', '0' );
|
105 |
-
|
106 |
$custom_css_name = apply_filters('lp_custom_css_name','lp-custom-css');
|
107 |
$custom_js_name = apply_filters('lp_custom_js_name','lp-custom-js');
|
108 |
-
//echo $custom_css_name;
|
109 |
$custom_css = get_post_meta($post->ID, $custom_css_name, true);
|
110 |
$custom_js = get_post_meta($post->ID, $custom_js_name, true);
|
111 |
-
//echo $this_id;exit;
|
112 |
|
113 |
-
//Print
|
114 |
if (!stristr($custom_css,'<style'))
|
115 |
{
|
116 |
-
echo '<style type="text/css" id="lp_css_custom">'.$custom_css.'</style>';
|
117 |
}
|
118 |
else
|
119 |
{
|
120 |
echo $custom_css;
|
121 |
}
|
|
|
122 |
if (!stristr($custom_js,'<script'))
|
123 |
{
|
124 |
echo '<script type="text/javascript" id="lp_js_custom">jQuery(document).ready(function($) {
|
@@ -128,21 +129,6 @@ function landing_pages_insert_custom_head() {
|
|
128 |
{
|
129 |
echo $custom_js;
|
130 |
}
|
131 |
-
|
132 |
-
if ($global_record_admin_actions==0&¤t_user_can( 'manage_options' ))
|
133 |
-
{
|
134 |
-
}
|
135 |
-
else
|
136 |
-
{
|
137 |
-
|
138 |
-
if (!lp_determine_spider())
|
139 |
-
{
|
140 |
-
//lp_set_page_views(get_the_ID($this_id));
|
141 |
-
}
|
142 |
-
}
|
143 |
-
|
144 |
-
//rewind_posts();
|
145 |
-
//wp_reset_query();
|
146 |
}
|
147 |
}
|
148 |
|
@@ -150,46 +136,51 @@ function landing_pages_insert_custom_head() {
|
|
150 |
add_filter('the_content','landing_pages_add_conversion_area', 20);
|
151 |
add_filter('get_the_content','landing_pages_add_conversion_area', 20);
|
152 |
function landing_pages_add_conversion_area($content)
|
153 |
-
{
|
154 |
-
|
|
|
155 |
{
|
|
|
156 |
global $post;
|
157 |
-
|
|
|
|
|
158 |
$key = get_post_meta($post->ID, 'lp-selected-template', true);
|
159 |
-
$key = apply_filters('lp_selected_template',$key);
|
160 |
-
|
161 |
if (strstr($key,'-slash-'))
|
162 |
{
|
163 |
$key = str_replace('-slash-','/',$key);
|
164 |
}
|
165 |
-
|
166 |
$my_theme = wp_get_theme($key);
|
167 |
-
//echo $key;
|
168 |
if ($my_theme->exists()||$key=='default')
|
169 |
{
|
|
|
170 |
global $post;
|
171 |
-
$wrapper_class = "";
|
172 |
-
|
173 |
get_post_meta($post->ID, "default-conversion-area-placement", true);
|
174 |
-
|
|
|
175 |
$position = get_post_meta($post->ID, "{$key}-conversion-area-placement", true);
|
|
|
176 |
$position = apply_filters('lp_conversion_area_position', $position, $post, $key);
|
177 |
-
|
178 |
$_SESSION['lp_conversion_area_position'] = $position;
|
179 |
-
|
180 |
-
$content = lp_content_area(null,null,true);
|
181 |
$conversion_area = lp_conversion_area(null,null,true,true);
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
$standardize_form
|
186 |
-
if ($standardize_form)
|
187 |
{
|
188 |
$wrapper_class = lp_discover_important_wrappers($conversion_area);
|
189 |
-
$conversion_area = lp_rebuild_attributes($conversion_area);
|
190 |
}
|
191 |
-
|
192 |
-
$conversion_area = "<div id='lp_container' class='$wrapper_class'>".$conversion_area."</div>";
|
193 |
|
194 |
if ($position=='top')
|
195 |
{
|
@@ -203,15 +194,15 @@ function landing_pages_add_conversion_area($content)
|
|
203 |
{
|
204 |
$content = $content;
|
205 |
}
|
206 |
-
else
|
207 |
-
{
|
208 |
$conversion_area = str_replace("id='lp_container'","id='lp_container' class='lp_form_$position' style='float:$position'",$conversion_area);
|
209 |
$content = $conversion_area.$content;
|
210 |
-
|
211 |
}
|
212 |
-
|
213 |
}
|
214 |
-
|
215 |
}
|
216 |
|
217 |
|
@@ -221,57 +212,57 @@ function landing_pages_add_conversion_area($content)
|
|
221 |
|
222 |
if (is_admin())
|
223 |
{
|
224 |
-
//include_once('modules/module.split-testing.php');
|
225 |
include_once('modules/module.templates.php');
|
226 |
include_once('modules/module.store.php');
|
227 |
|
228 |
// Create Sub-menu
|
229 |
|
230 |
add_action('admin_menu', 'lp_add_menu');
|
231 |
-
|
232 |
function lp_add_menu()
|
233 |
{
|
234 |
//echo 1; exit;
|
235 |
if (current_user_can('manage_options'))
|
236 |
{
|
237 |
-
|
238 |
-
add_submenu_page('edit.php?post_type=landing-page', '
|
239 |
-
|
240 |
-
add_submenu_page('edit.php?post_type=landing-page', '
|
241 |
-
|
|
|
|
|
242 |
add_submenu_page('edit.php?post_type=landing-page', 'Global Settings', 'Global Settings', 'manage_options', 'lp_global_settings','lp_display_global_settings');
|
243 |
|
244 |
// Add settings page for frontend editor
|
245 |
add_submenu_page('edit.php?post_type=landing-page', __('Editor','Editor'), __('Editor','Editor'), 'manage_options', 'lp-frontend-editor', 'lp_frontend_editor_screen');
|
246 |
-
|
247 |
}
|
248 |
}
|
249 |
|
250 |
}
|
251 |
|
252 |
-
|
253 |
-
* MAKE SURE WE USE THE RIGHT TEMPLATE
|
254 |
-
*/
|
255 |
add_filter('single_template', 'lp_custom_template');
|
256 |
|
257 |
function lp_custom_template($single) {
|
258 |
global $wp_query, $post, $query_string;
|
259 |
-
|
260 |
-
$
|
261 |
-
|
262 |
-
|
263 |
-
if (isset($template))
|
264 |
{
|
265 |
-
|
266 |
-
|
|
|
|
|
|
|
267 |
{
|
|
|
268 |
if (strstr($template,'-slash-'))
|
269 |
{
|
270 |
$template = str_replace('-slash-','/',$template);
|
271 |
}
|
272 |
-
|
273 |
$my_theme = wp_get_theme($template);
|
274 |
-
|
275 |
if ($my_theme->exists())
|
276 |
{
|
277 |
return "";
|
@@ -286,41 +277,16 @@ function lp_custom_template($single) {
|
|
286 |
return LANDINGPAGES_PATH.'templates/'.$template.'/index.php';
|
287 |
}
|
288 |
else
|
289 |
-
{
|
290 |
//query_posts ($query_string . '&showposts=1');
|
291 |
return LANDINGPAGES_UPLOADS_PATH.$template.'/index.php';
|
292 |
}
|
293 |
}
|
294 |
}
|
295 |
}
|
296 |
-
return $single;
|
297 |
-
}
|
298 |
-
|
299 |
-
/**
|
300 |
-
* ADD TRACKING SCRIPTS FOR IMPRESSION AND CONVERSION TRACKING
|
301 |
-
*/
|
302 |
|
303 |
-
|
304 |
-
function lp_register_ajax() {
|
305 |
-
$current_url = "http://".$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"]."/";
|
306 |
-
$current_url = trim(str_replace('//','/',"http://".$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"]."/"));
|
307 |
-
global $post;
|
308 |
-
// if leads on add tracking to all pages
|
309 |
-
|
310 |
-
if (@function_exists('wpleads_check_active') && 'landing-page' !== $post->post_type)
|
311 |
-
{
|
312 |
-
require_once(WP_PLUGIN_DIR . '/leads/js/wpl.leads-tracking.js.php'); // This needs consolidation and fixing
|
313 |
-
}
|
314 |
-
else {
|
315 |
-
require_once(LANDINGPAGES_PATH . 'js/ajax.tracking.js.php');
|
316 |
-
}
|
317 |
-
// embed the javascript file that makes the AJAX request
|
318 |
-
//wp_enqueue_script( 'lp-ajax-request', LANDINGPAGES_URLPATH . 'js/ajax.tracking.js.php', array( 'jquery' ) );
|
319 |
-
//wp_localize_script( 'lp-ajax-request', 'myajax', array( 'ajaxurl' => admin_url('admin-ajax.php'), 'current_url' => $current_url, 'standardize_form' => $standardize_form ));
|
320 |
}
|
321 |
|
322 |
-
|
323 |
-
* LOAD THE TEMLATE CUSTOMIZER MODULE
|
324 |
-
*/
|
325 |
-
|
326 |
include_once('modules/module.customizer.php');
|
3 |
Plugin Name: Landing Pages
|
4 |
Plugin URI: http://www.inboundnow.com/landing-pages/
|
5 |
Description: The first true all-in-one Landing Page solution for WordPress, including ongoing conversion metrics, a/b split testing, unlimited design options and so much more!
|
6 |
+
Version: 1.3.1
|
7 |
Author: David Wells, Hudson Atwell
|
8 |
Author URI: http://www.inboundnow.com/
|
9 |
*/
|
10 |
+
|
11 |
+
define('LANDINGPAGES_CURRENT_VERSION', '1.3.1' );
|
12 |
define('LANDINGPAGES_URLPATH', WP_PLUGIN_URL.'/'.plugin_basename( dirname(__FILE__) ).'/' );
|
13 |
define('LANDINGPAGES_PATH', WP_PLUGIN_DIR.'/'.plugin_basename( dirname(__FILE__) ).'/' );
|
14 |
define('LANDINGPAGES_PLUGIN_SLUG', 'landing-pages' );
|
15 |
+
define('LANDINGPAGES_STORE_URL', 'http://www.inboundnow.com/landing-pages/' );
|
16 |
$uploads = wp_upload_dir();
|
17 |
+
define('LANDINGPAGES_UPLOADS_PATH', $uploads['basedir'].'/landing-pages/templates/' );
|
18 |
+
define('LANDINGPAGES_UPLOADS_URLPATH', $uploads['baseurl'].'/landing-pages/templates/' );
|
19 |
$current_url = "http://".$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"]."";
|
20 |
|
21 |
/* load frontend-only and load global core files */
|
27 |
include_once('modules/module.sidebar.php');
|
28 |
include_once('modules/module.widgets.php');
|
29 |
include_once('modules/module.cookies.php');
|
|
|
30 |
include_once('modules/module.ab-testing.php');
|
31 |
+
add_action('init', 'lp_click_track_redirect', 11); // Click Tracking init
|
32 |
+
include_once('modules/module.click-tracking.php');
|
33 |
|
|
|
|
|
|
|
34 |
|
35 |
+
/* Inbound Core Shared Files. Lead files take presidence */
|
36 |
+
add_action( 'plugins_loaded', 'inbound_load_shared_landing_pages' );
|
37 |
+
function inbound_load_shared_landing_pages(){
|
38 |
+
include_once('shared/tracking/store.lead.php'); // Lead Storage from landing pages
|
39 |
+
include_once('shared/classes/form.class.php'); // Mirrored forms
|
40 |
+
include_once('shared/inboundnow/inboundnow.extension-licensing.php'); // Inboundnow Package Licensing
|
41 |
+
include_once('shared/inboundnow/inboundnow.extension-updating.php'); // Inboundnow Package Updating
|
42 |
+
}
|
43 |
+
include_once('shared/inbound-shortcodes/inbound-shortcodes.php'); // Shared Shortcodes
|
44 |
|
45 |
if (is_admin())
|
46 |
{
|
47 |
if(!isset($_SESSION)){@session_start();}
|
48 |
+
|
49 |
include_once('functions/functions.admin.php');
|
50 |
include_once('modules/module.global-settings.php');
|
51 |
include_once('modules/module.clone.php');
|
52 |
include_once('modules/module.extension-updater.php');
|
53 |
+
include_once('modules/module.extension-licensing.php');
|
54 |
include_once('modules/module.install.php');
|
55 |
include_once('modules/module.alert.php');
|
56 |
}
|
57 |
+
|
58 |
+
// REGISTER LANDING PAGES ACTIVATION
|
|
|
|
|
|
|
59 |
register_activation_hook(__FILE__, 'landing_page_activate');
|
60 |
|
61 |
function landing_page_activate()
|
63 |
|
64 |
add_option( 'lp_global_css', '', '', 'no' );
|
65 |
add_option( 'lp_global_js', '', '', 'no' );
|
|
|
66 |
add_option( 'lp_global_lp_slug', 'go', '', 'no' );
|
|
|
|
|
67 |
update_option( 'lp_activate_rewrite_check', '1');
|
68 |
+
|
69 |
//global $wp_rewrite;
|
70 |
//$wp_rewrite->flush_rules();
|
71 |
+
|
72 |
}
|
73 |
|
74 |
+
register_deactivation_hook(__FILE__, 'landing_page_deactivate');
|
75 |
+
|
76 |
+
function landing_page_deactivate()
|
77 |
+
{
|
78 |
+
global $wp_rewrite;
|
79 |
+
$wp_rewrite->flush_rules();
|
80 |
+
}
|
81 |
+
|
82 |
+
|
83 |
+
//LOAD FUNCTIONS THAT WILL BE USED BY NATIVE TEMPLATES
|
84 |
add_action('lp_init', 'inbound_include_template_functions');
|
85 |
|
86 |
if (!function_exists('inbound_include_template_functions')) {
|
88 |
include_once('shared/functions.templates.php');
|
89 |
}
|
90 |
}
|
91 |
+
|
92 |
+
// PREPARE LANDING PAGE TEMPLATE DATA
|
|
|
|
|
|
|
93 |
if (is_admin())
|
94 |
+
{
|
95 |
include_once('load.extensions.php');
|
96 |
include_once('modules/module.metaboxes.php');
|
97 |
}
|
98 |
|
99 |
|
100 |
+
// Hook function that will apply css, js
|
|
|
|
|
101 |
add_action('wp_head','landing_pages_insert_custom_head');
|
102 |
function landing_pages_insert_custom_head() {
|
103 |
global $post;
|
104 |
+
|
105 |
+
if (isset($post)&&'landing-page'==$post->post_type)
|
106 |
{
|
107 |
+
|
|
|
|
|
108 |
$custom_css_name = apply_filters('lp_custom_css_name','lp-custom-css');
|
109 |
$custom_js_name = apply_filters('lp_custom_js_name','lp-custom-js');
|
|
|
110 |
$custom_css = get_post_meta($post->ID, $custom_css_name, true);
|
111 |
$custom_js = get_post_meta($post->ID, $custom_js_name, true);
|
|
|
112 |
|
113 |
+
//Print Custom CSS
|
114 |
if (!stristr($custom_css,'<style'))
|
115 |
{
|
116 |
+
echo '<style type="text/css" id="lp_css_custom">'.$custom_css.'</style>';
|
117 |
}
|
118 |
else
|
119 |
{
|
120 |
echo $custom_css;
|
121 |
}
|
122 |
+
//Print Custom JS
|
123 |
if (!stristr($custom_js,'<script'))
|
124 |
{
|
125 |
echo '<script type="text/javascript" id="lp_js_custom">jQuery(document).ready(function($) {
|
129 |
{
|
130 |
echo $custom_js;
|
131 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
132 |
}
|
133 |
}
|
134 |
|
136 |
add_filter('the_content','landing_pages_add_conversion_area', 20);
|
137 |
add_filter('get_the_content','landing_pages_add_conversion_area', 20);
|
138 |
function landing_pages_add_conversion_area($content)
|
139 |
+
{
|
140 |
+
|
141 |
+
if ('landing-page'==get_post_type() && !is_admin())
|
142 |
{
|
143 |
+
|
144 |
global $post;
|
145 |
+
|
146 |
+
remove_action('the_content', 'landing_pages_add_conversion_area');
|
147 |
+
|
148 |
$key = get_post_meta($post->ID, 'lp-selected-template', true);
|
149 |
+
$key = apply_filters('lp_selected_template',$key);
|
150 |
+
|
151 |
if (strstr($key,'-slash-'))
|
152 |
{
|
153 |
$key = str_replace('-slash-','/',$key);
|
154 |
}
|
155 |
+
|
156 |
$my_theme = wp_get_theme($key);
|
157 |
+
//echo $key;
|
158 |
if ($my_theme->exists()||$key=='default')
|
159 |
{
|
160 |
+
|
161 |
global $post;
|
162 |
+
$wrapper_class = "";
|
163 |
+
|
164 |
get_post_meta($post->ID, "default-conversion-area-placement", true);
|
165 |
+
|
166 |
+
|
167 |
$position = get_post_meta($post->ID, "{$key}-conversion-area-placement", true);
|
168 |
+
|
169 |
$position = apply_filters('lp_conversion_area_position', $position, $post, $key);
|
170 |
+
|
171 |
$_SESSION['lp_conversion_area_position'] = $position;
|
172 |
+
|
|
|
173 |
$conversion_area = lp_conversion_area(null,null,true,true);
|
174 |
+
|
175 |
+
|
176 |
+
$standardize_form = get_option( 'lp-main-landing-page-auto-format-forms' , 0); // conditional to check for options
|
177 |
+
if ($standardize_form)
|
|
|
178 |
{
|
179 |
$wrapper_class = lp_discover_important_wrappers($conversion_area);
|
180 |
+
$conversion_area = lp_rebuild_attributes($conversion_area);
|
181 |
}
|
182 |
+
|
183 |
+
$conversion_area = "<div id='lp_container' class='$wrapper_class'>".$conversion_area."</div>";
|
184 |
|
185 |
if ($position=='top')
|
186 |
{
|
194 |
{
|
195 |
$content = $content;
|
196 |
}
|
197 |
+
else
|
198 |
+
{
|
199 |
$conversion_area = str_replace("id='lp_container'","id='lp_container' class='lp_form_$position' style='float:$position'",$conversion_area);
|
200 |
$content = $conversion_area.$content;
|
201 |
+
|
202 |
}
|
203 |
+
|
204 |
}
|
205 |
+
|
206 |
}
|
207 |
|
208 |
|
212 |
|
213 |
if (is_admin())
|
214 |
{
|
|
|
215 |
include_once('modules/module.templates.php');
|
216 |
include_once('modules/module.store.php');
|
217 |
|
218 |
// Create Sub-menu
|
219 |
|
220 |
add_action('admin_menu', 'lp_add_menu');
|
221 |
+
|
222 |
function lp_add_menu()
|
223 |
{
|
224 |
//echo 1; exit;
|
225 |
if (current_user_can('manage_options'))
|
226 |
{
|
227 |
+
|
228 |
+
add_submenu_page('edit.php?post_type=landing-page', 'Forms', 'Forms', 'manage_options', 'inbound-forms-redirect',100);
|
229 |
+
|
230 |
+
add_submenu_page('edit.php?post_type=landing-page', 'Templates', 'Templates', 'manage_options', 'lp_manage_templates','lp_manage_templates',100);
|
231 |
+
|
232 |
+
add_submenu_page('edit.php?post_type=landing-page', 'Get Addons', 'Get Addons', 'manage_options', 'lp_store','lp_store_display',100);
|
233 |
+
|
234 |
add_submenu_page('edit.php?post_type=landing-page', 'Global Settings', 'Global Settings', 'manage_options', 'lp_global_settings','lp_display_global_settings');
|
235 |
|
236 |
// Add settings page for frontend editor
|
237 |
add_submenu_page('edit.php?post_type=landing-page', __('Editor','Editor'), __('Editor','Editor'), 'manage_options', 'lp-frontend-editor', 'lp_frontend_editor_screen');
|
238 |
+
|
239 |
}
|
240 |
}
|
241 |
|
242 |
}
|
243 |
|
244 |
+
// MAKE SURE WE USE THE RIGHT TEMPLATE
|
|
|
|
|
245 |
add_filter('single_template', 'lp_custom_template');
|
246 |
|
247 |
function lp_custom_template($single) {
|
248 |
global $wp_query, $post, $query_string;
|
249 |
+
//echo 2;exit;
|
250 |
+
if ($post->post_type == "landing-page")
|
|
|
|
|
|
|
251 |
{
|
252 |
+
$template = get_post_meta($post->ID, 'lp-selected-template', true);
|
253 |
+
$template = apply_filters('lp_selected_template',$template);
|
254 |
+
|
255 |
+
|
256 |
+
if (isset($template))
|
257 |
{
|
258 |
+
|
259 |
if (strstr($template,'-slash-'))
|
260 |
{
|
261 |
$template = str_replace('-slash-','/',$template);
|
262 |
}
|
263 |
+
|
264 |
$my_theme = wp_get_theme($template);
|
265 |
+
|
266 |
if ($my_theme->exists())
|
267 |
{
|
268 |
return "";
|
277 |
return LANDINGPAGES_PATH.'templates/'.$template.'/index.php';
|
278 |
}
|
279 |
else
|
280 |
+
{
|
281 |
//query_posts ($query_string . '&showposts=1');
|
282 |
return LANDINGPAGES_UPLOADS_PATH.$template.'/index.php';
|
283 |
}
|
284 |
}
|
285 |
}
|
286 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
287 |
|
288 |
+
return $single;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
289 |
}
|
290 |
|
291 |
+
// LOAD THE TEMLATE CUSTOMIZER MODULE
|
|
|
|
|
|
|
292 |
include_once('modules/module.customizer.php');
|
libraries/class-tgm-plugin-activation.php
CHANGED
@@ -10,7 +10,7 @@
|
|
10 |
* @license http://opensource.org/licenses/gpl-2.0.php GPL v2 or later
|
11 |
* @link https://github.com/thomasgriffin/TGM-Plugin-Activation
|
12 |
*/
|
13 |
-
|
14 |
/*
|
15 |
Copyright 2012 Thomas Griffin (email : thomas@thomasgriffinmedia.com)
|
16 |
|
@@ -92,15 +92,6 @@ if ( ! class_exists( 'TGM_Plugin_Activation' ) ) {
|
|
92 |
*/
|
93 |
public $menu = 'install-required-plugins';
|
94 |
|
95 |
-
/**
|
96 |
-
* Text domain for localization support.
|
97 |
-
*
|
98 |
-
* @since 1.1.0
|
99 |
-
*
|
100 |
-
* @var string
|
101 |
-
*/
|
102 |
-
public $domain = 'tgmpa';
|
103 |
-
|
104 |
/**
|
105 |
* Default absolute path to folder containing pre-packaged plugin zip files.
|
106 |
*
|
@@ -161,27 +152,29 @@ if ( ! class_exists( 'TGM_Plugin_Activation' ) ) {
|
|
161 |
self::$instance =& $this;
|
162 |
|
163 |
$this->strings = array(
|
164 |
-
'page_title' => __( 'Install Required Plugins',
|
165 |
-
'menu_title' => __( 'Install Plugins',
|
166 |
-
'installing' => __( 'Installing Plugin: %s',
|
167 |
-
'oops' => __( 'Something went wrong.',
|
168 |
-
'notice_can_install_required' => _n_noop( 'This theme requires the following plugin: %1$s', 'This theme requires the following plugins: %1$s' ),
|
169 |
-
'notice_can_install_recommended' => _n_noop( 'This theme recommends the following plugin: %1$s', 'This theme recommends the following plugins: %1$s' ),
|
170 |
'notice_cannot_install' => _n_noop( 'Sorry, but you do not have the correct permissions to install the %s plugin. Contact the administrator of this site for help on getting the plugin installed.', 'Sorry, but you do not have the correct permissions to install the %s plugins. Contact the administrator of this site for help on getting the plugins installed.' ),
|
171 |
-
'notice_can_activate_required' => _n_noop( 'The following required plugin is currently inactive: %1$s', 'The following required plugins are currently inactive: %1$s' ),
|
172 |
-
'notice_can_activate_recommended' => _n_noop( 'The following recommended plugin is currently inactive: %1$s', 'The following recommended plugins are currently inactive: %1$s' ),
|
173 |
-
'reason_why' => _n_noop( '%1$s', '%1$s' ),
|
174 |
'notice_cannot_activate' => _n_noop( 'Sorry, but you do not have the correct permissions to activate the %s plugin. Contact the administrator of this site for help on getting the plugin activated.', 'Sorry, but you do not have the correct permissions to activate the %s plugins. Contact the administrator of this site for help on getting the plugins activated.' ),
|
175 |
-
'notice_ask_to_update' => _n_noop( 'The following plugin needs to be updated to its latest version to ensure maximum compatibility with this theme: %1$s', 'The following plugins need to be updated to their latest version to ensure maximum compatibility with this theme: %1$s' ),
|
176 |
'notice_cannot_update' => _n_noop( 'Sorry, but you do not have the correct permissions to update the %s plugin. Contact the administrator of this site for help on getting the plugin updated.', 'Sorry, but you do not have the correct permissions to update the %s plugins. Contact the administrator of this site for help on getting the plugins updated.' ),
|
177 |
'install_link' => _n_noop( 'Begin installing plugin', 'Begin installing plugins' ),
|
178 |
'activate_link' => _n_noop( 'Activate installed plugin', 'Activate installed plugins' ),
|
179 |
-
'return' => __( 'Return to Required Plugins Installer',
|
180 |
-
'
|
181 |
-
'
|
|
|
|
|
|
|
182 |
);
|
183 |
|
184 |
-
/**
|
185 |
do_action_ref_array( 'tgmpa_init', array( &$this ) );
|
186 |
|
187 |
/** When the rest of WP has loaded, kick-start the rest of the class */
|
@@ -373,7 +366,7 @@ if ( ! class_exists( 'TGM_Plugin_Activation' ) ) {
|
|
373 |
<h2><?php echo esc_html( get_admin_page_title() ); ?></h2>
|
374 |
<?php $plugin_table->prepare_items(); ?>
|
375 |
|
376 |
-
<?php if ( isset( $this->message ) ) _e( wp_kses_post( $this->message ),
|
377 |
|
378 |
<form id="tgmpa-plugins" action="" method="post">
|
379 |
<input type="hidden" name="tgmpa-page" value="<?php echo $this->menu; ?>" />
|
@@ -449,10 +442,10 @@ if ( ! class_exists( 'TGM_Plugin_Activation' ) ) {
|
|
449 |
/** Set plugin source to WordPress API link if available */
|
450 |
if ( isset( $plugin['source'] ) && 'repo' == $plugin['source'] ) {
|
451 |
$api = plugins_api( 'plugin_information', array( 'slug' => $plugin['slug'], 'fields' => array( 'sections' => false ) ) );
|
452 |
-
|
453 |
if ( is_wp_error( $api ) )
|
454 |
wp_die( $this->strings['oops'] . var_dump( $api ) );
|
455 |
-
|
456 |
if ( isset( $api->download_link ) )
|
457 |
$plugin['source'] = $api->download_link;
|
458 |
}
|
@@ -488,7 +481,7 @@ if ( ! class_exists( 'TGM_Plugin_Activation' ) ) {
|
|
488 |
|
489 |
if ( is_wp_error( $activate ) ) {
|
490 |
echo '<div id="message" class="error"><p>' . $activate->get_error_message() . '</p></div>';
|
491 |
-
echo '<p><a href="' . add_query_arg( 'page', $this->menu, admin_url( $this->parent_url_slug ) ) . '" title="' . esc_attr( $this->strings['return'] ) . '" target="_parent">' .
|
492 |
return true; // End it here if there is an error with automatic activation
|
493 |
}
|
494 |
else {
|
@@ -500,7 +493,7 @@ if ( ! class_exists( 'TGM_Plugin_Activation' ) ) {
|
|
500 |
$complete = array();
|
501 |
foreach ( $this->plugins as $plugin ) {
|
502 |
if ( ! is_plugin_active( $plugin['file_path'] ) ) {
|
503 |
-
echo '<p><a href="' . add_query_arg( 'page', $this->menu, admin_url( $this->parent_url_slug ) ) . '" title="' . esc_attr( $this->strings['return'] ) . '" target="_parent">' .
|
504 |
$complete[] = $plugin;
|
505 |
break;
|
506 |
}
|
@@ -515,7 +508,7 @@ if ( ! class_exists( 'TGM_Plugin_Activation' ) ) {
|
|
515 |
|
516 |
/** All plugins are active, so we display the complete string and hide the plugin menu */
|
517 |
if ( empty( $complete ) ) {
|
518 |
-
echo '<p>' . sprintf( $this->strings['complete'], '<a href="' . admin_url() . '" title="' .
|
519 |
echo '<style type="text/css">#adminmenu .wp-submenu li.current { display: none !important; }</style>';
|
520 |
}
|
521 |
|
@@ -537,13 +530,13 @@ if ( ! class_exists( 'TGM_Plugin_Activation' ) ) {
|
|
537 |
|
538 |
if ( is_wp_error( $activate ) ) {
|
539 |
echo '<div id="message" class="error"><p>' . $activate->get_error_message() . '</p></div>';
|
540 |
-
echo '<p><a href="' . add_query_arg( 'page', $this->menu, admin_url( $this->parent_url_slug ) ) . '" title="' . esc_attr( $this->strings['return'] ) . '" target="_parent">' .
|
541 |
return true; // End it here if there is an error with activation
|
542 |
}
|
543 |
else {
|
544 |
/** Make sure message doesn't display again if bulk activation is performed immediately after a single activation */
|
545 |
if ( ! isset( $_POST[sanitize_key( 'action' )] ) ) {
|
546 |
-
$msg =
|
547 |
echo '<div id="message" class="updated"><p>' . $msg . '</p></div>';
|
548 |
}
|
549 |
}
|
@@ -613,12 +606,10 @@ if ( ! class_exists( 'TGM_Plugin_Activation' ) ) {
|
|
613 |
$install_link_count++; // Increment the install link count
|
614 |
if ( current_user_can( 'install_plugins' ) ) {
|
615 |
if ( $plugin['required'] )
|
616 |
-
$message['notice_can_install_required'][] = $plugin['name']
|
617 |
-
|
618 |
/** This plugin is only recommended */
|
619 |
else
|
620 |
-
$message['notice_can_install_recommended'][] = $plugin['name']
|
621 |
-
|
622 |
}
|
623 |
/** Need higher privileges to install the plugin */
|
624 |
else {
|
@@ -631,11 +622,10 @@ if ( ! class_exists( 'TGM_Plugin_Activation' ) ) {
|
|
631 |
$activate_link_count++; // Increment the activate link count
|
632 |
if ( current_user_can( 'activate_plugins' ) ) {
|
633 |
if ( ( isset( $plugin['required'] ) ) && ( $plugin['required'] ) )
|
634 |
-
$message['notice_can_activate_required'][] = $plugin['name']
|
635 |
/** This plugin is only recommended */
|
636 |
else {
|
637 |
-
$message['notice_can_activate_recommended'][] = $plugin['name']
|
638 |
-
|
639 |
}
|
640 |
}
|
641 |
/** Need higher privileges to activate the plugin */
|
@@ -682,7 +672,7 @@ if ( ! class_exists( 'TGM_Plugin_Activation' ) ) {
|
|
682 |
$linked_plugin_groups[] = '<a href="' . esc_url( $url ) . '" class="thickbox" title="' . $plugin_group_single_name . '">' . $plugin_group_single_name . '</a>';
|
683 |
}
|
684 |
else {
|
685 |
-
$linked_plugin_groups[] = $plugin_group_single_name
|
686 |
}
|
687 |
|
688 |
if ( isset( $linked_plugin_groups ) && (array) $linked_plugin_groups )
|
@@ -692,12 +682,12 @@ if ( ! class_exists( 'TGM_Plugin_Activation' ) ) {
|
|
692 |
$last_plugin = array_pop( $plugin_groups ); // Pop off last name to prep for readability
|
693 |
$imploded = empty( $plugin_groups ) ? '<em>' . $last_plugin . '</em>' : '<em>' . ( implode( ', ', $plugin_groups ) . '</em> and <em>' . $last_plugin . '</em>' );
|
694 |
|
695 |
-
$rendered .= '<p>' . sprintf( translate_nooped_plural( $this->strings[$type], $count,
|
696 |
}
|
697 |
|
698 |
/** Setup variables to determine if action links are needed */
|
699 |
-
$show_install_link = $install_link ? '<a href="' . add_query_arg( 'page', $this->menu, admin_url( $this->parent_url_slug ) ) . '">' . translate_nooped_plural( $this->strings['install_link'], $install_link_count,
|
700 |
-
$show_activate_link = $activate_link ? '<a href="' . admin_url( 'plugins.php' ) . '">' . translate_nooped_plural( $this->strings['activate_link'], $activate_link_count,
|
701 |
|
702 |
/** Define all of the action links */
|
703 |
$action_links = apply_filters(
|
@@ -705,7 +695,7 @@ if ( ! class_exists( 'TGM_Plugin_Activation' ) ) {
|
|
705 |
array(
|
706 |
'install' => ( current_user_can( 'install_plugins' ) ) ? $show_install_link : '',
|
707 |
'activate' => ( current_user_can( 'activate_plugins' ) ) ? $show_activate_link : '',
|
708 |
-
'dismiss' => '<a class="dismiss-notice" href="' . add_query_arg( 'tgmpa-dismiss', 'dismiss_admin_notices' ) . '" target="_parent">' .
|
709 |
)
|
710 |
);
|
711 |
|
@@ -917,7 +907,7 @@ if ( ! class_exists( 'TGM_Plugin_Activation' ) ) {
|
|
917 |
|
918 |
/** Set file_path parameter for any installed plugins */
|
919 |
$this->populate_file_path();
|
920 |
-
|
921 |
$installed_plugins = get_plugins();
|
922 |
|
923 |
foreach ( $this->plugins as $plugin ) {
|
@@ -1092,51 +1082,51 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
|
|
1092 |
|
1093 |
if ( isset( $plugin['external_url'] ) ) {
|
1094 |
/** The plugin is linked to an external source */
|
1095 |
-
$table_data[$i]['source'] = __( 'External Link',
|
1096 |
}
|
1097 |
elseif ( isset( $plugin['source'] ) ) {
|
1098 |
/** The plugin must be from a private repository */
|
1099 |
if ( preg_match( '|^http(s)?://|', $plugin['source'] ) )
|
1100 |
-
$table_data[$i]['source'] = __( 'Private Repository',
|
1101 |
/** The plugin is pre-packaged with the theme */
|
1102 |
else
|
1103 |
-
$table_data[$i]['source'] = __( 'Pre-Packaged',
|
1104 |
}
|
1105 |
/** The plugin is from the WordPress repository */
|
1106 |
else {
|
1107 |
-
$table_data[$i]['source'] = __( 'WordPress Repository',
|
1108 |
}
|
1109 |
|
1110 |
-
$table_data[$i]['type'] = $plugin['required'] ? __( 'Required',
|
1111 |
|
1112 |
if ( ! isset( $installed_plugins[$plugin['file_path']] ) )
|
1113 |
-
$table_data[$i]['status'] = sprintf( '%1$s', __( 'Not Installed',
|
1114 |
elseif ( is_plugin_inactive( $plugin['file_path'] ) )
|
1115 |
-
$table_data[$i]['status'] = sprintf( '%1$s', __( 'Installed But Not Activated',
|
1116 |
|
1117 |
$table_data[$i]['file_path'] = $plugin['file_path'];
|
1118 |
$table_data[$i]['url'] = isset( $plugin['source'] ) ? $plugin['source'] : 'repo';
|
1119 |
|
1120 |
$i++;
|
1121 |
}
|
1122 |
-
|
1123 |
/** Sort plugins by Required/Recommended type and by alphabetical listing within each type */
|
1124 |
$resort = array();
|
1125 |
$req = array();
|
1126 |
$rec = array();
|
1127 |
-
|
1128 |
/** Grab all the plugin types */
|
1129 |
foreach ( $table_data as $plugin )
|
1130 |
$resort[] = $plugin['type'];
|
1131 |
-
|
1132 |
/** Sort each plugin by type */
|
1133 |
foreach ( $resort as $type )
|
1134 |
if ( 'Required' == $type )
|
1135 |
$req[] = $type;
|
1136 |
else
|
1137 |
$rec[] = $type;
|
1138 |
-
|
1139 |
-
/** Sort alphabetically each plugin type array, merge them and then sort in reverse (lists Required plugins first) */
|
1140 |
sort( $req );
|
1141 |
sort( $rec );
|
1142 |
array_merge( $resort, $req, $rec );
|
@@ -1282,7 +1272,7 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
|
|
1282 |
*/
|
1283 |
public function no_items() {
|
1284 |
|
1285 |
-
printf( __( 'No plugins to install or activate. <a href="%1$s" title="Return to the Dashboard">Return to the Dashboard</a>',
|
1286 |
echo '<style type="text/css">#adminmenu .wp-submenu li.current { display: none !important; }</style>';
|
1287 |
|
1288 |
}
|
@@ -1298,10 +1288,10 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
|
|
1298 |
|
1299 |
$columns = array(
|
1300 |
'cb' => '<input type="checkbox" />',
|
1301 |
-
'plugin' => __( 'Plugin',
|
1302 |
-
'source' => __( 'Source',
|
1303 |
-
'type' => __( 'Type',
|
1304 |
-
'status' => __( 'Status',
|
1305 |
);
|
1306 |
|
1307 |
return $columns;
|
@@ -1319,8 +1309,8 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
|
|
1319 |
public function get_bulk_actions() {
|
1320 |
|
1321 |
$actions = array(
|
1322 |
-
'tgmpa-bulk-install' => __( 'Install',
|
1323 |
-
'tgmpa-bulk-activate' => __( 'Activate',
|
1324 |
);
|
1325 |
|
1326 |
return $actions;
|
@@ -1545,7 +1535,7 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
|
|
1545 |
if ( is_wp_error( $activate ) )
|
1546 |
echo '<div id="message" class="error"><p>' . $activate->get_error_message() . '</p></div>';
|
1547 |
else
|
1548 |
-
printf( '<div id="message" class="updated"><p>%1$s %2$s</p></div>', _n( 'The following plugin was activated successfully:', 'The following plugins were activated successfully:', $count,
|
1549 |
|
1550 |
/** Update recently activated plugins option */
|
1551 |
$recent = (array) get_option( 'recently_activated' );
|
@@ -1594,7 +1584,7 @@ if ( ! class_exists( 'TGMPA_List_Table' ) ) {
|
|
1594 |
*
|
1595 |
* @since 2.2.0
|
1596 |
*/
|
1597 |
-
if ( ! class_exists( 'WP_Upgrader' ) && ( isset( $_GET[sanitize_key( 'page' )] ) && TGM_Plugin_Activation::$instance->menu
|
1598 |
require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
|
1599 |
|
1600 |
if ( ! class_exists( 'TGM_Bulk_Installer' ) ) {
|
@@ -1830,12 +1820,12 @@ if ( ! class_exists( 'WP_Upgrader' ) && ( isset( $_GET[sanitize_key( 'page' )] )
|
|
1830 |
*/
|
1831 |
public function install_strings() {
|
1832 |
|
1833 |
-
$this->strings['no_package'] = __( 'Install package not available.',
|
1834 |
-
$this->strings['downloading_package'] = __( 'Downloading install package from <span class="code">%s</span>…',
|
1835 |
-
$this->strings['unpack_package'] = __( 'Unpacking the package…',
|
1836 |
-
$this->strings['installing_package'] = __( 'Installing the plugin…',
|
1837 |
-
$this->strings['process_failed'] = __( 'Plugin install failed.',
|
1838 |
-
$this->strings['process_success'] = __( 'Plugin installed successfully.',
|
1839 |
|
1840 |
}
|
1841 |
|
@@ -1846,8 +1836,8 @@ if ( ! class_exists( 'WP_Upgrader' ) && ( isset( $_GET[sanitize_key( 'page' )] )
|
|
1846 |
*/
|
1847 |
public function activate_strings() {
|
1848 |
|
1849 |
-
$this->strings['activation_failed'] = __( 'Plugin activation failed.',
|
1850 |
-
$this->strings['activation_success'] = __( 'Plugin activated successfully.',
|
1851 |
|
1852 |
}
|
1853 |
|
@@ -1956,19 +1946,19 @@ if ( ! class_exists( 'WP_Upgrader' ) && ( isset( $_GET[sanitize_key( 'page' )] )
|
|
1956 |
|
1957 |
/** Automatic activation strings */
|
1958 |
if ( TGM_Plugin_Activation::$instance->is_automatic ) {
|
1959 |
-
$this->upgrader->strings['skin_upgrade_start'] = __( 'The installation and activation process is starting. This process may take a while on some hosts, so please be patient.',
|
1960 |
-
$this->upgrader->strings['skin_update_successful'] = __( '%1$s installed and activated successfully.',
|
1961 |
-
$this->upgrader->strings['skin_upgrade_end'] = __( 'All installations and activations have been completed.',
|
1962 |
-
$this->upgrader->strings['skin_before_update_header'] = __( 'Installing and Activating Plugin %1$s (%2$d/%3$d)',
|
1963 |
}
|
1964 |
/** Default installation strings */
|
1965 |
else {
|
1966 |
-
$this->upgrader->strings['skin_upgrade_start'] = __( 'The installation process is starting. This process may take a while on some hosts, so please be patient.',
|
1967 |
-
$this->upgrader->strings['skin_update_failed_error'] = __( 'An error occurred while installing %1$s: <strong>%2$s</strong>.',
|
1968 |
-
$this->upgrader->strings['skin_update_failed'] = __( 'The installation of %1$s failed.',
|
1969 |
-
$this->upgrader->strings['skin_update_successful'] = __( '%1$s installed successfully.',
|
1970 |
-
$this->upgrader->strings['skin_upgrade_end'] = __( 'All installations have been completed.',
|
1971 |
-
$this->upgrader->strings['skin_before_update_header'] = __( 'Installing Plugin %1$s (%2$d/%3$d)',
|
1972 |
}
|
1973 |
|
1974 |
}
|
@@ -1978,7 +1968,7 @@ if ( ! class_exists( 'WP_Upgrader' ) && ( isset( $_GET[sanitize_key( 'page' )] )
|
|
1978 |
*
|
1979 |
* @since 2.2.0
|
1980 |
*/
|
1981 |
-
public function before() {
|
1982 |
|
1983 |
/** We are currently in the plugin installation loop, so set to true */
|
1984 |
$this->in_loop = true;
|
@@ -2000,7 +1990,7 @@ if ( ! class_exists( 'WP_Upgrader' ) && ( isset( $_GET[sanitize_key( 'page' )] )
|
|
2000 |
*
|
2001 |
* @since 2.2.0
|
2002 |
*/
|
2003 |
-
public function after() {
|
2004 |
|
2005 |
/** Close install strings */
|
2006 |
echo '</p></div>';
|
@@ -2044,7 +2034,7 @@ if ( ! class_exists( 'WP_Upgrader' ) && ( isset( $_GET[sanitize_key( 'page' )] )
|
|
2044 |
$complete = array();
|
2045 |
foreach ( TGM_Plugin_Activation::$instance->plugins as $plugin ) {
|
2046 |
if ( ! is_plugin_active( $plugin['file_path'] ) ) {
|
2047 |
-
echo '<p><a href="' . add_query_arg( 'page', TGM_Plugin_Activation::$instance->menu, admin_url( TGM_Plugin_Activation::$instance->parent_url_slug ) ) . '" title="' . esc_attr( TGM_Plugin_Activation::$instance->strings['return'] ) . '" target="_parent">' .
|
2048 |
$complete[] = $plugin;
|
2049 |
break;
|
2050 |
}
|
@@ -2059,7 +2049,7 @@ if ( ! class_exists( 'WP_Upgrader' ) && ( isset( $_GET[sanitize_key( 'page' )] )
|
|
2059 |
|
2060 |
/** All plugins are active, so we display the complete string and hide the menu to protect users */
|
2061 |
if ( empty( $complete ) ) {
|
2062 |
-
echo '<p>' . sprintf( TGM_Plugin_Activation::$instance->strings['complete'], '<a href="' . admin_url() . '" title="' . __( 'Return to the Dashboard',
|
2063 |
echo '<style type="text/css">#adminmenu .wp-submenu li.current { display: none !important; }</style>';
|
2064 |
}
|
2065 |
|
10 |
* @license http://opensource.org/licenses/gpl-2.0.php GPL v2 or later
|
11 |
* @link https://github.com/thomasgriffin/TGM-Plugin-Activation
|
12 |
*/
|
13 |
+
|
14 |
/*
|
15 |
Copyright 2012 Thomas Griffin (email : thomas@thomasgriffinmedia.com)
|
16 |
|
92 |
*/
|
93 |
public $menu = 'install-required-plugins';
|
94 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
95 |
/**
|
96 |
* Default absolute path to folder containing pre-packaged plugin zip files.
|
97 |
*
|
152 |
self::$instance =& $this;
|
153 |
|
154 |
$this->strings = array(
|
155 |
+
'page_title' => __( 'Install Required Plugins', 'tgmpa' ),
|
156 |
+
'menu_title' => __( 'Install Plugins', 'tgmpa' ),
|
157 |
+
'installing' => __( 'Installing Plugin: %s', 'tgmpa' ),
|
158 |
+
'oops' => __( 'Something went wrong.', 'tgmpa' ),
|
159 |
+
'notice_can_install_required' => _n_noop( 'This theme requires the following plugin: %1$s.', 'This theme requires the following plugins: %1$s.' ),
|
160 |
+
'notice_can_install_recommended' => _n_noop( 'This theme recommends the following plugin: %1$s.', 'This theme recommends the following plugins: %1$s.' ),
|
161 |
'notice_cannot_install' => _n_noop( 'Sorry, but you do not have the correct permissions to install the %s plugin. Contact the administrator of this site for help on getting the plugin installed.', 'Sorry, but you do not have the correct permissions to install the %s plugins. Contact the administrator of this site for help on getting the plugins installed.' ),
|
162 |
+
'notice_can_activate_required' => _n_noop( 'The following required plugin is currently inactive: %1$s.', 'The following required plugins are currently inactive: %1$s.' ),
|
163 |
+
'notice_can_activate_recommended' => _n_noop( 'The following recommended plugin is currently inactive: %1$s.', 'The following recommended plugins are currently inactive: %1$s.' ),
|
|
|
164 |
'notice_cannot_activate' => _n_noop( 'Sorry, but you do not have the correct permissions to activate the %s plugin. Contact the administrator of this site for help on getting the plugin activated.', 'Sorry, but you do not have the correct permissions to activate the %s plugins. Contact the administrator of this site for help on getting the plugins activated.' ),
|
165 |
+
'notice_ask_to_update' => _n_noop( 'The following plugin needs to be updated to its latest version to ensure maximum compatibility with this theme: %1$s.', 'The following plugins need to be updated to their latest version to ensure maximum compatibility with this theme: %1$s.' ),
|
166 |
'notice_cannot_update' => _n_noop( 'Sorry, but you do not have the correct permissions to update the %s plugin. Contact the administrator of this site for help on getting the plugin updated.', 'Sorry, but you do not have the correct permissions to update the %s plugins. Contact the administrator of this site for help on getting the plugins updated.' ),
|
167 |
'install_link' => _n_noop( 'Begin installing plugin', 'Begin installing plugins' ),
|
168 |
'activate_link' => _n_noop( 'Activate installed plugin', 'Activate installed plugins' ),
|
169 |
+
'return' => __( 'Return to Required Plugins Installer', 'tgmpa' ),
|
170 |
+
'dashboard' => __( 'Return to the dashboard', 'tgmpa' ),
|
171 |
+
'plugin_activated' => __( 'Plugin activated successfully.', 'tgmpa' ),
|
172 |
+
'activated_successfully' => __( 'The following plugin was activated successfully:', 'tgmpa' ),
|
173 |
+
'complete' => __( 'All plugins installed and activated successfully. %1$s', 'tgmpa' ),
|
174 |
+
'dismiss' => __( 'Dismiss this notice', 'tgmpa' ),
|
175 |
);
|
176 |
|
177 |
+
/** Announce that the class is ready, and pass the object (for advanced use) */
|
178 |
do_action_ref_array( 'tgmpa_init', array( &$this ) );
|
179 |
|
180 |
/** When the rest of WP has loaded, kick-start the rest of the class */
|
366 |
<h2><?php echo esc_html( get_admin_page_title() ); ?></h2>
|
367 |
<?php $plugin_table->prepare_items(); ?>
|
368 |
|
369 |
+
<?php if ( isset( $this->message ) ) _e( wp_kses_post( $this->message ), 'tgmpa' ); ?>
|
370 |
|
371 |
<form id="tgmpa-plugins" action="" method="post">
|
372 |
<input type="hidden" name="tgmpa-page" value="<?php echo $this->menu; ?>" />
|
442 |
/** Set plugin source to WordPress API link if available */
|
443 |
if ( isset( $plugin['source'] ) && 'repo' == $plugin['source'] ) {
|
444 |
$api = plugins_api( 'plugin_information', array( 'slug' => $plugin['slug'], 'fields' => array( 'sections' => false ) ) );
|
445 |
+
|
446 |
if ( is_wp_error( $api ) )
|
447 |
wp_die( $this->strings['oops'] . var_dump( $api ) );
|
448 |
+
|
449 |
if ( isset( $api->download_link ) )
|
450 |
$plugin['source'] = $api->download_link;
|
451 |
}
|
481 |
|
482 |
if ( is_wp_error( $activate ) ) {
|
483 |
echo '<div id="message" class="error"><p>' . $activate->get_error_message() . '</p></div>';
|
484 |
+
echo '<p><a href="' . add_query_arg( 'page', $this->menu, admin_url( $this->parent_url_slug ) ) . '" title="' . esc_attr( $this->strings['return'] ) . '" target="_parent">' . $this->strings['return'] . '</a></p>';
|
485 |
return true; // End it here if there is an error with automatic activation
|
486 |
}
|
487 |
else {
|
493 |
$complete = array();
|
494 |
foreach ( $this->plugins as $plugin ) {
|
495 |
if ( ! is_plugin_active( $plugin['file_path'] ) ) {
|
496 |
+
echo '<p><a href="' . add_query_arg( 'page', $this->menu, admin_url( $this->parent_url_slug ) ) . '" title="' . esc_attr( $this->strings['return'] ) . '" target="_parent">' . $this->strings['return'] . '</a></p>';
|
497 |
$complete[] = $plugin;
|
498 |
break;
|
499 |
}
|
508 |
|
509 |
/** All plugins are active, so we display the complete string and hide the plugin menu */
|
510 |
if ( empty( $complete ) ) {
|
511 |
+
echo '<p>' . sprintf( $this->strings['complete'], '<a href="' . admin_url() . '" title="' . esc_attr( $this->strings['domain'] ) . '">' . $this->strings['domain'] . '</a>' ) . '</p>';
|
512 |
echo '<style type="text/css">#adminmenu .wp-submenu li.current { display: none !important; }</style>';
|
513 |
}
|
514 |
|
530 |
|
531 |
if ( is_wp_error( $activate ) ) {
|
532 |
echo '<div id="message" class="error"><p>' . $activate->get_error_message() . '</p></div>';
|
533 |
+
echo '<p><a href="' . add_query_arg( 'page', $this->menu, admin_url( $this->parent_url_slug ) ) . '" title="' . esc_attr( $this->strings['return'] ) . '" target="_parent">' . $this->strings['return'] . '</a></p>';
|
534 |
return true; // End it here if there is an error with activation
|
535 |
}
|
536 |
else {
|
537 |
/** Make sure message doesn't display again if bulk activation is performed immediately after a single activation */
|
538 |
if ( ! isset( $_POST[sanitize_key( 'action' )] ) ) {
|
539 |
+
$msg = $this->strings['activated_successfully'] . ' <strong>' . $plugin['name'] . '</strong>';
|
540 |
echo '<div id="message" class="updated"><p>' . $msg . '</p></div>';
|
541 |
}
|
542 |
}
|
606 |
$install_link_count++; // Increment the install link count
|
607 |
if ( current_user_can( 'install_plugins' ) ) {
|
608 |
if ( $plugin['required'] )
|
609 |
+
$message['notice_can_install_required'][] = $plugin['name'];
|
|
|
610 |
/** This plugin is only recommended */
|
611 |
else
|
612 |
+
$message['notice_can_install_recommended'][] = $plugin['name'];
|
|
|
613 |
}
|
614 |
/** Need higher privileges to install the plugin */
|
615 |
else {
|
622 |
$activate_link_count++; // Increment the activate link count
|
623 |
if ( current_user_can( 'activate_plugins' ) ) {
|
624 |
if ( ( isset( $plugin['required'] ) ) && ( $plugin['required'] ) )
|
625 |
+
$message['notice_can_activate_required'][] = $plugin['name'];
|
626 |
/** This plugin is only recommended */
|
627 |
else {
|
628 |
+
$message['notice_can_activate_recommended'][] = $plugin['name'];
|
|
|
629 |
}
|
630 |
}
|
631 |
/** Need higher privileges to activate the plugin */
|
672 |
$linked_plugin_groups[] = '<a href="' . esc_url( $url ) . '" class="thickbox" title="' . $plugin_group_single_name . '">' . $plugin_group_single_name . '</a>';
|
673 |
}
|
674 |
else {
|
675 |
+
$linked_plugin_groups[] = $plugin_group_single_name; // No hyperlink
|
676 |
}
|
677 |
|
678 |
if ( isset( $linked_plugin_groups ) && (array) $linked_plugin_groups )
|
682 |
$last_plugin = array_pop( $plugin_groups ); // Pop off last name to prep for readability
|
683 |
$imploded = empty( $plugin_groups ) ? '<em>' . $last_plugin . '</em>' : '<em>' . ( implode( ', ', $plugin_groups ) . '</em> and <em>' . $last_plugin . '</em>' );
|
684 |
|
685 |
+
$rendered .= '<p>' . sprintf( translate_nooped_plural( $this->strings[$type], $count, 'tgmpa' ), $imploded, $count ) . '</p>'; // All messages now stored
|
686 |
}
|
687 |
|
688 |
/** Setup variables to determine if action links are needed */
|
689 |
+
$show_install_link = $install_link ? '<a href="' . add_query_arg( 'page', $this->menu, admin_url( $this->parent_url_slug ) ) . '">' . translate_nooped_plural( $this->strings['install_link'], $install_link_count, 'tgmpa' ) . '</a>' : '';
|
690 |
+
$show_activate_link = $activate_link ? '<a href="' . admin_url( 'plugins.php' ) . '">' . translate_nooped_plural( $this->strings['activate_link'], $activate_link_count, 'tgmpa' ) . '</a>' : '';
|
691 |
|
692 |
/** Define all of the action links */
|
693 |
$action_links = apply_filters(
|
695 |
array(
|
696 |
'install' => ( current_user_can( 'install_plugins' ) ) ? $show_install_link : '',
|
697 |
'activate' => ( current_user_can( 'activate_plugins' ) ) ? $show_activate_link : '',
|
698 |
+
'dismiss' => '<a class="dismiss-notice" href="' . add_query_arg( 'tgmpa-dismiss', 'dismiss_admin_notices' ) . '" target="_parent">' . $this->strings['dismiss'] . '</a>',
|
699 |
)
|
700 |
);
|
701 |
|
907 |
|
908 |
/** Set file_path parameter for any installed plugins */
|
909 |
$this->populate_file_path();
|
910 |
+
|
911 |
$installed_plugins = get_plugins();
|
912 |
|
913 |
foreach ( $this->plugins as $plugin ) {
|
1082 |
|
1083 |
if ( isset( $plugin['external_url'] ) ) {
|
1084 |
/** The plugin is linked to an external source */
|
1085 |
+
$table_data[$i]['source'] = __( 'External Link', 'tgmpa' );
|
1086 |
}
|
1087 |
elseif ( isset( $plugin['source'] ) ) {
|
1088 |
/** The plugin must be from a private repository */
|
1089 |
if ( preg_match( '|^http(s)?://|', $plugin['source'] ) )
|
1090 |
+
$table_data[$i]['source'] = __( 'Private Repository', 'tgmpa' );
|
1091 |
/** The plugin is pre-packaged with the theme */
|
1092 |
else
|
1093 |
+
$table_data[$i]['source'] = __( 'Pre-Packaged', 'tgmpa' );
|
1094 |
}
|
1095 |
/** The plugin is from the WordPress repository */
|
1096 |
else {
|
1097 |
+
$table_data[$i]['source'] = __( 'WordPress Repository', 'tgmpa' );
|
1098 |
}
|
1099 |
|
1100 |
+
$table_data[$i]['type'] = $plugin['required'] ? __( 'Required', 'tgmpa' ) : __( 'Recommended', 'tgmpa' );
|
1101 |
|
1102 |
if ( ! isset( $installed_plugins[$plugin['file_path']] ) )
|
1103 |
+
$table_data[$i]['status'] = sprintf( '%1$s', __( 'Not Installed', 'tgmpa' ) );
|
1104 |
elseif ( is_plugin_inactive( $plugin['file_path'] ) )
|
1105 |
+
$table_data[$i]['status'] = sprintf( '%1$s', __( 'Installed But Not Activated', 'tgmpa' ) );
|
1106 |
|
1107 |
$table_data[$i]['file_path'] = $plugin['file_path'];
|
1108 |
$table_data[$i]['url'] = isset( $plugin['source'] ) ? $plugin['source'] : 'repo';
|
1109 |
|
1110 |
$i++;
|
1111 |
}
|
1112 |
+
|
1113 |
/** Sort plugins by Required/Recommended type and by alphabetical listing within each type */
|
1114 |
$resort = array();
|
1115 |
$req = array();
|
1116 |
$rec = array();
|
1117 |
+
|
1118 |
/** Grab all the plugin types */
|
1119 |
foreach ( $table_data as $plugin )
|
1120 |
$resort[] = $plugin['type'];
|
1121 |
+
|
1122 |
/** Sort each plugin by type */
|
1123 |
foreach ( $resort as $type )
|
1124 |
if ( 'Required' == $type )
|
1125 |
$req[] = $type;
|
1126 |
else
|
1127 |
$rec[] = $type;
|
1128 |
+
|
1129 |
+
/** Sort alphabetically each plugin type array, merge them and then sort in reverse (lists Required plugins first) */
|
1130 |
sort( $req );
|
1131 |
sort( $rec );
|
1132 |
array_merge( $resort, $req, $rec );
|
1272 |
*/
|
1273 |
public function no_items() {
|
1274 |
|
1275 |
+
printf( __( 'No plugins to install or activate. <a href="%1$s" title="Return to the Dashboard">Return to the Dashboard</a>', 'tgmpa' ), admin_url() );
|
1276 |
echo '<style type="text/css">#adminmenu .wp-submenu li.current { display: none !important; }</style>';
|
1277 |
|
1278 |
}
|
1288 |
|
1289 |
$columns = array(
|
1290 |
'cb' => '<input type="checkbox" />',
|
1291 |
+
'plugin' => __( 'Plugin', 'tgmpa' ),
|
1292 |
+
'source' => __( 'Source', 'tgmpa' ),
|
1293 |
+
'type' => __( 'Type', 'tgmpa' ),
|
1294 |
+
'status' => __( 'Status', 'tgmpa' )
|
1295 |
);
|
1296 |
|
1297 |
return $columns;
|
1309 |
public function get_bulk_actions() {
|
1310 |
|
1311 |
$actions = array(
|
1312 |
+
'tgmpa-bulk-install' => __( 'Install', 'tgmpa' ),
|
1313 |
+
'tgmpa-bulk-activate' => __( 'Activate', 'tgmpa' ),
|
1314 |
);
|
1315 |
|
1316 |
return $actions;
|
1535 |
if ( is_wp_error( $activate ) )
|
1536 |
echo '<div id="message" class="error"><p>' . $activate->get_error_message() . '</p></div>';
|
1537 |
else
|
1538 |
+
printf( '<div id="message" class="updated"><p>%1$s %2$s</p></div>', _n( 'The following plugin was activated successfully:', 'The following plugins were activated successfully:', $count, 'tgmpa' ), $imploded );
|
1539 |
|
1540 |
/** Update recently activated plugins option */
|
1541 |
$recent = (array) get_option( 'recently_activated' );
|
1584 |
*
|
1585 |
* @since 2.2.0
|
1586 |
*/
|
1587 |
+
if ( ! class_exists( 'WP_Upgrader' ) && ( isset( $_GET[sanitize_key( 'page' )] ) && TGM_Plugin_Activation::$instance->menu === $_GET[sanitize_key( 'page' )] ) ) {
|
1588 |
require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
|
1589 |
|
1590 |
if ( ! class_exists( 'TGM_Bulk_Installer' ) ) {
|
1820 |
*/
|
1821 |
public function install_strings() {
|
1822 |
|
1823 |
+
$this->strings['no_package'] = __( 'Install package not available.', 'tgmpa' );
|
1824 |
+
$this->strings['downloading_package'] = __( 'Downloading install package from <span class="code">%s</span>…', 'tgmpa' );
|
1825 |
+
$this->strings['unpack_package'] = __( 'Unpacking the package…', 'tgmpa' );
|
1826 |
+
$this->strings['installing_package'] = __( 'Installing the plugin…', 'tgmpa' );
|
1827 |
+
$this->strings['process_failed'] = __( 'Plugin install failed.', 'tgmpa' );
|
1828 |
+
$this->strings['process_success'] = __( 'Plugin installed successfully.', 'tgmpa' );
|
1829 |
|
1830 |
}
|
1831 |
|
1836 |
*/
|
1837 |
public function activate_strings() {
|
1838 |
|
1839 |
+
$this->strings['activation_failed'] = __( 'Plugin activation failed.', 'tgmpa' );
|
1840 |
+
$this->strings['activation_success'] = __( 'Plugin activated successfully.', 'tgmpa' );
|
1841 |
|
1842 |
}
|
1843 |
|
1946 |
|
1947 |
/** Automatic activation strings */
|
1948 |
if ( TGM_Plugin_Activation::$instance->is_automatic ) {
|
1949 |
+
$this->upgrader->strings['skin_upgrade_start'] = __( 'The installation and activation process is starting. This process may take a while on some hosts, so please be patient.', 'tgmpa' );
|
1950 |
+
$this->upgrader->strings['skin_update_successful'] = __( '%1$s installed and activated successfully.', 'tgmpa' ) . ' <a onclick="%2$s" href="#" class="hide-if-no-js"><span>' . __( 'Show Details', 'tgmpa' ) . '</span><span class="hidden">' . __( 'Hide Details', 'tgmpa' ) . '</span>.</a>';
|
1951 |
+
$this->upgrader->strings['skin_upgrade_end'] = __( 'All installations and activations have been completed.', 'tgmpa' );
|
1952 |
+
$this->upgrader->strings['skin_before_update_header'] = __( 'Installing and Activating Plugin %1$s (%2$d/%3$d)', 'tgmpa' );
|
1953 |
}
|
1954 |
/** Default installation strings */
|
1955 |
else {
|
1956 |
+
$this->upgrader->strings['skin_upgrade_start'] = __( 'The installation process is starting. This process may take a while on some hosts, so please be patient.', 'tgmpa' );
|
1957 |
+
$this->upgrader->strings['skin_update_failed_error'] = __( 'An error occurred while installing %1$s: <strong>%2$s</strong>.', 'tgmpa' );
|
1958 |
+
$this->upgrader->strings['skin_update_failed'] = __( 'The installation of %1$s failed.', 'tgmpa' );
|
1959 |
+
$this->upgrader->strings['skin_update_successful'] = __( '%1$s installed successfully.', 'tgmpa' ) . ' <a onclick="%2$s" href="#" class="hide-if-no-js"><span>' . __( 'Show Details', 'tgmpa' ) . '</span><span class="hidden">' . __( 'Hide Details', 'tgmpa' ) . '</span>.</a>';
|
1960 |
+
$this->upgrader->strings['skin_upgrade_end'] = __( 'All installations have been completed.', 'tgmpa' );
|
1961 |
+
$this->upgrader->strings['skin_before_update_header'] = __( 'Installing Plugin %1$s (%2$d/%3$d)', 'tgmpa' );
|
1962 |
}
|
1963 |
|
1964 |
}
|
1968 |
*
|
1969 |
* @since 2.2.0
|
1970 |
*/
|
1971 |
+
public function before( $title='' ) {
|
1972 |
|
1973 |
/** We are currently in the plugin installation loop, so set to true */
|
1974 |
$this->in_loop = true;
|
1990 |
*
|
1991 |
* @since 2.2.0
|
1992 |
*/
|
1993 |
+
public function after( $title='' ) {
|
1994 |
|
1995 |
/** Close install strings */
|
1996 |
echo '</p></div>';
|
2034 |
$complete = array();
|
2035 |
foreach ( TGM_Plugin_Activation::$instance->plugins as $plugin ) {
|
2036 |
if ( ! is_plugin_active( $plugin['file_path'] ) ) {
|
2037 |
+
echo '<p><a href="' . add_query_arg( 'page', TGM_Plugin_Activation::$instance->menu, admin_url( TGM_Plugin_Activation::$instance->parent_url_slug ) ) . '" title="' . esc_attr( TGM_Plugin_Activation::$instance->strings['return'] ) . '" target="_parent">' . TGM_Plugin_Activation::$instance->strings['return'] . '</a></p>';
|
2038 |
$complete[] = $plugin;
|
2039 |
break;
|
2040 |
}
|
2049 |
|
2050 |
/** All plugins are active, so we display the complete string and hide the menu to protect users */
|
2051 |
if ( empty( $complete ) ) {
|
2052 |
+
echo '<p>' . sprintf( TGM_Plugin_Activation::$instance->strings['complete'], '<a href="' . admin_url() . '" title="' . __( 'Return to the Dashboard', 'tgmpa' ) . '">' . __( 'Return to the Dashboard', 'tgmpa' ) . '</a>' ) . '</p>';
|
2053 |
echo '<style type="text/css">#adminmenu .wp-submenu li.current { display: none !important; }</style>';
|
2054 |
}
|
2055 |
|
load.extensions.php
CHANGED
@@ -9,7 +9,7 @@
|
|
9 |
{
|
10 |
foreach ($template_paths as $name)
|
11 |
{
|
12 |
-
if ($name != ".svn"){
|
13 |
include_once(LANDINGPAGES_PATH."/templates/$name/config.php");
|
14 |
}
|
15 |
}
|
@@ -28,10 +28,44 @@
|
|
28 |
{
|
29 |
foreach ($template_paths as $name)
|
30 |
{
|
31 |
-
|
32 |
-
|
|
|
33 |
}
|
34 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
}
|
36 |
|
37 |
//Now load all config.php files with their custom meta data
|
@@ -40,11 +74,12 @@
|
|
40 |
{
|
41 |
foreach ($template_paths as $name)
|
42 |
{
|
43 |
-
if ($name != ".svn"){
|
44 |
include_once(LANDINGPAGES_PATH."/templates/$name/config.php");
|
45 |
}
|
46 |
}
|
47 |
}
|
|
|
48 |
|
49 |
/**
|
50 |
* DECLARE HELPER FUNCTIONS
|
@@ -54,19 +89,67 @@
|
|
54 |
function lp_get_extension_data()
|
55 |
{
|
56 |
global $lp_data;
|
57 |
-
//print_r($lp_data);exit;
|
58 |
-
//ADD METABOX - SELECTED TEMPLATE
|
59 |
-
$lp_data['lp']['options'][] = lp_add_option('lp',"radio","selected-template","default","Select Template","This option provides a placeholder for the selected template data", $options=null);
|
60 |
|
61 |
-
//
|
62 |
-
$
|
63 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
//IMPORT EXTERNAL DATA
|
65 |
$lp_data = apply_filters( 'lp_extension_data' , $lp_data);
|
66 |
|
67 |
return $lp_data;
|
68 |
}
|
69 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
|
71 |
function lp_get_core_template_paths()
|
72 |
{
|
@@ -121,8 +204,20 @@ function lp_get_extension_data_cats($array)
|
|
121 |
{
|
122 |
if ($key=='lp'||substr($key,0,4)=='ext-')
|
123 |
continue;
|
124 |
-
|
125 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
126 |
$name = str_replace(array('-','_'),' ',$cat_value);
|
127 |
$name = ucwords($name);
|
128 |
if (!isset($template_cats[$cat_value]))
|
@@ -140,7 +235,6 @@ function lp_get_extension_data_cats($array)
|
|
140 |
$template_cats[$cat_value]['value'] = $cat_value;
|
141 |
}
|
142 |
}
|
143 |
-
//print_r($template_cats);exit;
|
144 |
|
145 |
return $template_cats;
|
146 |
}
|
9 |
{
|
10 |
foreach ($template_paths as $name)
|
11 |
{
|
12 |
+
if ($name != ".svn" && $name != ".git"){
|
13 |
include_once(LANDINGPAGES_PATH."/templates/$name/config.php");
|
14 |
}
|
15 |
}
|
28 |
{
|
29 |
foreach ($template_paths as $name)
|
30 |
{
|
31 |
+
$match = FALSE;
|
32 |
+
if (strpos($name, 'tmp') !== FALSE) {
|
33 |
+
$match = TRUE;
|
34 |
}
|
35 |
+
if ($name != ".svn" && $name != ".git" && $match === FALSE){
|
36 |
+
|
37 |
+
include_once($extended_templates_path."$name/config.php");
|
38 |
+
$extended_templates[$name] = array('slug'=>$name);
|
39 |
+
}
|
40 |
+
}
|
41 |
+
|
42 |
+
//now add license key inputs to global settings area
|
43 |
+
add_filter('lp_define_global_settings', 'lp_add_template_license_keys',99,1);
|
44 |
+
function lp_add_template_license_keys($lp_global_settings)
|
45 |
+
{
|
46 |
+
$lp_data = lp_get_extension_data();
|
47 |
+
|
48 |
+
$lp_global_settings['lp-license-keys']['settings'][] = array(
|
49 |
+
'id' => 'template-license-keys-header',
|
50 |
+
'description' => "Head to http://www.inboundnow.com/ to retrieve your license key for this template.",
|
51 |
+
'type' => 'header',
|
52 |
+
'default' => '<h3 class="lp_global_settings_header">Template License Keys</h3>'
|
53 |
+
);
|
54 |
+
|
55 |
+
foreach ($lp_data as $key=>$data)
|
56 |
+
{
|
57 |
+
$template_name = $lp_data[$key]['info']['label'];
|
58 |
+
$lp_global_settings['lp-license-keys']['settings'][] = array(
|
59 |
+
'id' => $key,
|
60 |
+
'label' => $template_name,
|
61 |
+
'slug' => $key,
|
62 |
+
'description' => "Head to http://www.inboundnow.com/ to retrieve your license key for this template.",
|
63 |
+
'type' => 'license-key',
|
64 |
+
);
|
65 |
+
}
|
66 |
+
|
67 |
+
return $lp_global_settings;
|
68 |
+
}
|
69 |
}
|
70 |
|
71 |
//Now load all config.php files with their custom meta data
|
74 |
{
|
75 |
foreach ($template_paths as $name)
|
76 |
{
|
77 |
+
if ($name != ".svn" && $name != ".git"){
|
78 |
include_once(LANDINGPAGES_PATH."/templates/$name/config.php");
|
79 |
}
|
80 |
}
|
81 |
}
|
82 |
+
|
83 |
|
84 |
/**
|
85 |
* DECLARE HELPER FUNCTIONS
|
89 |
function lp_get_extension_data()
|
90 |
{
|
91 |
global $lp_data;
|
|
|
|
|
|
|
92 |
|
93 |
+
//add core settings to main tab
|
94 |
+
$parent_key = 'lp';
|
95 |
+
$lp_data[$parent_key]['settings'] =
|
96 |
+
array(
|
97 |
+
//ADD METABOX - SELECTED TEMPLATE
|
98 |
+
array(
|
99 |
+
'id' => 'selected-template',
|
100 |
+
'label' => 'Select Template',
|
101 |
+
'description' => "This option provides a placeholder for the selected template data.",
|
102 |
+
'type' => 'radio', // this is not honored. Template selection setting is handled uniquely by core.
|
103 |
+
'default' => 'default',
|
104 |
+
'options' => null // this is not honored. Template selection setting is handled uniquely by core.
|
105 |
+
),
|
106 |
+
array(
|
107 |
+
'id' => 'main-headline',
|
108 |
+
'label' => 'Set Main Headline',
|
109 |
+
'description' => "Set Main Headline",
|
110 |
+
'type' => 'text', // this is not honored. Main Headline Input setting is handled uniquely by core.
|
111 |
+
'default' => '',
|
112 |
+
'options' => null
|
113 |
+
),
|
114 |
+
);
|
115 |
+
|
116 |
//IMPORT EXTERNAL DATA
|
117 |
$lp_data = apply_filters( 'lp_extension_data' , $lp_data);
|
118 |
|
119 |
return $lp_data;
|
120 |
}
|
121 |
|
122 |
+
/* Provide backwards compatibility for older data array model */
|
123 |
+
add_filter('lp_extension_data','lp_rebuild_old_data_configurations_to_suit_new_convention');
|
124 |
+
function lp_rebuild_old_data_configurations_to_suit_new_convention($lp_data)
|
125 |
+
{
|
126 |
+
foreach ($lp_data as $parent_key => $subarray)
|
127 |
+
{
|
128 |
+
if (is_array($subarray))
|
129 |
+
{
|
130 |
+
foreach ($subarray as $k=>$subsubarray)
|
131 |
+
{
|
132 |
+
/* change 'options' key to 'settings' */
|
133 |
+
if ($k=='options')
|
134 |
+
$lp_data[$parent_key]['settings'] = $subsubarray;
|
135 |
+
|
136 |
+
if ($k=='category')
|
137 |
+
$lp_data[$parent_key]['info']['category'] = $subsubarray;
|
138 |
+
|
139 |
+
if ($k=='version')
|
140 |
+
$lp_data[$parent_key]['info']['version'] = $subsubarray;
|
141 |
+
|
142 |
+
if ($k=='label')
|
143 |
+
$lp_data[$parent_key]['info']['label'] = $subsubarray;
|
144 |
+
|
145 |
+
if ($k=='description')
|
146 |
+
$lp_data[$parent_key]['info']['description'] = $subsubarray;
|
147 |
+
}
|
148 |
+
}
|
149 |
+
}
|
150 |
+
|
151 |
+
return $lp_data;
|
152 |
+
}
|
153 |
|
154 |
function lp_get_core_template_paths()
|
155 |
{
|
204 |
{
|
205 |
if ($key=='lp'||substr($key,0,4)=='ext-')
|
206 |
continue;
|
207 |
+
|
208 |
+
/* allot for older lp_data model */
|
209 |
+
if (isset($val['category']))
|
210 |
+
{
|
211 |
+
$cat_value = $val['category'];
|
212 |
+
}
|
213 |
+
else
|
214 |
+
{
|
215 |
+
if (isset($val['info']['category']))
|
216 |
+
{
|
217 |
+
$cat_value = $val['info']['category'];
|
218 |
+
}
|
219 |
+
}
|
220 |
+
|
221 |
$name = str_replace(array('-','_'),' ',$cat_value);
|
222 |
$name = ucwords($name);
|
223 |
if (!isset($template_cats[$cat_value]))
|
235 |
$template_cats[$cat_value]['value'] = $cat_value;
|
236 |
}
|
237 |
}
|
|
|
238 |
|
239 |
return $template_cats;
|
240 |
}
|
modules/module.ab-testing.php
CHANGED
@@ -2,19 +2,19 @@
|
|
2 |
if (is_admin())
|
3 |
{
|
4 |
include_once(LANDINGPAGES_PATH.'modules/module.metaboxes-ab-testing.php');
|
5 |
-
|
6 |
add_action('init','lp_ab_testing_admin_init');
|
7 |
|
8 |
function lp_ab_testing_admin_init($hook)
|
9 |
-
{
|
10 |
if (!is_admin()||!isset($_GET['post']))
|
11 |
return;
|
12 |
-
|
13 |
$post = get_post($_GET['post']);
|
14 |
-
|
15 |
if (isset($post)&&($post->post_type=='landing-page'&&(isset($_GET['action'])&&$_GET['action']=='edit')))
|
16 |
{
|
17 |
-
|
18 |
$current_variation_id = lp_ab_testing_get_current_variation_id();
|
19 |
//echo $current_variation_id;
|
20 |
$variations = get_post_meta($post->ID,'lp-ab-variations', true);
|
@@ -22,8 +22,8 @@ if (is_admin())
|
|
22 |
//echo $variations;exit;
|
23 |
//remove landing page's main save_post action
|
24 |
if ($current_variation_id>0)
|
25 |
-
{
|
26 |
-
remove_action('save_post','lp_save_meta',10);
|
27 |
}
|
28 |
|
29 |
//check for delete command
|
@@ -33,10 +33,10 @@ if (is_admin())
|
|
33 |
$array_variations = lp_ab_unset_variation($array_variations,$_GET['lp-variation-id']);
|
34 |
$variations = implode(',' , $array_variations);
|
35 |
update_post_meta($post->ID,'lp-ab-variations', $variations);
|
36 |
-
|
37 |
$suffix = '-'.$_GET['lp-variation-id'];
|
38 |
$len = strlen($suffix);
|
39 |
-
|
40 |
//delete each meta value associated with variation
|
41 |
global $wpdb;
|
42 |
$data = array();
|
@@ -45,7 +45,7 @@ if (is_admin())
|
|
45 |
FROM $wpdb->postmeta
|
46 |
WHERE `post_id` = ".$_GET['post']."
|
47 |
");
|
48 |
-
|
49 |
foreach($wpdb->last_result as $k => $v){
|
50 |
$data[$v->meta_key] = $v->meta_value;
|
51 |
};
|
@@ -56,15 +56,15 @@ if (is_admin())
|
|
56 |
{
|
57 |
delete_post_meta($_GET['post'], $key, $value);
|
58 |
}
|
59 |
-
}
|
60 |
-
|
61 |
-
$current_variation_id = 0;
|
62 |
-
$_SESSION['lp_ab_test_open_variation'] = 0;
|
63 |
}
|
64 |
|
65 |
//check for pause command
|
66 |
if (isset($_GET['ab-action'])&&$_GET['ab-action']=='pause-variation')
|
67 |
-
{
|
68 |
if ($_GET['lp-variation-id']==0)
|
69 |
{
|
70 |
update_post_meta( $post->ID , 'lp_ab_variation_status' , '0' );
|
@@ -72,12 +72,12 @@ if (is_admin())
|
|
72 |
else
|
73 |
{
|
74 |
update_post_meta( $post->ID , 'lp_ab_variation_status-'.$_GET['lp-variation-id'] , '0');
|
75 |
-
}
|
76 |
}
|
77 |
-
|
78 |
//check for pause command
|
79 |
if (isset($_GET['ab-action'])&&$_GET['ab-action']=='play-variation')
|
80 |
-
{
|
81 |
if ($_GET['lp-variation-id']==0)
|
82 |
{
|
83 |
update_post_meta( $post->ID , 'lp_ab_variation_status' , '1' );
|
@@ -85,16 +85,16 @@ if (is_admin())
|
|
85 |
else
|
86 |
{
|
87 |
update_post_meta( $post->ID , 'lp_ab_variation_status-'.$_GET['lp-variation-id'] , '1');
|
88 |
-
}
|
89 |
}
|
90 |
-
|
91 |
//return;
|
92 |
//echo $current_variation_id;;
|
93 |
-
|
94 |
-
(isset($_GET['new-variation'])&&$_GET['new-variation']==1) ? $new_variation = 1 : $new_variation = 0;
|
95 |
|
96 |
-
$
|
97 |
-
|
|
|
|
|
98 |
//prepare for new variation creation - use A as default content if not being cloned
|
99 |
if (($new_variation==1&&!isset($_GET['clone']))||isset($_GET['clone'])&&$_GET['clone']==0)
|
100 |
{
|
@@ -106,9 +106,7 @@ if (is_admin())
|
|
106 |
$content_area = get_post_field('content-'.$_GET['clone'], $_GET['post']);
|
107 |
$content_area = wpautop($content_area);
|
108 |
}
|
109 |
-
|
110 |
-
//echo $content_area;exit;
|
111 |
-
|
112 |
//if new variation and cloning then programatically prepare the next variation id
|
113 |
if($new_variation==1&&isset($_GET['clone']))
|
114 |
{
|
@@ -117,7 +115,7 @@ if (is_admin())
|
|
117 |
|
118 |
$lid = end($array_variations);
|
119 |
$current_variation_id = $lid+1;
|
120 |
-
|
121 |
$_SESSION['lp_ab_test_open_variation'] = $current_variation_id;
|
122 |
}
|
123 |
//echo $current_variation_id;exit;
|
@@ -125,24 +123,24 @@ if (is_admin())
|
|
125 |
wp_enqueue_style('lp-ab-testing-admin-css', LANDINGPAGES_URLPATH . 'css/admin-ab-testing.css');
|
126 |
wp_enqueue_script('lp-ab-testing-admin-js', LANDINGPAGES_URLPATH . 'js/admin/admin.post-edit-ab-testing.js', array( 'jquery' ));
|
127 |
wp_localize_script( 'lp-ab-testing-admin-js', 'variation', array( 'pid' => $_GET['post'], 'vid' => $current_variation_id , 'new_variation' => $new_variation , 'variations'=> $variations , 'content_area' => $content_area ));
|
128 |
-
|
129 |
}
|
130 |
|
131 |
}
|
132 |
-
|
133 |
/* force visual editor to open in text mode */
|
134 |
-
|
135 |
function lp_ab_testing_force_default_editor() {
|
136 |
//allowed: tinymce, html, test
|
137 |
return 'html';
|
138 |
}
|
139 |
-
|
140 |
add_filter('lp_edit_main_headline','lp_ab_testing_admin_prepare_headline');
|
141 |
function lp_ab_testing_admin_prepare_headline($main_headline)
|
142 |
-
{
|
143 |
-
|
144 |
$current_variation_id = lp_ab_testing_get_current_variation_id();
|
145 |
-
|
146 |
if (isset($_REQUEST['post']))
|
147 |
{
|
148 |
$post_id = $_REQUEST['post'];
|
@@ -151,9 +149,9 @@ if (is_admin())
|
|
151 |
{
|
152 |
$post_id = $_REQUEST['lp_id'];
|
153 |
}
|
154 |
-
|
155 |
//return "hello";
|
156 |
-
|
157 |
if ($current_variation_id>0&&!isset($_REQUEST['new-variation'])&&!isset($_REQUEST['clone']))
|
158 |
{
|
159 |
$main_headline = get_post_meta($post_id,'lp-main-headline-'.$current_variation_id, true);
|
@@ -162,22 +160,22 @@ if (is_admin())
|
|
162 |
{
|
163 |
$main_headline = get_post_meta($post_id,'lp-main-headline-'.$_GET['clone'], true);
|
164 |
}
|
165 |
-
|
166 |
if (!$main_headline&&isset($_REQUEST['post']))
|
167 |
{
|
168 |
//echo 1;exit;
|
169 |
get_post_meta($_REQUEST['post'],'lp-main-headline', true);
|
170 |
}
|
171 |
-
|
172 |
return $main_headline;
|
173 |
}
|
174 |
-
|
175 |
//disable this because it will populate all wp_editor isntances rather than targeted instances
|
176 |
//add_filter('the_editor_content', 'lp_ab_testing_the_editor_content');
|
177 |
-
function lp_ab_testing_the_editor_content($content)
|
178 |
{
|
179 |
$current_variation_id = lp_ab_testing_get_current_variation_id();
|
180 |
-
|
181 |
if (isset($_REQUEST['post']))
|
182 |
{
|
183 |
$post_id = $_REQUEST['post'];
|
@@ -186,7 +184,7 @@ if (is_admin())
|
|
186 |
{
|
187 |
$post_id = $_REQUEST['lp_id'];
|
188 |
}
|
189 |
-
|
190 |
if ($current_variation_id>0&&!isset($_REQUEST['new-variation'])&&!isset($_REQUEST['clone']))
|
191 |
{
|
192 |
$content = get_post_field('content-'.$current_variation_id, $post_id);
|
@@ -195,16 +193,16 @@ if (is_admin())
|
|
195 |
{
|
196 |
$content = get_post_meta($post_id,'lp-main-headline-'.$_GET['clone'], true);
|
197 |
}
|
198 |
-
|
199 |
return $content;
|
200 |
}
|
201 |
-
|
202 |
|
203 |
add_filter('lp_edit_varaition_notes','lp_ab_testing_admin_prepare_notes');
|
204 |
function lp_ab_testing_admin_prepare_notes($varaition_notes)
|
205 |
-
{
|
206 |
$current_variation_id = lp_ab_testing_get_current_variation_id();
|
207 |
-
|
208 |
if (isset($_REQUEST['post']))
|
209 |
{
|
210 |
$post_id = $_REQUEST['post'];
|
@@ -213,9 +211,9 @@ if (is_admin())
|
|
213 |
{
|
214 |
$post_id = $_REQUEST['lp_id'];
|
215 |
}
|
216 |
-
|
217 |
//return "hello";
|
218 |
-
|
219 |
if ($current_variation_id>0&&!isset($_REQUEST['new-variation'])&&!isset($_REQUEST['clone']))
|
220 |
{
|
221 |
$varaition_notes = get_post_meta($post_id,'lp-variation-notes-'.$current_variation_id, true);
|
@@ -224,39 +222,39 @@ if (is_admin())
|
|
224 |
{
|
225 |
$varaition_notes = get_post_meta($post_id,'lp-variation-notes-'.$_GET['clone'], true);
|
226 |
}
|
227 |
-
|
228 |
if (!$varaition_notes&&isset($_REQUEST['post']))
|
229 |
{
|
230 |
//echo 1;exit;
|
231 |
-
get_post_meta($
|
232 |
}
|
233 |
-
|
234 |
return $varaition_notes;
|
235 |
-
}
|
236 |
-
|
237 |
add_filter('lp_selected_template_id','lp_ab_testing_prepare_id');//prepare name id for hidden selected template input
|
238 |
add_filter('lp_display_headline_input_id','lp_ab_testing_prepare_id');//prepare id for main headline in template customizer mode
|
239 |
add_filter('lp_display_notes_input_id','lp_ab_testing_prepare_id');//prepare id for main headline in template customizer mode
|
240 |
function lp_ab_testing_prepare_id($id)
|
241 |
-
{
|
242 |
$current_variation_id = lp_ab_testing_get_current_variation_id();
|
243 |
-
|
244 |
//check if variation clone is initiated
|
245 |
if (isset($_GET['new_meta_key']))
|
246 |
$current_variation_id = $_GET['new_meta_key'];
|
247 |
-
|
248 |
if ($current_variation_id>0)
|
249 |
{
|
250 |
$id = $id.'-'.$current_variation_id;
|
251 |
}
|
252 |
-
|
253 |
return $id;
|
254 |
}
|
255 |
-
|
256 |
//prepare id for wp_editor in template customizer
|
257 |
add_filter('lp_wp_editor_id','lp_ab_testing_prepare_wysiwyg_editor_id');
|
258 |
function lp_ab_testing_prepare_wysiwyg_editor_id($id)
|
259 |
-
{
|
260 |
$current_variation_id = lp_ab_testing_get_current_variation_id();
|
261 |
//echo $current_variation_id;exit;
|
262 |
if ($current_variation_id>0)
|
@@ -271,16 +269,16 @@ if (is_admin())
|
|
271 |
default:
|
272 |
$id = $id.'-'.$current_variation_id;
|
273 |
}
|
274 |
-
|
275 |
-
}
|
276 |
-
|
277 |
return $id;
|
278 |
}
|
279 |
-
|
280 |
-
|
281 |
add_filter('lp_show_metabox','lp_ab_testing_admin_prepare_meta_ids', 5, 2);
|
282 |
function lp_ab_testing_admin_prepare_meta_ids($lp_custom_fields, $main_key)
|
283 |
-
{
|
284 |
if (isset($_REQUEST['new-variation'])&&!isset($_REQUEST['clone']))
|
285 |
{
|
286 |
return $lp_custom_fields;
|
@@ -290,7 +288,7 @@ if (is_admin())
|
|
290 |
|
291 |
if (isset($_GET['clone']))
|
292 |
$current_variation_id = $_GET['clone'];
|
293 |
-
|
294 |
if ($current_variation_id>0)
|
295 |
{
|
296 |
$post_id = $_GET['post'];
|
@@ -301,50 +299,50 @@ if (is_admin())
|
|
301 |
//echo "<br>";
|
302 |
$id = $field['id'];
|
303 |
$field['id'] = $id.'-'.$current_variation_id ;
|
304 |
-
$field['default'] = $default;
|
305 |
-
|
306 |
$lp_custom_fields[$key] = $field;
|
307 |
}
|
308 |
return $lp_custom_fields;
|
309 |
-
}
|
310 |
-
|
311 |
//print_r($lp_custom_fields);exit;
|
312 |
return $lp_custom_fields;
|
313 |
}
|
314 |
-
|
315 |
add_filter('lp_variation_selected_template','lp_ab_testing_lp_variation_selected_template', 10, 2);
|
316 |
function lp_ab_testing_lp_variation_selected_template($selected_template, $post)
|
317 |
-
{
|
318 |
if (isset($_GET['new-variation']))
|
319 |
return $selected_template;
|
320 |
-
|
321 |
$current_variation_id = lp_ab_testing_get_current_variation_id();
|
322 |
|
323 |
if ($current_variation_id>0)
|
324 |
{
|
325 |
$selected_template = get_post_meta( $post->ID , 'lp-selected-template-'.$current_variation_id , true);
|
326 |
-
}
|
327 |
-
|
328 |
//print_r($lp_custom_fields);exit;
|
329 |
return $selected_template;
|
330 |
}
|
331 |
-
|
332 |
//add filter to modify thumbnail preview
|
333 |
add_filter('lp_live_screenshot_url', 'lp_ab_testing_prepare_screenshot');
|
334 |
function lp_ab_testing_prepare_screenshot($link)
|
335 |
-
{
|
336 |
-
$variation_id = lp_ab_testing_get_current_variation_id();
|
337 |
$link = $link."?lp-variation-id=".$variation_id;
|
338 |
return $link;
|
339 |
}
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
add_filter("post_type_link", "lp_ab_append_variation_id_to_adminbar_link", 10,2);
|
344 |
function lp_ab_append_variation_id_to_adminbar_link($link, $post)
|
345 |
-
{
|
346 |
-
if( $post->post_type == 'landing-page' )
|
347 |
-
{
|
348 |
$current_variation_id = lp_ab_testing_get_current_variation_id();
|
349 |
|
350 |
if ($current_variation_id>0)
|
@@ -358,15 +356,15 @@ if (is_admin())
|
|
358 |
define('AUTOSAVE_INTERVAL', 86400);
|
359 |
}
|
360 |
|
361 |
-
add_filter('wp_insert_post_data','lp_ab_testing_wp_insert_post_data',10,2);
|
362 |
function lp_ab_testing_wp_insert_post_data($data,$postarr)
|
363 |
-
{
|
364 |
-
|
365 |
//exit;
|
366 |
-
//$variation_id = lp_ab_testing_get_current_variation_id();
|
367 |
//echo $variation_id;exit;
|
368 |
if (isset($postarr['lp-variation-id'])&&$postarr['lp-variation-id']>0)
|
369 |
-
{
|
370 |
$postarr = array();
|
371 |
$data = array();
|
372 |
|
@@ -378,26 +376,26 @@ if (is_admin())
|
|
378 |
{
|
379 |
$postID = $parent_id;
|
380 |
}
|
381 |
-
|
382 |
lp_ab_testing_save_post($postID);
|
383 |
-
|
384 |
}
|
385 |
else
|
386 |
-
{
|
387 |
//echo "here";exit;
|
388 |
//$this_data = json_encode($data);
|
389 |
//mail('hudson.atwell@gmail.com','test2',$this_data);
|
390 |
}
|
391 |
-
|
392 |
if (count($data)>1)
|
393 |
return $data;
|
394 |
-
}
|
395 |
-
|
396 |
add_action('save_post','lp_ab_testing_save_post');
|
397 |
function lp_ab_testing_save_post($postID)
|
398 |
{
|
399 |
global $post;
|
400 |
-
|
401 |
$var_final = (isset($_POST['lp-variation-id'])) ? $_POST['lp-variation-id'] : '0';
|
402 |
if ( isset($_POST['post_type']) && $_POST['post_type']=='landing-page')
|
403 |
{
|
@@ -410,12 +408,12 @@ if (is_admin())
|
|
410 |
{
|
411 |
$postID = $parent_id;
|
412 |
}
|
413 |
-
|
414 |
|
415 |
-
|
|
|
416 |
//echo $this_variation;
|
417 |
//print_r($_POST);exit;
|
418 |
-
|
419 |
//first add to varation list if not present.
|
420 |
$variations = get_post_meta($postID,'lp-ab-variations', true);
|
421 |
if ($variations)
|
@@ -438,12 +436,12 @@ if (is_admin())
|
|
438 |
$array_variations[] = $this_variation;
|
439 |
}
|
440 |
}
|
441 |
-
|
442 |
//print_r($array_variations);exit;
|
443 |
//update_post_meta($postID,'lp-ab-variations', "");
|
444 |
-
update_post_meta($postID,'lp-ab-variations', implode(',',$array_variations));
|
445 |
//add_post_meta($postID, 'lp_ab_variation_status-'.$this_variation , 1);
|
446 |
-
|
447 |
//echo $this_variation;exit;
|
448 |
if ($this_variation==0)
|
449 |
{
|
@@ -458,14 +456,18 @@ if (is_admin())
|
|
458 |
'referredby','_wp_original_http_referer','meta-box-order-nonce','closedpostboxesnonce','hidden_post_status','hidden_post_password','hidden_post_visibility','visibility',
|
459 |
'post_password','hidden_mm','cur_mm','hidden_jj','cur_jj','hidden_aa','cur_aa','hidden_hh','cur_hh','hidden_mn','cur_mn','original_publish','save','newlanding_page_category','newlanding_page_category_parent',
|
460 |
'_ajax_nonce-add-landing_page_category','lp_lp_custom_fields_nonce','lp-selected-template','post_mime_type','ID','comment_status','ping_status');
|
461 |
-
|
462 |
//$special_list = array('content','post-content');
|
463 |
//print_r($_POST);exit;
|
464 |
//echo $this_variation;exit;
|
465 |
foreach ($_POST as $key=>$value)
|
466 |
{
|
|
|
467 |
if (!in_array($key,$ignore_list)&&!strstr($key,'nonce'))
|
468 |
{
|
|
|
|
|
|
|
469 |
if (!strstr($key,"-{$this_variation}"))
|
470 |
{
|
471 |
$new_array[$key.'-'.$this_variation] = $value;
|
@@ -475,28 +477,47 @@ if (is_admin())
|
|
475 |
//echo $key." : -{$this_variation}<br>";
|
476 |
$new_array[$key] = $value;
|
477 |
}
|
478 |
-
|
479 |
}
|
|
|
480 |
}
|
481 |
-
|
482 |
-
//echo $postID;
|
483 |
//print_r($new_array);exit;
|
484 |
-
|
485 |
foreach($new_array as $key => $val)
|
486 |
-
{
|
487 |
-
$old = get_post_meta($postID, $key, true);
|
488 |
-
$new = $val;
|
489 |
//echo "$key : $old v. $new <br>";
|
490 |
//if (isset($new) && $new != $old ) {
|
491 |
update_post_meta($postID, $key, $new);
|
492 |
//} elseif ('' == $new && $old) {
|
493 |
//delete_post_meta($postID, $key, $old);
|
494 |
-
//}
|
495 |
-
}
|
496 |
-
|
497 |
}
|
498 |
}
|
499 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
500 |
}
|
501 |
|
502 |
//PERFORM FRONT-END ONLY ACTIONS
|
@@ -504,11 +525,11 @@ else
|
|
504 |
{
|
505 |
|
506 |
//prepare customizer meta data for ab varations
|
507 |
-
add_filter('lp_get_value','lp_ab_testing_prepare_variation_meta', 1 , 4);
|
508 |
function lp_ab_testing_prepare_variation_meta($return, $post, $key, $id)
|
509 |
{
|
510 |
if (isset($_REQUEST['lp-variation-id'])||isset($_COOKIE['lp-variation-id']))
|
511 |
-
{
|
512 |
(isset($_REQUEST['lp-variation-id'])) ? $variation_id = $_REQUEST['lp-variation-id'] : $variation_id = $_COOKIE['lp-variation-id'];
|
513 |
if ($variation_id>0)
|
514 |
return get_post_meta($post->ID, $key.'-'.$id. '-' .$variation_id , true);
|
@@ -522,12 +543,12 @@ else
|
|
522 |
}
|
523 |
|
524 |
//prepare customizer, admin, and preview links for variations
|
525 |
-
add_filter('lp_customizer_customizer_link', 'lp_ab_append_variation_id_to_link');
|
526 |
-
add_filter('lp_customizer_admin_bar_link', 'lp_ab_append_variation_id_to_link');
|
527 |
add_filter('lp_customizer_preview_link','lp_ab_append_variation_id_to_link');
|
528 |
-
|
529 |
function lp_ab_append_variation_id_to_link($link)
|
530 |
-
{
|
531 |
|
532 |
$current_variation_id = lp_ab_testing_get_current_variation_id();
|
533 |
|
@@ -536,42 +557,17 @@ else
|
|
536 |
|
537 |
return $link;
|
538 |
}
|
539 |
-
|
540 |
}
|
541 |
|
542 |
//PERFORM ACTIONS REQUIRED ON BOTH FRONT AND BACKEND
|
543 |
|
544 |
-
//ready content area for displaying ab variations
|
545 |
-
add_filter('lp_content_area','lp_ab_testing_prepare_content_area' , 10 , 2 );
|
546 |
-
function lp_ab_testing_prepare_content_area($content, $post=null)
|
547 |
-
{
|
548 |
-
$current_variation_id = lp_ab_testing_get_current_variation_id();
|
549 |
-
if (isset($post))
|
550 |
-
{
|
551 |
-
$post_id = $post->ID;
|
552 |
-
}
|
553 |
-
else if (isset($_REQUEST['post']))
|
554 |
-
{
|
555 |
-
$post_id = $_REQUEST['post'];
|
556 |
-
}
|
557 |
-
else if (isset($_REQUEST['lp_id']))
|
558 |
-
{
|
559 |
-
$post_id = $_REQUEST['lp_id'];
|
560 |
-
}
|
561 |
-
|
562 |
-
if ($current_variation_id>0)
|
563 |
-
$content = get_post_meta($post_id,'content-'.$current_variation_id, true);
|
564 |
-
|
565 |
-
//echo "$current_variation_id : $content";exit;
|
566 |
-
return $content;
|
567 |
-
}
|
568 |
-
|
569 |
//ready conversion area for displaying ab variations
|
570 |
add_filter('lp_conversion_area_pre_standardize','lp_ab_testing_prepare_conversion_area' , 10 , 2 );
|
571 |
function lp_ab_testing_prepare_conversion_area($content,$post=null)
|
572 |
-
{
|
573 |
$current_variation_id = lp_ab_testing_get_current_variation_id();
|
574 |
-
|
575 |
if (isset($post))
|
576 |
{
|
577 |
$post_id = $post->ID;
|
@@ -584,10 +580,10 @@ function lp_ab_testing_prepare_conversion_area($content,$post=null)
|
|
584 |
{
|
585 |
$post_id = $_REQUEST['lp_id'];
|
586 |
}
|
587 |
-
|
588 |
-
|
589 |
if ($current_variation_id>0)
|
590 |
-
$content = get_post_meta($post_id,'landing-page-myeditor-'.$current_variation_id, true);
|
591 |
|
592 |
return $content;
|
593 |
}
|
@@ -595,10 +591,10 @@ function lp_ab_testing_prepare_conversion_area($content,$post=null)
|
|
595 |
//ready conversion area for displaying ab variations
|
596 |
add_filter('lp_conversion_area_position','lp_ab_testing_lp_conversion_area_position' , 10 , 2 );
|
597 |
function lp_ab_testing_lp_conversion_area_position($position, $post = null, $key = 'default')
|
598 |
-
{
|
599 |
|
600 |
$current_variation_id = lp_ab_testing_get_current_variation_id();
|
601 |
-
|
602 |
if (isset($post))
|
603 |
{
|
604 |
$post_id = $post->ID;
|
@@ -611,7 +607,7 @@ function lp_ab_testing_lp_conversion_area_position($position, $post = null, $key
|
|
611 |
{
|
612 |
$post_id = $_REQUEST['lp_id'];
|
613 |
}
|
614 |
-
|
615 |
if ($current_variation_id>0)
|
616 |
$position = get_post_meta($post->ID, "{$key}-conversion-area-placement-".$current_variation_id, true);
|
617 |
|
@@ -621,7 +617,7 @@ function lp_ab_testing_lp_conversion_area_position($position, $post = null, $key
|
|
621 |
|
622 |
add_filter('lp_main_headline','lp_ab_testing_prepare_headline', 10, 2);
|
623 |
function lp_ab_testing_prepare_headline($main_headline, $post = null)
|
624 |
-
{
|
625 |
|
626 |
$current_variation_id = lp_ab_testing_get_current_variation_id();
|
627 |
|
@@ -636,13 +632,13 @@ function lp_ab_testing_prepare_headline($main_headline, $post = null)
|
|
636 |
else if (isset($_REQUEST['lp_id']))
|
637 |
{
|
638 |
$post_id = $_REQUEST['lp_id'];
|
639 |
-
}
|
640 |
else if (isset($_REQUEST['post_id']))
|
641 |
{
|
642 |
$post_id = $_REQUEST['post_id'];
|
643 |
}
|
644 |
-
|
645 |
-
|
646 |
if ($current_variation_id>0)
|
647 |
$main_headline = get_post_meta($post_id,'lp-main-headline-'.$current_variation_id, true);
|
648 |
|
@@ -650,7 +646,7 @@ function lp_ab_testing_prepare_headline($main_headline, $post = null)
|
|
650 |
{
|
651 |
get_post_meta($post_id,'lp-main-headline', true);
|
652 |
}
|
653 |
-
|
654 |
|
655 |
return $main_headline;
|
656 |
}
|
@@ -662,11 +658,11 @@ function lp_ab_testing_add_rewrite_rules()
|
|
662 |
$this_path = explode('wp-content',$this_path);
|
663 |
$this_path = "wp-content".$this_path[1];
|
664 |
|
665 |
-
$slug = get_option( 'main-landing-page-permalink-prefix', 'go' );
|
666 |
//echo $slug;exit;
|
667 |
add_rewrite_rule("$slug/([^/]*)?", $this_path."modules/module.redirect-ab-testing.php?permalink_name=$1 ",'top');
|
668 |
-
add_rewrite_rule("
|
669 |
-
|
670 |
add_filter('mod_rewrite_rules', 'lp_ab_testing_modify_rules', 1);
|
671 |
function lp_ab_testing_modify_rules($rules)
|
672 |
{
|
@@ -678,18 +674,18 @@ function lp_ab_testing_add_rewrite_rules()
|
|
678 |
$rules_array = explode("\n", $rules);
|
679 |
$rules_array = array_filter($rules_array);
|
680 |
}
|
681 |
-
|
682 |
//print_r($rules_array);exit;
|
683 |
-
|
684 |
$this_path = LANDINGPAGES_PATH;
|
685 |
$this_path = explode('wp-content',$this_path);
|
686 |
-
$this_path = "wp-content".$this_path[1];
|
687 |
-
$slug = get_option( 'main-landing-page-permalink-prefix', 'go' );
|
688 |
-
|
689 |
$i = 0;
|
690 |
foreach ($rules_array as $key=>$val)
|
691 |
{
|
692 |
-
|
693 |
if (stristr($val,"RewriteRule ^{$slug}/([^/]*)? "))
|
694 |
{
|
695 |
$new_val = "RewriteCond %{QUERY_STRING} !lp-variation-id";
|
@@ -704,45 +700,45 @@ function lp_ab_testing_add_rewrite_rules()
|
|
704 |
$i++;
|
705 |
}
|
706 |
}
|
707 |
-
|
708 |
$rules = implode("\r\n", $rules_array);
|
709 |
}
|
710 |
-
|
711 |
return $rules;
|
712 |
}
|
713 |
-
|
714 |
}
|
715 |
|
716 |
|
717 |
add_filter('lp_selected_template','lp_ab_testing_get_selected_template');//get correct selected template for each variation
|
718 |
function lp_ab_testing_get_selected_template($template)
|
719 |
-
{
|
720 |
global $post;
|
721 |
-
|
722 |
$current_variation_id = lp_ab_testing_get_current_variation_id();
|
723 |
|
724 |
if ($current_variation_id>0)
|
725 |
{
|
726 |
$new_template = get_post_meta($post->ID, 'lp-selected-template-'.$current_variation_id, true);
|
727 |
if ($new_template)
|
728 |
-
$template = $new_template;
|
729 |
}
|
730 |
-
|
731 |
return $template;
|
732 |
}
|
733 |
|
734 |
-
//prepare custom js and css for
|
735 |
add_filter('lp_custom_js_name','lp_ab_testing_prepare_name');
|
736 |
add_filter('lp_custom_css_name','lp_ab_testing_prepare_name');
|
737 |
function lp_ab_testing_prepare_name($id)
|
738 |
-
{
|
739 |
$current_variation_id = lp_ab_testing_get_current_variation_id();
|
740 |
//echo $current_variation_id;exit;
|
741 |
if ($current_variation_id>0)
|
742 |
{
|
743 |
$id = $id.'-'.$current_variation_id;
|
744 |
}
|
745 |
-
|
746 |
return $id;
|
747 |
}
|
748 |
|
@@ -750,166 +746,102 @@ add_action('wp_ajax_lp_ab_testing_prepare_variation', 'lp_ab_testing_prepare_var
|
|
750 |
add_action('wp_ajax_nopriv_lp_ab_testing_prepare_variation', 'lp_ab_testing_prepare_variation_callback');
|
751 |
|
752 |
function lp_ab_testing_prepare_variation_callback()
|
753 |
-
{
|
754 |
if (!lp_determine_spider())
|
755 |
-
{
|
756 |
//echo "hello";
|
757 |
//PRINT trim($_POST['current_url']);
|
758 |
-
$page_id = lp_url_to_postid( trim($_POST['current_url']) );
|
759 |
//echo $page_id;
|
760 |
$variations = get_post_meta($page_id,'lp-ab-variations', true);
|
761 |
$marker = get_post_meta($page_id,'lp-ab-variations-marker', true);
|
762 |
if (!is_numeric($marker))
|
763 |
$marker = 0;
|
764 |
-
|
765 |
//echo "marker$marker";
|
766 |
-
|
767 |
if ($variations)
|
768 |
{
|
769 |
//echo $variations;
|
770 |
$variations = explode(',',$variations);
|
771 |
//print_r($variations);
|
772 |
-
|
773 |
$variation_id = $variations[$marker];
|
774 |
|
775 |
$marker++;
|
776 |
-
|
777 |
if ($marker>=count($variations))
|
778 |
{
|
779 |
//echo "here";
|
780 |
$marker = 0;
|
781 |
-
}
|
782 |
-
|
783 |
update_post_meta($page_id, 'lp-ab-variations-marker', $marker);
|
784 |
-
|
785 |
-
echo $variation_id;
|
786 |
die();
|
787 |
}
|
788 |
-
|
789 |
-
}
|
790 |
-
}
|
791 |
|
792 |
-
|
793 |
-
|
794 |
-
{
|
795 |
-
$variation_id = lp_ab_testing_get_current_variation_id();
|
796 |
-
|
797 |
-
if ($variation_id>0||isset($_COOKIE['lp-variation-id']))
|
798 |
-
{
|
799 |
|
800 |
-
add_filter('the_content','lp_ab_testing_alter_content_area', 10, 2);
|
801 |
-
function lp_ab_testing_alter_content_area($content)
|
802 |
-
{
|
803 |
-
global $post;
|
804 |
-
|
805 |
-
$variation_id = lp_ab_testing_get_current_variation_id();
|
806 |
|
807 |
-
|
808 |
-
|
809 |
-
|
810 |
-
|
811 |
-
|
812 |
-
return $content;
|
813 |
-
}
|
814 |
-
|
815 |
-
add_filter('the_title','lp_ab_testing_alter_title_area', 10, 2);
|
816 |
-
function lp_ab_testing_alter_title_area($content)
|
817 |
-
{
|
818 |
-
global $post;
|
819 |
|
820 |
-
|
821 |
-
|
822 |
-
if ($variation_id>0)
|
823 |
-
{
|
824 |
-
if (isset($post))
|
825 |
-
$post_id = $post->ID;
|
826 |
-
else if (isset($_REQUEST['post_id']))
|
827 |
-
$post_id =$_REQUEST['post_id'];
|
828 |
-
|
829 |
-
//echo $post_id;exit;
|
830 |
-
$content = do_shortcode(get_post_meta($post_id,'lp-main-headline-'.$variation_id, true));
|
831 |
-
}
|
832 |
-
|
833 |
-
return $content;
|
834 |
-
}
|
835 |
-
}
|
836 |
|
837 |
-
|
838 |
-
function lp_ab_testing_record_impression($page_id, $variation_id=0)
|
839 |
{
|
840 |
-
$
|
841 |
-
if (!is_numeric($impressions))
|
842 |
-
$impressions = 1;
|
843 |
-
else
|
844 |
-
$impressions++;
|
845 |
-
|
846 |
-
update_post_meta($page_id,'lp-ab-variation-impressions-'.$variation_id, $impressions);
|
847 |
}
|
848 |
-
|
849 |
-
add_action('lp_record_conversion','lp_ab_testing_record_conversion', 10, 2);
|
850 |
-
function lp_ab_testing_record_conversion($page_id, $variation_id)
|
851 |
-
{
|
852 |
-
$conversions = get_post_meta($page_id,'lp-ab-variation-conversions-'.$variation_id, true);
|
853 |
|
854 |
-
|
855 |
-
$conversions = 1;
|
856 |
-
else
|
857 |
-
$conversions++;
|
858 |
-
|
859 |
-
update_post_meta($page_id,'lp-ab-variation-conversions-'.$variation_id, $conversions);
|
860 |
-
}
|
861 |
}
|
862 |
|
863 |
-
|
864 |
-
|
865 |
-
|
|
|
866 |
{
|
867 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
868 |
|
869 |
-
$variations = get_post_meta($post->ID,'lp-ab-variations', true);
|
870 |
-
$variations_array = explode(",", $variations);
|
871 |
-
$post_type_is = get_post_type($post->ID);
|
872 |
-
if ($post_type_is !== "landing-page") {
|
873 |
-
echo "<style type='text/css'>#variation-list {display:none;}</style>";
|
874 |
-
}
|
875 |
-
if ($variations_array[0] === "")
|
876 |
-
{
|
877 |
-
echo '<div id="variation-list" class="no-abtests"><h3>No A/B Tests running for this page</h3>';
|
878 |
-
}
|
879 |
-
else
|
880 |
-
{
|
881 |
-
echo '<div id="variation-list"><h3>Variations:</h3>';
|
882 |
-
echo '<div id="current_variation_id">'.$lp_variation.'</div>';
|
883 |
-
}
|
884 |
-
|
885 |
-
foreach ($variations_array as $key => $val)
|
886 |
-
{
|
887 |
-
$letter = lp_ab_key_to_letter($val);
|
888 |
-
$current_view = ($val == $lp_variation) ? 'current-variation-view' : '';
|
889 |
-
echo "<div class='variation-lp ".$current_view."' id=". $val . " rel='".$letter."'>";
|
890 |
-
echo $letter;
|
891 |
-
|
892 |
-
// echo $val; number
|
893 |
-
echo "</div>";
|
894 |
-
}
|
895 |
-
|
896 |
-
echo '</div>';
|
897 |
-
|
898 |
-
}
|
899 |
|
900 |
add_action('lp_launch_customizer_pre','lp_ab_testing_customizer_enqueue');
|
901 |
function lp_ab_testing_customizer_enqueue($post)
|
902 |
{
|
903 |
//echo 1; exit;
|
904 |
-
$permalink = get_permalink( $post->ID );
|
905 |
$randomstring = substr(str_shuffle("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"), 0, 10);
|
906 |
|
907 |
wp_enqueue_script( 'lp_ab_testing_customizer_js', LANDINGPAGES_URLPATH . 'js/customizer.ab-testing.js', array( 'jquery' ) );
|
908 |
wp_localize_script( 'lp_ab_testing_customizer_js', 'ab_customizer', array( 'lp_id' => $post->ID ,'permalink' => $permalink , 'randomstring' => $randomstring));
|
909 |
-
wp_enqueue_style('lp_ab_testing_customizer_css', LANDINGPAGES_URLPATH . 'css/customizer-ab-testing.css');
|
910 |
}
|
911 |
|
912 |
-
add_action('lp_frontend_editor_screen_pre','ab_testing_frontend_editor_screen_pre');
|
913 |
function ab_testing_frontend_editor_screen_pre($post)
|
914 |
{
|
915 |
$lp_variation = (isset($_GET['lp-variation-id'])) ? $_GET['lp-variation-id'] : '0';
|
@@ -917,7 +849,7 @@ function ab_testing_frontend_editor_screen_pre($post)
|
|
917 |
echo '<div id="current_variation_id">'.$lp_variation.'</div>';
|
918 |
?>
|
919 |
<script type='text/javascript'>
|
920 |
-
jQuery(document).ready(function ($) {
|
921 |
//append letter
|
922 |
var letterexists = jQuery(".variation-letter-top").length;
|
923 |
console.log(letterexists);
|
@@ -926,25 +858,7 @@ function ab_testing_frontend_editor_screen_pre($post)
|
|
926 |
}
|
927 |
});
|
928 |
</script>
|
929 |
-
<?php
|
930 |
-
|
931 |
-
/*-------------------------------------------------------WORKSPACE-------------------------------------------------------*/
|
932 |
-
//print all global fields for post
|
933 |
-
/*
|
934 |
-
global $wpdb;
|
935 |
-
$data = array();
|
936 |
-
$wpdb->query("
|
937 |
-
SELECT `meta_key`, `meta_value`
|
938 |
-
FROM $wpdb->postmeta
|
939 |
-
WHERE `post_id` = ".$_GET['post']."
|
940 |
-
");
|
941 |
-
foreach($wpdb->last_result as $k => $v){
|
942 |
-
$data[$v->meta_key] = $v->meta_value;
|
943 |
-
};
|
944 |
-
if (isset($_GET['post']))
|
945 |
-
{
|
946 |
-
print_r( $data);
|
947 |
-
}
|
948 |
-
*/
|
949 |
|
950 |
-
?>
|
2 |
if (is_admin())
|
3 |
{
|
4 |
include_once(LANDINGPAGES_PATH.'modules/module.metaboxes-ab-testing.php');
|
5 |
+
|
6 |
add_action('init','lp_ab_testing_admin_init');
|
7 |
|
8 |
function lp_ab_testing_admin_init($hook)
|
9 |
+
{
|
10 |
if (!is_admin()||!isset($_GET['post']))
|
11 |
return;
|
12 |
+
|
13 |
$post = get_post($_GET['post']);
|
14 |
+
|
15 |
if (isset($post)&&($post->post_type=='landing-page'&&(isset($_GET['action'])&&$_GET['action']=='edit')))
|
16 |
{
|
17 |
+
|
18 |
$current_variation_id = lp_ab_testing_get_current_variation_id();
|
19 |
//echo $current_variation_id;
|
20 |
$variations = get_post_meta($post->ID,'lp-ab-variations', true);
|
22 |
//echo $variations;exit;
|
23 |
//remove landing page's main save_post action
|
24 |
if ($current_variation_id>0)
|
25 |
+
{
|
26 |
+
remove_action('save_post','lp_save_meta',10);
|
27 |
}
|
28 |
|
29 |
//check for delete command
|
33 |
$array_variations = lp_ab_unset_variation($array_variations,$_GET['lp-variation-id']);
|
34 |
$variations = implode(',' , $array_variations);
|
35 |
update_post_meta($post->ID,'lp-ab-variations', $variations);
|
36 |
+
|
37 |
$suffix = '-'.$_GET['lp-variation-id'];
|
38 |
$len = strlen($suffix);
|
39 |
+
|
40 |
//delete each meta value associated with variation
|
41 |
global $wpdb;
|
42 |
$data = array();
|
45 |
FROM $wpdb->postmeta
|
46 |
WHERE `post_id` = ".$_GET['post']."
|
47 |
");
|
48 |
+
|
49 |
foreach($wpdb->last_result as $k => $v){
|
50 |
$data[$v->meta_key] = $v->meta_value;
|
51 |
};
|
56 |
{
|
57 |
delete_post_meta($_GET['post'], $key, $value);
|
58 |
}
|
59 |
+
}
|
60 |
+
|
61 |
+
$current_variation_id = 0;
|
62 |
+
$_SESSION['lp_ab_test_open_variation'] = 0;
|
63 |
}
|
64 |
|
65 |
//check for pause command
|
66 |
if (isset($_GET['ab-action'])&&$_GET['ab-action']=='pause-variation')
|
67 |
+
{
|
68 |
if ($_GET['lp-variation-id']==0)
|
69 |
{
|
70 |
update_post_meta( $post->ID , 'lp_ab_variation_status' , '0' );
|
72 |
else
|
73 |
{
|
74 |
update_post_meta( $post->ID , 'lp_ab_variation_status-'.$_GET['lp-variation-id'] , '0');
|
75 |
+
}
|
76 |
}
|
77 |
+
|
78 |
//check for pause command
|
79 |
if (isset($_GET['ab-action'])&&$_GET['ab-action']=='play-variation')
|
80 |
+
{
|
81 |
if ($_GET['lp-variation-id']==0)
|
82 |
{
|
83 |
update_post_meta( $post->ID , 'lp_ab_variation_status' , '1' );
|
85 |
else
|
86 |
{
|
87 |
update_post_meta( $post->ID , 'lp_ab_variation_status-'.$_GET['lp-variation-id'] , '1');
|
88 |
+
}
|
89 |
}
|
90 |
+
|
91 |
//return;
|
92 |
//echo $current_variation_id;;
|
|
|
|
|
93 |
|
94 |
+
(isset($_GET['new-variation'])&&$_GET['new-variation']==1) ? $new_variation = 1 : $new_variation = 0;
|
95 |
+
|
96 |
+
$content_area = lp_content_area($post,null,true);
|
97 |
+
|
98 |
//prepare for new variation creation - use A as default content if not being cloned
|
99 |
if (($new_variation==1&&!isset($_GET['clone']))||isset($_GET['clone'])&&$_GET['clone']==0)
|
100 |
{
|
106 |
$content_area = get_post_field('content-'.$_GET['clone'], $_GET['post']);
|
107 |
$content_area = wpautop($content_area);
|
108 |
}
|
109 |
+
|
|
|
|
|
110 |
//if new variation and cloning then programatically prepare the next variation id
|
111 |
if($new_variation==1&&isset($_GET['clone']))
|
112 |
{
|
115 |
|
116 |
$lid = end($array_variations);
|
117 |
$current_variation_id = $lid+1;
|
118 |
+
|
119 |
$_SESSION['lp_ab_test_open_variation'] = $current_variation_id;
|
120 |
}
|
121 |
//echo $current_variation_id;exit;
|
123 |
wp_enqueue_style('lp-ab-testing-admin-css', LANDINGPAGES_URLPATH . 'css/admin-ab-testing.css');
|
124 |
wp_enqueue_script('lp-ab-testing-admin-js', LANDINGPAGES_URLPATH . 'js/admin/admin.post-edit-ab-testing.js', array( 'jquery' ));
|
125 |
wp_localize_script( 'lp-ab-testing-admin-js', 'variation', array( 'pid' => $_GET['post'], 'vid' => $current_variation_id , 'new_variation' => $new_variation , 'variations'=> $variations , 'content_area' => $content_area ));
|
126 |
+
|
127 |
}
|
128 |
|
129 |
}
|
130 |
+
|
131 |
/* force visual editor to open in text mode */
|
132 |
+
|
133 |
function lp_ab_testing_force_default_editor() {
|
134 |
//allowed: tinymce, html, test
|
135 |
return 'html';
|
136 |
}
|
137 |
+
|
138 |
add_filter('lp_edit_main_headline','lp_ab_testing_admin_prepare_headline');
|
139 |
function lp_ab_testing_admin_prepare_headline($main_headline)
|
140 |
+
{
|
141 |
+
|
142 |
$current_variation_id = lp_ab_testing_get_current_variation_id();
|
143 |
+
|
144 |
if (isset($_REQUEST['post']))
|
145 |
{
|
146 |
$post_id = $_REQUEST['post'];
|
149 |
{
|
150 |
$post_id = $_REQUEST['lp_id'];
|
151 |
}
|
152 |
+
|
153 |
//return "hello";
|
154 |
+
|
155 |
if ($current_variation_id>0&&!isset($_REQUEST['new-variation'])&&!isset($_REQUEST['clone']))
|
156 |
{
|
157 |
$main_headline = get_post_meta($post_id,'lp-main-headline-'.$current_variation_id, true);
|
160 |
{
|
161 |
$main_headline = get_post_meta($post_id,'lp-main-headline-'.$_GET['clone'], true);
|
162 |
}
|
163 |
+
|
164 |
if (!$main_headline&&isset($_REQUEST['post']))
|
165 |
{
|
166 |
//echo 1;exit;
|
167 |
get_post_meta($_REQUEST['post'],'lp-main-headline', true);
|
168 |
}
|
169 |
+
|
170 |
return $main_headline;
|
171 |
}
|
172 |
+
|
173 |
//disable this because it will populate all wp_editor isntances rather than targeted instances
|
174 |
//add_filter('the_editor_content', 'lp_ab_testing_the_editor_content');
|
175 |
+
function lp_ab_testing_the_editor_content($content)
|
176 |
{
|
177 |
$current_variation_id = lp_ab_testing_get_current_variation_id();
|
178 |
+
|
179 |
if (isset($_REQUEST['post']))
|
180 |
{
|
181 |
$post_id = $_REQUEST['post'];
|
184 |
{
|
185 |
$post_id = $_REQUEST['lp_id'];
|
186 |
}
|
187 |
+
|
188 |
if ($current_variation_id>0&&!isset($_REQUEST['new-variation'])&&!isset($_REQUEST['clone']))
|
189 |
{
|
190 |
$content = get_post_field('content-'.$current_variation_id, $post_id);
|
193 |
{
|
194 |
$content = get_post_meta($post_id,'lp-main-headline-'.$_GET['clone'], true);
|
195 |
}
|
196 |
+
|
197 |
return $content;
|
198 |
}
|
199 |
+
|
200 |
|
201 |
add_filter('lp_edit_varaition_notes','lp_ab_testing_admin_prepare_notes');
|
202 |
function lp_ab_testing_admin_prepare_notes($varaition_notes)
|
203 |
+
{
|
204 |
$current_variation_id = lp_ab_testing_get_current_variation_id();
|
205 |
+
|
206 |
if (isset($_REQUEST['post']))
|
207 |
{
|
208 |
$post_id = $_REQUEST['post'];
|
211 |
{
|
212 |
$post_id = $_REQUEST['lp_id'];
|
213 |
}
|
214 |
+
|
215 |
//return "hello";
|
216 |
+
|
217 |
if ($current_variation_id>0&&!isset($_REQUEST['new-variation'])&&!isset($_REQUEST['clone']))
|
218 |
{
|
219 |
$varaition_notes = get_post_meta($post_id,'lp-variation-notes-'.$current_variation_id, true);
|
222 |
{
|
223 |
$varaition_notes = get_post_meta($post_id,'lp-variation-notes-'.$_GET['clone'], true);
|
224 |
}
|
225 |
+
|
226 |
if (!$varaition_notes&&isset($_REQUEST['post']))
|
227 |
{
|
228 |
//echo 1;exit;
|
229 |
+
get_post_meta($_REQUEST['post'],'lp-variation-notes', true);
|
230 |
}
|
231 |
+
|
232 |
return $varaition_notes;
|
233 |
+
}
|
234 |
+
|
235 |
add_filter('lp_selected_template_id','lp_ab_testing_prepare_id');//prepare name id for hidden selected template input
|
236 |
add_filter('lp_display_headline_input_id','lp_ab_testing_prepare_id');//prepare id for main headline in template customizer mode
|
237 |
add_filter('lp_display_notes_input_id','lp_ab_testing_prepare_id');//prepare id for main headline in template customizer mode
|
238 |
function lp_ab_testing_prepare_id($id)
|
239 |
+
{
|
240 |
$current_variation_id = lp_ab_testing_get_current_variation_id();
|
241 |
+
|
242 |
//check if variation clone is initiated
|
243 |
if (isset($_GET['new_meta_key']))
|
244 |
$current_variation_id = $_GET['new_meta_key'];
|
245 |
+
|
246 |
if ($current_variation_id>0)
|
247 |
{
|
248 |
$id = $id.'-'.$current_variation_id;
|
249 |
}
|
250 |
+
|
251 |
return $id;
|
252 |
}
|
253 |
+
|
254 |
//prepare id for wp_editor in template customizer
|
255 |
add_filter('lp_wp_editor_id','lp_ab_testing_prepare_wysiwyg_editor_id');
|
256 |
function lp_ab_testing_prepare_wysiwyg_editor_id($id)
|
257 |
+
{
|
258 |
$current_variation_id = lp_ab_testing_get_current_variation_id();
|
259 |
//echo $current_variation_id;exit;
|
260 |
if ($current_variation_id>0)
|
269 |
default:
|
270 |
$id = $id.'-'.$current_variation_id;
|
271 |
}
|
272 |
+
|
273 |
+
}
|
274 |
+
|
275 |
return $id;
|
276 |
}
|
277 |
+
|
278 |
+
|
279 |
add_filter('lp_show_metabox','lp_ab_testing_admin_prepare_meta_ids', 5, 2);
|
280 |
function lp_ab_testing_admin_prepare_meta_ids($lp_custom_fields, $main_key)
|
281 |
+
{
|
282 |
if (isset($_REQUEST['new-variation'])&&!isset($_REQUEST['clone']))
|
283 |
{
|
284 |
return $lp_custom_fields;
|
288 |
|
289 |
if (isset($_GET['clone']))
|
290 |
$current_variation_id = $_GET['clone'];
|
291 |
+
|
292 |
if ($current_variation_id>0)
|
293 |
{
|
294 |
$post_id = $_GET['post'];
|
299 |
//echo "<br>";
|
300 |
$id = $field['id'];
|
301 |
$field['id'] = $id.'-'.$current_variation_id ;
|
302 |
+
$field['default'] = $default;
|
303 |
+
|
304 |
$lp_custom_fields[$key] = $field;
|
305 |
}
|
306 |
return $lp_custom_fields;
|
307 |
+
}
|
308 |
+
|
309 |
//print_r($lp_custom_fields);exit;
|
310 |
return $lp_custom_fields;
|
311 |
}
|
312 |
+
|
313 |
add_filter('lp_variation_selected_template','lp_ab_testing_lp_variation_selected_template', 10, 2);
|
314 |
function lp_ab_testing_lp_variation_selected_template($selected_template, $post)
|
315 |
+
{
|
316 |
if (isset($_GET['new-variation']))
|
317 |
return $selected_template;
|
318 |
+
|
319 |
$current_variation_id = lp_ab_testing_get_current_variation_id();
|
320 |
|
321 |
if ($current_variation_id>0)
|
322 |
{
|
323 |
$selected_template = get_post_meta( $post->ID , 'lp-selected-template-'.$current_variation_id , true);
|
324 |
+
}
|
325 |
+
|
326 |
//print_r($lp_custom_fields);exit;
|
327 |
return $selected_template;
|
328 |
}
|
329 |
+
|
330 |
//add filter to modify thumbnail preview
|
331 |
add_filter('lp_live_screenshot_url', 'lp_ab_testing_prepare_screenshot');
|
332 |
function lp_ab_testing_prepare_screenshot($link)
|
333 |
+
{
|
334 |
+
$variation_id = lp_ab_testing_get_current_variation_id();
|
335 |
$link = $link."?lp-variation-id=".$variation_id;
|
336 |
return $link;
|
337 |
}
|
338 |
+
|
339 |
+
|
340 |
+
|
341 |
+
add_filter("post_type_link", "lp_ab_append_variation_id_to_adminbar_link", 10,2);
|
342 |
function lp_ab_append_variation_id_to_adminbar_link($link, $post)
|
343 |
+
{
|
344 |
+
if( $post->post_type == 'landing-page' )
|
345 |
+
{
|
346 |
$current_variation_id = lp_ab_testing_get_current_variation_id();
|
347 |
|
348 |
if ($current_variation_id>0)
|
356 |
define('AUTOSAVE_INTERVAL', 86400);
|
357 |
}
|
358 |
|
359 |
+
add_filter('wp_insert_post_data','lp_ab_testing_wp_insert_post_data',10,2);
|
360 |
function lp_ab_testing_wp_insert_post_data($data,$postarr)
|
361 |
+
{
|
362 |
+
|
363 |
//exit;
|
364 |
+
//$variation_id = lp_ab_testing_get_current_variation_id();
|
365 |
//echo $variation_id;exit;
|
366 |
if (isset($postarr['lp-variation-id'])&&$postarr['lp-variation-id']>0)
|
367 |
+
{
|
368 |
$postarr = array();
|
369 |
$data = array();
|
370 |
|
376 |
{
|
377 |
$postID = $parent_id;
|
378 |
}
|
379 |
+
|
380 |
lp_ab_testing_save_post($postID);
|
381 |
+
|
382 |
}
|
383 |
else
|
384 |
+
{
|
385 |
//echo "here";exit;
|
386 |
//$this_data = json_encode($data);
|
387 |
//mail('hudson.atwell@gmail.com','test2',$this_data);
|
388 |
}
|
389 |
+
|
390 |
if (count($data)>1)
|
391 |
return $data;
|
392 |
+
}
|
393 |
+
|
394 |
add_action('save_post','lp_ab_testing_save_post');
|
395 |
function lp_ab_testing_save_post($postID)
|
396 |
{
|
397 |
global $post;
|
398 |
+
|
399 |
$var_final = (isset($_POST['lp-variation-id'])) ? $_POST['lp-variation-id'] : '0';
|
400 |
if ( isset($_POST['post_type']) && $_POST['post_type']=='landing-page')
|
401 |
{
|
408 |
{
|
409 |
$postID = $parent_id;
|
410 |
}
|
|
|
411 |
|
412 |
+
|
413 |
+
$this_variation = $var_final;
|
414 |
//echo $this_variation;
|
415 |
//print_r($_POST);exit;
|
416 |
+
|
417 |
//first add to varation list if not present.
|
418 |
$variations = get_post_meta($postID,'lp-ab-variations', true);
|
419 |
if ($variations)
|
436 |
$array_variations[] = $this_variation;
|
437 |
}
|
438 |
}
|
439 |
+
|
440 |
//print_r($array_variations);exit;
|
441 |
//update_post_meta($postID,'lp-ab-variations', "");
|
442 |
+
update_post_meta($postID,'lp-ab-variations', implode(',',$array_variations));
|
443 |
//add_post_meta($postID, 'lp_ab_variation_status-'.$this_variation , 1);
|
444 |
+
|
445 |
//echo $this_variation;exit;
|
446 |
if ($this_variation==0)
|
447 |
{
|
456 |
'referredby','_wp_original_http_referer','meta-box-order-nonce','closedpostboxesnonce','hidden_post_status','hidden_post_password','hidden_post_visibility','visibility',
|
457 |
'post_password','hidden_mm','cur_mm','hidden_jj','cur_jj','hidden_aa','cur_aa','hidden_hh','cur_hh','hidden_mn','cur_mn','original_publish','save','newlanding_page_category','newlanding_page_category_parent',
|
458 |
'_ajax_nonce-add-landing_page_category','lp_lp_custom_fields_nonce','lp-selected-template','post_mime_type','ID','comment_status','ping_status');
|
459 |
+
|
460 |
//$special_list = array('content','post-content');
|
461 |
//print_r($_POST);exit;
|
462 |
//echo $this_variation;exit;
|
463 |
foreach ($_POST as $key=>$value)
|
464 |
{
|
465 |
+
//echo $key." : -{$this_variation} : $value<br>";
|
466 |
if (!in_array($key,$ignore_list)&&!strstr($key,'nonce'))
|
467 |
{
|
468 |
+
if ($key=='post_content')
|
469 |
+
$key = 'content';
|
470 |
+
|
471 |
if (!strstr($key,"-{$this_variation}"))
|
472 |
{
|
473 |
$new_array[$key.'-'.$this_variation] = $value;
|
477 |
//echo $key." : -{$this_variation}<br>";
|
478 |
$new_array[$key] = $value;
|
479 |
}
|
|
|
480 |
}
|
481 |
+
//echo $key." : -{$this_variation} : $value<br>";
|
482 |
}
|
483 |
+
|
|
|
484 |
//print_r($new_array);exit;
|
485 |
+
|
486 |
foreach($new_array as $key => $val)
|
487 |
+
{
|
488 |
+
$old = get_post_meta($postID, $key, true);
|
489 |
+
$new = $val;
|
490 |
//echo "$key : $old v. $new <br>";
|
491 |
//if (isset($new) && $new != $old ) {
|
492 |
update_post_meta($postID, $key, $new);
|
493 |
//} elseif ('' == $new && $old) {
|
494 |
//delete_post_meta($postID, $key, $old);
|
495 |
+
//}
|
496 |
+
}
|
497 |
+
|
498 |
}
|
499 |
}
|
500 |
|
501 |
+
//not sure if this is needed
|
502 |
+
add_filter('lp_content_area','lp_ab_testing_alter_content_area_admin', 10, 2);
|
503 |
+
function lp_ab_testing_alter_content_area_admin($content)
|
504 |
+
{
|
505 |
+
global $post;
|
506 |
+
|
507 |
+
$variation_id = lp_ab_testing_get_current_variation_id();
|
508 |
+
|
509 |
+
if ($variation_id>0)
|
510 |
+
{
|
511 |
+
$content = get_post_meta($post->ID,'content-'.$variation_id, true);
|
512 |
+
if ( !is_admin() )
|
513 |
+
{
|
514 |
+
$content = wpautop($content);
|
515 |
+
$content = do_shortcode($content);
|
516 |
+
}
|
517 |
+
}
|
518 |
+
|
519 |
+
return $content;
|
520 |
+
}
|
521 |
}
|
522 |
|
523 |
//PERFORM FRONT-END ONLY ACTIONS
|
525 |
{
|
526 |
|
527 |
//prepare customizer meta data for ab varations
|
528 |
+
add_filter('lp_get_value','lp_ab_testing_prepare_variation_meta', 1 , 4);
|
529 |
function lp_ab_testing_prepare_variation_meta($return, $post, $key, $id)
|
530 |
{
|
531 |
if (isset($_REQUEST['lp-variation-id'])||isset($_COOKIE['lp-variation-id']))
|
532 |
+
{
|
533 |
(isset($_REQUEST['lp-variation-id'])) ? $variation_id = $_REQUEST['lp-variation-id'] : $variation_id = $_COOKIE['lp-variation-id'];
|
534 |
if ($variation_id>0)
|
535 |
return get_post_meta($post->ID, $key.'-'.$id. '-' .$variation_id , true);
|
543 |
}
|
544 |
|
545 |
//prepare customizer, admin, and preview links for variations
|
546 |
+
add_filter('lp_customizer_customizer_link', 'lp_ab_append_variation_id_to_link');
|
547 |
+
add_filter('lp_customizer_admin_bar_link', 'lp_ab_append_variation_id_to_link');
|
548 |
add_filter('lp_customizer_preview_link','lp_ab_append_variation_id_to_link');
|
549 |
+
|
550 |
function lp_ab_append_variation_id_to_link($link)
|
551 |
+
{
|
552 |
|
553 |
$current_variation_id = lp_ab_testing_get_current_variation_id();
|
554 |
|
557 |
|
558 |
return $link;
|
559 |
}
|
560 |
+
|
561 |
}
|
562 |
|
563 |
//PERFORM ACTIONS REQUIRED ON BOTH FRONT AND BACKEND
|
564 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
565 |
//ready conversion area for displaying ab variations
|
566 |
add_filter('lp_conversion_area_pre_standardize','lp_ab_testing_prepare_conversion_area' , 10 , 2 );
|
567 |
function lp_ab_testing_prepare_conversion_area($content,$post=null)
|
568 |
+
{
|
569 |
$current_variation_id = lp_ab_testing_get_current_variation_id();
|
570 |
+
|
571 |
if (isset($post))
|
572 |
{
|
573 |
$post_id = $post->ID;
|
580 |
{
|
581 |
$post_id = $_REQUEST['lp_id'];
|
582 |
}
|
583 |
+
|
584 |
+
|
585 |
if ($current_variation_id>0)
|
586 |
+
$content = get_post_meta($post_id,'landing-page-myeditor-'.$current_variation_id, true);
|
587 |
|
588 |
return $content;
|
589 |
}
|
591 |
//ready conversion area for displaying ab variations
|
592 |
add_filter('lp_conversion_area_position','lp_ab_testing_lp_conversion_area_position' , 10 , 2 );
|
593 |
function lp_ab_testing_lp_conversion_area_position($position, $post = null, $key = 'default')
|
594 |
+
{
|
595 |
|
596 |
$current_variation_id = lp_ab_testing_get_current_variation_id();
|
597 |
+
|
598 |
if (isset($post))
|
599 |
{
|
600 |
$post_id = $post->ID;
|
607 |
{
|
608 |
$post_id = $_REQUEST['lp_id'];
|
609 |
}
|
610 |
+
|
611 |
if ($current_variation_id>0)
|
612 |
$position = get_post_meta($post->ID, "{$key}-conversion-area-placement-".$current_variation_id, true);
|
613 |
|
617 |
|
618 |
add_filter('lp_main_headline','lp_ab_testing_prepare_headline', 10, 2);
|
619 |
function lp_ab_testing_prepare_headline($main_headline, $post = null)
|
620 |
+
{
|
621 |
|
622 |
$current_variation_id = lp_ab_testing_get_current_variation_id();
|
623 |
|
632 |
else if (isset($_REQUEST['lp_id']))
|
633 |
{
|
634 |
$post_id = $_REQUEST['lp_id'];
|
635 |
+
}
|
636 |
else if (isset($_REQUEST['post_id']))
|
637 |
{
|
638 |
$post_id = $_REQUEST['post_id'];
|
639 |
}
|
640 |
+
|
641 |
+
|
642 |
if ($current_variation_id>0)
|
643 |
$main_headline = get_post_meta($post_id,'lp-main-headline-'.$current_variation_id, true);
|
644 |
|
646 |
{
|
647 |
get_post_meta($post_id,'lp-main-headline', true);
|
648 |
}
|
649 |
+
|
650 |
|
651 |
return $main_headline;
|
652 |
}
|
658 |
$this_path = explode('wp-content',$this_path);
|
659 |
$this_path = "wp-content".$this_path[1];
|
660 |
|
661 |
+
$slug = get_option( 'lp-main-landing-page-permalink-prefix', 'go' );
|
662 |
//echo $slug;exit;
|
663 |
add_rewrite_rule("$slug/([^/]*)?", $this_path."modules/module.redirect-ab-testing.php?permalink_name=$1 ",'top');
|
664 |
+
add_rewrite_rule("landing-page=([^/]*)?", $this_path.'modules/module.redirect-ab-testing.php?permalink_name=$1','top');
|
665 |
+
|
666 |
add_filter('mod_rewrite_rules', 'lp_ab_testing_modify_rules', 1);
|
667 |
function lp_ab_testing_modify_rules($rules)
|
668 |
{
|
674 |
$rules_array = explode("\n", $rules);
|
675 |
$rules_array = array_filter($rules_array);
|
676 |
}
|
677 |
+
|
678 |
//print_r($rules_array);exit;
|
679 |
+
|
680 |
$this_path = LANDINGPAGES_PATH;
|
681 |
$this_path = explode('wp-content',$this_path);
|
682 |
+
$this_path = "wp-content".$this_path[1];
|
683 |
+
$slug = get_option( 'lp-main-landing-page-permalink-prefix', 'go' );
|
684 |
+
|
685 |
$i = 0;
|
686 |
foreach ($rules_array as $key=>$val)
|
687 |
{
|
688 |
+
|
689 |
if (stristr($val,"RewriteRule ^{$slug}/([^/]*)? "))
|
690 |
{
|
691 |
$new_val = "RewriteCond %{QUERY_STRING} !lp-variation-id";
|
700 |
$i++;
|
701 |
}
|
702 |
}
|
703 |
+
|
704 |
$rules = implode("\r\n", $rules_array);
|
705 |
}
|
706 |
+
|
707 |
return $rules;
|
708 |
}
|
709 |
+
|
710 |
}
|
711 |
|
712 |
|
713 |
add_filter('lp_selected_template','lp_ab_testing_get_selected_template');//get correct selected template for each variation
|
714 |
function lp_ab_testing_get_selected_template($template)
|
715 |
+
{
|
716 |
global $post;
|
717 |
+
|
718 |
$current_variation_id = lp_ab_testing_get_current_variation_id();
|
719 |
|
720 |
if ($current_variation_id>0)
|
721 |
{
|
722 |
$new_template = get_post_meta($post->ID, 'lp-selected-template-'.$current_variation_id, true);
|
723 |
if ($new_template)
|
724 |
+
$template = $new_template;
|
725 |
}
|
726 |
+
|
727 |
return $template;
|
728 |
}
|
729 |
|
730 |
+
//prepare custom js and css for
|
731 |
add_filter('lp_custom_js_name','lp_ab_testing_prepare_name');
|
732 |
add_filter('lp_custom_css_name','lp_ab_testing_prepare_name');
|
733 |
function lp_ab_testing_prepare_name($id)
|
734 |
+
{
|
735 |
$current_variation_id = lp_ab_testing_get_current_variation_id();
|
736 |
//echo $current_variation_id;exit;
|
737 |
if ($current_variation_id>0)
|
738 |
{
|
739 |
$id = $id.'-'.$current_variation_id;
|
740 |
}
|
741 |
+
|
742 |
return $id;
|
743 |
}
|
744 |
|
746 |
add_action('wp_ajax_nopriv_lp_ab_testing_prepare_variation', 'lp_ab_testing_prepare_variation_callback');
|
747 |
|
748 |
function lp_ab_testing_prepare_variation_callback()
|
749 |
+
{
|
750 |
if (!lp_determine_spider())
|
751 |
+
{
|
752 |
//echo "hello";
|
753 |
//PRINT trim($_POST['current_url']);
|
754 |
+
$page_id = lp_url_to_postid( trim($_POST['current_url']) );
|
755 |
//echo $page_id;
|
756 |
$variations = get_post_meta($page_id,'lp-ab-variations', true);
|
757 |
$marker = get_post_meta($page_id,'lp-ab-variations-marker', true);
|
758 |
if (!is_numeric($marker))
|
759 |
$marker = 0;
|
760 |
+
|
761 |
//echo "marker$marker";
|
762 |
+
|
763 |
if ($variations)
|
764 |
{
|
765 |
//echo $variations;
|
766 |
$variations = explode(',',$variations);
|
767 |
//print_r($variations);
|
768 |
+
|
769 |
$variation_id = $variations[$marker];
|
770 |
|
771 |
$marker++;
|
772 |
+
|
773 |
if ($marker>=count($variations))
|
774 |
{
|
775 |
//echo "here";
|
776 |
$marker = 0;
|
777 |
+
}
|
778 |
+
|
779 |
update_post_meta($page_id, 'lp-ab-variations-marker', $marker);
|
780 |
+
|
781 |
+
echo $variation_id;
|
782 |
die();
|
783 |
}
|
|
|
|
|
|
|
784 |
|
785 |
+
}
|
786 |
+
}
|
|
|
|
|
|
|
|
|
|
|
787 |
|
|
|
|
|
|
|
|
|
|
|
|
|
788 |
|
789 |
+
add_filter('the_content','lp_ab_testing_alter_content_area', 10, 2);
|
790 |
+
add_filter('get_the_content','lp_ab_testing_alter_content_area', 10, 2);
|
791 |
+
function lp_ab_testing_alter_content_area($content)
|
792 |
+
{
|
793 |
+
global $post;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
794 |
|
795 |
+
$variation_id = lp_ab_testing_get_current_variation_id();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
796 |
|
797 |
+
if ($variation_id>0)
|
|
|
798 |
{
|
799 |
+
$content = do_shortcode(get_post_meta($post->ID,'content-'.$variation_id, true));
|
|
|
|
|
|
|
|
|
|
|
|
|
800 |
}
|
|
|
|
|
|
|
|
|
|
|
801 |
|
802 |
+
return $content;
|
|
|
|
|
|
|
|
|
|
|
|
|
803 |
}
|
804 |
|
805 |
+
add_filter('wp_title','lp_ab_testing_alter_title_area', 9, 2);
|
806 |
+
add_filter('the_title','lp_ab_testing_alter_title_area', 10, 2);
|
807 |
+
add_filter('get_the_title','lp_ab_testing_alter_title_area', 10, 2);
|
808 |
+
function lp_ab_testing_alter_title_area( $content , $id = null)
|
809 |
{
|
810 |
+
global $post;
|
811 |
+
if (!isset($post))
|
812 |
+
return;
|
813 |
+
if ( ( $post->post_type!='landing-page'||is_admin()) || $id != $post->ID)
|
814 |
+
return $content;
|
815 |
+
|
816 |
+
return lp_main_headline($post, null, true);
|
817 |
+
}
|
818 |
+
|
819 |
+
add_action('lp_record_impression','lp_ab_testing_record_impression', 10, 2);
|
820 |
+
function lp_ab_testing_record_impression($page_id, $variation_id=0)
|
821 |
+
{
|
822 |
+
$impressions = get_post_meta($page_id,'lp-ab-variation-impressions-'.$variation_id, true);
|
823 |
+
if (!is_numeric($impressions))
|
824 |
+
$impressions = 1;
|
825 |
+
else
|
826 |
+
$impressions++;
|
827 |
+
|
828 |
+
update_post_meta($page_id,'lp-ab-variation-impressions-'.$variation_id, $impressions);
|
829 |
+
}
|
830 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
831 |
|
832 |
add_action('lp_launch_customizer_pre','lp_ab_testing_customizer_enqueue');
|
833 |
function lp_ab_testing_customizer_enqueue($post)
|
834 |
{
|
835 |
//echo 1; exit;
|
836 |
+
$permalink = get_permalink( $post->ID );
|
837 |
$randomstring = substr(str_shuffle("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"), 0, 10);
|
838 |
|
839 |
wp_enqueue_script( 'lp_ab_testing_customizer_js', LANDINGPAGES_URLPATH . 'js/customizer.ab-testing.js', array( 'jquery' ) );
|
840 |
wp_localize_script( 'lp_ab_testing_customizer_js', 'ab_customizer', array( 'lp_id' => $post->ID ,'permalink' => $permalink , 'randomstring' => $randomstring));
|
841 |
+
wp_enqueue_style('lp_ab_testing_customizer_css', LANDINGPAGES_URLPATH . 'css/customizer-ab-testing.css');
|
842 |
}
|
843 |
|
844 |
+
add_action('lp_frontend_editor_screen_pre','ab_testing_frontend_editor_screen_pre');
|
845 |
function ab_testing_frontend_editor_screen_pre($post)
|
846 |
{
|
847 |
$lp_variation = (isset($_GET['lp-variation-id'])) ? $_GET['lp-variation-id'] : '0';
|
849 |
echo '<div id="current_variation_id">'.$lp_variation.'</div>';
|
850 |
?>
|
851 |
<script type='text/javascript'>
|
852 |
+
jQuery(document).ready(function ($) {
|
853 |
//append letter
|
854 |
var letterexists = jQuery(".variation-letter-top").length;
|
855 |
console.log(letterexists);
|
858 |
}
|
859 |
});
|
860 |
</script>
|
861 |
+
<?php
|
862 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
863 |
|
864 |
+
?>
|
modules/module.addon.php
CHANGED
@@ -21,4 +21,8 @@ function lp_addon_display()
|
|
21 |
<div id="lp-store-iframe-container">
|
22 |
</div>
|
23 |
|
24 |
-
<?php
|
|
|
|
|
|
|
|
21 |
<div id="lp-store-iframe-container">
|
22 |
</div>
|
23 |
|
24 |
+
<?php
|
25 |
+
|
26 |
+
}
|
27 |
+
|
28 |
+
?>
|
modules/module.ajax-setup.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php
|
2 |
* Adds Ajax for Clear Stats button - clear stats for all variations
|
3 |
*/
|
4 |
* Adds Ajax for Clear Stats button - clear stats for single variations
|
5 |
*/
|
6 |
* Adds ajax to record conversions
|
7 |
* Adds ajax to record impressions
|
8 |
* ADD AJAX FOR METABOX TEMPLATE SWITCHING
|
9 |
*/
|
10 |
|
11 |
* Add ajax for post meta save options
|
12 |
*/
|
|
|
13 |
* Adds Ajax for Clear Stats button
|
14 |
* clear stats for all variations
|
15 |
*/
|
16 |
* Adds Ajax for Clear Stats button
|
17 |
* clear stats for single variations
|
18 |
*/
|
19 |
* Click tracking moved to module.click-tracking.php
|
20 |
* Adds ajax to record landing page impressions
|
21 |
* future plans to integrate with google analytics
|
22 |
* Adds Ajax Template Selection
|
23 |
* @return prints out landing page meta options
|
24 |
*/
|
25 |
* Add ajax for post meta save options
|
26 |
*/
|
27 |
|
|
|
1 |
* Adds Ajax for Clear Stats button - clear stats for all variations
|
2 |
*/
|
3 |
* Adds Ajax for Clear Stats button - clear stats for single variations
|
4 |
*/
|
5 |
* Adds ajax to record conversions
|
6 |
* Adds ajax to record impressions
|
7 |
* ADD AJAX FOR METABOX TEMPLATE SWITCHING
|
8 |
*/
|
9 |
|
10 |
* Add ajax for post meta save options
|
11 |
*/
|
12 |
+
<?php
|
13 |
* Adds Ajax for Clear Stats button
|
14 |
* clear stats for all variations
|
15 |
*/
|
16 |
* Adds Ajax for Clear Stats button
|
17 |
* clear stats for single variations
|
18 |
*/
|
19 |
* Click tracking moved to module.click-tracking.php
|
20 |
* Adds ajax to record landing page impressions
|
21 |
* future plans to integrate with google analytics
|
22 |
* Adds Ajax Template Selection
|
23 |
* @return prints out landing page meta options
|
24 |
*/
|
25 |
* Add ajax for post meta save options
|
26 |
*/
|
27 |
|
modules/module.alert.php
CHANGED
@@ -45,8 +45,9 @@ function lp_activation_message_ignore() {
|
|
45 |
add_user_meta($user_id, 'lp_activation_ignore_notice', 'true', true);
|
46 |
}
|
47 |
} */
|
48 |
-
// End Landing Page Welcome
|
49 |
|
|
|
|
|
50 |
function lp_template_page_get_more(){
|
51 |
global $pagenow;
|
52 |
$page_string = isset($_GET["page"]) ? $_GET["page"] : "null";
|
@@ -57,9 +58,9 @@ function lp_template_page_get_more(){
|
|
57 |
jQuery("#bulk_actions").prepend(moretemp); jQuery(".lp-selection-heading").append(moretemp); jQuery(".lp-selection-heading #more-templates").css("float","right"); jQuery(moretemp).show(); });</script>';
|
58 |
}
|
59 |
}
|
60 |
-
add_action('admin_notices', 'lp_template_page_get_more');
|
61 |
-
/* End Template Notices */
|
62 |
|
|
|
|
|
63 |
function lp_ab_notice(){
|
64 |
global $pagenow;
|
65 |
$page_string = isset($_GET["page"]) ? $_GET["page"] : "null";
|
@@ -69,4 +70,5 @@ function lp_ab_notice(){
|
|
69 |
echo "</h3><h1><a href=\"#\" onClick=\"window.open('http://www.youtube.com/embed/KJ_EDJAvv9Y?autoplay=1','landing-page','width=640,height=480,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=no')\">Watch Video Explanation</a></h1></p></div>";
|
70 |
}
|
71 |
}
|
72 |
-
|
|
45 |
add_user_meta($user_id, 'lp_activation_ignore_notice', 'true', true);
|
46 |
}
|
47 |
} */
|
|
|
48 |
|
49 |
+
// End Landing Page Welcome
|
50 |
+
add_action('admin_notices', 'lp_template_page_get_more');
|
51 |
function lp_template_page_get_more(){
|
52 |
global $pagenow;
|
53 |
$page_string = isset($_GET["page"]) ? $_GET["page"] : "null";
|
58 |
jQuery("#bulk_actions").prepend(moretemp); jQuery(".lp-selection-heading").append(moretemp); jQuery(".lp-selection-heading #more-templates").css("float","right"); jQuery(moretemp).show(); });</script>';
|
59 |
}
|
60 |
}
|
|
|
|
|
61 |
|
62 |
+
/* End Template Notices */
|
63 |
+
add_action('admin_notices', 'lp_ab_notice');
|
64 |
function lp_ab_notice(){
|
65 |
global $pagenow;
|
66 |
$page_string = isset($_GET["page"]) ? $_GET["page"] : "null";
|
70 |
echo "</h3><h1><a href=\"#\" onClick=\"window.open('http://www.youtube.com/embed/KJ_EDJAvv9Y?autoplay=1','landing-page','width=640,height=480,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=no')\">Watch Video Explanation</a></h1></p></div>";
|
71 |
}
|
72 |
}
|
73 |
+
|
74 |
+
?>
|
modules/module.click-tracking.php
ADDED
@@ -0,0 +1,199 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
add_action('wp_footer', 'lp_click_callback');
|
4 |
+
|
5 |
+
function lp_click_callback() {
|
6 |
+
global $post;
|
7 |
+
if (!isset($post))
|
8 |
+
return;
|
9 |
+
$id = $post->ID;
|
10 |
+
if(get_post_type( $id ) == 'landing-page'){
|
11 |
+
$variation = (isset($_GET['lp-variation-id'])) ? $_GET['lp-variation-id'] : 0;
|
12 |
+
// Footer script for link rewrites ?>
|
13 |
+
<script type="text/javascript">
|
14 |
+
jQuery(document).ready(function($) {
|
15 |
+
var lead_cpt_id = jQuery.cookie("wp_lead_id");
|
16 |
+
var lead_email = jQuery.cookie("wp_lead_email");
|
17 |
+
var lead_unique_key = jQuery.cookie("wp_lead_uid");
|
18 |
+
|
19 |
+
if (typeof (lead_cpt_id) != "undefined" && lead_cpt_id !== null) {
|
20 |
+
string = "&wpl_id=" + lead_cpt_id + "&l_type=wplid";
|
21 |
+
} else if (typeof (lead_email) != "undefined" && lead_email !== null && lead_email !== "") {
|
22 |
+
string = "&wpl_id=" + lead_email + "&l_type=wplemail";;
|
23 |
+
} else if (typeof (lead_unique_key) != "undefined" && lead_unique_key !== null && lead_unique_key !== "") {
|
24 |
+
string = "&wpl_id=" + lead_unique_key + "&l_type=wpluid";;
|
25 |
+
} else {
|
26 |
+
string = "";
|
27 |
+
}
|
28 |
+
var external = RegExp('^((f|ht)tps?:)?//(?!' + location.host + ')');
|
29 |
+
jQuery('.link-click-tracking a').not("#wpadminbar a").each(function () {
|
30 |
+
jQuery(this).attr("data-event-id", '<?php echo $id; ?>').attr("data-cta-varation", '<?php echo $variation;?>');
|
31 |
+
var orignalurl = jQuery(this).attr("href");
|
32 |
+
//jQuery("a[href*='http://']:not([href*='"+window.location.hostname+"'])"); // rewrite external links
|
33 |
+
var link_is = external.test(orignalurl);
|
34 |
+
if (link_is === true) {
|
35 |
+
base_url = window.location.origin;
|
36 |
+
} else {
|
37 |
+
base_url = orignalurl;
|
38 |
+
}
|
39 |
+
var cta_variation = "&wp-cta-v=" + jQuery(this).attr("data-cta-varation");
|
40 |
+
var this_id = jQuery(this).attr("data-event-id");
|
41 |
+
var newurl = base_url + "?lp_redirect_" + this_id + "=" + orignalurl + cta_variation + string;
|
42 |
+
jQuery(this).attr("href", newurl);
|
43 |
+
});
|
44 |
+
});
|
45 |
+
</script>
|
46 |
+
<?php }
|
47 |
+
}
|
48 |
+
|
49 |
+
// Register CTA Clicks
|
50 |
+
function lp_click_track_redirect() {
|
51 |
+
global $wpdb;
|
52 |
+
if ($qs = $_SERVER['REQUEST_URI']) {
|
53 |
+
parse_str($qs, $output);
|
54 |
+
(isset($output['l_type'])) ? $type = $output['l_type'] : $type = "";
|
55 |
+
(isset($output['wpl_id'])) ? $lead_id = $output['wpl_id'] : $lead_id = "";
|
56 |
+
(isset($output['wp-cta-v'])) ? $cta_variation = $output['wp-cta-v'] : $cta_variation = null;
|
57 |
+
$pos = strpos($qs, 'lp_redirect');
|
58 |
+
if (!(false === $pos)) {
|
59 |
+
$link = substr($qs, $pos);
|
60 |
+
$link = str_replace('lp_redirect=', '', $link); // clean url
|
61 |
+
|
62 |
+
// Extract the ID and get the link
|
63 |
+
$pattern = '/lp_redirect_(\d+?)\=/';
|
64 |
+
preg_match($pattern, $link, $matches);
|
65 |
+
$link = preg_replace($pattern, '', $link);
|
66 |
+
$landing_page_id = $matches[1]; // Event ID
|
67 |
+
$lead_ID = false;
|
68 |
+
$append = true;
|
69 |
+
// If lead post id exists
|
70 |
+
if ($type === 'wplid') {
|
71 |
+
$lead_ID = $lead_id;
|
72 |
+
}
|
73 |
+
// If lead email exists
|
74 |
+
elseif ($type === 'wplemail') {
|
75 |
+
$query = $wpdb->prepare(
|
76 |
+
'SELECT ID FROM ' . $wpdb->posts . '
|
77 |
+
WHERE post_title = %s
|
78 |
+
AND post_type = \'wp-lead\'',
|
79 |
+
$lead_id
|
80 |
+
);
|
81 |
+
$wpdb->query( $query );
|
82 |
+
if ( $wpdb->num_rows ) {
|
83 |
+
$lead_ID = $wpdb->get_var( $query );
|
84 |
+
}
|
85 |
+
}
|
86 |
+
// If lead wp_uid exists
|
87 |
+
elseif ($type === 'wpluid') {
|
88 |
+
$query = $wpdb->prepare(
|
89 |
+
'SELECT post_id FROM ' . $wpdb->prefix . 'postmeta
|
90 |
+
WHERE meta_value = %s',
|
91 |
+
$lead_id
|
92 |
+
);
|
93 |
+
$wpdb->query( $query );
|
94 |
+
if ( $wpdb->num_rows ) {
|
95 |
+
$lead_ID = $wpdb->get_var( $query );
|
96 |
+
} else {
|
97 |
+
$lead_ID = $lead_id;
|
98 |
+
$append = false;
|
99 |
+
}
|
100 |
+
}
|
101 |
+
|
102 |
+
// Save click!
|
103 |
+
lp_store_click_data( $landing_page_id, $lead_ID, $cta_variation); // Store CTA data to CTA CPT
|
104 |
+
|
105 |
+
if( $lead_ID && $append != false ) {
|
106 |
+
/* Add landing page click to lead profile */
|
107 |
+
lp_store_click_data_to_lead($landing_page_id, $lead_ID, $cta_variation);
|
108 |
+
}
|
109 |
+
$link = preg_replace('/(?<=wpl_id)(.*)(?=&)/s', '', $link); // clean url
|
110 |
+
$link = preg_replace('/&wpl_id&l_type=(\D*)/', '', $link); // clean url2
|
111 |
+
$link = preg_replace('/&wp-cta-v=(\d*)/', '', $link); // clean url3
|
112 |
+
// Redirect
|
113 |
+
header("HTTP/1.1 302 Temporary Redirect");
|
114 |
+
header("Location:" . $link);
|
115 |
+
// I'm outta here!
|
116 |
+
exit(1);
|
117 |
+
}
|
118 |
+
}
|
119 |
+
}
|
120 |
+
|
121 |
+
function lp_store_click_data($landing_page_id, $lead_ID, $cta_variation){
|
122 |
+
// If leads_triggered meta exists do this
|
123 |
+
$event_trigger_log = get_post_meta($landing_page_id,'leads_triggered',true);
|
124 |
+
$time = current_time( 'timestamp', 0 ); // Current wordpress time from settings
|
125 |
+
$wordpress_date_time = date("Y-m-d G:i:s T", $time);
|
126 |
+
$conversion_count = get_post_meta($landing_page_id,'lp-ab-variation-conversions-'.$cta_variation ,true);
|
127 |
+
$conversion_count++;
|
128 |
+
update_post_meta($landing_page_id, 'lp-ab-variation-conversions-'.$cta_variation, $conversion_count);
|
129 |
+
/* Update for log tracking
|
130 |
+
if ($event_trigger_log) {
|
131 |
+
$event_trigger_log = json_decode($event_trigger_log,true);
|
132 |
+
// increment trigger count
|
133 |
+
if(isset($event_trigger_log[$lead_ID])){
|
134 |
+
$current_count = $event_trigger_log[$lead_ID]['count'];
|
135 |
+
} else {
|
136 |
+
$current_count = 0;
|
137 |
+
}
|
138 |
+
$event_trigger_log[$lead_ID]['count'] = $current_count + 1;
|
139 |
+
$event_trigger_log[$lead_ID]['datetime'] = $wordpress_date_time;
|
140 |
+
$count = count($event_trigger_log[$lead_ID]['date']) + 1;
|
141 |
+
$event_trigger_log[$lead_ID]['date'][$count] = $wordpress_date_time;
|
142 |
+
$event_trigger_log = json_encode($event_trigger_log);
|
143 |
+
update_post_meta($landing_page_id, 'leads_triggered', $event_trigger_log);
|
144 |
+
} else {
|
145 |
+
// Create leads_triggered meta
|
146 |
+
$event_trigger_log = array();
|
147 |
+
$event_trigger_log[$lead_ID]['count'] = 1;
|
148 |
+
$event_trigger_log[$lead_ID]['datetime'] = $wordpress_date_time;
|
149 |
+
$event_trigger_log[$lead_ID]['date'][1] = $wordpress_date_time;
|
150 |
+
$event_trigger_log = json_encode($event_trigger_log);
|
151 |
+
update_post_meta($landing_page_id, 'leads_triggered', $event_trigger_log);
|
152 |
+
}
|
153 |
+
*/
|
154 |
+
update_post_meta($landing_page_id, 'lp_last_triggered', $wordpress_date_time ); // update last fired date
|
155 |
+
}
|
156 |
+
|
157 |
+
// Store Event Trigger to Lead profile
|
158 |
+
function lp_store_click_data_to_lead($landing_page_id, $lead_ID, $lp_variation) {
|
159 |
+
|
160 |
+
$time = current_time( 'timestamp', 0 ); // Current wordpress time from settings
|
161 |
+
$wordpress_date_time = date("Y-m-d G:i:s T", $time);
|
162 |
+
|
163 |
+
if ( $lead_ID ) {
|
164 |
+
$conversion_data = get_post_meta( $lead_ID, 'wpleads_conversion_data', TRUE );
|
165 |
+
$individual_event_count = get_post_meta( $lead_ID, 'wpleads_landing_page_'.$landing_page_id, TRUE );
|
166 |
+
$individual_event_count = ($individual_event_count != "") ? $individual_event_count : 0;
|
167 |
+
$individual_event_count++;
|
168 |
+
$meta = get_post_meta( $lead_ID, 'times', TRUE ); // replace times
|
169 |
+
$meta++;
|
170 |
+
$conversions_count = get_post_meta($lead_ID,'wpl-lead-conversion-count', true);
|
171 |
+
$conversions_count++;
|
172 |
+
if ($conversion_data) {
|
173 |
+
|
174 |
+
$conversion_data = json_decode($conversion_data,true);
|
175 |
+
$conversion_data[$meta]['id'] = $landing_page_id;
|
176 |
+
$conversion_data[$meta]['variation'] = $lp_variation;
|
177 |
+
$conversion_data[$meta]['datetime'] = $wordpress_date_time;
|
178 |
+
$conversion_data = json_encode($conversion_data);
|
179 |
+
update_post_meta( $lead_ID, 'wpleads_conversion_data', $conversion_data );
|
180 |
+
update_post_meta( $lead_ID, 'wpleads_landing_page_'.$landing_page_id, $individual_event_count );
|
181 |
+
// update_post_meta( $lead_ID, 'lt_event_tracked_'.$landing_page_id, $individual_event_count );
|
182 |
+
} else {
|
183 |
+
$conversion_data[1]['id'] = $landing_page_id;
|
184 |
+
$conversion_data[1]['variation'] = $lp_variation;
|
185 |
+
$conversion_data[1]['datetime'] = $wordpress_date_time;
|
186 |
+
$conversion_data[1]['first_time'] = 1;
|
187 |
+
// Add in exact link url clicked
|
188 |
+
$conversion_data = json_encode($conversion_data);
|
189 |
+
update_post_meta( $lead_ID, 'wpleads_conversion_data', $conversion_data );
|
190 |
+
update_post_meta( $lead_ID, 'wpleads_landing_page_'.$landing_page_id, $individual_event_count );
|
191 |
+
// update_post_meta( $lead_ID, 'lt_event_tracked_'.$landing_page_id, $individual_event_count );
|
192 |
+
}
|
193 |
+
update_post_meta( $lead_ID, 'times', $meta );
|
194 |
+
update_post_meta( $lead_ID, 'wpl-lead-conversion-count', $meta );
|
195 |
+
// Need to call conversion paths too
|
196 |
+
}
|
197 |
+
}
|
198 |
+
|
199 |
+
?>
|
modules/module.cookies.php
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
<?php
|
2 |
|
|
|
3 |
add_action('lp_record_conversion','lp_cookie_user');
|
4 |
function lp_cookie_user($lp_id)
|
5 |
{
|
1 |
<?php
|
2 |
|
3 |
+
// Not currently firing. Need to roll into core tracking
|
4 |
add_action('lp_record_conversion','lp_cookie_user');
|
5 |
function lp_cookie_user($lp_id)
|
6 |
{
|
modules/module.customizer.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php
|
2 |
function lp_customizer_show_metabox($post,$key)
|
3 |
{
|
4 |
global $lp_data;
|
5 |
//print_r($lp_data);exit;
|
6 |
$key = $key['args']['key'];
|
7 |
|
8 |
$lp_custom_fields = $lp_data[$key]['options'];
|
9 |
$lp_custom_fields = apply_filters('lp_show_metabox',$lp_custom_fields, $key);
|
10 |
|
11 |
lp_customizer_render_metabox($key,$lp_custom_fields,$post);
|
12 |
}
|
13 |
|
14 |
function lp_customizer_render_metabox($key,$custom_fields,$post)
|
15 |
{
|
16 |
}
|
17 |
|
18 |
wp_register_script('lp-customizer-load-js', LANDINGPAGES_URLPATH . 'js/customizer.load.js', array('jquery'));
|
19 |
wp_enqueue_script('lp-customizer-load-js');
|
|
|
20 |
function lp_customizer_show_metabox($post,$key)
|
21 |
{
|
22 |
global $lp_data;
|
23 |
//print_r($lp_data);exit;
|
24 |
$key = $key['args']['key'];
|
25 |
|
26 |
$lp_custom_fields = $lp_data[$key]['options'];
|
27 |
$lp_custom_fields = apply_filters('lp_show_metabox',$lp_custom_fields, $key);
|
28 |
|
29 |
lp_customizer_render_metabox($key,$lp_custom_fields,$post);
|
30 |
}
|
31 |
|
32 |
function lp_customizer_render_metabox($key,$custom_fields,$post)
|
33 |
{
|
34 |
}
|
35 |
|
36 |
wp_register_script('lp-customizer-load-js', LANDINGPAGES_URLPATH . 'js/customizer.load.js', array('jquery'));
|
37 |
wp_enqueue_script('lp-customizer-load-js');
|
|
|
1 |
function lp_customizer_show_metabox($post,$key)
|
2 |
{
|
3 |
global $lp_data;
|
4 |
//print_r($lp_data);exit;
|
5 |
$key = $key['args']['key'];
|
6 |
|
7 |
$lp_custom_fields = $lp_data[$key]['options'];
|
8 |
$lp_custom_fields = apply_filters('lp_show_metabox',$lp_custom_fields, $key);
|
9 |
|
10 |
lp_customizer_render_metabox($key,$lp_custom_fields,$post);
|
11 |
}
|
12 |
|
13 |
function lp_customizer_render_metabox($key,$custom_fields,$post)
|
14 |
{
|
15 |
}
|
16 |
|
17 |
wp_register_script('lp-customizer-load-js', LANDINGPAGES_URLPATH . 'js/customizer.load.js', array('jquery'));
|
18 |
wp_enqueue_script('lp-customizer-load-js');
|
19 |
+
<?php
|
20 |
function lp_customizer_show_metabox($post,$key)
|
21 |
{
|
22 |
global $lp_data;
|
23 |
//print_r($lp_data);exit;
|
24 |
$key = $key['args']['key'];
|
25 |
|
26 |
$lp_custom_fields = $lp_data[$key]['options'];
|
27 |
$lp_custom_fields = apply_filters('lp_show_metabox',$lp_custom_fields, $key);
|
28 |
|
29 |
lp_customizer_render_metabox($key,$lp_custom_fields,$post);
|
30 |
}
|
31 |
|
32 |
function lp_customizer_render_metabox($key,$custom_fields,$post)
|
33 |
{
|
34 |
}
|
35 |
|
36 |
wp_register_script('lp-customizer-load-js', LANDINGPAGES_URLPATH . 'js/customizer.load.js', array('jquery'));
|
37 |
wp_enqueue_script('lp-customizer-load-js');
|
modules/module.extension-licensing.php
ADDED
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* License handler for Landing Pages
|
4 |
+
*
|
5 |
+
* This class should simplify the process of adding license information
|
6 |
+
* to new LP extensions.
|
7 |
+
*
|
8 |
+
* @author Daniel J Griffiths
|
9 |
+
* @version 1.1
|
10 |
+
*/
|
11 |
+
|
12 |
+
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
13 |
+
|
14 |
+
if ( ! class_exists( 'LP_EXTENSION_LICENSE' ) ) :
|
15 |
+
|
16 |
+
/**
|
17 |
+
* LP_EXTENSION_LICENSE Class
|
18 |
+
*/
|
19 |
+
class LP_EXTENSION_LICENSE {
|
20 |
+
private $item_slug;
|
21 |
+
private $item_shortname;
|
22 |
+
private $version;
|
23 |
+
|
24 |
+
/**
|
25 |
+
* Class constructor
|
26 |
+
*
|
27 |
+
* @global array $edd_options
|
28 |
+
* @param string $_file
|
29 |
+
* @param string $_item_slug
|
30 |
+
* @param string $_version
|
31 |
+
* @param string $_author
|
32 |
+
* @param string $_optname
|
33 |
+
* @param string $_api_url
|
34 |
+
*/
|
35 |
+
function __construct( $_item_label, $_item_slug ) {
|
36 |
+
global $edd_options;
|
37 |
+
|
38 |
+
$this->item_label = $_item_label;
|
39 |
+
$this->item_slug = $_item_slug;
|
40 |
+
|
41 |
+
// Setup hooks
|
42 |
+
$this->hooks();
|
43 |
+
}
|
44 |
+
|
45 |
+
/**
|
46 |
+
* Setup hooks
|
47 |
+
*
|
48 |
+
* @access private
|
49 |
+
* @return void
|
50 |
+
*/
|
51 |
+
|
52 |
+
private function hooks() {
|
53 |
+
// Register settings
|
54 |
+
add_filter( 'lp_define_global_settings', array( $this, 'settings' ), 1 );
|
55 |
+
|
56 |
+
}
|
57 |
+
|
58 |
+
/**
|
59 |
+
* Add license field to settings
|
60 |
+
*
|
61 |
+
* @access public
|
62 |
+
* @param array $settings
|
63 |
+
* @return array
|
64 |
+
*/
|
65 |
+
public function settings( $lp_global_settings ) {
|
66 |
+
$lp_global_settings['lp-license-keys']['settings'][] = array(
|
67 |
+
|
68 |
+
'id' => $this->item_slug,
|
69 |
+
'slug' => $this->item_slug,
|
70 |
+
'label' => sprintf( __( '%1$s', 'lp' ), $this->item_label ),
|
71 |
+
'description' => 'Head to http://www.inboundnow.com/ to retrieve your license key for Landing Page Customizer for Landing Pages',
|
72 |
+
'type' => 'license-key',
|
73 |
+
'default' => '',
|
74 |
+
);
|
75 |
+
|
76 |
+
//print_r($lp_global_settings);exit;
|
77 |
+
return $lp_global_settings;
|
78 |
+
}
|
79 |
+
|
80 |
+
|
81 |
+
}
|
82 |
+
|
83 |
+
endif; // end class_exists check
|
84 |
+
|
modules/module.global-settings.php
CHANGED
@@ -16,21 +16,132 @@ if (is_admin())
|
|
16 |
function lp_get_global_settings()
|
17 |
{
|
18 |
global $lp_global_settings;
|
19 |
-
|
20 |
-
|
21 |
-
$tab_slug = 'main';
|
22 |
$lp_global_settings[$tab_slug]['label'] = 'Global Settings';
|
|
|
23 |
|
24 |
-
$lp_global_settings[$tab_slug]['
|
25 |
-
|
26 |
-
|
27 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
$lp_global_settings = apply_filters('lp_define_global_settings',$lp_global_settings);
|
30 |
-
|
31 |
return $lp_global_settings;
|
32 |
}
|
33 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
function lp_display_global_settings_js()
|
35 |
{
|
36 |
if (isset($_GET['tab']))
|
@@ -39,7 +150,7 @@ if (is_admin())
|
|
39 |
}
|
40 |
else
|
41 |
{
|
42 |
-
$default_id ='main';
|
43 |
}
|
44 |
?>
|
45 |
<script type='text/javascript'>
|
@@ -75,7 +186,7 @@ if (is_admin())
|
|
75 |
$lp_global_settings = lp_get_global_settings();
|
76 |
|
77 |
//print_r($lp_global_settings);
|
78 |
-
$active_tab = 'main';
|
79 |
if (isset($_REQUEST['open-tab']))
|
80 |
{
|
81 |
$active_tab = $_REQUEST['open-tab'];
|
@@ -103,11 +214,12 @@ if (is_admin())
|
|
103 |
echo "<form action='edit.php?post_type=landing-page&page=lp_global_settings' method='POST'>
|
104 |
<input type='hidden' name='nature' value='lp-global-settings-save'>
|
105 |
<input type='hidden' name='open-tab' id='id-open-tab' value='{$active_tab}'>";
|
106 |
-
|
|
|
107 |
{
|
108 |
-
$
|
109 |
-
lp_render_global_settings($key,$these_settings, $active_tab);
|
110 |
}
|
|
|
111 |
echo '<div style="float:left;padding-left:9px;padding-top:20px;">
|
112 |
<input type="submit" value="Save Settings" tabindex="5" id="lp-button-create-new-group-open" class="button-primary" >
|
113 |
</div>';
|
@@ -127,7 +239,7 @@ if (is_admin())
|
|
127 |
</center>
|
128 |
</div>
|
129 |
<div id="custom-templates">
|
130 |
-
<center><a href="http://
|
131 |
</center>
|
132 |
</div>
|
133 |
</div>
|
@@ -221,46 +333,46 @@ if (is_admin())
|
|
221 |
return;
|
222 |
|
223 |
|
224 |
-
foreach ($lp_global_settings as $key=>$
|
225 |
{
|
226 |
-
$
|
227 |
-
//echo 1;
|
228 |
-
|
229 |
// loop through fields and save the data
|
230 |
-
foreach ($
|
231 |
{
|
|
|
232 |
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
|
|
237 |
|
238 |
|
239 |
-
if ((isset($
|
240 |
{
|
241 |
-
//echo $
|
242 |
-
$bool = update_option($
|
243 |
-
if ($
|
244 |
{
|
245 |
//echo "here";
|
246 |
global $wp_rewrite;
|
247 |
$wp_rewrite->flush_rules();
|
248 |
}
|
249 |
-
if ($
|
250 |
{
|
251 |
-
// retrieve the license from the database
|
252 |
-
$license = trim( get_option( 'edd_sample_license_key' ) );
|
253 |
|
254 |
// data to send in our API request
|
255 |
$api_params = array(
|
256 |
'edd_action'=> 'activate_license',
|
257 |
-
'license' => $
|
258 |
-
'item_name' => $
|
259 |
-
);
|
|
|
260 |
|
261 |
// Call the custom API.
|
262 |
-
$response = wp_remote_get( add_query_arg( $api_params, LANDINGPAGES_STORE_URL ), array( 'timeout' =>
|
263 |
-
|
|
|
264 |
// make sure the response came back okay
|
265 |
if ( is_wp_error( $response ) )
|
266 |
break;
|
@@ -268,27 +380,27 @@ if (is_admin())
|
|
268 |
// decode the license data
|
269 |
$license_data = json_decode( wp_remote_retrieve_body( $response ) );
|
270 |
|
271 |
-
//echo $license_data->license;
|
272 |
-
//echo $option['slug'];exit;
|
273 |
|
274 |
// $license_data->license will be either "active" or "inactive"
|
275 |
-
$license_status = update_option('lp_license_status-'.$
|
|
|
|
|
276 |
}
|
277 |
}
|
278 |
-
elseif (!$
|
279 |
{
|
280 |
//echo "here: $key <br>";
|
281 |
-
$bool = delete_option($
|
282 |
}
|
283 |
else
|
284 |
{
|
285 |
-
//print_r($
|
286 |
-
if ($
|
287 |
{
|
288 |
|
289 |
-
$license_status = get_option('lp_license_status-'.$
|
290 |
|
291 |
-
if ($license_status=='valid' && $
|
292 |
{
|
293 |
continue;
|
294 |
}
|
@@ -299,13 +411,13 @@ if (is_admin())
|
|
299 |
// data to send in our API request
|
300 |
$api_params = array(
|
301 |
'edd_action'=> 'activate_license',
|
302 |
-
'license' => $
|
303 |
-
'item_name' => $
|
304 |
);
|
305 |
|
306 |
// Call the custom API.
|
307 |
-
$response = wp_remote_get( add_query_arg( $api_params, LANDINGPAGES_STORE_URL ), array( 'timeout' =>
|
308 |
-
//
|
309 |
//echo "<br>";
|
310 |
|
311 |
// make sure the response came back okay
|
@@ -316,15 +428,232 @@ if (is_admin())
|
|
316 |
$license_data = json_decode( wp_remote_retrieve_body( $response ) );
|
317 |
|
318 |
// $license_data->license will be either "active" or "inactive"
|
319 |
-
$license_status = update_option('lp_license_status-'.$
|
|
|
|
|
320 |
}
|
321 |
}
|
322 |
//exit;
|
323 |
-
do_action('lp_save_global_settings',$
|
324 |
} // end foreach
|
325 |
|
326 |
}
|
327 |
//exit;
|
328 |
}
|
329 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
330 |
}
|
16 |
function lp_get_global_settings()
|
17 |
{
|
18 |
global $lp_global_settings;
|
19 |
+
|
20 |
+
/* Setup Main Navigation Tab and Settings */
|
21 |
+
$tab_slug = 'lp-main';
|
22 |
$lp_global_settings[$tab_slug]['label'] = 'Global Settings';
|
23 |
+
|
24 |
|
25 |
+
$lp_global_settings[$tab_slug]['settings'] =
|
26 |
+
array(
|
27 |
+
array(
|
28 |
+
'id' => 'lp_global_settings_main_header',
|
29 |
+
'type' => 'header',
|
30 |
+
'default' => '<h4>Landing Pages Core Settings</h4>',
|
31 |
+
'options' => null
|
32 |
+
),
|
33 |
+
array(
|
34 |
+
'id' => 'landing-page-permalink-prefix',
|
35 |
+
'label' => 'Default Landing Page Permalink Prefix',
|
36 |
+
'description' => "Enter in the 'prefix' for landing page permalinks. eg: /prefix/pemalink-name",
|
37 |
+
'type' => 'text',
|
38 |
+
'default' => 'go',
|
39 |
+
'options' => null
|
40 |
+
),
|
41 |
+
array(
|
42 |
+
'id' => 'landing-page-prepopulate-forms',
|
43 |
+
'label' => 'Enable Form Prepopulation',
|
44 |
+
'description' => "With this setting enabled landing pages plugin will remember form input data that the user submits to a form and attempt to pre-populate all other forms with the same user's data when applicable.",
|
45 |
+
'type' => 'radio',
|
46 |
+
'default' => '1',
|
47 |
+
'options' => array('1'=>'on','0'=>'off')
|
48 |
+
),
|
49 |
+
array(
|
50 |
+
'id' => 'landing-page-disable-admin-tracking',
|
51 |
+
'label' => 'Disable Admin Impression/Conversion Tracking',
|
52 |
+
'description' => "With this setting enabled landing pages plugin will not record visits and conversions for administrative users that are logged in.",
|
53 |
+
'type' => 'radio',
|
54 |
+
'default' => '0',
|
55 |
+
'options' => array('1'=>'on','0'=>'off')
|
56 |
+
),
|
57 |
+
array(
|
58 |
+
'id' => 'landing-page-rotation-halt',
|
59 |
+
'label' => 'Sticky Variations',
|
60 |
+
'description' => "With this setting enabled landing pages plugin will prevent landing page version rotation for a visitor that has viewed the page. This halt on rotation will automatically expire after 30 days.",
|
61 |
+
'type' => 'radio',
|
62 |
+
'default' => '0',
|
63 |
+
'options' => array('1'=>'on','0'=>'off')
|
64 |
+
),
|
65 |
+
array(
|
66 |
+
'id' => 'landing-page-auto-format-forms',
|
67 |
+
'label' => 'Enable Form Standardization',
|
68 |
+
'description' => "With this setting enabled landing pages plugin will clean and standardize all input ids and classnames. Uncheck this setting to disable standardization.",
|
69 |
+
'type' => 'radio',
|
70 |
+
'default' => '0',
|
71 |
+
'options' => array('1'=>'on','0'=>'off')
|
72 |
+
),
|
73 |
+
array(
|
74 |
+
'id' => 'main-landing-page-auto-format-forms-retain-elements',
|
75 |
+
'label' => 'Form Standardization Element Whitelist',
|
76 |
+
'description' => "Form standardization strips the conversion area content of html elements. Add the elements you do not want to be stripped to this list.",
|
77 |
+
'type' => 'textarea',
|
78 |
+
'default' => '<button><script><textarea><style><input><form><select><label><a><p><b><u><strong><i><img><strong><span><font><h1><h2><h3><center><blockquote><embed><object><small>',
|
79 |
+
'options' => null
|
80 |
+
)
|
81 |
+
);
|
82 |
|
83 |
+
|
84 |
+
/* Setup License Keys Tab */
|
85 |
+
$tab_slug = 'lp-license-keys';
|
86 |
+
$lp_global_settings[$tab_slug]['label'] = 'License Keys';
|
87 |
+
|
88 |
+
/* Setup Extensions Tab */
|
89 |
+
$tab_slug = 'lp-extensions';
|
90 |
+
$lp_global_settings[$tab_slug]['label'] = 'Extensions';
|
91 |
+
|
92 |
$lp_global_settings = apply_filters('lp_define_global_settings',$lp_global_settings);
|
93 |
+
|
94 |
return $lp_global_settings;
|
95 |
}
|
96 |
|
97 |
+
/* Add Extensions License Key Header if Extensions are present */
|
98 |
+
add_filter('lp_define_global_settings', 'lp_add_extension_license_key_header',1,1);
|
99 |
+
function lp_add_extension_license_key_header($lp_global_settings)
|
100 |
+
{
|
101 |
+
if (array_key_exists('lp-license-keys',$lp_global_settings))
|
102 |
+
{
|
103 |
+
$lp_global_settings['lp-license-keys']['settings'][] = array(
|
104 |
+
'id' => 'extensions-license-keys-header',
|
105 |
+
'description' => "Head to http://www.inboundnow.com/ to retrieve your license key for this template.",
|
106 |
+
'type' => 'header',
|
107 |
+
'default' => '<h3 class="lp_global_settings_header">Extension License Keys</h3>'
|
108 |
+
);
|
109 |
+
}
|
110 |
+
|
111 |
+
return $lp_global_settings;
|
112 |
+
}
|
113 |
+
|
114 |
+
/* Provide backwards compatibility for older data array model */
|
115 |
+
add_filter('lp_define_global_settings','lp_rebuild_old_global_settings_configurations_to_suit_new_convention', 99, 1);
|
116 |
+
function lp_rebuild_old_global_settings_configurations_to_suit_new_convention($lp_global_settings)
|
117 |
+
{
|
118 |
+
//print_r($lp_global_settings);exit;
|
119 |
+
foreach ($lp_global_settings as $parent_tab => $aa)
|
120 |
+
{
|
121 |
+
if (is_array($aa))
|
122 |
+
{
|
123 |
+
|
124 |
+
foreach ($aa as $k=>$aaa)
|
125 |
+
{
|
126 |
+
/* change 'options' key to 'settings' */
|
127 |
+
if ($k=='options')
|
128 |
+
{
|
129 |
+
if (is_array($aaa))
|
130 |
+
{
|
131 |
+
foreach ($aaa as $kk => $aaaa)
|
132 |
+
{
|
133 |
+
$lp_global_settings[$parent_tab]['settings'][] = $aaaa;
|
134 |
+
}
|
135 |
+
}
|
136 |
+
unset($lp_global_settings[$parent_tab][$k]);
|
137 |
+
}
|
138 |
+
|
139 |
+
}
|
140 |
+
}
|
141 |
+
}
|
142 |
+
return $lp_global_settings;
|
143 |
+
}
|
144 |
+
|
145 |
function lp_display_global_settings_js()
|
146 |
{
|
147 |
if (isset($_GET['tab']))
|
150 |
}
|
151 |
else
|
152 |
{
|
153 |
+
$default_id ='lp-main';
|
154 |
}
|
155 |
?>
|
156 |
<script type='text/javascript'>
|
186 |
$lp_global_settings = lp_get_global_settings();
|
187 |
|
188 |
//print_r($lp_global_settings);
|
189 |
+
$active_tab = 'lp-main';
|
190 |
if (isset($_REQUEST['open-tab']))
|
191 |
{
|
192 |
$active_tab = $_REQUEST['open-tab'];
|
214 |
echo "<form action='edit.php?post_type=landing-page&page=lp_global_settings' method='POST'>
|
215 |
<input type='hidden' name='nature' value='lp-global-settings-save'>
|
216 |
<input type='hidden' name='open-tab' id='id-open-tab' value='{$active_tab}'>";
|
217 |
+
|
218 |
+
foreach ($lp_global_settings as $key => $data)
|
219 |
{
|
220 |
+
lp_render_global_settings($key,$data['settings'], $active_tab);
|
|
|
221 |
}
|
222 |
+
|
223 |
echo '<div style="float:left;padding-left:9px;padding-top:20px;">
|
224 |
<input type="submit" value="Save Settings" tabindex="5" id="lp-button-create-new-group-open" class="button-primary" >
|
225 |
</div>';
|
239 |
</center>
|
240 |
</div>
|
241 |
<div id="custom-templates">
|
242 |
+
<center><a href="http://docs.inboundnow.com/wordpress-landing-pages/odesk-development-process/" target=="_blank"><img src="<?php echo LANDINGPAGES_URLPATH;?>/images/custom-setup-image.png"></a>
|
243 |
</center>
|
244 |
</div>
|
245 |
</div>
|
333 |
return;
|
334 |
|
335 |
|
336 |
+
foreach ($lp_global_settings as $key=>$data)
|
337 |
{
|
338 |
+
$tab_settings = $lp_global_settings[$key]['settings'];
|
|
|
|
|
339 |
// loop through fields and save the data
|
340 |
+
foreach ($tab_settings as $field)
|
341 |
{
|
342 |
+
$field['id'] = $key."-".$field['id'];
|
343 |
|
344 |
+
if (array_key_exists('option_name',$field) && $field['option_name'] )
|
345 |
+
$field['id'] = $field['option_name'];
|
346 |
+
|
347 |
+
$field['old_value'] = get_option($field['id'] );
|
348 |
+
(isset($_POST[$field['id'] ]))? $field['new_value'] = $_POST[$field['id'] ] : $field['new_value'] = null;
|
349 |
|
350 |
|
351 |
+
if ((isset($field['new_value']) && ($field['new_value'] !== $field['old_value'] ) )|| !isset($field['old_value']) )
|
352 |
{
|
353 |
+
//echo $field['id'] ;exit;
|
354 |
+
$bool = update_option($field['id'] ,$field['new_value']);
|
355 |
+
if ($field['id'] =='main-landing-page-permalink-prefix')
|
356 |
{
|
357 |
//echo "here";
|
358 |
global $wp_rewrite;
|
359 |
$wp_rewrite->flush_rules();
|
360 |
}
|
361 |
+
if ($field['type']=='license-key')
|
362 |
{
|
|
|
|
|
363 |
|
364 |
// data to send in our API request
|
365 |
$api_params = array(
|
366 |
'edd_action'=> 'activate_license',
|
367 |
+
'license' => $field['new_value'],
|
368 |
+
'item_name' => $field['slug'] // the name of our product in EDD
|
369 |
+
);
|
370 |
+
//print_r($api_params);
|
371 |
|
372 |
// Call the custom API.
|
373 |
+
$response = wp_remote_get( add_query_arg( $api_params, LANDINGPAGES_STORE_URL ), array( 'timeout' => 30, 'sslverify' => false ) );
|
374 |
+
//echo $response['body'];exit;
|
375 |
+
|
376 |
// make sure the response came back okay
|
377 |
if ( is_wp_error( $response ) )
|
378 |
break;
|
380 |
// decode the license data
|
381 |
$license_data = json_decode( wp_remote_retrieve_body( $response ) );
|
382 |
|
|
|
|
|
383 |
|
384 |
// $license_data->license will be either "active" or "inactive"
|
385 |
+
$license_status = update_option('lp_license_status-'.$field['slug'], $license_data->license);
|
386 |
+
|
387 |
+
//echo 'lp_license_status-'.$field['slug']." :".$license_data->license;exit;
|
388 |
}
|
389 |
}
|
390 |
+
elseif (!$field['new_value'] && $field['old_value'])
|
391 |
{
|
392 |
//echo "here: $key <br>";
|
393 |
+
$bool = delete_option($field['id'] );
|
394 |
}
|
395 |
else
|
396 |
{
|
397 |
+
//print_r($field);
|
398 |
+
if ($field['type']=='license-key'&& $field['new_value'] )
|
399 |
{
|
400 |
|
401 |
+
$license_status = get_option('lp_license_status-'.$field['slug']);
|
402 |
|
403 |
+
if ($license_status=='valid' && $field['new_value'] == $field['old_value'])
|
404 |
{
|
405 |
continue;
|
406 |
}
|
411 |
// data to send in our API request
|
412 |
$api_params = array(
|
413 |
'edd_action'=> 'activate_license',
|
414 |
+
'license' => $field['new_value'],
|
415 |
+
'item_name' => $field['slug'] // the name of our product in EDD
|
416 |
);
|
417 |
|
418 |
// Call the custom API.
|
419 |
+
$response = wp_remote_get( add_query_arg( $api_params, LANDINGPAGES_STORE_URL ), array( 'timeout' => 30, 'sslverify' => false ) );
|
420 |
+
//echo $field['slug'];
|
421 |
//echo "<br>";
|
422 |
|
423 |
// make sure the response came back okay
|
428 |
$license_data = json_decode( wp_remote_retrieve_body( $response ) );
|
429 |
|
430 |
// $license_data->license will be either "active" or "inactive"
|
431 |
+
$license_status = update_option('lp_license_status-'.$field['slug'], $license_data->license);
|
432 |
+
|
433 |
+
//echo 'lp_license_status-'.$field['slug']." :".$license_data->license;exit;
|
434 |
}
|
435 |
}
|
436 |
//exit;
|
437 |
+
do_action('lp_save_global_settings',$field);
|
438 |
} // end foreach
|
439 |
|
440 |
}
|
441 |
//exit;
|
442 |
}
|
443 |
+
|
444 |
+
|
445 |
+
function lp_render_global_settings($key,$custom_fields,$active_tab)
|
446 |
+
{
|
447 |
+
|
448 |
+
//Check if active tab
|
449 |
+
if ($key==$active_tab)
|
450 |
+
{
|
451 |
+
$display = 'block';
|
452 |
+
}
|
453 |
+
else
|
454 |
+
{
|
455 |
+
$display = 'none';
|
456 |
+
}
|
457 |
+
|
458 |
+
//echo $display;
|
459 |
+
|
460 |
+
// Use nonce for verification
|
461 |
+
echo "<input type='hidden' name='lp_{$key}_custom_fields_nonce' value='".wp_create_nonce('lp-nonce')."' />";
|
462 |
+
|
463 |
+
// Begin the field table and loop
|
464 |
+
echo '<table class="lp-tab-display" id="'.$key.'" style="display:'.$display.'">';
|
465 |
+
//print_r($custom_fields);exit;
|
466 |
+
foreach ($custom_fields as $field) {
|
467 |
+
//echo $field['type'];exit;
|
468 |
+
//print_r($field);
|
469 |
+
// get value of this field if it exists for this post
|
470 |
+
if (isset($field['default']))
|
471 |
+
{
|
472 |
+
$default = $field['default'];
|
473 |
+
}
|
474 |
+
else
|
475 |
+
{
|
476 |
+
$default = null;
|
477 |
+
}
|
478 |
+
|
479 |
+
$field['id'] = $key."-".$field['id'];
|
480 |
+
|
481 |
+
if (array_key_exists('option_name',$field) && $field['option_name'] )
|
482 |
+
$field['id'] = $field['option_name'];
|
483 |
+
|
484 |
+
$field['value'] = get_option($field['id'] , $default);
|
485 |
+
|
486 |
+
// begin a table row with
|
487 |
+
echo '<tr><th class="lp-gs-th" valign="top" style="font-weight:300px;">';
|
488 |
+
if ($field['type']=='header')
|
489 |
+
{
|
490 |
+
echo $field['default'];
|
491 |
+
}
|
492 |
+
else
|
493 |
+
{
|
494 |
+
echo "<small>".$field['label']."</small>";
|
495 |
+
}
|
496 |
+
echo '</th><td>';
|
497 |
+
|
498 |
+
switch($field['type']) {
|
499 |
+
// text
|
500 |
+
case 'colorpicker':
|
501 |
+
if (!$field['value'])
|
502 |
+
{
|
503 |
+
$field['value'] = $field['default'];
|
504 |
+
}
|
505 |
+
echo '<input type="text" class="jpicker" name="'.$field['id'] .'" id="'.$field['id'] .'" value="'.$field['value'].'" size="5" />
|
506 |
+
<div class="lp_tooltip tool_color" title="'.$field['description'].'"></div>';
|
507 |
+
break;
|
508 |
+
case 'datepicker':
|
509 |
+
echo '<input id="datepicker-example2" class="Zebra_DatePicker_Icon" type="text" name="'.$field['id'] .'" id="'.$field['id'] .'" value="'.$field['value'].'" size="8" />
|
510 |
+
<div class="lp_tooltip tool_date" title="'.$field['description'].'"></div><p class="description">'.$field['description'].'</p>';
|
511 |
+
break;
|
512 |
+
case 'license-key':
|
513 |
+
$license_status = lp_check_license_status($field);
|
514 |
+
|
515 |
+
echo '<input type="hidden" name="lp_license_status-'.$field['slug'].'" id="'.$field['id'] .'" value="'.$license_status.'" size="30" />
|
516 |
+
<input type="text" name="'.$field['id'] .'" id="'.$field['id'] .'" value="'.$field['value'].'" size="30" />
|
517 |
+
<div class="lp_tooltip tool_text" title="'.$field['description'].'"></div>';
|
518 |
+
|
519 |
+
if ($license_status=='valid')
|
520 |
+
{
|
521 |
+
echo '<div class="lp_license_status_valid">Valid</div>';
|
522 |
+
}
|
523 |
+
else
|
524 |
+
{
|
525 |
+
echo '<div class="lp_license_status_invalid">Invalid</div>';
|
526 |
+
}
|
527 |
+
break;
|
528 |
+
case 'text':
|
529 |
+
echo '<input type="text" name="'.$field['id'] .'" id="'.$field['id'] .'" value="'.$field['value'].'" size="30" />
|
530 |
+
<div class="lp_tooltip tool_text" title="'.$field['description'].'"></div>';
|
531 |
+
break;
|
532 |
+
// textarea
|
533 |
+
case 'textarea':
|
534 |
+
echo '<textarea name="'.$field['id'] .'" id="'.$field['id'] .'" cols="106" rows="6">'.$field['value'].'</textarea>
|
535 |
+
<div class="lp_tooltip tool_textarea" title="'.$field['description'].'"></div>';
|
536 |
+
break;
|
537 |
+
// wysiwyg
|
538 |
+
case 'wysiwyg':
|
539 |
+
wp_editor( $field['value'], $field['id'] , $settings = array() );
|
540 |
+
echo '<span class="description">'.$field['description'].'</span><br><br>';
|
541 |
+
break;
|
542 |
+
// media
|
543 |
+
case 'media':
|
544 |
+
//echo 1; exit;
|
545 |
+
echo '<label for="upload_image">';
|
546 |
+
echo '<input name="'.$field['id'] .'" id="'.$field['id'] .'" type="text" size="36" name="upload_image" value="'.$field['value'].'" />';
|
547 |
+
echo '<input class="upload_image_button" id="uploader_'.$field['id'] .'" type="button" value="Upload Image" />';
|
548 |
+
echo '<br /><div class="lp_tooltip tool_media" title="'.$field['description'].'"></div>';
|
549 |
+
break;
|
550 |
+
// checkbox
|
551 |
+
case 'checkbox':
|
552 |
+
$i = 1;
|
553 |
+
echo "<table>";
|
554 |
+
if (!isset($field['value'])){$field['value']=array();}
|
555 |
+
elseif (!is_array($field['value'])){
|
556 |
+
$field['value'] = array($field['value']);
|
557 |
+
}
|
558 |
+
foreach ($field['options'] as $value=>$label) {
|
559 |
+
if ($i==5||$i==1)
|
560 |
+
{
|
561 |
+
echo "<tr>";
|
562 |
+
$i=1;
|
563 |
+
}
|
564 |
+
echo '<td><input type="checkbox" name="'.$field['id'] .'[]" id="'.$field['id'] .'" value="'.$value.'" ',in_array($value,$field['value']) ? ' checked="checked"' : '','/>';
|
565 |
+
echo '<label for="'.$value.'"> '.$label.'</label></td>';
|
566 |
+
if ($i==4)
|
567 |
+
{
|
568 |
+
echo "</tr>";
|
569 |
+
}
|
570 |
+
$i++;
|
571 |
+
}
|
572 |
+
echo "</table>";
|
573 |
+
echo '<br><div class="lp_tooltip tool_checkbox" title="'.$field['description'].'"></div>';
|
574 |
+
break;
|
575 |
+
// radio
|
576 |
+
case 'radio':
|
577 |
+
foreach ($field['options'] as $value=>$label) {
|
578 |
+
//echo $meta.":".$field['id'] ;
|
579 |
+
//echo "<br>";
|
580 |
+
echo '<input type="radio" name="'.$field['id'] .'" id="'.$field['id'] .'" value="'.$value.'" ',$field['value']==$value ? ' checked="checked"' : '','/>';
|
581 |
+
echo '<label for="'.$value.'"> '.$label.'</label> ';
|
582 |
+
}
|
583 |
+
echo '<div class="lp_tooltip tool_radio" title="'.$field['description'].'"></div>';
|
584 |
+
break;
|
585 |
+
// select
|
586 |
+
case 'dropdown':
|
587 |
+
echo '<select name="'.$field['id'] .'" id="'.$field['id'] .'">';
|
588 |
+
foreach ($field['options'] as $value=>$label) {
|
589 |
+
echo '<option', $field['value'] == $value ? ' selected="selected"' : '', ' value="'.$value.'">'.$label.'</option>';
|
590 |
+
}
|
591 |
+
echo '</select><br /><div class="lp_tooltip tool_dropdown" title="'.$field['description'].'"></div>';
|
592 |
+
break;
|
593 |
+
case 'html':
|
594 |
+
//print_r($field);
|
595 |
+
echo $field['value'];
|
596 |
+
echo '<br /><div class="lp_tooltip tool_dropdown" title="'.$field['description'].'"></div>';
|
597 |
+
break;
|
598 |
+
|
599 |
+
|
600 |
+
|
601 |
+
} //end switch
|
602 |
+
|
603 |
+
do_action('lp_render_global_settings',$field);
|
604 |
+
|
605 |
+
echo '</td></tr>';
|
606 |
+
} // end foreach
|
607 |
+
echo '</table>'; // end table
|
608 |
+
}
|
609 |
+
|
610 |
+
|
611 |
+
function lp_check_license_status($field)
|
612 |
+
{
|
613 |
+
|
614 |
+
$date = date("Y-m-d");
|
615 |
+
$cache_date = get_option($field['id']."-expire");
|
616 |
+
$license_status = get_option('lp_license_status-'.$field['slug']);
|
617 |
+
|
618 |
+
if (isset($cache_date)&&($date<$cache_date)&&$license_status=='valid')
|
619 |
+
{
|
620 |
+
return "valid";
|
621 |
+
}
|
622 |
+
|
623 |
+
$license_key = get_option($field['id']);
|
624 |
+
|
625 |
+
if ($license_key)
|
626 |
+
{
|
627 |
+
$api_params = array(
|
628 |
+
'edd_action' => 'check_license',
|
629 |
+
'license' => $license_key,
|
630 |
+
'key' => $license_key,
|
631 |
+
'item_name' => urlencode( $field['slug'] )
|
632 |
+
);
|
633 |
+
|
634 |
+
// Call the custom API.
|
635 |
+
$response = wp_remote_get( add_query_arg( $api_params, LANDINGPAGES_STORE_URL ), array( 'timeout' => 15, 'sslverify' => false ) );
|
636 |
+
|
637 |
+
if ( is_wp_error( $response ) )
|
638 |
+
return false;
|
639 |
+
|
640 |
+
$license_data = json_decode( wp_remote_retrieve_body( $response ) );
|
641 |
+
|
642 |
+
//var_dump($license_data);exit;
|
643 |
+
|
644 |
+
if( $license_data->license == 'valid' ) {
|
645 |
+
$newDate = date('Y-m-d', strtotime("+15 days"));
|
646 |
+
update_option($field['id']."-expire", $newDate);
|
647 |
+
return 'valid';
|
648 |
+
// this license is still valid
|
649 |
+
} else {
|
650 |
+
return 'invalid';
|
651 |
+
}
|
652 |
+
}
|
653 |
+
else
|
654 |
+
{
|
655 |
+
return 'invalid';
|
656 |
+
}
|
657 |
+
}
|
658 |
+
|
659 |
}
|
modules/module.install.php
CHANGED
@@ -7,6 +7,7 @@ function inbound_create_default_post_type(){
|
|
7 |
$option_key = "default_landing_pagexxx";
|
8 |
$current_user = wp_get_current_user();
|
9 |
add_option( $option_name, '' );
|
|
|
10 |
//delete_option( 'lp_settings_general' );
|
11 |
$lp_default_options = get_option($option_name);
|
12 |
// Create Default if it doesn't exist
|
@@ -118,11 +119,15 @@ function lp_install_register_required_plugins() {
|
|
118 |
|
119 |
// This is an example of how to include a plugin from the WordPress Plugin Repository
|
120 |
array(
|
121 |
-
'name' => 'WordPress Leads: ',
|
122 |
'slug' => 'leads',
|
123 |
'required' => false,
|
124 |
-
'description' => '<span>This free landing page addon will give you the ability to manage leads, see the pages viewed by the lead before converting, geolocation data, and much more.</span>'
|
125 |
),
|
|
|
|
|
|
|
|
|
|
|
126 |
|
127 |
);
|
128 |
|
@@ -162,7 +167,8 @@ function lp_install_register_required_plugins() {
|
|
162 |
'activate_link' => _n_noop( 'Activate installed plugin', 'Activate installed plugins' ),
|
163 |
'return' => __( 'Return to Required Plugins Installer', $theme_text_domain ),
|
164 |
'plugin_activated' => __( 'Plugin activated successfully.', $theme_text_domain ),
|
165 |
-
'complete' => __( 'All plugins installed and activated successfully. %s', $theme_text_domain )
|
|
|
166 |
)
|
167 |
);
|
168 |
|
7 |
$option_key = "default_landing_pagexxx";
|
8 |
$current_user = wp_get_current_user();
|
9 |
add_option( $option_name, '' );
|
10 |
+
//update_user_meta( get_current_user_id(), 'tgmpa_dismissed_notice', 0 ); // Clean dismiss settings
|
11 |
//delete_option( 'lp_settings_general' );
|
12 |
$lp_default_options = get_option($option_name);
|
13 |
// Create Default if it doesn't exist
|
119 |
|
120 |
// This is an example of how to include a plugin from the WordPress Plugin Repository
|
121 |
array(
|
122 |
+
'name' => 'WordPress Leads <span style=\'color:red !important; display:block;\'>This free landing page addon will give you the ability to track and manage incoming web leads. Gather Lead Intelligence on all Leads and Close more deals. <a href=\'http://wordpress.org/plugins/leads/\'> Learn more about WordPress Leads.</a></span>',
|
123 |
'slug' => 'leads',
|
124 |
'required' => false,
|
|
|
125 |
),
|
126 |
+
/* array(
|
127 |
+
'name' => 'WordPress Leads <span style=\'color:red !important; display:block;\'>This free landing page addon will give you the ability to manage leads, see the pages viewed by the lead before converting, geolocation data, and much more. <a href=\'http://wordpress.org/plugins/leads/\'> Learn more about WordPress Leads.</a></span>',
|
128 |
+
'slug' => 'title-split-testing-for-wordpress',
|
129 |
+
'required' => false,
|
130 |
+
),*/
|
131 |
|
132 |
);
|
133 |
|
167 |
'activate_link' => _n_noop( 'Activate installed plugin', 'Activate installed plugins' ),
|
168 |
'return' => __( 'Return to Required Plugins Installer', $theme_text_domain ),
|
169 |
'plugin_activated' => __( 'Plugin activated successfully.', $theme_text_domain ),
|
170 |
+
'complete' => __( 'All plugins installed and activated successfully. %s', $theme_text_domain ),
|
171 |
+
// %1$s = dashboard link
|
172 |
)
|
173 |
);
|
174 |
|
modules/module.lead-collection.php
DELETED
@@ -1,143 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
add_filter('lp_js_hook_submit_form_success','lp_lead_collection_js');
|
4 |
-
|
5 |
-
function lp_lead_collection_js()
|
6 |
-
{
|
7 |
-
$current_page = "http://".$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"];
|
8 |
-
$post_id = lp_url_to_postid($current_page);
|
9 |
-
(isset($_SERVER['HTTP_REFERER'])) ? $referrer = $_SERVER['HTTP_REFERER'] : $referrer ='direct access';
|
10 |
-
(isset($_SERVER['REMOTE_ADDR'])) ? $ip_address = $_SERVER['REMOTE_ADDR'] : $ip_address = '0.0.0.0.0';
|
11 |
-
|
12 |
-
do_action('lp-lead-collection-add-js-pre');
|
13 |
-
|
14 |
-
?>
|
15 |
-
// Landing Page Lead storage
|
16 |
-
var email = jQuery(".lp-email-value input").val();
|
17 |
-
var firstname = jQuery(".lp-first-name-value input").val();
|
18 |
-
var lastname = jQuery(".lp-last-name-value input").val();
|
19 |
-
submit_halt = 1;
|
20 |
-
|
21 |
-
//alert('1');
|
22 |
-
if (!email)
|
23 |
-
{
|
24 |
-
jQuery("#lp_container_form input[type=text]").each(function() {
|
25 |
-
if (this.value)
|
26 |
-
{
|
27 |
-
if (jQuery(this).attr("name").toLowerCase().indexOf('email')>-1) {
|
28 |
-
email = this.value;
|
29 |
-
}
|
30 |
-
else if(jQuery(this).attr("name").toLowerCase().indexOf('name')>-1&&!firstname) {
|
31 |
-
firstname = this.value;
|
32 |
-
}
|
33 |
-
else if (jQuery(this).attr("name").toLowerCase().indexOf('name')>-1) {
|
34 |
-
lastname = this.value;
|
35 |
-
}
|
36 |
-
}
|
37 |
-
});
|
38 |
-
}
|
39 |
-
else
|
40 |
-
{
|
41 |
-
if (!lastname&&jQuery("input").eq(1).val().indexOf("@") === -1)
|
42 |
-
{
|
43 |
-
lastname = jQuery("input").eq(1).val();
|
44 |
-
}
|
45 |
-
}
|
46 |
-
|
47 |
-
if (!email)
|
48 |
-
{
|
49 |
-
jQuery("#lp_container_form input[type=text]").each(function() {
|
50 |
-
if (jQuery(this).closest('li').children('label').length>0)
|
51 |
-
{
|
52 |
-
if (jQuery(this).closest('li').children('label').html().toLowerCase().indexOf('email')>-1)
|
53 |
-
{
|
54 |
-
email = this.value;
|
55 |
-
}
|
56 |
-
else if (jQuery(this).closest('li').children('label').html().toLowerCase().indexOf('name')>-1&&!firstname) {
|
57 |
-
firstname = this.value;
|
58 |
-
}
|
59 |
-
else if (jQuery(this).closest('li').children('label').html().toLowerCase().indexOf('name')>-1) {
|
60 |
-
lastname = this.value;
|
61 |
-
}
|
62 |
-
}
|
63 |
-
});
|
64 |
-
}
|
65 |
-
|
66 |
-
if (!email)
|
67 |
-
{
|
68 |
-
jQuery("#lp_container_form input[type=text]").each(function() {
|
69 |
-
if (jQuery(this).closest('div').children('label').length>0)
|
70 |
-
{
|
71 |
-
if (jQuery(this).closest('div').children('label').html().toLowerCase().indexOf('email')>-1)
|
72 |
-
{
|
73 |
-
email = this.value;
|
74 |
-
}
|
75 |
-
else if (jQuery(this).closest('div').children('label').html().toLowerCase().indexOf('name')>-1&&!firstname) {
|
76 |
-
firstname = this.value;
|
77 |
-
}
|
78 |
-
else if (jQuery(this).closest('div').children('label').html().toLowerCase().indexOf('name')>-1) {
|
79 |
-
lastname = this.value;
|
80 |
-
}
|
81 |
-
}
|
82 |
-
});
|
83 |
-
}
|
84 |
-
|
85 |
-
|
86 |
-
if (!lastname&&firstname)
|
87 |
-
{
|
88 |
-
var parts = firstname.split(" ");
|
89 |
-
firstname = parts[0];
|
90 |
-
lastname = parts[1];
|
91 |
-
}
|
92 |
-
|
93 |
-
var form_inputs = jQuery('#lp_container_form form').find('input[type=text],textarea,select');
|
94 |
-
|
95 |
-
var post_values = {};
|
96 |
-
form_inputs.each(function() {
|
97 |
-
post_values[this.name] = jQuery(this).val();
|
98 |
-
});
|
99 |
-
var post_values_json = JSON.stringify(post_values);
|
100 |
-
var wp_lead_uid = jQuery.cookie("wp_lead_uid");
|
101 |
-
var page_views = JSON.stringify(pageviewObj);
|
102 |
-
jQuery.cookie("wp_lead_email", email, { path: '/', expires: 365 });
|
103 |
-
var current_variation = <?php $variation = (isset($_GET['lp-variation-id'])) ? $_GET['lp-variation-id'] : '0'; echo $variation ;?>;
|
104 |
-
jQuery.ajax({
|
105 |
-
type: 'POST',
|
106 |
-
url: '<?php echo admin_url('admin-ajax.php') ?>',
|
107 |
-
data: {
|
108 |
-
action: 'inbound_store_lead',
|
109 |
-
emailTo: email,
|
110 |
-
first_name: firstname,
|
111 |
-
last_name: lastname,
|
112 |
-
wp_lead_uid: wp_lead_uid,
|
113 |
-
page_views: page_views,
|
114 |
-
raw_post_values_json : post_values_json,
|
115 |
-
lp_v: current_variation,
|
116 |
-
lp_id: '<?php echo $post_id; ?>'<?php
|
117 |
-
do_action('lp-lead-collection-add-ajax-data');
|
118 |
-
?>
|
119 |
-
},
|
120 |
-
success: function(user_id){
|
121 |
-
jQuery.cookie("wp_lead_id", user_id, { path: '/', expires: 365 });
|
122 |
-
jQuery.totalStorage('wp_lead_id', user_id);
|
123 |
-
if (form_id)
|
124 |
-
{
|
125 |
-
jQuery('form').unbind('submit');
|
126 |
-
jQuery('#lp_container_form form').submit();
|
127 |
-
//jQuery('#'+form_id+':input[type=submit]').click();
|
128 |
-
}
|
129 |
-
else
|
130 |
-
{
|
131 |
-
this_form.unbind('submit');
|
132 |
-
this_form.submit();
|
133 |
-
}
|
134 |
-
},
|
135 |
-
error: function(MLHttpRequest, textStatus, errorThrown){
|
136 |
-
//alert(MLHttpRequest+' '+errorThrown+' '+textStatus);
|
137 |
-
//die();
|
138 |
-
submit_halt =0;
|
139 |
-
}
|
140 |
-
|
141 |
-
});
|
142 |
-
<?php
|
143 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
modules/module.lead-splash.php
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
<?php
|
2 |
//define('WP_DEBUG',true);
|
|
|
3 |
require_once('../../../../wp-admin/admin.php');
|
4 |
$matches = array();
|
5 |
preg_match('/wp-admin/', $_SERVER['HTTP_REFERER'], $matches, null, 0);
|
1 |
<?php
|
2 |
//define('WP_DEBUG',true);
|
3 |
+
// Going to be replace with another admin page
|
4 |
require_once('../../../../wp-admin/admin.php');
|
5 |
$matches = array();
|
6 |
preg_match('/wp-admin/', $_SERVER['HTTP_REFERER'], $matches, null, 0);
|
modules/module.metaboxes-ab-testing.php
CHANGED
@@ -229,14 +229,11 @@ function lp_ab_testing_add_tabs()
|
|
229 |
$letter = lp_ab_key_to_letter($variation_count);
|
230 |
echo '<a href="?post='.$post->ID.'&lp-variation-id='.$new_variation_id.'&action=edit" class="lp-nav-tab nav-tab nav-tab-special-active" id="tabs-add-variation">'.$letter.'</a>';
|
231 |
}
|
232 |
-
$edit_link = (isset($_GET['lp-variation-id'])) ? '
|
233 |
-
|
|
|
|
|
234 |
echo '</h2>';
|
235 |
}
|
236 |
-
|
237 |
-
{
|
238 |
-
if ($post_type_is === "page" || $post_type_is === "post" ) {
|
239 |
-
// Frontend edit button for other post types
|
240 |
-
echo '<a class="button-primary new-save-lp-frontend" style="position: fixed;right: 38px; top: 57px;" href="'.$permalink.'?template-customize=on">Launch Visual Editor</a>'; }
|
241 |
-
}
|
242 |
}
|
229 |
$letter = lp_ab_key_to_letter($variation_count);
|
230 |
echo '<a href="?post='.$post->ID.'&lp-variation-id='.$new_variation_id.'&action=edit" class="lp-nav-tab nav-tab nav-tab-special-active" id="tabs-add-variation">'.$letter.'</a>';
|
231 |
}
|
232 |
+
$edit_link = (isset($_GET['lp-variation-id'])) ? '?lp-variation-id='.$_GET['lp-variation-id'].'' : '?lp-variation-id=0';
|
233 |
+
$post_link = get_permalink($post->ID);
|
234 |
+
$post_link = preg_replace('/\?.*/', '', $post_link);
|
235 |
+
echo "<a rel='".$post_link."' id='launch-visual-editer' class='button-primary new-save-lp-frontend' href='$post_link$edit_link&template-customize=on'>Launch Visual Editor</a>";
|
236 |
echo '</h2>';
|
237 |
}
|
238 |
+
|
|
|
|
|
|
|
|
|
|
|
239 |
}
|
modules/module.metaboxes.php
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Prepare Landing Page Form Metabox
|
|
|
4 |
*/
|
5 |
|
6 |
// Add additonal WYSIWYG edit box to landing page custom post type:
|
@@ -110,27 +111,25 @@ function lp_meta_box_conversion_area(){
|
|
110 |
";
|
111 |
|
112 |
//Create The Editor
|
113 |
-
//$content = get_post_meta($post->ID, WYSIWYG_META_KEY, true);
|
114 |
-
//echo get_post_meta($post->ID,'landing-page-myeditor-1',true);exit;
|
115 |
$conversion_area = lp_conversion_area(null,null,true,false,false);
|
116 |
wp_editor($conversion_area, $editor_id);
|
117 |
|
118 |
//Clear The Room!
|
119 |
echo "<div style='clear:both; display:block;'></div>";
|
120 |
-
echo "<div style='width:100%;text-align:right;margin-top:11px;'><div class='lp_tooltip' title=\"To help track conversions Landing Pages Plugin will automatically add class
|
121 |
|
122 |
}
|
123 |
|
124 |
add_action('save_post', 'lp_wysiwyg_save_meta');
|
125 |
function lp_wysiwyg_save_meta(){
|
126 |
-
|
127 |
$editor_id = WYSIWYG_EDITOR_ID;
|
128 |
$meta_key = WYSIWYG_META_KEY;
|
129 |
|
130 |
if(isset($_REQUEST[$editor_id]))
|
131 |
{
|
132 |
$data = wpautop($_REQUEST[$editor_id]);
|
133 |
-
|
134 |
update_post_meta($_REQUEST['post_ID'], WYSIWYG_META_KEY, $data);
|
135 |
}
|
136 |
}
|
@@ -159,6 +158,10 @@ function lp_landing_page_header_area()
|
|
159 |
echo "<div id='lp-notes-area'>";
|
160 |
lp_display_notes_input('lp-variation-notes',$varaition_notes);
|
161 |
echo '</div><div id="main-title-area"><input type="text" name="lp-main-headline" placeholder="Primary Headline Goes here. This will be visible on the page" id="lp-main-headline" value="'.$main_title.'" title="This headline will appear in the landing page template."></div><div id="lp-current-view">'.$lp_variation.'</div><div id="switch-lp">0</div>';
|
|
|
|
|
|
|
|
|
162 |
|
163 |
}
|
164 |
function lp_save_header_area( $post_id )
|
@@ -174,7 +177,7 @@ function lp_save_header_area( $post_id )
|
|
174 |
if ( isset ( $_POST[ $key ] ) )
|
175 |
return update_post_meta( $post_id, $key, $_POST[ $key ] );
|
176 |
|
177 |
-
|
178 |
delete_post_meta( $post_id, $key );
|
179 |
}
|
180 |
|
@@ -191,7 +194,6 @@ function lp_save_notes_area( $post_id )
|
|
191 |
if ( isset ( $_POST[ $key ] ) )
|
192 |
return update_post_meta( $post_id, $key, $_POST[ $key ] );
|
193 |
|
194 |
-
//echo 1; exit;
|
195 |
delete_post_meta( $post_id, $key );
|
196 |
}
|
197 |
|
@@ -225,8 +227,9 @@ function add_custom_meta_box_select_templates() {
|
|
225 |
function lp_display_meta_box_select_template() {
|
226 |
global $post;
|
227 |
$template = get_post_meta($post->ID, 'lp-selected-template', true);
|
|
|
228 |
$template = apply_filters('lp_selected_template',$template);
|
229 |
-
|
230 |
if (!isset($template)||isset($template)&&!$template){ $template = 'default';}
|
231 |
|
232 |
$name = apply_filters('lp_selected_template_id','lp-selected-template');
|
@@ -290,53 +293,49 @@ function lp_display_meta_box_select_template_container() {
|
|
290 |
echo '<div id="templates-container" >';
|
291 |
|
292 |
foreach ($extension_data as $this_extension=>$data)
|
293 |
-
{
|
294 |
-
|
295 |
|
296 |
if (substr($this_extension,0,4)=='ext-')
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
|
|
302 |
$cat_slug = strtolower($cat_slug);
|
303 |
-
// get demo link
|
304 |
-
if (isset($data['features'][0]['url']))
|
305 |
-
$demolink = $data['features'][0]['url'] . "?TB_iframe=true&width=1024&height=800"; // grab demo link
|
306 |
-
else if ($this_extension=='default')
|
307 |
-
$demolink = get_bloginfo('template_directory')."/screenshot.png";
|
308 |
-
else
|
309 |
-
$demolink = "/wp-admin/customize.php?theme=" .$this_extension. "&TB_iframe=true&width=1024&height=800";
|
310 |
|
311 |
-
|
312 |
-
if (isset($data['features'][1]['label']))
|
313 |
-
$template_desc = $data['features'][1]['label']; // grab demo link
|
314 |
-
else if ($this_extension=='default')
|
315 |
-
$template_desc = "This is your primary Wordpress theme that is currently active";
|
316 |
-
else
|
317 |
-
// $shortname = $data['theme_slug'];
|
318 |
-
$template_desc = "This is an inactive theme you have installed in your wordpress site";
|
319 |
-
|
320 |
// Get Thumbnail
|
321 |
-
if (
|
322 |
-
|
323 |
-
|
324 |
-
$thumbnail = get_bloginfo('template_directory')."/screenshot.png";
|
325 |
-
|
|
|
|
|
|
|
|
|
|
|
326 |
{
|
327 |
$thumbnail = LANDINGPAGES_UPLOADS_URLPATH.$this_extension."/thumbnail.png";
|
328 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
329 |
?>
|
330 |
<div id='template-item' class="<?php echo $cat_slug; ?>">
|
331 |
<div id="template-box">
|
332 |
-
<div class="lp_tooltip_templates" title="<?php echo $
|
333 |
-
<a class='lp_select_template' href='#' label='<?php echo $data['label']; ?>' id='<?php echo $this_extension; ?>'>
|
334 |
-
<img src="<?php echo $thumbnail; ?>" class='template-thumbnail' alt="<?php echo $data['label']; ?>" id='
|
335 |
</a>
|
336 |
<p>
|
337 |
-
<div id="template-title"><?php echo $data['label']; ?></div>
|
338 |
-
<a href='#' label='<?php echo $data['label']; ?>' id='<?php echo $this_extension; ?>' class='lp_select_template'>Select</a> |
|
339 |
-
<a class='thickbox <?php echo $cat_slug;?>' href='<?php echo $
|
340 |
</p>
|
341 |
</div>
|
342 |
</div>
|
@@ -376,7 +375,6 @@ function landing_pages_save_custom_css($post_id) {
|
|
376 |
|
377 |
|
378 |
$custom_css_name = apply_filters('lp_custom_css_name','lp-custom-css');
|
379 |
-
//echo $custom_css_name;exit;
|
380 |
|
381 |
$lp_custom_css = $_POST[$custom_css_name];
|
382 |
update_post_meta($post_id, 'lp-custom-css', $lp_custom_css);
|
@@ -393,7 +391,7 @@ function add_custom_meta_box_lp_custom_js() {
|
|
393 |
function lp_custom_js_input() {
|
394 |
global $post;
|
395 |
echo "<em></em>";
|
396 |
-
|
397 |
$custom_js_name = apply_filters('lp_custom_js_name','lp-custom-js');
|
398 |
|
399 |
echo '<input type="hidden" name="lp_custom_js_noncename" id="lp_custom_js_noncename" value="'.wp_create_nonce(basename(__FILE__)).'" />';
|
@@ -467,7 +465,7 @@ function lp_conversion_log_metabox() {
|
|
467 |
//echo "<br>";
|
468 |
|
469 |
//echo $datetime;
|
470 |
-
if (isset($wplead_data['wpleads_email_address']))
|
471 |
{
|
472 |
$full_name = $wplead_data['wpleads_first_name'][0].' '.$wplead_data['wpleads_last_name'][0];
|
473 |
$this_data['ID'] = $row['ID'];
|
@@ -528,8 +526,7 @@ function lp_conversion_log_metabox() {
|
|
528 |
// Determine sort order
|
529 |
$result = strcmp( $a[$orderby], $b[$orderby] );
|
530 |
// Send final sort direction to usort
|
531 |
-
|
532 |
-
//echo $order;exit;
|
533 |
return ( $order === 'asc' ) ? $result : -$result;
|
534 |
}
|
535 |
|
@@ -623,7 +620,7 @@ function lp_conversion_log_metabox() {
|
|
623 |
|
624 |
}
|
625 |
echo '<div id="leads-table-container">';
|
626 |
-
echo '<h2>Conversion logs:</h2>';
|
627 |
echo '<div id="leads-table-container-inside">';
|
628 |
$myListTable = new LP_LEAD_LOG();
|
629 |
$myListTable->prepare_items();
|
@@ -635,7 +632,7 @@ function lp_conversion_log_metabox() {
|
|
635 |
/**
|
636 |
* Generate Template & Extension Metaboxes
|
637 |
*/
|
638 |
-
|
639 |
|
640 |
add_action('add_meta_boxes', 'lp_generate_meta');
|
641 |
function lp_generate_meta()
|
@@ -646,13 +643,11 @@ function lp_generate_meta()
|
|
646 |
|
647 |
$extension_data = lp_get_extension_data();
|
648 |
|
649 |
-
//print_r($extension_data);
|
650 |
-
|
651 |
$current_template = get_post_meta( $post->ID , 'lp-selected-template' , true);
|
652 |
$current_template = apply_filters('lp_variation_selected_template',$current_template, $post);
|
653 |
|
654 |
//echo $current_template; exit;
|
655 |
-
foreach ($extension_data as $key=>$
|
656 |
{
|
657 |
//echo "$key : $current_template <br>";
|
658 |
if ($key!='lp'&&substr($key,0,4)!='ext-' && $key==$current_template)
|
@@ -662,7 +657,7 @@ function lp_generate_meta()
|
|
662 |
//echo $key."<br>";
|
663 |
add_meta_box(
|
664 |
"lp_{$id}_custom_meta_box", // $id
|
665 |
-
__( "<small>$template_name Options:</small>", "
|
666 |
'lp_show_metabox', // $callback
|
667 |
'landing-page', // post-type
|
668 |
'normal', // $context
|
@@ -672,26 +667,166 @@ function lp_generate_meta()
|
|
672 |
}
|
673 |
}
|
674 |
|
675 |
-
foreach ($extension_data as $key=>$
|
676 |
{
|
677 |
-
if (substr($key,0,4)=='ext-')
|
678 |
{
|
679 |
//echo 1; exit;
|
680 |
-
$id =
|
681 |
-
|
|
|
|
|
|
|
|
|
|
|
682 |
//echo $key."<br>";
|
683 |
add_meta_box(
|
684 |
"lp_{$id}_custom_meta_box", // $id
|
685 |
-
__( "$name
|
686 |
'lp_show_metabox', // $callback
|
687 |
'landing-page', // post-type
|
688 |
-
|
689 |
-
|
690 |
array('key'=>$key)
|
691 |
); //callback args
|
|
|
692 |
}
|
693 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
694 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
695 |
}
|
696 |
|
697 |
add_action('save_post', 'lp_save_meta');
|
@@ -723,28 +858,28 @@ function lp_save_meta($post_id) {
|
|
723 |
// verify nonce
|
724 |
if (!wp_verify_nonce($_POST["lp_{$key}_custom_fields_nonce"], 'lp-nonce'))
|
725 |
{
|
726 |
-
|
727 |
return $post_id;
|
728 |
}
|
729 |
-
|
730 |
-
$lp_custom_fields = $extension_data[$key]['
|
731 |
|
732 |
foreach ($lp_custom_fields as $field)
|
733 |
{
|
734 |
-
$
|
735 |
-
|
|
|
736 |
|
737 |
if (isset($new) && $new != $old ) {
|
738 |
-
update_post_meta($post_id, $
|
739 |
} elseif ('' == $new && $old) {
|
740 |
-
delete_post_meta($post_id, $
|
741 |
}
|
742 |
}
|
743 |
}
|
744 |
-
else if (substr($key,0,4)=='ext-')
|
745 |
{
|
746 |
|
747 |
-
$lp_custom_fields = $extension_data[$key]['
|
748 |
|
749 |
// verify nonce
|
750 |
if (!wp_verify_nonce($_POST["lp_{$key}_custom_fields_nonce"], 'lp-nonce'))
|
@@ -754,41 +889,41 @@ function lp_save_meta($post_id) {
|
|
754 |
|
755 |
// loop through fields and save the data
|
756 |
foreach ($lp_custom_fields as $field) {
|
757 |
-
|
758 |
|
759 |
if($field['type'] == 'tax_select') continue;
|
760 |
-
$old = get_post_meta($post_id, $
|
761 |
|
762 |
-
(isset($_POST[$
|
763 |
//echo "$old:".$new."<br>";
|
764 |
|
765 |
if (isset($new) && $new != $old ) {
|
766 |
-
update_post_meta($post_id, $
|
767 |
} elseif ('' == $new && $old) {
|
768 |
-
delete_post_meta($post_id, $
|
769 |
}
|
770 |
} // end foreach
|
771 |
}
|
772 |
else if ((isset($_POST['lp-selected-template'])&&$_POST['lp-selected-template']==$key))
|
773 |
{
|
774 |
-
$lp_custom_fields = $extension_data[$key]['
|
775 |
-
|
776 |
-
//print_r($lp_custom_fields);
|
777 |
// loop through fields and save the data
|
778 |
foreach ($lp_custom_fields as $field) {
|
779 |
-
|
780 |
-
|
781 |
-
if($field['type'] == 'tax_select' || !isset($_POST[$
|
782 |
continue;
|
783 |
|
784 |
-
$old = get_post_meta($post_id, $
|
785 |
-
|
786 |
-
|
|
|
787 |
|
788 |
if (isset($new) && $new != $old ) {
|
789 |
-
update_post_meta($post_id, $
|
790 |
} elseif ('' == $new && $old) {
|
791 |
-
delete_post_meta($post_id, $
|
792 |
}
|
793 |
}
|
794 |
}
|
@@ -797,9 +932,7 @@ function lp_save_meta($post_id) {
|
|
797 |
//echo "key:$key<br>";
|
798 |
}
|
799 |
}
|
800 |
-
|
801 |
-
//echo "here";
|
802 |
-
//exit;
|
803 |
// save taxonomies
|
804 |
$post = get_post($post_id);
|
805 |
//$category = $_POST['landing_page_category'];
|
1 |
<?php
|
2 |
/**
|
3 |
* Prepare Landing Page Form Metabox
|
4 |
+
* Roll into /shared/
|
5 |
*/
|
6 |
|
7 |
// Add additonal WYSIWYG edit box to landing page custom post type:
|
111 |
";
|
112 |
|
113 |
//Create The Editor
|
|
|
|
|
114 |
$conversion_area = lp_conversion_area(null,null,true,false,false);
|
115 |
wp_editor($conversion_area, $editor_id);
|
116 |
|
117 |
//Clear The Room!
|
118 |
echo "<div style='clear:both; display:block;'></div>";
|
119 |
+
echo "<div style='width:100%;text-align:right;margin-top:11px;'><div class='lp_tooltip' title=\"To help track conversions Landing Pages Plugin will automatically add a tracking class to forms. If you would like to track a link add this class to it class='wpl-track-me-link'\" ></div></div>";
|
120 |
|
121 |
}
|
122 |
|
123 |
add_action('save_post', 'lp_wysiwyg_save_meta');
|
124 |
function lp_wysiwyg_save_meta(){
|
125 |
+
|
126 |
$editor_id = WYSIWYG_EDITOR_ID;
|
127 |
$meta_key = WYSIWYG_META_KEY;
|
128 |
|
129 |
if(isset($_REQUEST[$editor_id]))
|
130 |
{
|
131 |
$data = wpautop($_REQUEST[$editor_id]);
|
132 |
+
|
133 |
update_post_meta($_REQUEST['post_ID'], WYSIWYG_META_KEY, $data);
|
134 |
}
|
135 |
}
|
158 |
echo "<div id='lp-notes-area'>";
|
159 |
lp_display_notes_input('lp-variation-notes',$varaition_notes);
|
160 |
echo '</div><div id="main-title-area"><input type="text" name="lp-main-headline" placeholder="Primary Headline Goes here. This will be visible on the page" id="lp-main-headline" value="'.$main_title.'" title="This headline will appear in the landing page template."></div><div id="lp-current-view">'.$lp_variation.'</div><div id="switch-lp">0</div>';
|
161 |
+
// Frontend params
|
162 |
+
if(isset($_REQUEST['frontend']) && $_REQUEST['frontend'] == 'true') {
|
163 |
+
echo('<input type="hidden" name="frontend" id="frontend-on" value="true" />');
|
164 |
+
}
|
165 |
|
166 |
}
|
167 |
function lp_save_header_area( $post_id )
|
177 |
if ( isset ( $_POST[ $key ] ) )
|
178 |
return update_post_meta( $post_id, $key, $_POST[ $key ] );
|
179 |
|
180 |
+
|
181 |
delete_post_meta( $post_id, $key );
|
182 |
}
|
183 |
|
194 |
if ( isset ( $_POST[ $key ] ) )
|
195 |
return update_post_meta( $post_id, $key, $_POST[ $key ] );
|
196 |
|
|
|
197 |
delete_post_meta( $post_id, $key );
|
198 |
}
|
199 |
|
227 |
function lp_display_meta_box_select_template() {
|
228 |
global $post;
|
229 |
$template = get_post_meta($post->ID, 'lp-selected-template', true);
|
230 |
+
|
231 |
$template = apply_filters('lp_selected_template',$template);
|
232 |
+
//echo $template;
|
233 |
if (!isset($template)||isset($template)&&!$template){ $template = 'default';}
|
234 |
|
235 |
$name = apply_filters('lp_selected_template_id','lp-selected-template');
|
293 |
echo '<div id="templates-container" >';
|
294 |
|
295 |
foreach ($extension_data as $this_extension=>$data)
|
296 |
+
{
|
|
|
297 |
|
298 |
if (substr($this_extension,0,4)=='ext-')
|
299 |
+
continue;
|
300 |
+
|
301 |
+
if (isset($data['info']['data_type']) && $data['info']['data_type']=='metabox')
|
302 |
+
continue;
|
303 |
+
|
304 |
+
$cat_slug = str_replace(' ', '-', $data['info']['category']);
|
305 |
$cat_slug = strtolower($cat_slug);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
306 |
|
307 |
+
$thumb = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
308 |
// Get Thumbnail
|
309 |
+
if (file_exists(LANDINGPAGES_PATH.'templates/'.$this_extension."/thumbnail.png"))
|
310 |
+
{
|
311 |
+
if ($this_extension=='default') {
|
312 |
+
$thumbnail = get_bloginfo('template_directory')."/screenshot.png";
|
313 |
+
} else {
|
314 |
+
$thumbnail = LANDINGPAGES_URLPATH.'templates/'.$this_extension."/thumbnail.png";
|
315 |
+
}
|
316 |
+
$thumb = true;
|
317 |
+
}
|
318 |
+
if (file_exists(LANDINGPAGES_UPLOADS_PATH.$this_extension."/thumbnail.png"))
|
319 |
{
|
320 |
$thumbnail = LANDINGPAGES_UPLOADS_URLPATH.$this_extension."/thumbnail.png";
|
321 |
+
$thumb = true;
|
322 |
+
}
|
323 |
+
if ($thumb === false) {
|
324 |
+
$thumbnail = LANDINGPAGES_URLPATH.'templates/default/thumbnail.png';
|
325 |
+
|
326 |
+
}
|
327 |
+
|
328 |
?>
|
329 |
<div id='template-item' class="<?php echo $cat_slug; ?>">
|
330 |
<div id="template-box">
|
331 |
+
<div class="lp_tooltip_templates" title="<?php echo $data['info']['description']; ?>"></div>
|
332 |
+
<a class='lp_select_template' href='#' label='<?php echo $data['info']['label']; ?>' id='<?php echo $this_extension; ?>'>
|
333 |
+
<img src="<?php echo $thumbnail; ?>" class='template-thumbnail' alt="<?php echo $data['info']['label']; ?>" id='lp_<?php echo $this_extension; ?>'>
|
334 |
</a>
|
335 |
<p>
|
336 |
+
<div id="template-title"><?php echo $data['info']['label']; ?></div>
|
337 |
+
<a href='#' label='<?php echo $data['info']['label']; ?>' id='<?php echo $this_extension; ?>' class='lp_select_template'>Select</a> |
|
338 |
+
<a class='thickbox <?php echo $cat_slug;?>' href='<?php echo $data['info']['demo'];?>' id='lp_preview_this_template'>Preview</a>
|
339 |
</p>
|
340 |
</div>
|
341 |
</div>
|
375 |
|
376 |
|
377 |
$custom_css_name = apply_filters('lp_custom_css_name','lp-custom-css');
|
|
|
378 |
|
379 |
$lp_custom_css = $_POST[$custom_css_name];
|
380 |
update_post_meta($post_id, 'lp-custom-css', $lp_custom_css);
|
391 |
function lp_custom_js_input() {
|
392 |
global $post;
|
393 |
echo "<em></em>";
|
394 |
+
|
395 |
$custom_js_name = apply_filters('lp_custom_js_name','lp-custom-js');
|
396 |
|
397 |
echo '<input type="hidden" name="lp_custom_js_noncename" id="lp_custom_js_noncename" value="'.wp_create_nonce(basename(__FILE__)).'" />';
|
465 |
//echo "<br>";
|
466 |
|
467 |
//echo $datetime;
|
468 |
+
if (isset($wplead_data['wpleads_email_address'][0]) && !empty($wplead_data['wpleads_email_address'][0]))
|
469 |
{
|
470 |
$full_name = $wplead_data['wpleads_first_name'][0].' '.$wplead_data['wpleads_last_name'][0];
|
471 |
$this_data['ID'] = $row['ID'];
|
526 |
// Determine sort order
|
527 |
$result = strcmp( $a[$orderby], $b[$orderby] );
|
528 |
// Send final sort direction to usort
|
529 |
+
|
|
|
530 |
return ( $order === 'asc' ) ? $result : -$result;
|
531 |
}
|
532 |
|
620 |
|
621 |
}
|
622 |
echo '<div id="leads-table-container">';
|
623 |
+
echo '<h2 id="convert-header">Conversion logs:</h2>';
|
624 |
echo '<div id="leads-table-container-inside">';
|
625 |
$myListTable = new LP_LEAD_LOG();
|
626 |
$myListTable->prepare_items();
|
632 |
/**
|
633 |
* Generate Template & Extension Metaboxes
|
634 |
*/
|
635 |
+
// The Callback
|
636 |
|
637 |
add_action('add_meta_boxes', 'lp_generate_meta');
|
638 |
function lp_generate_meta()
|
643 |
|
644 |
$extension_data = lp_get_extension_data();
|
645 |
|
|
|
|
|
646 |
$current_template = get_post_meta( $post->ID , 'lp-selected-template' , true);
|
647 |
$current_template = apply_filters('lp_variation_selected_template',$current_template, $post);
|
648 |
|
649 |
//echo $current_template; exit;
|
650 |
+
foreach ($extension_data as $key=>$data)
|
651 |
{
|
652 |
//echo "$key : $current_template <br>";
|
653 |
if ($key!='lp'&&substr($key,0,4)!='ext-' && $key==$current_template)
|
657 |
//echo $key."<br>";
|
658 |
add_meta_box(
|
659 |
"lp_{$id}_custom_meta_box", // $id
|
660 |
+
__( "<small>$template_name Options:</small>", "lp" ),
|
661 |
'lp_show_metabox', // $callback
|
662 |
'landing-page', // post-type
|
663 |
'normal', // $context
|
667 |
}
|
668 |
}
|
669 |
|
670 |
+
foreach ($extension_data as $key=>$data)
|
671 |
{
|
672 |
+
if ( substr($key,0,4)=='ext-' || isset($data['info']['data_type']) && $data['info']['data_type'] =='metabox' )
|
673 |
{
|
674 |
//echo 1; exit;
|
675 |
+
$id = "metabox-".$key;
|
676 |
+
|
677 |
+
(isset($data['info']['label'])) ? $name = $data['info']['label'] : $name = ucwords(str_replace(array('-','ext '),' ',$key). " Extension Options");
|
678 |
+
(isset($data['info']['position'])) ? $position = $data['info']['position'] : $position = "normal";
|
679 |
+
(isset($data['info']['priority'])) ? $priority = $data['info']['priority'] : $priority = "default";
|
680 |
+
|
681 |
+
|
682 |
//echo $key."<br>";
|
683 |
add_meta_box(
|
684 |
"lp_{$id}_custom_meta_box", // $id
|
685 |
+
__( "$name", "lp" ),
|
686 |
'lp_show_metabox', // $callback
|
687 |
'landing-page', // post-type
|
688 |
+
$position , // $context
|
689 |
+
$priority ,// $priority
|
690 |
array('key'=>$key)
|
691 |
); //callback args
|
692 |
+
|
693 |
}
|
694 |
+
}
|
695 |
+
}
|
696 |
+
|
697 |
+
|
698 |
+
function lp_show_metabox($post,$key)
|
699 |
+
{
|
700 |
+
|
701 |
+
$extension_data = lp_get_extension_data();
|
702 |
+
$key = $key['args']['key'];
|
703 |
+
|
704 |
+
$lp_custom_fields = $extension_data[$key]['settings'];
|
705 |
+
$lp_custom_fields = apply_filters('lp_show_metabox',$lp_custom_fields, $key);
|
706 |
|
707 |
+
lp_render_metabox($key,$lp_custom_fields,$post);
|
708 |
+
}
|
709 |
+
|
710 |
+
function lp_render_metabox($key,$custom_fields,$post)
|
711 |
+
{
|
712 |
+
// Use nonce for verification
|
713 |
+
echo "<input type='hidden' name='lp_{$key}_custom_fields_nonce' value='".wp_create_nonce('lp-nonce')."' />";
|
714 |
+
|
715 |
+
// Begin the field table and loop
|
716 |
+
echo '<table class="form-table" >';
|
717 |
+
|
718 |
+
foreach ($custom_fields as $field) {
|
719 |
+
$raw_option_id = str_replace($key . "-", "", $field['id']);
|
720 |
+
$field_id = $key . "-" .$field['id'];
|
721 |
+
$label_class = $raw_option_id . "-label";
|
722 |
+
// get value of this field if it exists for this post
|
723 |
+
$meta = get_post_meta($post->ID, $field_id, true);
|
724 |
+
|
725 |
+
if ((!isset($meta)&&isset($field['default'])&&!is_numeric($meta))||isset($meta)&&empty($meta)&&isset($field['default'])&&!is_numeric($meta))
|
726 |
+
{
|
727 |
+
//echo $field['id'].":".$meta;
|
728 |
+
//echo "<br>";
|
729 |
+
$meta = $field['default'];
|
730 |
+
}
|
731 |
+
|
732 |
+
// begin a table row with
|
733 |
+
echo '<tr class="'.$field_id.' '.$raw_option_id.' landing-page-option-row">
|
734 |
+
<th class="landing-page-table-header '.$label_class.'"><label for="'.$field_id.'">'.$field['label'].'</label></th>
|
735 |
+
<td class="landing-page-option-td">';
|
736 |
+
switch($field['type']) {
|
737 |
+
// default content for the_content
|
738 |
+
case 'default-content':
|
739 |
+
echo '<span id="overwrite-content" class="button-secondary">Insert Default Content into main Content area</span><div style="display:none;"><textarea name="'.$field_id.'" id="'.$field_id.'" class="default-content" cols="106" rows="6" style="width: 75%; display:hidden;">'.$meta.'</textarea></div>';
|
740 |
+
break;
|
741 |
+
// text
|
742 |
+
case 'colorpicker':
|
743 |
+
if (!$meta)
|
744 |
+
{
|
745 |
+
$meta = $field['default'];
|
746 |
+
}
|
747 |
+
echo '<input type="text" class="jpicker" style="background-color:#'.$meta.'" name="'.$field_id.'" id="'.$field_id.'" value="'.$meta.'" size="5" /><span class="button-primary new-save-lp" id="'.$field_id.'" style="margin-left:10px; display:none;">Update</span>
|
748 |
+
<div class="lp_tooltip tool_color" title="'.$field['description'].'"></div>';
|
749 |
+
break;
|
750 |
+
case 'datepicker':
|
751 |
+
echo '<div class="jquery-date-picker" id="date-picking">
|
752 |
+
<span class="datepair" data-language="javascript">
|
753 |
+
Date: <input type="text" id="date-picker-'.$key.'" class="date start" /></span>
|
754 |
+
Time: <input id="time-picker-'.$key.'" type="text" class="time time-picker" />
|
755 |
+
<input type="hidden" name="'.$field_id.'" id="'.$field_id.'" value="'.$meta.'" class="new-date" value="" >
|
756 |
+
<p class="description">'.$field['description'].'</p>
|
757 |
+
</div>';
|
758 |
+
break;
|
759 |
+
case 'text':
|
760 |
+
echo '<input type="text" name="'.$field_id.'" id="'.$field_id.'" value="'.$meta.'" size="30" />
|
761 |
+
<div class="lp_tooltip" title="'.$field['description'].'"></div>';
|
762 |
+
break;
|
763 |
+
// textarea
|
764 |
+
case 'textarea':
|
765 |
+
echo '<textarea name="'.$field_id.'" id="'.$field_id.'" cols="106" rows="6" style="width: 75%;">'.$meta.'</textarea>
|
766 |
+
<div class="lp_tooltip tool_textarea" title="'.$field['description'].'"></div>';
|
767 |
+
break;
|
768 |
+
// wysiwyg
|
769 |
+
case 'wysiwyg':
|
770 |
+
wp_editor( $meta, $field_id, $settings = array() );
|
771 |
+
echo '<p class="description">'.$field['description'].'</p>';
|
772 |
+
break;
|
773 |
+
// media
|
774 |
+
case 'media':
|
775 |
+
echo '<label for="upload_image">';
|
776 |
+
echo '<input name="'.$field_id.'" id="'.$field_id.'" type="text" size="36" name="upload_image" value="'.$meta.'" />';
|
777 |
+
echo '<input class="upload_image_button" id="uploader_'.$field_id.'" type="button" value="Upload Image" />';
|
778 |
+
echo '<p class="description">'.$field['description'].'</p>';
|
779 |
+
break;
|
780 |
+
// checkbox
|
781 |
+
case 'checkbox':
|
782 |
+
$i = 1;
|
783 |
+
echo "<table class='lp_check_box_table'>";
|
784 |
+
if (!isset($meta)){$meta=array();}
|
785 |
+
elseif (!is_array($meta)){
|
786 |
+
$meta = array($meta);
|
787 |
+
}
|
788 |
+
foreach ($field['options'] as $value=>$label) {
|
789 |
+
if ($i==5||$i==1)
|
790 |
+
{
|
791 |
+
echo "<tr>";
|
792 |
+
$i=1;
|
793 |
+
}
|
794 |
+
echo '<td><input type="checkbox" name="'.$field_id.'[]" id="'.$field_id.'" value="'.$value.'" ',in_array($value,$meta) ? ' checked="checked"' : '','/>';
|
795 |
+
echo '<label for="'.$value.'"> '.$label.'</label></td>';
|
796 |
+
if ($i==4)
|
797 |
+
{
|
798 |
+
echo "</tr>";
|
799 |
+
}
|
800 |
+
$i++;
|
801 |
+
}
|
802 |
+
echo "</table>";
|
803 |
+
echo '<div class="lp_tooltip tool_checkbox" title="'.$field['description'].'"></div>';
|
804 |
+
break;
|
805 |
+
// radio
|
806 |
+
case 'radio':
|
807 |
+
foreach ($field['options'] as $value=>$label) {
|
808 |
+
//echo $meta.":".$field_id;
|
809 |
+
//echo "<br>";
|
810 |
+
echo '<input type="radio" name="'.$field_id.'" id="'.$field_id.'" value="'.$value.'" ',$meta==$value ? ' checked="checked"' : '','/>';
|
811 |
+
echo '<label for="'.$value.'"> '.$label.'</label> ';
|
812 |
+
}
|
813 |
+
echo '<div class="lp_tooltip" title="'.$field['description'].'"></div>';
|
814 |
+
break;
|
815 |
+
// select
|
816 |
+
case 'dropdown':
|
817 |
+
echo '<select name="'.$field_id.'" id="'.$field_id.'" class="'.$raw_option_id.'">';
|
818 |
+
foreach ($field['options'] as $value=>$label) {
|
819 |
+
echo '<option', $meta == $value ? ' selected="selected"' : '', ' value="'.$value.'">'.$label.'</option>';
|
820 |
+
}
|
821 |
+
echo '</select><div class="lp_tooltip" title="'.$field['description'].'"></div>';
|
822 |
+
break;
|
823 |
+
|
824 |
+
|
825 |
+
|
826 |
+
} //end switch
|
827 |
+
echo '</td></tr>';
|
828 |
+
} // end foreach
|
829 |
+
echo '</table>'; // end table
|
830 |
}
|
831 |
|
832 |
add_action('save_post', 'lp_save_meta');
|
858 |
// verify nonce
|
859 |
if (!wp_verify_nonce($_POST["lp_{$key}_custom_fields_nonce"], 'lp-nonce'))
|
860 |
{
|
|
|
861 |
return $post_id;
|
862 |
}
|
863 |
+
|
864 |
+
$lp_custom_fields = $extension_data[$key]['settings'];
|
865 |
|
866 |
foreach ($lp_custom_fields as $field)
|
867 |
{
|
868 |
+
$id = $key."-".$field['id'];
|
869 |
+
$old = get_post_meta($post_id, $id, true);
|
870 |
+
(isset($_POST[$id]))? $new = $_POST[$id] : $new = null;
|
871 |
|
872 |
if (isset($new) && $new != $old ) {
|
873 |
+
update_post_meta($post_id, $id, $new);
|
874 |
} elseif ('' == $new && $old) {
|
875 |
+
delete_post_meta($post_id, $id, $old);
|
876 |
}
|
877 |
}
|
878 |
}
|
879 |
+
else if ( substr($key,0,4)=='ext-' || isset($data['info']['data_type']) && $data['info']['data_type']=='metabox')
|
880 |
{
|
881 |
|
882 |
+
$lp_custom_fields = $extension_data[$key]['settings'];
|
883 |
|
884 |
// verify nonce
|
885 |
if (!wp_verify_nonce($_POST["lp_{$key}_custom_fields_nonce"], 'lp-nonce'))
|
889 |
|
890 |
// loop through fields and save the data
|
891 |
foreach ($lp_custom_fields as $field) {
|
892 |
+
$id = $key."-".$field['id'];
|
893 |
|
894 |
if($field['type'] == 'tax_select') continue;
|
895 |
+
$old = get_post_meta($post_id, $id, true);
|
896 |
|
897 |
+
(isset($_POST[$id]))? $new = $_POST[$id] : $new = null;
|
898 |
//echo "$old:".$new."<br>";
|
899 |
|
900 |
if (isset($new) && $new != $old ) {
|
901 |
+
update_post_meta($post_id, $id, $new);
|
902 |
} elseif ('' == $new && $old) {
|
903 |
+
delete_post_meta($post_id, $id, $old);
|
904 |
}
|
905 |
} // end foreach
|
906 |
}
|
907 |
else if ((isset($_POST['lp-selected-template'])&&$_POST['lp-selected-template']==$key))
|
908 |
{
|
909 |
+
$lp_custom_fields = $extension_data[$key]['settings'];
|
910 |
+
|
|
|
911 |
// loop through fields and save the data
|
912 |
foreach ($lp_custom_fields as $field) {
|
913 |
+
$id = $key."-".$field['id'];
|
914 |
+
|
915 |
+
if($field['type'] == 'tax_select' || !isset($_POST[$id]))
|
916 |
continue;
|
917 |
|
918 |
+
$old = get_post_meta($post_id, $id, true);
|
919 |
+
|
920 |
+
(isset($_POST[$id]))? $new = $_POST[$id] : $new = null;
|
921 |
+
//echo "$old:".$new."<br>"; exit;
|
922 |
|
923 |
if (isset($new) && $new != $old ) {
|
924 |
+
update_post_meta($post_id, $id, $new);
|
925 |
} elseif ('' == $new && $old) {
|
926 |
+
delete_post_meta($post_id, $id, $old);
|
927 |
}
|
928 |
}
|
929 |
}
|
932 |
//echo "key:$key<br>";
|
933 |
}
|
934 |
}
|
935 |
+
|
|
|
|
|
936 |
// save taxonomies
|
937 |
$post = get_post($post_id);
|
938 |
//$category = $_POST['landing_page_category'];
|
modules/module.post-type.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php
|
2 |
$labels = array(
|
3 |
'name' => _x('Landing Pages', 'post type general name'),
|
4 |
'singular_name' => _x('Landing Page', 'post type singular name'),
|
5 |
'add_new' => _x('Add New', 'Landing Page'),
|
6 |
'add_new_item' => __('Add New Landing Page'),
|
7 |
'edit_item' => __('Edit Landing Page'),
|
8 |
'new_item' => __('New Landing Page'),
|
9 |
'view_item' => __('View Landing Page'),
|
10 |
'search_items' => __('Search Landing Page'),
|
11 |
'not_found' => __('Nothing found'),
|
12 |
'not_found_in_trash' => __('Nothing found in Trash'),
|
13 |
'parent_item_colon' => ''
|
14 |
);
|
15 |
$args = array(
|
16 |
'labels' => $labels,
|
17 |
'public' => true,
|
18 |
'publicly_queryable' => true,
|
19 |
'show_ui' => true,
|
20 |
'query_var' => true,
|
21 |
'menu_icon' => LANDINGPAGES_URLPATH . '/images/plus.gif',
|
22 |
'rewrite' => array("slug" => "$slug"),
|
23 |
'capability_type' => 'post',
|
24 |
'hierarchical' => false,
|
25 |
'menu_position' => null,
|
26 |
'supports' => array('title','custom-fields','editor','thumbnail', 'excerpt')
|
27 |
);
|
28 |
register_post_type( 'landing-page' , $args );
|
29 |
'hierarchical' => true,
|
30 |
'label' => "Categories",
|
31 |
'singular_label' => "Landing Page Category",
|
32 |
'show_ui' => true,
|
33 |
'query_var' => true,
|
34 |
));
|
35 |
// Make these columns sortable
|
36 |
return array(
|
37 |
'title' => 'title',
|
38 |
'impressions' => 'impressions',
|
39 |
'actions' => 'actions',
|
40 |
'cr' => 'cr'
|
41 |
);
|
|
|
42 |
$labels = array(
|
43 |
'name' => _x('Landing Pages', 'post type general name'),
|
44 |
'singular_name' => _x('Landing Page', 'post type singular name'),
|
45 |
'add_new' => _x('Add New', 'Landing Page'),
|
46 |
'add_new_item' => __('Add New Landing Page'),
|
47 |
'edit_item' => __('Edit Landing Page'),
|
48 |
'new_item' => __('New Landing Page'),
|
49 |
'view_item' => __('View Landing Page'),
|
50 |
'search_items' => __('Search Landing Page'),
|
51 |
'not_found' => __('Nothing found'),
|
52 |
'not_found_in_trash' => __('Nothing found in Trash'),
|
53 |
'parent_item_colon' => ''
|
54 |
);
|
55 |
$args = array(
|
56 |
'labels' => $labels,
|
57 |
'public' => true,
|
58 |
'publicly_queryable' => true,
|
59 |
'show_ui' => true,
|
60 |
'query_var' => true,
|
61 |
'menu_icon' => LANDINGPAGES_URLPATH . '/images/plus.gif',
|
62 |
'rewrite' => array("slug" => "$slug"),
|
63 |
'with_front' => false,
|
64 |
'capability_type' => 'post',
|
65 |
'hierarchical' => false,
|
66 |
'menu_position' => null,
|
67 |
'supports' => array('title','custom-fields','editor','thumbnail', 'excerpt')
|
68 |
);
|
69 |
register_post_type( 'landing-page' , $args );
|
70 |
$args = array(
|
71 |
'hierarchical' => true,
|
72 |
'label' => "Categories",
|
73 |
'singular_label' => "Landing Page Category",
|
74 |
'show_ui' => true,
|
75 |
'query_var' => true,
|
76 |
);
|
77 |
register_taxonomy('landing_page_category', array('landing-page'), $args);
|
78 |
// Set category transient for use in other areas
|
79 |
$terms = get_terms('landing_page_category', array('hide_empty' => false));
|
80 |
$lp_cats = get_transient( 'landing-page-cats' );
|
81 |
// Make these columns sortable
|
82 |
return array(
|
83 |
'title' => 'title',
|
84 |
'impressions' => 'impressions',
|
85 |
'actions' => 'actions',
|
86 |
'cr' => 'cr'
|
87 |
);
|
|
|
1 |
$labels = array(
|
2 |
'name' => _x('Landing Pages', 'post type general name'),
|
3 |
'singular_name' => _x('Landing Page', 'post type singular name'),
|
4 |
'add_new' => _x('Add New', 'Landing Page'),
|
5 |
'add_new_item' => __('Add New Landing Page'),
|
6 |
'edit_item' => __('Edit Landing Page'),
|
7 |
'new_item' => __('New Landing Page'),
|
8 |
'view_item' => __('View Landing Page'),
|
9 |
'search_items' => __('Search Landing Page'),
|
10 |
'not_found' => __('Nothing found'),
|
11 |
'not_found_in_trash' => __('Nothing found in Trash'),
|
12 |
'parent_item_colon' => ''
|
13 |
);
|
14 |
$args = array(
|
15 |
'labels' => $labels,
|
16 |
'public' => true,
|
17 |
'publicly_queryable' => true,
|
18 |
'show_ui' => true,
|
19 |
'query_var' => true,
|
20 |
'menu_icon' => LANDINGPAGES_URLPATH . '/images/plus.gif',
|
21 |
'rewrite' => array("slug" => "$slug"),
|
22 |
'capability_type' => 'post',
|
23 |
'hierarchical' => false,
|
24 |
'menu_position' => null,
|
25 |
'supports' => array('title','custom-fields','editor','thumbnail', 'excerpt')
|
26 |
);
|
27 |
register_post_type( 'landing-page' , $args );
|
28 |
'hierarchical' => true,
|
29 |
'label' => "Categories",
|
30 |
'singular_label' => "Landing Page Category",
|
31 |
'show_ui' => true,
|
32 |
'query_var' => true,
|
33 |
));
|
34 |
// Make these columns sortable
|
35 |
return array(
|
36 |
'title' => 'title',
|
37 |
'impressions' => 'impressions',
|
38 |
'actions' => 'actions',
|
39 |
'cr' => 'cr'
|
40 |
);
|
41 |
+
<?php
|
42 |
$labels = array(
|
43 |
'name' => _x('Landing Pages', 'post type general name'),
|
44 |
'singular_name' => _x('Landing Page', 'post type singular name'),
|
45 |
'add_new' => _x('Add New', 'Landing Page'),
|
46 |
'add_new_item' => __('Add New Landing Page'),
|
47 |
'edit_item' => __('Edit Landing Page'),
|
48 |
'new_item' => __('New Landing Page'),
|
49 |
'view_item' => __('View Landing Page'),
|
50 |
'search_items' => __('Search Landing Page'),
|
51 |
'not_found' => __('Nothing found'),
|
52 |
'not_found_in_trash' => __('Nothing found in Trash'),
|
53 |
'parent_item_colon' => ''
|
54 |
);
|
55 |
$args = array(
|
56 |
'labels' => $labels,
|
57 |
'public' => true,
|
58 |
'publicly_queryable' => true,
|
59 |
'show_ui' => true,
|
60 |
'query_var' => true,
|
61 |
'menu_icon' => LANDINGPAGES_URLPATH . '/images/plus.gif',
|
62 |
'rewrite' => array("slug" => "$slug"),
|
63 |
'with_front' => false,
|
64 |
'capability_type' => 'post',
|
65 |
'hierarchical' => false,
|
66 |
'menu_position' => null,
|
67 |
'supports' => array('title','custom-fields','editor','thumbnail', 'excerpt')
|
68 |
);
|
69 |
register_post_type( 'landing-page' , $args );
|
70 |
$args = array(
|
71 |
'hierarchical' => true,
|
72 |
'label' => "Categories",
|
73 |
'singular_label' => "Landing Page Category",
|
74 |
'show_ui' => true,
|
75 |
'query_var' => true,
|
76 |
);
|
77 |
register_taxonomy('landing_page_category', array('landing-page'), $args);
|
78 |
// Set category transient for use in other areas
|
79 |
$terms = get_terms('landing_page_category', array('hide_empty' => false));
|
80 |
$lp_cats = get_transient( 'landing-page-cats' );
|
81 |
// Make these columns sortable
|
82 |
return array(
|
83 |
'title' => 'title',
|
84 |
'impressions' => 'impressions',
|
85 |
'actions' => 'actions',
|
86 |
'cr' => 'cr'
|
87 |
);
|
modules/module.redirect-ab-testing.php
CHANGED
@@ -14,26 +14,17 @@ else if ( file_exists ( './../../../../../wp-config.php' ) )
|
|
14 |
{
|
15 |
include_once ( './../../../../../wp-config.php' );
|
16 |
}
|
17 |
-
|
18 |
-
$debug = 1;
|
19 |
-
$debug = apply_filters('lp_ab_testing_session_check',$debug);
|
20 |
|
21 |
-
if(session_id()=="") {
|
22 |
-
// session isn't started
|
23 |
-
//session_start();
|
24 |
-
}
|
25 |
|
26 |
-
|
27 |
-
//echo $_SESSION[$_GET['permalink_name']];
|
28 |
-
if (isset($_SESSION[$_GET['permalink_name']]) && !$debug)
|
29 |
{
|
30 |
-
$url = $
|
31 |
}
|
32 |
else
|
33 |
{
|
34 |
//echo "here";
|
35 |
//echo $_GET['permalink_name'];exit;
|
36 |
-
$query = "SELECT * FROM {$table_prefix}posts WHERE post_name='"
|
37 |
$result = mysql_query($query);
|
38 |
if (!$result){ echo $query; echo mysql_error(); exit;}
|
39 |
//echo mysql_num_rows($result);
|
@@ -179,7 +170,7 @@ else
|
|
179 |
}
|
180 |
}
|
181 |
$url = $url."?lp-variation-id=".$variation_id.$old_params;
|
182 |
-
|
183 |
}
|
184 |
//echo "<br>";
|
185 |
//echo $url;
|
14 |
{
|
15 |
include_once ( './../../../../../wp-config.php' );
|
16 |
}
|
|
|
|
|
|
|
17 |
|
|
|
|
|
|
|
|
|
18 |
|
19 |
+
if (isset($_COOKIE['lp-loaded-variation-'.$_GET['permalink_name']]) && get_option('lp-main-landing-page-rotation-halt' , 0))
|
|
|
|
|
20 |
{
|
21 |
+
$url = $_COOKIE['lp-loaded-variation-'.$_GET['permalink_name']];
|
22 |
}
|
23 |
else
|
24 |
{
|
25 |
//echo "here";
|
26 |
//echo $_GET['permalink_name'];exit;
|
27 |
+
$query = "SELECT * FROM {$table_prefix}posts WHERE post_name='".mysql_real_escape_string($_GET['permalink_name'])."' AND post_type='landing-page' LIMIT 1";
|
28 |
$result = mysql_query($query);
|
29 |
if (!$result){ echo $query; echo mysql_error(); exit;}
|
30 |
//echo mysql_num_rows($result);
|
170 |
}
|
171 |
}
|
172 |
$url = $url."?lp-variation-id=".$variation_id.$old_params;
|
173 |
+
setcookie('lp-loaded-variation-'.$_GET['permalink_name'], $url, time()+ 60 * 60 * 24 * 30 ,"/");
|
174 |
}
|
175 |
//echo "<br>";
|
176 |
//echo $url;
|
modules/module.redirect.php
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
<?php
|
2 |
// session isn't started
|
3 |
$currentKey = key($array);
|
4 |
while ($currentKey !== null && $currentKey != $key) {
|
5 |
next($array);
|
6 |
$currentKey = key($array);
|
7 |
}
|
8 |
return next($array);
|
|
|
0 |
// session isn't started
|
1 |
$currentKey = key($array);
|
2 |
while ($currentKey !== null && $currentKey != $key) {
|
3 |
next($array);
|
4 |
$currentKey = key($array);
|
5 |
}
|
6 |
return next($array);
|
modules/module.sidebar.php
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
<?php
|
|
|
2 |
|
3 |
add_action( 'admin_init', 'lp_register_sidebars' );
|
4 |
function lp_register_sidebars()
|
1 |
<?php
|
2 |
+
/* Removes default single.php sidebar for landing page sidebar */
|
3 |
|
4 |
add_action( 'admin_init', 'lp_register_sidebars' );
|
5 |
function lp_register_sidebars()
|
modules/module.split-testing-splash.php
DELETED
@@ -1,605 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
//define('WP_DEBUG',true);
|
3 |
-
require_once('../../../../wp-admin/admin.php');
|
4 |
-
$matches = array();
|
5 |
-
preg_match('/wp-admin/', $_SERVER['HTTP_REFERER'], $matches, null, 0);
|
6 |
-
|
7 |
-
$lp_post_id = $_GET['post_id'];
|
8 |
-
|
9 |
-
//wp_enqueue_style( 'global' );
|
10 |
-
wp_enqueue_style( 'colors' );
|
11 |
-
//wp_enqueue_style( 'wp-admin' );
|
12 |
-
wp_enqueue_style( 'ie' );
|
13 |
-
wp_enqueue_style('lp-css-split-testing-splash', LANDINGPAGES_URLPATH . 'css/admin-split-testing-splash.css');
|
14 |
-
|
15 |
-
wp_enqueue_script('utils');
|
16 |
-
wp_enqueue_script('editor');
|
17 |
-
wp_enqueue_script('lp-js-split-testing-splash', LANDINGPAGES_URLPATH . 'js/admin/admin.split-testing-splash.js');
|
18 |
-
|
19 |
-
|
20 |
-
do_action('admin_print_styles');
|
21 |
-
do_action('admin_print_scripts');
|
22 |
-
do_action('admin_head');
|
23 |
-
|
24 |
-
if (isset($_GET['clone']))
|
25 |
-
{
|
26 |
-
lp_split_testing_options_save() ;
|
27 |
-
lp_split_testing_clone_popup_display() ;
|
28 |
-
}
|
29 |
-
else
|
30 |
-
{
|
31 |
-
lp_split_testing_options_save() ;
|
32 |
-
lp_split_testing_options_popup_display() ;
|
33 |
-
}
|
34 |
-
|
35 |
-
function lp_split_testing_options_save()
|
36 |
-
{
|
37 |
-
global $post;
|
38 |
-
$data = array();
|
39 |
-
|
40 |
-
if ((isset($_POST['nature'])&&$_POST['nature']=='clone'))
|
41 |
-
{
|
42 |
-
$lp_id = $_POST['lp_post_id'];
|
43 |
-
$group_ids = $_POST['lp_group_ids'];
|
44 |
-
$clone_id = lp_duplicate_post_create_duplicate($lp_id);
|
45 |
-
lp_clone_st_groups($lp_id,$clone_id,$group_ids);
|
46 |
-
|
47 |
-
//display success and options
|
48 |
-
$data['new_lpid'] = $clone_id;
|
49 |
-
lp_display_success("Post cloned and added to group(s)!");
|
50 |
-
lp_split_test_display_post_creation_options('copy',$data);
|
51 |
-
exit;
|
52 |
-
}
|
53 |
-
else if (isset($_POST['nature'])&&$_POST['nature']=='update_groups')
|
54 |
-
{
|
55 |
-
|
56 |
-
$lp_id = $_POST['lp_post_id'];
|
57 |
-
$group_ids = $_POST['lp_group_ids'];
|
58 |
-
|
59 |
-
if (isset($_POST['lp_group_ids']))
|
60 |
-
{
|
61 |
-
$args=array(
|
62 |
-
'post_type' => 'landing-page-group',
|
63 |
-
'post_satus'=>'publish'
|
64 |
-
);
|
65 |
-
|
66 |
-
$my_query = null;
|
67 |
-
$my_query = new WP_Query($args);
|
68 |
-
|
69 |
-
if( $my_query->have_posts() )
|
70 |
-
{
|
71 |
-
$i=1;
|
72 |
-
while ($my_query->have_posts()) : $my_query->the_post();
|
73 |
-
$group_id = get_the_ID();
|
74 |
-
$group_data = get_the_content();
|
75 |
-
$group_data = json_decode($group_data,true);
|
76 |
-
|
77 |
-
$lp_ids = array();
|
78 |
-
foreach ($group_data as $key=>$value)
|
79 |
-
{
|
80 |
-
$lp_ids[] = $key;
|
81 |
-
}
|
82 |
-
|
83 |
-
if (in_array($lp_id,$lp_ids)&&!in_array($group_id,$group_ids))
|
84 |
-
{
|
85 |
-
unset($group_data[$lp_id]);
|
86 |
-
//echo 1; exit;
|
87 |
-
$this_data = json_encode($group_data);
|
88 |
-
//print_r($this_data);
|
89 |
-
$new_post = array(
|
90 |
-
'ID' => $group_id,
|
91 |
-
'post_title' => get_the_title(),
|
92 |
-
'post_content' => $this_data,
|
93 |
-
'post_status' => 'publish',
|
94 |
-
'post_date' => date('Y-m-d H:i:s'),
|
95 |
-
'post_author' => 1,
|
96 |
-
'post_type' => 'landing-page-group'
|
97 |
-
);
|
98 |
-
//print_r($new_post);
|
99 |
-
$post_id = wp_update_post($new_post);
|
100 |
-
}
|
101 |
-
else if (!in_array($lp_id,$lp_ids)&&in_array($group_id,$group_ids))
|
102 |
-
{
|
103 |
-
//echo 2; exit;
|
104 |
-
$group_data[$lp_id]['id'] = $lp_id;
|
105 |
-
$group_data[$lp_id]['status'] = 'active';
|
106 |
-
$this_data = json_encode($group_data);
|
107 |
-
|
108 |
-
$new_post = array(
|
109 |
-
'ID' => $group_id,
|
110 |
-
'post_title' => get_the_title(),
|
111 |
-
'post_content' => $this_data,
|
112 |
-
'post_status' => 'publish',
|
113 |
-
'post_date' => date('Y-m-d H:i:s'),
|
114 |
-
'post_author' => 1,
|
115 |
-
'post_type' => 'landing-page-group'
|
116 |
-
);
|
117 |
-
//print_r($new_post);
|
118 |
-
$post_id = wp_update_post($new_post);
|
119 |
-
}
|
120 |
-
|
121 |
-
$i++;
|
122 |
-
endwhile;
|
123 |
-
}
|
124 |
-
}
|
125 |
-
|
126 |
-
//display success and options
|
127 |
-
lp_display_success("Saved!");
|
128 |
-
lp_split_test_display_post_creation_options('update_groups',$data);
|
129 |
-
exit;
|
130 |
-
|
131 |
-
}
|
132 |
-
else if (isset($_POST['nature'])&&$_POST['nature']=='copy_create')
|
133 |
-
{
|
134 |
-
$data['group_name'] = $_POST['group_name'];
|
135 |
-
$data['old_lpid'] = $_POST['lp_post_id'];
|
136 |
-
|
137 |
-
$post = get_post($data['old_lpid']);
|
138 |
-
|
139 |
-
//create copy of post
|
140 |
-
$data['new_lpid'] = lp_duplicate_post_create_duplicate($post, 'publish' );
|
141 |
-
|
142 |
-
$group_data[$data['old_lpid']]['id'] = $data['old_lpid'];
|
143 |
-
$group_data[$data['old_lpid']]['status'] = 'active';
|
144 |
-
$group_data[$data['new_lpid']]['id'] = $data['new_lpid'];
|
145 |
-
$group_data[$data['new_lpid']]['status'] = 'active';
|
146 |
-
$group_data = json_encode($group_data);
|
147 |
-
|
148 |
-
//create new group with copy and landing page inserts
|
149 |
-
$data['group_lp_ids'] = $data['old_lpid'].",".$data['new_lpid'];
|
150 |
-
$new_post = array(
|
151 |
-
'post_title' => $data['group_name'],
|
152 |
-
'post_content' => $group_data,
|
153 |
-
'post_status' => 'publish',
|
154 |
-
'post_date' => date('Y-m-d H:i:s'),
|
155 |
-
'post_author' => 1,
|
156 |
-
'post_type' => 'landing-page-group'
|
157 |
-
);
|
158 |
-
|
159 |
-
$data['group_id'] = wp_insert_post($new_post);
|
160 |
-
|
161 |
-
//display success and options
|
162 |
-
lp_display_success("Created new post ".$data['new_lpid']."!");
|
163 |
-
lp_split_test_display_post_creation_options('copy_create',$data);
|
164 |
-
exit;
|
165 |
-
|
166 |
-
}
|
167 |
-
else if (isset($_POST['nature'])&&$_POST['nature']=='select_create')
|
168 |
-
{
|
169 |
-
$data['group_name'] = $_POST['group_name'];
|
170 |
-
$data['old_lpid'] = $_POST['lp_post_id'];
|
171 |
-
$post = get_post($data['old_lpid']);
|
172 |
-
|
173 |
-
//create new group with copy and landing page inserts
|
174 |
-
$data['group_lp_ids'] = $data['old_lpid'].",".implode(',',$_POST['group_lp_ids']);
|
175 |
-
|
176 |
-
$group_data[$data['old_lpid']]['id'] = $data['old_lpid'];
|
177 |
-
$group_data[$data['old_lpid']]['status'] = 'active';
|
178 |
-
foreach ($_POST['group_lp_ids'] as $value)
|
179 |
-
{
|
180 |
-
$group_data[$value]['id'] = $value;
|
181 |
-
$group_data[$value]['status'] = 'active';
|
182 |
-
}
|
183 |
-
$group_data = json_encode($group_data);
|
184 |
-
|
185 |
-
$new_post = array(
|
186 |
-
'post_title' => $data['group_name'],
|
187 |
-
'post_content' => $group_data,
|
188 |
-
'post_status' => 'publish',
|
189 |
-
'post_date' => date('Y-m-d H:i:s'),
|
190 |
-
'post_author' => 1,
|
191 |
-
'post_type' => 'landing-page-group'
|
192 |
-
);
|
193 |
-
|
194 |
-
$data['group_id'] = wp_insert_post($new_post);
|
195 |
-
lp_display_success("Created new group: ".$data['group_name']."!");
|
196 |
-
lp_split_test_display_post_creation_options('select_create',$data);
|
197 |
-
exit;
|
198 |
-
}
|
199 |
-
else if (isset($_POST['nature'])&&$_POST['nature']=='blank_create')
|
200 |
-
{
|
201 |
-
$data['group_name'] = $_POST['group_name'];
|
202 |
-
$data['old_lpid'] = $_POST['lp_post_id'];
|
203 |
-
$post = get_post($data['old_lpid']);
|
204 |
-
|
205 |
-
//create new blank post
|
206 |
-
$data['new_lpid'] = lp_duplicate_post_create_duplicate($post, null, null, $blank = true);
|
207 |
-
|
208 |
-
//create new group with copy and landing page inserts
|
209 |
-
$data['group_lp_ids'] = $data['old_lpid'].",".$data['new_lpid'];
|
210 |
-
|
211 |
-
$group_data[$data['old_lpid']]['id'] = $data['old_lpid'];
|
212 |
-
$group_data[$data['old_lpid']]['status'] = 'active';
|
213 |
-
$group_data[$data['new_lpid']]['id'] = $data['new_lpid'];
|
214 |
-
$group_data[$data['new_lpid']]['status'] = 'active';
|
215 |
-
|
216 |
-
$group_data = json_encode($group_data);
|
217 |
-
|
218 |
-
$new_post = array(
|
219 |
-
'post_title' => $data['group_name'],
|
220 |
-
'post_content' => $group_data,
|
221 |
-
'post_status' => 'publish',
|
222 |
-
'post_date' => date('Y-m-d H:i:s'),
|
223 |
-
'post_author' => 1,
|
224 |
-
'post_type' => 'landing-page-group'
|
225 |
-
);
|
226 |
-
|
227 |
-
$data['group_id'] = wp_insert_post($new_post);
|
228 |
-
|
229 |
-
lp_display_success("Created new group: ".$data['group_name']."!");
|
230 |
-
lp_display_success("Created new blank landing page!");
|
231 |
-
lp_split_test_display_post_creation_options('blank_create',$data);
|
232 |
-
exit;
|
233 |
-
}
|
234 |
-
}
|
235 |
-
|
236 |
-
function lp_split_testing_options_popup_display()
|
237 |
-
{
|
238 |
-
global $lp_post_id;
|
239 |
-
$post = get_post($lp_post_id);
|
240 |
-
//echo 1; exit;
|
241 |
-
//print_r($post);exit;
|
242 |
-
echo '<div class="error"><p>';
|
243 |
-
echo "<h3 style='font-weight:normal;'><strong>Please Note</strong> that this version 1 way of running Landing Page split tests will be phases out of the plugin soon.<br><br> Please use the <strong>new and improved A/B testing functionality</strong> directly in the landing page edit screen.";
|
244 |
-
echo "</h3><h1><a href=\"#\" onClick=\"window.open('http://www.youtube.com/embed/KJ_EDJAvv9Y?autoplay=1','landing-page','width=640,height=480,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=no')\">Watch Video Explanation</a></h1></p></div>";
|
245 |
-
?>
|
246 |
-
<div class="metabox-holder split-test-ui">
|
247 |
-
<div class="meta-box-sortables ui-sortable">
|
248 |
-
<h2 id="lp-st-tabs" class="nav-tab-wrapper">
|
249 |
-
<a href="#top#edit-group" id="edit-group" class="nav-tab nav-tab-active">Split Test Groups</a>
|
250 |
-
<a href="#top#create-new-group" id="create-new-group" class="nav-tab">Start New Split Test</a>
|
251 |
-
<a href="/wp-content/plugins/landing-pages/modules/module.split-testing-splash.php?post_id=<?php echo $lp_post_id;?>&clone=1" id="clone-option" class="nav-tab">Clone Current Page</a>
|
252 |
-
</h2>
|
253 |
-
|
254 |
-
<div class="lp-st-div" id="edit-group-div">
|
255 |
-
<h1>Add Current Page to existing Split Test Group</h1>
|
256 |
-
<form action='' method='POST'>
|
257 |
-
<input type='hidden' name='nature' value='update_groups'>
|
258 |
-
<input type='hidden' name='lp_post_id' value='<?php echo $lp_post_id; ?>'>
|
259 |
-
<div class='' style='text-align:center;'>
|
260 |
-
<div class='postbox' style='text-align:left;padding:20px 20px 0px 20px;'>
|
261 |
-
<div class="categorydiv" id="taxonomy-landing_page_category">
|
262 |
-
<span class="manage-split" style='font-size:16px;'><strong>Manage which groups this landing page belongs to:</strong></span><br><br>
|
263 |
-
|
264 |
-
|
265 |
-
<div class="tabs-panel split-page-list" id="landing_page_category-all">
|
266 |
-
<ul id="landing_page_categorychecklist" class="list:landing_page_category categorychecklist form-no-clear">
|
267 |
-
<?php
|
268 |
-
global $table_prefix;
|
269 |
-
$query = "SELECT * FROM {$table_prefix}posts WHERE post_type='landing-page-group' ORDER BY ID DESC";
|
270 |
-
$result = mysql_query($query);
|
271 |
-
$i=0;
|
272 |
-
while ($arr=mysql_fetch_array($result))
|
273 |
-
{
|
274 |
-
$group_id = $arr['ID'];
|
275 |
-
$group_permalink = get_permalink($group_id);
|
276 |
-
$group_name = $arr['post_title'];
|
277 |
-
$group_link = $arr['guid'];
|
278 |
-
$group_data = json_decode($arr['post_content'],true);
|
279 |
-
$data_keys = array_keys($group_data);
|
280 |
-
?>
|
281 |
-
|
282 |
-
<li id="landing_page-sp-group" class="popular-category">
|
283 |
-
<label class="selectit">
|
284 |
-
<input value="<?php echo $group_id; ?>" name="lp_group_ids[<?php echo $i; ?>]" id="" type="checkbox" <?php if (in_array($lp_post_id,$data_keys)){ echo "checked"; } ?>><span class="split-list-label"><?php echo $group_name; ?></span><span class="lp_group_view">(<a href="<?php echo $group_link;?>" title="View A/B Split Group URL in New Tab" target="_blank">View</a>)</span>
|
285 |
-
<ul class='split-test-page-list'>
|
286 |
-
<li class="split_test_contains" title='$lid'><strong>Currently contains:</strong></li>
|
287 |
-
<?php
|
288 |
-
|
289 |
-
$i=0;
|
290 |
-
foreach ($group_data as $key=>$data)
|
291 |
-
{
|
292 |
-
$this_title = get_the_title($key);
|
293 |
-
if ($this_title)
|
294 |
-
{
|
295 |
-
echo "<li class='lp_list_styled' title='$key'>$this_title</li>";
|
296 |
-
$b = $i+1;
|
297 |
-
if (array_key_exists($b,$data_keys))
|
298 |
-
{
|
299 |
-
//echo 1; exit;
|
300 |
-
echo " - ";
|
301 |
-
}
|
302 |
-
}
|
303 |
-
$i++;
|
304 |
-
}
|
305 |
-
?>
|
306 |
-
</ul>
|
307 |
-
|
308 |
-
</label>
|
309 |
-
</li>
|
310 |
-
<?php
|
311 |
-
$i++;
|
312 |
-
}
|
313 |
-
?>
|
314 |
-
</ul>
|
315 |
-
</div>
|
316 |
-
</div>
|
317 |
-
<div style='text-align:right;padding:5px;'><input type="submit" value="Save Placement" accesskey="p" tabindex="5" id="lp-submit-button" class="button-primary" name="Save Placement"></div>
|
318 |
-
</div>
|
319 |
-
|
320 |
-
</div>
|
321 |
-
</form>
|
322 |
-
</div>
|
323 |
-
<div class="lp-st-div" id="create-new-group-div">
|
324 |
-
<div id="start-new-split-group">
|
325 |
-
<div class="start_group_creation">
|
326 |
-
<h1>Create a new split testing group</h1>
|
327 |
-
<center>
|
328 |
-
<div id='copy-create'>
|
329 |
-
|
330 |
-
<img class="lp_copy_toggle" src="/wp-content/plugins/landing-pages/css/images/clone-create.png">
|
331 |
-
</div>
|
332 |
-
<div class='lp_or_option'>- or -</div>
|
333 |
-
<div id='group-then-create'>
|
334 |
-
|
335 |
-
<img class="lp_grouping_toggle" src="/wp-content/plugins/landing-pages/css/images/select-pages.png">
|
336 |
-
</div>
|
337 |
-
<div class='lp_split_admin_link' style="padding-top:80px;">Alternatively, You can manage your split testing from the <a href="/wp-admin/edit.php?post_type=landing-page&page=lp_split_testing" target="_blank">split testing admin area.</a></div>
|
338 |
-
<div id="blank-create">
|
339 |
-
<h2>Option 3<span class="lp_group_view">Tiptip</span></h2>
|
340 |
-
<img class="lp_blank_toggle" src="/wp-content/plugins/landing-pages/css/images/blank-page.png">
|
341 |
-
</div>
|
342 |
-
</center>
|
343 |
-
</div>
|
344 |
-
<div id='lp_st_ng_container_1' class="lp_copy_create_group">
|
345 |
-
<span class="lp_back_toggle">Back to Start New Split Test Options</span>
|
346 |
-
<div class='lp_copy_options'>
|
347 |
-
<h1>Copy Page & Start New Group</h1>
|
348 |
-
<p>Copy the current landing page and create a brand new A/B Split test</p>
|
349 |
-
<center>
|
350 |
-
<form action="" method="POST">
|
351 |
-
<input type='hidden' name='nature' value='copy_create'>
|
352 |
-
<input type='hidden' name='split_test' value='1'>
|
353 |
-
<input type='hidden' name='lp_post_id' value='<?php echo $lp_post_id; ?>'>
|
354 |
-
<div style="float:left;">
|
355 |
-
<input type="text" autocomplete="off" id="title" value="" tabindex="1" size="30" name="group_name" placeholder='Enter New Group Name Here' class="lp-input-group-name">
|
356 |
-
</div>
|
357 |
-
<div class='lp-submit-td'>
|
358 |
-
<input type="submit" value="Create Copy & Create New Group" id="lp-submit-button" class="button-primary" >
|
359 |
-
</div>
|
360 |
-
|
361 |
-
</form>
|
362 |
-
</center>
|
363 |
-
</div>
|
364 |
-
</div>
|
365 |
-
|
366 |
-
<div id='lp_st_ng_container_2' class="lp_new_page_create_group">
|
367 |
-
<span class="lp_back_toggle">Back to Start New Split Test Options</span>
|
368 |
-
<div class="lp_copy_options">
|
369 |
-
|
370 |
-
<p>Start a brand new split test group. This will create a new blank landing page and split test group associated with it.</p>
|
371 |
-
<center>
|
372 |
-
<form action="" method="POST" >
|
373 |
-
<input type='hidden' name='nature' value='blank_create'>
|
374 |
-
<input type='hidden' name='split_test' value='1'>
|
375 |
-
<input type='hidden' name='lp_post_id' value='<?php echo $lp_post_id; ?>'>
|
376 |
-
<table>
|
377 |
-
<tr>
|
378 |
-
<td>
|
379 |
-
<input type="text" autocomplete="off" id="title" value="" tabindex="1" size="30" name="group_name" placeholder='Enter New Group Name Here'class="lp-input-group-name">
|
380 |
-
</td>
|
381 |
-
<td class='lp-submit-td'>
|
382 |
-
<input type="submit" value="Create Blank LP & Create New Group" id="lp-submit-button" class="button-primary" style='width:212px;'>
|
383 |
-
</td>
|
384 |
-
</tr>
|
385 |
-
</table>
|
386 |
-
</form>
|
387 |
-
</center>
|
388 |
-
</div>
|
389 |
-
</div>
|
390 |
-
|
391 |
-
<div id='lp_st_ng_container_3' class="lp_select_existing_pages_create_group">
|
392 |
-
<span class="lp_back_toggle">Back to Start New Split Test Options</span>
|
393 |
-
<div class="lp_copy_options">
|
394 |
-
<h1>Select Existing Landing Pages & Create Group</h1>
|
395 |
-
<p>Select from the existing landing pages below (hold CMD key to select multiple pages) and create a brand new split test group.</p>
|
396 |
-
<center>
|
397 |
-
<form action="" method="POST" >
|
398 |
-
<input type='hidden' name='nature' value='select_create'>
|
399 |
-
<input type='hidden' name='split_test' value='1'>
|
400 |
-
<input type='hidden' name='lp_post_id' value='<?php echo $lp_post_id; ?>'>
|
401 |
-
<div id="group-lander-creation">
|
402 |
-
<div id="list-of-landers">
|
403 |
-
<?php
|
404 |
-
lp_generate_drowndown('group_lp_ids[]', 'landing-page', $selected = 0);
|
405 |
-
?>
|
406 |
-
</div>
|
407 |
-
<div id="lander-name-of-group">
|
408 |
-
<input type="text" autocomplete="off" id="title" value="" tabindex="1" size="30" name="group_name" placeholder='Enter New Group Name Here'class="lp-input-group-name">
|
409 |
-
</div>
|
410 |
-
<div class='lp-submit-td'>
|
411 |
-
<input type="submit" value="Create New Group from Selected Pages" id="lp-submit-button" class="button-primary" style=''>
|
412 |
-
</div>
|
413 |
-
</div>
|
414 |
-
|
415 |
-
|
416 |
-
</form>
|
417 |
-
</center>
|
418 |
-
</div>
|
419 |
-
</div>
|
420 |
-
</div> <!-- end #start-new-split-group -->
|
421 |
-
</div>
|
422 |
-
</div>
|
423 |
-
</div>
|
424 |
-
<?php if (isset($_GET['start-group'])) { ?>
|
425 |
-
<script type="text/javascript">
|
426 |
-
jQuery(document).ready(function () {
|
427 |
-
jQuery("#create-new-group").click();
|
428 |
-
});
|
429 |
-
</script>
|
430 |
-
<?php } ?>
|
431 |
-
<script type="text/javascript">
|
432 |
-
jQuery(document).ready(function () {
|
433 |
-
if (jQuery('#edit-group-div #landing_page_categorychecklist li').length == 0) {
|
434 |
-
jQuery("#edit-group-div .split-page-list").hide();
|
435 |
-
jQuery("#create-new-group").click();
|
436 |
-
jQuery(".manage-split").html('No Test Groups Found!<br><br><a href="#top#create-new-group" id="create-new-group">Start New Split Test</a>');
|
437 |
-
jQuery("#edit-group-div input").hide();
|
438 |
-
}
|
439 |
-
});
|
440 |
-
</script>
|
441 |
-
<?php
|
442 |
-
}
|
443 |
-
|
444 |
-
function lp_split_test_display_post_creation_options($nature,$data)
|
445 |
-
{
|
446 |
-
|
447 |
-
switch($nature) {
|
448 |
-
case 'copy_create':
|
449 |
-
//$edit_link_old = get_edit_post_link( $data['old_lpid']);
|
450 |
-
$edit_link_new = get_edit_post_link( $data['new_lpid']);
|
451 |
-
$admin_url = get_admin_url();
|
452 |
-
$edit_group_link = "{$admin_url}edit.php?post_type=landing-page&page=lp_split_testing&edit_group=1&group_name=".$data['group_name']."&group_id=".$data['group_id']."&landing_page_ids=".$data['group_lp_ids']."";
|
453 |
-
?>
|
454 |
-
<br><br>
|
455 |
-
<center>
|
456 |
-
<button class="button-secondary" onclick="self.parent.location.href='<?php echo $edit_link_new; ?>'" style='width:290px;'>Edit newly copied post.</button><br><br>
|
457 |
-
<button class="button-secondary" onclick="self.parent.location.href='<?php echo $edit_group_link; ?>'" style='width:290px;'>Edit newly created group.</button><br><br>
|
458 |
-
<button class="button-secondary" onclick="self.parent.tb_remove();">Close this window and continue editing current page.</button><br><br>
|
459 |
-
</center>
|
460 |
-
<?php
|
461 |
-
break;
|
462 |
-
case 'copy':
|
463 |
-
//$edit_link_old = get_edit_post_link( $data['old_lpid']);
|
464 |
-
$edit_link_new = get_edit_post_link( $data['new_lpid']);
|
465 |
-
$admin_url = get_admin_url();
|
466 |
-
?>
|
467 |
-
<br><br>
|
468 |
-
<center>
|
469 |
-
<button class="button-secondary" onclick="self.parent.location.href='<?php echo $edit_link_new; ?>'" style='width:290px;'>Edit newly copied post.</button><br><br>
|
470 |
-
<button class="button-secondary" onclick="self.parent.tb_remove();">Close this window and continue editing current page.</button><br><br>
|
471 |
-
</center>
|
472 |
-
<?php
|
473 |
-
break;
|
474 |
-
case 'select_create':
|
475 |
-
//$edit_link_old = get_edit_post_link( $data['old_lpid']);
|
476 |
-
//$edit_link_new = get_edit_post_link( $data['new_lpid']);
|
477 |
-
$admin_url = get_admin_url();
|
478 |
-
$edit_group_link = "{$admin_url}edit.php?post_type=landing-page&page=lp_split_testing&edit_group=1&group_name=".$data['group_name']."&group_id=".$data['group_id']."&landing_page_ids=".$data['group_lp_ids']."";
|
479 |
-
?>
|
480 |
-
<br><br>
|
481 |
-
<center>
|
482 |
-
<button class="button-secondary" onclick="self.parent.location.href='<?php echo $edit_group_link; ?>'" style='width:290px;'>Edit newly created group.</button><br><br>
|
483 |
-
<button class="button-secondary" onclick="self.parent.tb_remove();">Close this window and continue editing current page.</button><br><br>
|
484 |
-
</center>
|
485 |
-
<?php
|
486 |
-
break;
|
487 |
-
case 'blank_create':
|
488 |
-
//$edit_link_old = get_edit_post_link( $data['old_lpid']);
|
489 |
-
$edit_link_new = get_edit_post_link( $data['new_lpid']);
|
490 |
-
$admin_url = get_admin_url();
|
491 |
-
$edit_group_link = "{$admin_url}edit.php?post_type=landing-page&page=lp_split_testing&edit_group=1&group_name=".$data['group_name']."&group_id=".$data['group_id']."&landing_page_ids=".$data['group_lp_ids']."";
|
492 |
-
?>
|
493 |
-
<br><br>
|
494 |
-
<center>
|
495 |
-
<button class="button-secondary" onclick="self.parent.location.href='<?php echo $edit_link_new; ?>'" style='width:290px;'>Edit newly created post.</button><br><br>
|
496 |
-
<button class="button-secondary" onclick="self.parent.location.href='<?php echo $edit_group_link; ?>'" style='width:290px;'>Edit newly created group.</button><br><br>
|
497 |
-
<button class="button-secondary" onclick="self.parent.tb_remove();" >Close this window and continue editing current page.</button><br><br>
|
498 |
-
</center>
|
499 |
-
<?php
|
500 |
-
break;
|
501 |
-
case 'update_groups':
|
502 |
-
?>
|
503 |
-
<br><br>
|
504 |
-
<center>
|
505 |
-
<button class="button-secondary" onclick="self.parent.tb_remove();" >Close this window and continue editing current page.</button><br><br>
|
506 |
-
</center>
|
507 |
-
<?php
|
508 |
-
break;
|
509 |
-
}
|
510 |
-
}
|
511 |
-
|
512 |
-
function lp_split_testing_clone_popup_display()
|
513 |
-
{
|
514 |
-
global $lp_post_id;
|
515 |
-
$post = get_post($lp_post_id);
|
516 |
-
//echo 1; exit;
|
517 |
-
//print_r($post);exit;
|
518 |
-
echo '<div class="error"><p>';
|
519 |
-
echo "<h3 style='font-weight:normal;'><strong>Please Note</strong> that this version 1 way of running Landing Page split tests will be phases out of the plugin soon.<br><br> Please use the <strong>new and improved A/B testing functionality</strong> directly in the landing page edit screen.";
|
520 |
-
echo "</h3><h1><a href=\"#\" onClick=\"window.open('http://www.youtube.com/embed/KJ_EDJAvv9Y?autoplay=1','landing-page','width=640,height=480,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=no')\">Watch Video Explanation</a></h1></p></div>";
|
521 |
-
?>
|
522 |
-
<div class="metabox-holder split-test-ui">
|
523 |
-
<h2 id="lp-st-tabs" class="nav-tab-wrapper">
|
524 |
-
<a href="/wp-content/plugins/landing-pages/modules/module.split-testing-splash.php?post_id=<?php echo $lp_post_id;?>" id="edit-group" class="nav-tab">Split Test Groups</a>
|
525 |
-
<a href="/wp-content/plugins/landing-pages/modules/module.split-testing-splash.php?post_id=<?php echo $lp_post_id;?>&start-group=1" id="create-new-group" class="nav-tab ">Start New Split Test</a>
|
526 |
-
<a href="" id="clone-option" class="nav-tab nav-tab-active">Clone Current Page</a>
|
527 |
-
</h2>
|
528 |
-
<div class="lp-st-div" id="edit-group-div">
|
529 |
-
<form action='' method='POST'>
|
530 |
-
<input type='hidden' name='nature' value='clone'>
|
531 |
-
<input type='hidden' name='lp_post_id' value='<?php echo $lp_post_id; ?>'>
|
532 |
-
<div class='clone-post-options' style='text-align:center;'>
|
533 |
-
<div class='postbox' style='text-align:left;padding:20px 20px 0px 20px;'>
|
534 |
-
<div class="categorydiv" id="taxonomy-landing_page_category">
|
535 |
-
<span class="clone_description" style='font-size:16px;'><strong>Clone Current Page</strong></span>
|
536 |
-
<div class="tabs-panel split-page-list" id="landing_page_category-all">
|
537 |
-
<ul id="landing_page_categorychecklist" class="list:landing_page_category categorychecklist form-no-clear">
|
538 |
-
<?php
|
539 |
-
global $table_prefix;
|
540 |
-
$query = "SELECT * FROM {$table_prefix}posts WHERE post_type='landing-page-group' ORDER BY ID DESC";
|
541 |
-
$result = mysql_query($query);
|
542 |
-
$i=0;
|
543 |
-
while ($arr=mysql_fetch_array($result))
|
544 |
-
{
|
545 |
-
$group_id = $arr['ID'];
|
546 |
-
$group_permalink = get_permalink($group_id);
|
547 |
-
$group_name = $arr['post_title'];
|
548 |
-
$group_link = $arr['guid'];
|
549 |
-
$group_data = json_decode($arr['post_content'],true);
|
550 |
-
$data_keys = array_keys($group_data);
|
551 |
-
?>
|
552 |
-
|
553 |
-
<li id="landing_page-sp-group" class="popular-category">
|
554 |
-
<label class="selectit">
|
555 |
-
<input value="<?php echo $group_id; ?>" name="lp_group_ids[<?php echo $i; ?>]" id="" type="checkbox" <?php if (in_array($lp_post_id,$data_keys)){ echo "checked"; } ?>><span class="split-list-label"><?php echo $group_name; ?></span><span class="lp_group_view">(<a href="<?php echo $group_link;?>" title="View A/B Split Group URL in New Tab" target="_blank">View</a>)</span>
|
556 |
-
<ul class='split-test-page-list'>
|
557 |
-
<li class="split_test_contains" title='$lid'><strong>Currently contains:</strong></li>
|
558 |
-
<?php
|
559 |
-
|
560 |
-
$i=0;
|
561 |
-
foreach ($group_data as $key=>$data)
|
562 |
-
{
|
563 |
-
$this_title = get_the_title($key);
|
564 |
-
if ($this_title)
|
565 |
-
{
|
566 |
-
echo "<li class='lp_list_styled' title='$key'>$this_title</li>";
|
567 |
-
$b = $i+1;
|
568 |
-
if (array_key_exists($b,$data_keys))
|
569 |
-
{
|
570 |
-
//echo 1; exit;
|
571 |
-
echo " - ";
|
572 |
-
}
|
573 |
-
}
|
574 |
-
$i++;
|
575 |
-
}
|
576 |
-
?>
|
577 |
-
</ul>
|
578 |
-
|
579 |
-
</label>
|
580 |
-
</li>
|
581 |
-
<?php
|
582 |
-
$i++;
|
583 |
-
}
|
584 |
-
?>
|
585 |
-
</ul>
|
586 |
-
</div>
|
587 |
-
</div>
|
588 |
-
<div style='text-align:left;padding:5px;'><input type="submit" value="Clone Page" accesskey="p" tabindex="5" id="lp-submit-button" class="button-primary" name="Clone Page"></div>
|
589 |
-
</div>
|
590 |
-
|
591 |
-
</div>
|
592 |
-
</form>
|
593 |
-
</div>
|
594 |
-
</div>
|
595 |
-
<script type="text/javascript">
|
596 |
-
jQuery(document).ready(function () {
|
597 |
-
if (jQuery('.clone-post-options #landing_page_categorychecklist li').length == 0) {
|
598 |
-
jQuery(".clone-post-options .split-page-list").hide();
|
599 |
-
jQuery(".clone_description").html("Click the Button to Clone this page");
|
600 |
-
}
|
601 |
-
});
|
602 |
-
</script>
|
603 |
-
|
604 |
-
<?php
|
605 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
modules/module.split-testing.php
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
<?php
|
|
modules/module.store.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php
|
2 |
</div>
|
|
|
3 |
</div>
|
|
|
1 |
</div>
|
2 |
+
<?php
|
3 |
</div>
|
modules/module.subscribe.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php
|
1 |
+
<?php
|
modules/module.templates-upload.php
CHANGED
@@ -130,7 +130,5 @@ function lp_templates_upload_execute()
|
|
130 |
}
|
131 |
}
|
132 |
|
133 |
-
|
134 |
-
|
135 |
-
//echo 'hello Update!';
|
136 |
-
}
|
130 |
}
|
131 |
}
|
132 |
|
133 |
+
|
134 |
+
?>
|
|
|
|
modules/module.templates.php
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
<?php
|
|
|
2 |
if (isset($_GET['page'])&&($_GET['page']=='lp_templates_upload'||$_GET['page']=='lp_templates_update'||$_GET['page']=='lp_templates_search'))
|
3 |
{
|
4 |
add_action('admin_enqueue_scripts','lp_templates_admin_enqueue');
|
@@ -33,10 +34,11 @@ else if (isset($_GET['page'])&&$_GET['page']=='lp_manage_templates')
|
|
33 |
|
34 |
function __construct()
|
35 |
{
|
36 |
-
|
|
|
37 |
foreach ($lp_data as $key=>$value)
|
38 |
{
|
39 |
-
$array_core_templates = array('countdown-lander','default','demo','dropcap','half-and-half','simple-two-column','super-slick','svtle','tubelar','rsvp-envelope');
|
40 |
|
41 |
if ($key!='lp'&&!in_array($key,$array_core_templates)&&substr($key,0,4)!='ext-')
|
42 |
{
|
@@ -62,13 +64,13 @@ else if (isset($_GET['page'])&&$_GET['page']=='lp_manage_templates')
|
|
62 |
|
63 |
$this_data['ID'] = $key;
|
64 |
$this_data['template'] = $key;
|
65 |
-
$this_data['name'] = $value['label'];
|
66 |
-
$this_data['category'] = $value['category'];
|
67 |
-
$this_data['description'] = $value['description'];
|
68 |
$this_data['thumbnail'] = $thumbnail;
|
69 |
-
if (isset($value['version'])&&!empty($value['version']))
|
70 |
{
|
71 |
-
$this_data['version'] = $value['version'];
|
72 |
}
|
73 |
else
|
74 |
{
|
@@ -276,9 +278,10 @@ else if (isset($_GET['page'])&&$_GET['page']=='lp_manage_templates')
|
|
276 |
case 'delete':
|
277 |
if (count($_REQUEST['template'])>0)
|
278 |
{
|
|
|
279 |
foreach ($_REQUEST['template'] as $key=>$slug)
|
280 |
{
|
281 |
-
lp_templates_delete_dir(
|
282 |
}
|
283 |
}
|
284 |
break;
|
@@ -389,7 +392,7 @@ else if (isset($_GET['page'])&&$_GET['page']=='lp_manage_templates')
|
|
389 |
{
|
390 |
$api_params = array(
|
391 |
'edd_action' => 'get_version',
|
392 |
-
'license' => '',
|
393 |
'name' => $item['name'],
|
394 |
'slug' => $item['ID'],
|
395 |
'nature' => 'template',
|
@@ -413,6 +416,7 @@ else if (isset($_GET['page'])&&$_GET['page']=='lp_manage_templates')
|
|
413 |
$data = $lp_data[$slug];
|
414 |
|
415 |
if (!file_exists($dir)) return true;
|
|
|
416 |
if (!is_dir($dir) || is_link($dir)) return unlink($dir);
|
417 |
foreach (scandir($dir) as $item) {
|
418 |
if ($item == '.' || $item == '..') continue;
|
@@ -451,4 +455,6 @@ function lp_templates_add_menu()
|
|
451 |
}
|
452 |
$_registered_pages[$hookname] = true;
|
453 |
}
|
454 |
-
}
|
|
|
|
1 |
<?php
|
2 |
+
|
3 |
if (isset($_GET['page'])&&($_GET['page']=='lp_templates_upload'||$_GET['page']=='lp_templates_update'||$_GET['page']=='lp_templates_search'))
|
4 |
{
|
5 |
add_action('admin_enqueue_scripts','lp_templates_admin_enqueue');
|
34 |
|
35 |
function __construct()
|
36 |
{
|
37 |
+
$lp_data = lp_get_extension_data();
|
38 |
+
|
39 |
foreach ($lp_data as $key=>$value)
|
40 |
{
|
41 |
+
$array_core_templates = array('countdown-lander','default','demo','dropcap','half-and-half','simple-two-column','super-slick','svtle','tubelar','rsvp-envelope', 'three-column-lander');
|
42 |
|
43 |
if ($key!='lp'&&!in_array($key,$array_core_templates)&&substr($key,0,4)!='ext-')
|
44 |
{
|
64 |
|
65 |
$this_data['ID'] = $key;
|
66 |
$this_data['template'] = $key;
|
67 |
+
$this_data['name'] = $value['info']['label'];
|
68 |
+
$this_data['category'] = $value['info']['category'];
|
69 |
+
$this_data['description'] = $value['info']['description'];
|
70 |
$this_data['thumbnail'] = $thumbnail;
|
71 |
+
if (isset($value['version'])&&!empty($value['info']['version']))
|
72 |
{
|
73 |
+
$this_data['version'] = $value['info']['version'];
|
74 |
}
|
75 |
else
|
76 |
{
|
278 |
case 'delete':
|
279 |
if (count($_REQUEST['template'])>0)
|
280 |
{
|
281 |
+
|
282 |
foreach ($_REQUEST['template'] as $key=>$slug)
|
283 |
{
|
284 |
+
lp_templates_delete_dir(LANDINGPAGES_UPLOADS_PATH.$slug, $slug);
|
285 |
}
|
286 |
}
|
287 |
break;
|
392 |
{
|
393 |
$api_params = array(
|
394 |
'edd_action' => 'get_version',
|
395 |
+
'license' => get_option('lp-license-keys-'.$item['ID']),
|
396 |
'name' => $item['name'],
|
397 |
'slug' => $item['ID'],
|
398 |
'nature' => 'template',
|
416 |
$data = $lp_data[$slug];
|
417 |
|
418 |
if (!file_exists($dir)) return true;
|
419 |
+
|
420 |
if (!is_dir($dir) || is_link($dir)) return unlink($dir);
|
421 |
foreach (scandir($dir) as $item) {
|
422 |
if ($item == '.' || $item == '..') continue;
|
455 |
}
|
456 |
$_registered_pages[$hookname] = true;
|
457 |
}
|
458 |
+
}
|
459 |
+
|
460 |
+
?>
|
modules/module.track.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php
|
2 |
$count_key = 'lp_page_views_count';
|
3 |
$count = get_post_meta($postID, $count_key, true);
|
4 |
if($count==''){
|
5 |
delete_post_meta($postID, $count_key);
|
6 |
add_post_meta($postID, $count_key, '0');
|
7 |
return;
|
8 |
}
|
9 |
return $count;
|
10 |
$count_key = 'lp_page_views_count';
|
11 |
$count = get_post_meta($postID, $count_key, true);
|
12 |
if($count==''){
|
13 |
$count = 0;
|
14 |
delete_post_meta($postID, $count_key);
|
15 |
add_post_meta($postID, $count_key, '0');
|
16 |
}else{
|
17 |
$count++;
|
18 |
update_post_meta($postID, $count_key, $count);
|
19 |
}
|
20 |
$count_key = 'lp_page_conversions_count';
|
21 |
$count = get_post_meta($postID, $count_key, true);
|
22 |
if($count==''){
|
23 |
delete_post_meta($postID, $count_key);
|
24 |
add_post_meta($postID, $count_key, '0');
|
25 |
return "0";
|
26 |
}
|
27 |
return $count;
|
28 |
$count_key = 'lp_page_conversions_count';
|
29 |
$count = get_post_meta($postID, $count_key, true);
|
30 |
if($count==''){
|
31 |
$count = 0;
|
32 |
delete_post_meta($postID, $count_key);
|
33 |
add_post_meta($postID, $count_key, '0');
|
34 |
}else{
|
35 |
$count++;
|
36 |
update_post_meta($postID, $count_key, $count);
|
37 |
}
|
|
|
38 |
$count_key = 'lp_page_views_count';
|
39 |
$count = get_post_meta($postID, $count_key, true);
|
40 |
if($count==''){
|
41 |
delete_post_meta($postID, $count_key);
|
42 |
add_post_meta($postID, $count_key, '0');
|
43 |
return;
|
44 |
}
|
45 |
return $count;
|
46 |
$count_key = 'lp_page_views_count';
|
47 |
$count = get_post_meta($postID, $count_key, true);
|
48 |
if($count==''){
|
49 |
$count = 0;
|
50 |
delete_post_meta($postID, $count_key);
|
51 |
add_post_meta($postID, $count_key, '0');
|
52 |
}else{
|
53 |
$count++;
|
54 |
update_post_meta($postID, $count_key, $count);
|
55 |
}
|
56 |
$count_key = 'lp_page_conversions_count';
|
57 |
$count = get_post_meta($postID, $count_key, true);
|
58 |
if($count==''){
|
59 |
delete_post_meta($postID, $count_key);
|
60 |
add_post_meta($postID, $count_key, '0');
|
61 |
return "0";
|
62 |
}
|
63 |
return $count;
|
64 |
$count_key = 'lp_page_conversions_count';
|
65 |
$count = get_post_meta($postID, $count_key, true);
|
66 |
if($count==''){
|
67 |
$count = 0;
|
68 |
delete_post_meta($postID, $count_key);
|
69 |
add_post_meta($postID, $count_key, '0');
|
70 |
}else{
|
71 |
$count++;
|
72 |
update_post_meta($postID, $count_key, $count);
|
73 |
}
|
|
|
1 |
$count_key = 'lp_page_views_count';
|
2 |
$count = get_post_meta($postID, $count_key, true);
|
3 |
if($count==''){
|
4 |
delete_post_meta($postID, $count_key);
|
5 |
add_post_meta($postID, $count_key, '0');
|
6 |
return;
|
7 |
}
|
8 |
return $count;
|
9 |
$count_key = 'lp_page_views_count';
|
10 |
$count = get_post_meta($postID, $count_key, true);
|
11 |
if($count==''){
|
12 |
$count = 0;
|
13 |
delete_post_meta($postID, $count_key);
|
14 |
add_post_meta($postID, $count_key, '0');
|
15 |
}else{
|
16 |
$count++;
|
17 |
update_post_meta($postID, $count_key, $count);
|
18 |
}
|
19 |
$count_key = 'lp_page_conversions_count';
|
20 |
$count = get_post_meta($postID, $count_key, true);
|
21 |
if($count==''){
|
22 |
delete_post_meta($postID, $count_key);
|
23 |
add_post_meta($postID, $count_key, '0');
|
24 |
return "0";
|
25 |
}
|
26 |
return $count;
|
27 |
$count_key = 'lp_page_conversions_count';
|
28 |
$count = get_post_meta($postID, $count_key, true);
|
29 |
if($count==''){
|
30 |
$count = 0;
|
31 |
delete_post_meta($postID, $count_key);
|
32 |
add_post_meta($postID, $count_key, '0');
|
33 |
}else{
|
34 |
$count++;
|
35 |
update_post_meta($postID, $count_key, $count);
|
36 |
}
|
37 |
+
<?php
|
38 |
$count_key = 'lp_page_views_count';
|
39 |
$count = get_post_meta($postID, $count_key, true);
|
40 |
if($count==''){
|
41 |
delete_post_meta($postID, $count_key);
|
42 |
add_post_meta($postID, $count_key, '0');
|
43 |
return;
|
44 |
}
|
45 |
return $count;
|
46 |
$count_key = 'lp_page_views_count';
|
47 |
$count = get_post_meta($postID, $count_key, true);
|
48 |
if($count==''){
|
49 |
$count = 0;
|
50 |
delete_post_meta($postID, $count_key);
|
51 |
add_post_meta($postID, $count_key, '0');
|
52 |
}else{
|
53 |
$count++;
|
54 |
update_post_meta($postID, $count_key, $count);
|
55 |
}
|
56 |
$count_key = 'lp_page_conversions_count';
|
57 |
$count = get_post_meta($postID, $count_key, true);
|
58 |
if($count==''){
|
59 |
delete_post_meta($postID, $count_key);
|
60 |
add_post_meta($postID, $count_key, '0');
|
61 |
return "0";
|
62 |
}
|
63 |
return $count;
|
64 |
$count_key = 'lp_page_conversions_count';
|
65 |
$count = get_post_meta($postID, $count_key, true);
|
66 |
if($count==''){
|
67 |
$count = 0;
|
68 |
delete_post_meta($postID, $count_key);
|
69 |
add_post_meta($postID, $count_key, '0');
|
70 |
}else{
|
71 |
$count++;
|
72 |
update_post_meta($postID, $count_key, $count);
|
73 |
}
|
modules/module.utils.php
CHANGED
@@ -1,19 +1,35 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
}
|
8 |
-
add_filter('wp_nav_menu', 'add_first_and_last');
|
9 |
-
//Filtering a Class in Navigation Menu Item
|
10 |
-
add_filter('nav_menu_css_class' , 'special_nav_class' , 10 , 2);
|
11 |
-
function special_nav_class($classes, $item){
|
12 |
-
if ( 'landing-page' == get_post_type() ) {
|
13 |
-
$classes[] = 'lp_explode_menu';
|
14 |
-
}
|
15 |
-
return $classes;
|
16 |
-
}*/
|
17 |
|
18 |
// Fix SEO Title Tags to not use the_title
|
19 |
//add_action('wp','landingpage_seo_title_filters');
|
@@ -92,7 +108,7 @@ function lp_remove_all_styles()
|
|
92 |
else
|
93 |
{
|
94 |
global $wp_styles;
|
95 |
-
$wp_styles->queue = array();
|
96 |
//wp_register_style( 'admin-bar' );
|
97 |
wp_enqueue_style( 'admin-bar' );
|
98 |
}
|
@@ -107,17 +123,23 @@ function landingpage_remove_plugin_filters() {
|
|
107 |
|
108 |
global $wp_filter;
|
109 |
global $wp;
|
|
|
110 |
if ($wp->query_vars["post_type"] == 'landing-page') {
|
111 |
add_filter('body_class','landing_body_class_names');
|
112 |
}
|
113 |
}
|
114 |
|
115 |
function landing_body_class_names($classes) {
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
|
|
|
|
|
|
122 |
return $arr;
|
123 |
-
}
|
|
|
|
1 |
<?php
|
2 |
+
/**
|
3 |
+
* Utility Functions
|
4 |
+
*/
|
5 |
+
|
6 |
+
add_action( 'init', 'inbound_meta_debug' );
|
7 |
+
if (!function_exists('inbound_meta_debug')) {
|
8 |
+
function inbound_meta_debug()
|
9 |
+
{
|
10 |
+
//print all global fields for post
|
11 |
+
if (isset($_GET['debug']) && ( isset($_GET['post']) && is_numeric($_GET['post']) ) )
|
12 |
+
{
|
13 |
+
global $wpdb;
|
14 |
+
$data = array();
|
15 |
+
$wpdb->query("
|
16 |
+
SELECT `meta_key`, `meta_value`
|
17 |
+
FROM $wpdb->postmeta
|
18 |
+
WHERE `post_id` = ".mysql_real_escape_string($_GET['post'])."
|
19 |
+
");
|
20 |
+
|
21 |
+
foreach($wpdb->last_result as $k => $v){
|
22 |
+
$data[$v->meta_key] = $v->meta_value;
|
23 |
+
};
|
24 |
+
if (isset($_GET['post']))
|
25 |
+
{
|
26 |
+
echo "<pre>";
|
27 |
+
print_r( $data);
|
28 |
+
echo "</pre>";
|
29 |
+
}
|
30 |
+
}
|
31 |
+
}
|
32 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
|
34 |
// Fix SEO Title Tags to not use the_title
|
35 |
//add_action('wp','landingpage_seo_title_filters');
|
108 |
else
|
109 |
{
|
110 |
global $wp_styles;
|
111 |
+
$wp_styles->queue = array('');
|
112 |
//wp_register_style( 'admin-bar' );
|
113 |
wp_enqueue_style( 'admin-bar' );
|
114 |
}
|
123 |
|
124 |
global $wp_filter;
|
125 |
global $wp;
|
126 |
+
|
127 |
if ($wp->query_vars["post_type"] == 'landing-page') {
|
128 |
add_filter('body_class','landing_body_class_names');
|
129 |
}
|
130 |
}
|
131 |
|
132 |
function landing_body_class_names($classes) {
|
133 |
+
global $post;
|
134 |
+
|
135 |
+
if('landing-page' == get_post_type() )
|
136 |
+
{
|
137 |
+
$arr = array();
|
138 |
+
$template_id = get_post_meta($post->ID, 'lp-selected-template', true);
|
139 |
+
$arr[] = 'template-' . $template_id;
|
140 |
+
}
|
141 |
+
|
142 |
return $arr;
|
143 |
+
}
|
144 |
+
|
145 |
+
?>
|
modules/module.widgets.php
CHANGED
@@ -42,7 +42,7 @@ class lp_conversion_area_widget extends WP_Widget
|
|
42 |
$title = apply_filters('widget_title', $instance['title'] );
|
43 |
|
44 |
$conversion_area = do_shortcode(get_post_meta($this_id, 'lp-conversion-area', true));
|
45 |
-
$standardize_form = get_option( 'main-landing-page-auto-format-forms' , 0); // conditional to check for options
|
46 |
if ($standardize_form)
|
47 |
{
|
48 |
$wrapper_class = lp_discover_important_wrappers($conversion_area);
|
@@ -96,4 +96,6 @@ class lp_conversion_area_widget extends WP_Widget
|
|
96 |
|
97 |
<?php
|
98 |
}
|
99 |
-
}
|
|
|
|
42 |
$title = apply_filters('widget_title', $instance['title'] );
|
43 |
|
44 |
$conversion_area = do_shortcode(get_post_meta($this_id, 'lp-conversion-area', true));
|
45 |
+
$standardize_form = get_option( 'lp-main-landing-page-auto-format-forms' , 0); // conditional to check for options
|
46 |
if ($standardize_form)
|
47 |
{
|
48 |
$wrapper_class = lp_discover_important_wrappers($conversion_area);
|
96 |
|
97 |
<?php
|
98 |
}
|
99 |
+
}
|
100 |
+
|
101 |
+
?>
|
readme.txt
CHANGED
@@ -4,20 +4,22 @@ Contributors: David Wells, adbox
|
|
4 |
Donate link: mailto:Hudson.Atwell@gmail.com
|
5 |
License: GPLv2 or later
|
6 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
7 |
-
Tags: landing pages, inbound marketing, conversion pages, split testing, a b test, a b testing, a/b test, a/b testing, coming soon page, email list, landing page, list building, maintenance page, squeeze page, inbound now, landing-pages, splash pages, cpa, click tracking, goal tracking, analytics
|
8 |
-
Requires at least: 3.
|
9 |
Tested up to: 3.5
|
10 |
-
Stable Tag: 1.1
|
11 |
|
12 |
Create landing pages for your WordPress site. Monitor and improve conversion rates, run A/B split tests, customize your own templates and more.
|
13 |
|
14 |
-
== Description ==
|
|
|
|
|
15 |
|
16 |
This plugin creates landing pages (a.k.a. conversion or splash pages) for your WordPress site. It gives site owners the ability to monitor and track conversion rates, run a/b or multivariate split tests on landing pages, and most importantly increase lead flow!
|
17 |
|
18 |
The landing page plugin was specifically designed with inbound marketing best practices in mind and will help you drive & convert more leads on your site.
|
19 |
|
20 |
-
Landing pages are an ideal way to convert more of your passive website visitors into active leads or email list subscribers.
|
21 |
|
22 |
= Highlights =
|
23 |
|
@@ -45,7 +47,9 @@ We built the landing page plugin as a framework! Need A/B testing out of the box
|
|
45 |
|
46 |
You can quickly take your existing designs and implement them using our <a href="http://docs.inboundnow.com/landing-pages/dev">templating framework</a>.
|
47 |
|
48 |
-
The plugin is also fully extendable and has a number of actions, filters
|
|
|
|
|
49 |
|
50 |
== Installation ==
|
51 |
|
@@ -65,6 +69,40 @@ The plugin is also fully extendable and has a number of actions, filters, and ho
|
|
65 |
|
66 |
== Changelog ==
|
67 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
= 1.1.0.1 =
|
69 |
|
70 |
* Fixed: Variation saves for custom css and custom js.
|
@@ -159,6 +197,4 @@ Bug Fix: 'Clear Stats' button.
|
|
159 |
|
160 |
= 1.1 =
|
161 |
|
162 |
-
Released
|
163 |
-
|
164 |
-
|
4 |
Donate link: mailto:Hudson.Atwell@gmail.com
|
5 |
License: GPLv2 or later
|
6 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
7 |
+
Tags: landing pages, inbound marketing, conversion pages, split testing, a b test, a b testing, a/b test, a/b testing, coming soon page, email list, landing page, list building, maintenance page, squeeze page, inbound now, landing-pages, splash pages, cpa, click tracking, goal tracking, analytics, free landing page templates
|
8 |
+
Requires at least: 3.4
|
9 |
Tested up to: 3.5
|
10 |
+
Stable Tag: 1.3.1
|
11 |
|
12 |
Create landing pages for your WordPress site. Monitor and improve conversion rates, run A/B split tests, customize your own templates and more.
|
13 |
|
14 |
+
== Description ==
|
15 |
+
|
16 |
+
> WordPress Landing Pages works as a standalone plugin or hand in hand with [WordPress Calls to Action](http://wordpress.org/plugins/cta/ "Learn more about Calls to Action") & [WordPress Leads](http://wordpress.org/plugins/leads/ "Learn more about WordPress Leads") to create a powerful & free lead generation system for your business.
|
17 |
|
18 |
This plugin creates landing pages (a.k.a. conversion or splash pages) for your WordPress site. It gives site owners the ability to monitor and track conversion rates, run a/b or multivariate split tests on landing pages, and most importantly increase lead flow!
|
19 |
|
20 |
The landing page plugin was specifically designed with inbound marketing best practices in mind and will help you drive & convert more leads on your site.
|
21 |
|
22 |
+
Landing pages are an ideal way to convert more of your passive website visitors into active leads or email list subscribers.
|
23 |
|
24 |
= Highlights =
|
25 |
|
47 |
|
48 |
You can quickly take your existing designs and implement them using our <a href="http://docs.inboundnow.com/landing-pages/dev">templating framework</a>.
|
49 |
|
50 |
+
The plugin is also fully extendable and has a number of <a href='http://docs.inboundnow.com/landing-pages/dev/core-hooks-filters'>actions, filters</a>, and hooks available for use. If a hook doesn't exist, simply ask and we can implement custom changes.
|
51 |
+
|
52 |
+
<b>You can also follow us on <a href="https://github.com/inboundnow/landing-pages/">GitHub</a></b>
|
53 |
|
54 |
== Installation ==
|
55 |
|
69 |
|
70 |
== Changelog ==
|
71 |
|
72 |
+
= 1.3.1 =
|
73 |
+
|
74 |
+
* Added: Added InboundNow form creation and management system (beta)
|
75 |
+
* Added: Support for InboundNow cross plugin extensions
|
76 |
+
* Added: 'Sticky Variations' to global settings.
|
77 |
+
* Added: Easier way for extension developers to license their extensions.
|
78 |
+
* Added: 'header' setting component to global settings.
|
79 |
+
* Fixed: Security issues
|
80 |
+
* Improvement: Improved data management for global settings, metaboxes, and extensions.
|
81 |
+
|
82 |
+
= 1.2.3 =
|
83 |
+
|
84 |
+
* Fixed: Security issue with vulnerability to sql injection.
|
85 |
+
|
86 |
+
= 1.2.1 =
|
87 |
+
|
88 |
+
* Fixed: Issues with shortcodes rendering in wp-admin for variations.
|
89 |
+
|
90 |
+
= 1.1.9 =
|
91 |
+
|
92 |
+
* Fixed: Issues with navigation menu items breaking on landing pages with the default template selected.
|
93 |
+
|
94 |
+
= 1.1.8 =
|
95 |
+
|
96 |
+
* Fixed: Issue with post_content not saving for variations.
|
97 |
+
* Added: [lp_conversion_area] Shortcode. It renders form conversion area anywhere on landing page
|
98 |
+
* Fixed: Restored the ability to delete custom templates from 'Templates' section.
|
99 |
+
|
100 |
+
= 1.1.7 =
|
101 |
+
|
102 |
+
* Fixed: Issue with extension license keys not validating
|
103 |
+
* Fixed: Issue with shortcodes not firing on select core templates
|
104 |
+
* Improvement: Converted global settings data array to new easier to read format for development, added in legacy support.
|
105 |
+
|
106 |
= 1.1.0.1 =
|
107 |
|
108 |
* Fixed: Variation saves for custom css and custom js.
|
197 |
|
198 |
= 1.1 =
|
199 |
|
200 |
+
Released
|
|
|
|
shared/classes/form.class.php
ADDED
@@ -0,0 +1,415 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Creates Form Shortcode
|
5 |
+
*/
|
6 |
+
|
7 |
+
/*
|
8 |
+
Usage
|
9 |
+
[inbound_form fields="First Name, Last Name, Email, Company, Phone" required="Company" textareas="Company"]
|
10 |
+
*/
|
11 |
+
|
12 |
+
//=============================================
|
13 |
+
// Define constants
|
14 |
+
//=============================================
|
15 |
+
|
16 |
+
if (!class_exists('InboundForms')) {
|
17 |
+
class InboundForms {
|
18 |
+
static $add_script;
|
19 |
+
//=============================================
|
20 |
+
// Hooks and Filters
|
21 |
+
//=============================================
|
22 |
+
static function init() {
|
23 |
+
add_shortcode('inbound_form', array(__CLASS__, 'inbound_forms_create'));
|
24 |
+
add_action('init', array(__CLASS__, 'register_script'));
|
25 |
+
add_action('wp_footer', array(__CLASS__, 'print_script'));
|
26 |
+
add_action('wp_footer', array(__CLASS__, 'inline_my_script'));
|
27 |
+
add_action( 'init', array(__CLASS__, 'send_email'));
|
28 |
+
}
|
29 |
+
|
30 |
+
// Shortcode params
|
31 |
+
static function inbound_forms_create( $atts, $content = null ) { {
|
32 |
+
self::$add_script = true;
|
33 |
+
$email = get_option('admin_email');
|
34 |
+
extract(shortcode_atts(array(
|
35 |
+
'id' => '',
|
36 |
+
'name' => '',
|
37 |
+
'layout' => '',
|
38 |
+
'notify' => $email,
|
39 |
+
'labels' => '',
|
40 |
+
'width' => '',
|
41 |
+
'redirect' => '',
|
42 |
+
'submit' => 'Submit'
|
43 |
+
), $atts));
|
44 |
+
|
45 |
+
$form_name = $name;
|
46 |
+
$form_layout = $layout;
|
47 |
+
$form_labels = $labels;
|
48 |
+
$form_labels_class = (isset($form_labels)) ? "inbound-label-".$form_labels : 'inbound-label-inline';
|
49 |
+
$submit_button = ($submit != "") ? $submit : 'Submit';
|
50 |
+
|
51 |
+
|
52 |
+
// Check for image in submit button option
|
53 |
+
if (preg_match('/\.(jpg|jpeg|png|gif)(?:[\?\#].*)?$/i',$submit_button)) {
|
54 |
+
$submit_button_type = 'style="background:url('.$submit_button.') no-repeat;color: rgba(0, 0, 0, 0);border: none;box-shadow: none;';
|
55 |
+
} else {
|
56 |
+
$submit_button_type = '';
|
57 |
+
}
|
58 |
+
|
59 |
+
/* Sanitize width input */
|
60 |
+
if (preg_match('/px/i',$width)) {
|
61 |
+
$fixed_width = str_replace("px", "", $width);
|
62 |
+
$width_output = "width:" . $fixed_width . "px;";
|
63 |
+
} elseif (preg_match('/%/i',$width)) {
|
64 |
+
$fixed_width_perc = str_replace("%", "", $width);
|
65 |
+
$width_output = "width:" . $fixed_width_perc . "%;";
|
66 |
+
} else {
|
67 |
+
$width_output = "width:" . $width . "px;";
|
68 |
+
}
|
69 |
+
|
70 |
+
$form_width = ($width != "") ? $width_output : '';
|
71 |
+
|
72 |
+
//if (!preg_match_all("/(.?)\[(inbound_field)\b(.*?)(?:(\/))?\](?:(.+?)\[\/inbound_field\])?(.?)/s", $content, $matches)) {
|
73 |
+
if (!preg_match_all('/(.?)\[(inbound_field)(.*?)\]/s',$content, $matches)) {
|
74 |
+
return '';
|
75 |
+
|
76 |
+
} else {
|
77 |
+
|
78 |
+
for($i = 0; $i < count($matches[0]); $i++) {
|
79 |
+
$matches[3][$i] = shortcode_parse_atts($matches[3][$i]);
|
80 |
+
}
|
81 |
+
// matches are $matches[3][$i]['label']
|
82 |
+
$clean_form_id = preg_replace("/[^A-Za-z0-9 ]/", '', trim($name));
|
83 |
+
$form_id = strtolower(str_replace(array(' ','_'),'-',$clean_form_id));
|
84 |
+
|
85 |
+
$form = '<!-- This Inbound Form is Automatically Tracked -->';
|
86 |
+
$form .= '<div id="inbound-form-wrapper" class="">';
|
87 |
+
$form .= '<form class="inbound-now-form wpl-track-me" method="post" id="'.$form_id.'" action="" style="'.$form_width.'">';
|
88 |
+
$main_layout = ($form_layout != "") ? 'inbound-'.$form_layout : 'inbound-normal';
|
89 |
+
for($i = 0; $i < count($matches[0]); $i++) {
|
90 |
+
|
91 |
+
$label = (isset($matches[3][$i]['label'])) ? $matches[3][$i]['label'] : '';
|
92 |
+
$clean_label = preg_replace("/[^A-Za-z0-9 ]/", '', trim($label));
|
93 |
+
$formatted_label = strtolower(str_replace(array(' ','_'),'-',$clean_label));
|
94 |
+
$field_placeholder = (isset($matches[3][$i]['placeholder'])) ? $matches[3][$i]['placeholder'] : '';
|
95 |
+
|
96 |
+
$placeholer_use = ($field_placeholder != "") ? $field_placeholder : $label;
|
97 |
+
|
98 |
+
if ($field_placeholder != "") {
|
99 |
+
$form_placeholder = "placeholder='".$placeholer_use."'";
|
100 |
+
} else if (isset($form_labels) && $form_labels === "placeholder") {
|
101 |
+
$form_placeholder = "placeholder='".$placeholer_use."'";
|
102 |
+
} else {
|
103 |
+
$form_placeholder = "";
|
104 |
+
}
|
105 |
+
|
106 |
+
$description_block = (isset($matches[3][$i]['description'])) ? $matches[3][$i]['description'] : '';
|
107 |
+
$required = (isset($matches[3][$i]['required'])) ? $matches[3][$i]['required'] : '0';
|
108 |
+
$req = ($required === '1') ? 'required' : '';
|
109 |
+
$req_label = ($required === '1') ? '<span class="inbound-required">*</span>' : '';
|
110 |
+
$field_name = strtolower(str_replace(array(' ','_'),'-',$label));
|
111 |
+
|
112 |
+
/* Map Common Fields */
|
113 |
+
(preg_match( '/Email|e-mail|email/i', $label, $email_input)) ? $email_input = " inbound-email" : $email_input = "";
|
114 |
+
|
115 |
+
// Match Phone
|
116 |
+
(preg_match( '/Phone|phone number|telephone/i', $label, $phone_input)) ? $phone_input = " inbound-phone" : $phone_input = "";
|
117 |
+
|
118 |
+
// match name or first name. (minus: name=, last name, last_name,)
|
119 |
+
(preg_match( '/(?<!((last |last_)))name(?!\=)/im', $label, $first_name_input)) ? $first_name_input = " inbound-first-name" : $first_name_input = "";
|
120 |
+
|
121 |
+
// Match Last Name
|
122 |
+
(preg_match( '/(?<!((first)))(last name|last_name|last)(?!\=)/im', $label, $last_name_input)) ? $last_name_input = " inbound-last-name" : $last_name_input = "";
|
123 |
+
|
124 |
+
$input_classes = $email_input . $first_name_input . $last_name_input . $phone_input;
|
125 |
+
|
126 |
+
$type = (isset($matches[3][$i]['type'])) ? $matches[3][$i]['type'] : '';
|
127 |
+
|
128 |
+
$form .= '<div class="inbound-field '.$main_layout.' label-'.$form_labels_class.'">';
|
129 |
+
|
130 |
+
if ($type != 'hidden' && $form_labels != "bottom" || $type === "radio"){
|
131 |
+
$form .= '<label class="inbound-label '.$formatted_label.' '.$form_labels_class.' inbound-input-'.$type.'">' . $matches[3][$i]['label'] . $req_label . '</label>';
|
132 |
+
}
|
133 |
+
if ($type === 'textarea'){
|
134 |
+
$form .= '<textarea class="inbound-input inbound-input-textarea" name="'.$field_name.'" id="in_'.$field_name.' '.$req.'"/></textarea>';
|
135 |
+
} else if ($type === 'dropdown'){
|
136 |
+
$dropdown_fields = array();
|
137 |
+
$dropdown = $matches[3][$i]['dropdown'];
|
138 |
+
$dropdown_fields = explode(",", $dropdown);
|
139 |
+
$form .= '<select name="'. $field_name .'" id="">';
|
140 |
+
foreach ($dropdown_fields as $key => $value) {
|
141 |
+
$drop_val_trimmed = trim($value);
|
142 |
+
$dropdown_val = strtolower(str_replace(array(' ','_'),'-',$drop_val_trimmed));
|
143 |
+
$form .= '<option value="'. $dropdown_val .'">'. $value .'</option>';
|
144 |
+
}
|
145 |
+
$form .= '</select>';
|
146 |
+
} else if ($type === 'radio'){
|
147 |
+
$radio_fields = array();
|
148 |
+
$radio = $matches[3][$i]['radio'];
|
149 |
+
$radio_fields = explode(",", $radio);
|
150 |
+
// $clean_radio = str_replace(array(' ','_'),'-',$value) // clean leading spaces. finish
|
151 |
+
foreach ($radio_fields as $key => $value) {
|
152 |
+
$radio_val_trimmed = trim($value);
|
153 |
+
$radio_val = strtolower(str_replace(array(' ','_'),'-',$radio_val_trimmed));
|
154 |
+
$form .= '<span class="radio-'.$main_layout.' radio-'.$form_labels_class.'"><input type="radio" name="'. $field_name .'" value="'. $radio_val .'">'. $radio_val_trimmed .'</span>';
|
155 |
+
}
|
156 |
+
} else if ($type === 'checkbox'){
|
157 |
+
$checkbox_fields = array();
|
158 |
+
|
159 |
+
$checkbox = $matches[3][$i]['checkbox'];
|
160 |
+
$checkbox_fields = explode(",", $checkbox);
|
161 |
+
// $clean_radio = str_replace(array(' ','_'),'-',$value) // clean leading spaces. finish
|
162 |
+
foreach ($checkbox_fields as $key => $value) {
|
163 |
+
$checkbox_val_trimmed = trim($value);
|
164 |
+
$checkbox_val = strtolower(str_replace(array(' ','_'),'-',$checkbox_val_trimmed));
|
165 |
+
$form .= '<input class="checkbox-'.$main_layout.' checkbox-'.$form_labels_class.'" type="checkbox" name="'. $field_name .'" value="'. $checkbox_val .'">'.$checkbox_val_trimmed.'<br>';
|
166 |
+
|
167 |
+
}
|
168 |
+
} else if ($type === 'html-block'){
|
169 |
+
$html = $matches[3][$i]['html'];
|
170 |
+
echo $html;
|
171 |
+
$form .= "<div>" . $html . "</div>";
|
172 |
+
|
173 |
+
} else if ($type === 'editor'){
|
174 |
+
//wp_editor(); // call wp editor
|
175 |
+
} else {
|
176 |
+
$hidden_param = (isset($matches[3][$i]['dynamic'])) ? $matches[3][$i]['dynamic'] : '';
|
177 |
+
$dynamic_value = (isset($_GET[$hidden_param])) ? $_GET[$hidden_param] : '';
|
178 |
+
$form .= '<input class="inbound-input inbound-input-text '.$formatted_label . $input_classes.'" name="'.$field_name.'" '.$form_placeholder.' value="'.$dynamic_value.'" type="'.$type.'" '.$req.'/>';
|
179 |
+
}
|
180 |
+
if ($type != 'hidden' && $form_labels === "bottom" && $type != "radio"){
|
181 |
+
$form .= '<label class="inbound-label '.$formatted_label.' '.$form_labels_class.' inbound-input-'.$type.'">' . $matches[3][$i]['label'] . $req_label . '</label>';
|
182 |
+
}
|
183 |
+
|
184 |
+
if ($description_block != "" && $type != 'hidden'){
|
185 |
+
$form .= "<div class='inbound-description'>".$description_block."</div>";
|
186 |
+
}
|
187 |
+
$form .= '</div>';
|
188 |
+
}
|
189 |
+
// End Loop
|
190 |
+
$current_page = get_permalink();
|
191 |
+
$form .= '<div class="inbound-field '.$main_layout.' inbound-submit-area">
|
192 |
+
<input type="submit" '.$submit_button_type.' class="button" value="'.$submit_button.'" name="send" id="inbound_form_submit" />
|
193 |
+
</div>
|
194 |
+
<input type="hidden" name="inbound_submitted" value="1">';
|
195 |
+
if( $redirect != "") {
|
196 |
+
$form .= '<input type="hidden" id="inbound_redirect" name="inbound_redirect" value="'.$redirect.'">';
|
197 |
+
}
|
198 |
+
$form .= '<input type="hidden" name="inbound_form_name" value="'.$form_name.'">
|
199 |
+
<input type="hidden" name="inbound_form_id" value="'.$id.'">
|
200 |
+
<input type="hidden" name="inbound_current_page_url" value="'.$current_page.'">
|
201 |
+
<input type="hidden" name="inbound_furl" value="'. base64_encode($redirect) .'">
|
202 |
+
<input type="hidden" name="inbound_notify" value="'. base64_encode($notify) .'">
|
203 |
+
|
204 |
+
</form>
|
205 |
+
</div>';
|
206 |
+
$form = preg_replace('/<br class="inbr".\/>/', '', $form); // remove editor br tags
|
207 |
+
return $form;
|
208 |
+
}
|
209 |
+
}
|
210 |
+
}
|
211 |
+
|
212 |
+
// setup enqueue scripts
|
213 |
+
static function register_script() {
|
214 |
+
//wp_register_script('preloadify-js', plugins_url('/js/preloadify/jquery.preloadify.js', __FILE__), array('jquery'), '1.0', true);
|
215 |
+
//wp_register_style( 'preloadify-css', plugins_url( '/inbound-forms/js/preloadify/plugin/css/style.css' ) );
|
216 |
+
}
|
217 |
+
|
218 |
+
// only call enqueue once
|
219 |
+
static function print_script() {
|
220 |
+
if ( ! self::$add_script )
|
221 |
+
return;
|
222 |
+
//wp_print_scripts('preloadify-js');
|
223 |
+
//wp_enqueue_style( 'preloadify-css' );
|
224 |
+
}
|
225 |
+
|
226 |
+
// move to file
|
227 |
+
static function inline_my_script() {
|
228 |
+
if ( ! self::$add_script )
|
229 |
+
return;
|
230 |
+
|
231 |
+
echo '<script type="text/javascript">
|
232 |
+
jQuery(document).ready(function($){
|
233 |
+
|
234 |
+
function validateEmail(email) {
|
235 |
+
|
236 |
+
var re = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
|
237 |
+
return re.test(email);
|
238 |
+
}
|
239 |
+
var parent_redirect = parent.window.location.href;
|
240 |
+
jQuery("#inbound_parent_page").val(parent_redirect);
|
241 |
+
|
242 |
+
|
243 |
+
// validate email
|
244 |
+
$("input.inbound-email").on("change keyup", function (e) {
|
245 |
+
var email = $(this).val();
|
246 |
+
if (validateEmail(email)) {
|
247 |
+
$(this).css("color", "green");
|
248 |
+
$(this).addClass("valid-email");
|
249 |
+
$(this).removeClass("invalid-email");
|
250 |
+
} else {
|
251 |
+
$(this).css("color", "red");
|
252 |
+
$(this).addClass("invalid-email");
|
253 |
+
$(this).removeClass("valid-email");
|
254 |
+
}
|
255 |
+
if($(this).hasClass("valid-email")) {
|
256 |
+
$(this).parent().parent().find("#inbound_form_submit").removeAttr("disabled");
|
257 |
+
}
|
258 |
+
});
|
259 |
+
|
260 |
+
});
|
261 |
+
</script>';
|
262 |
+
|
263 |
+
echo "<style type='text/css'>
|
264 |
+
/* Add button style options http://medleyweb.com/freebies/50-super-sleek-css-button-style-snippets/ */
|
265 |
+
input.invalid-email {-webkit-box-shadow: 0 0 6px #F8B9B7;
|
266 |
+
-moz-box-shadow: 0 0 6px #f8b9b7;
|
267 |
+
box-shadow: 0 0 6px #F8B9B7;
|
268 |
+
color: #B94A48;
|
269 |
+
border-color: #E9322D;}
|
270 |
+
input.valid-email {-webkit-box-shadow: 0 0 6px #B7F8BA;
|
271 |
+
-moz-box-shadow: 0 0 6px #f8b9b7;
|
272 |
+
box-shadow: 0 0 6px #98D398;
|
273 |
+
color: #008000;
|
274 |
+
border-color: #008000;}
|
275 |
+
</style>";
|
276 |
+
}
|
277 |
+
|
278 |
+
static function send_email(){
|
279 |
+
// Cross reference with EDD email class for HTML sends
|
280 |
+
// Add PHP processing for lead data
|
281 |
+
if(isset($_POST['inbound_submitted']) && $_POST['inbound_submitted'] === '1') {
|
282 |
+
$redirect = "";
|
283 |
+
if(isset($_POST['inbound_furl']) && $_POST['inbound_furl'] != "") {
|
284 |
+
$redirect = base64_decode($_POST['inbound_furl']);
|
285 |
+
}
|
286 |
+
if(isset($_POST['inbound_notify']) && $_POST['inbound_notify'] != "") {
|
287 |
+
$email_to = base64_decode($_POST['inbound_notify']);
|
288 |
+
}
|
289 |
+
|
290 |
+
foreach ( $_POST as $field => $value ) {
|
291 |
+
if ( get_magic_quotes_gpc() ) {
|
292 |
+
$value = stripslashes( $value );
|
293 |
+
}
|
294 |
+
$field = strtolower($field);
|
295 |
+
|
296 |
+
if (preg_match( '/Email|e-mail|email/i', $value)) {
|
297 |
+
$field = "email";
|
298 |
+
}
|
299 |
+
|
300 |
+
if (preg_match( '/(?<!((last |last_)))name(?!\=)/im', $value) && !isset($form_data['first-name'])) {
|
301 |
+
$field = "first-name";
|
302 |
+
}
|
303 |
+
|
304 |
+
if (preg_match( '/(?<!((first)))(last name|last_name|last)(?!\=)/im', $value) && !isset($form_data['last-name'])) {
|
305 |
+
$field = "last-name";
|
306 |
+
}
|
307 |
+
|
308 |
+
if (preg_match( '/Phone|phone number|telephone/i', $value)) {
|
309 |
+
$field = "phone";
|
310 |
+
}
|
311 |
+
|
312 |
+
$form_data[$field] = strip_tags( $value );
|
313 |
+
|
314 |
+
}
|
315 |
+
/*
|
316 |
+
add_filter( 'wp_mail_from', 'wp_leads_mail_from' );
|
317 |
+
function wp_leads_mail_from( $email )
|
318 |
+
{
|
319 |
+
return 'david@inboundnow.com';
|
320 |
+
}
|
321 |
+
// Make Option
|
322 |
+
add_filter( 'wp_mail_from_name', 'wp_leads_mail_from_name' );
|
323 |
+
function wp_leads_mail_from_name( $name )
|
324 |
+
{
|
325 |
+
return 'David';
|
326 |
+
}
|
327 |
+
*/
|
328 |
+
// Make Option
|
329 |
+
add_filter( 'wp_mail_content_type', 'set_html_content_type' );
|
330 |
+
function set_html_content_type() {
|
331 |
+
return 'text/html';
|
332 |
+
}
|
333 |
+
|
334 |
+
//print_r($form_data); // debug form data
|
335 |
+
|
336 |
+
/* Might be better email send need to test and look at html edd emails */
|
337 |
+
if ( isset($form_data['email'])) {
|
338 |
+
// DO PHP LEAD SAVE HERE
|
339 |
+
$to = $email_to; // admin email or email from shortcode
|
340 |
+
$admin_url = get_bloginfo( 'url' ) . "/wp-admin";
|
341 |
+
// get the website's name and puts it in front of the subject
|
342 |
+
$email_subject = "[" . get_bloginfo( 'name' ) . "] " . $form_data['inbound_form_name'] . " - New Lead Conversion";
|
343 |
+
// get the message from the form and add the IP address of the user below it
|
344 |
+
$email_message = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
345 |
+
<html>
|
346 |
+
<head>
|
347 |
+
<meta http-equiv="Content-Type" content="text/html;' . get_option('blog_charset') . '" />
|
348 |
+
</head>
|
349 |
+
<body style="margin: 0px; background-color: #F4F3F4; font-family: Helvetica, Arial, sans-serif; font-size:12px;" text="#444444" bgcolor="#F4F3F4" link="#21759B" alink="#21759B" vlink="#21759B" marginheight="0" topmargin="0" marginwidth="0" leftmargin="0">
|
350 |
+
<table cellpadding="0" cellspacing="0" width="100%" bgcolor="#ffffff" border="0">
|
351 |
+
<tr>';
|
352 |
+
$email_message .= "<div style='padding-top: 10px; padding-left: 15px; font-size: 20px; padding-bottom: 10px; background-color:#E0E0E0; border:solid 1px #CECDCA;'>New Conversion on <strong>" . $form_data['inbound_form_name'] ."</strong></div>\n";
|
353 |
+
$exclude_array = array('Inbound Redirect', 'Inbound Submitted', 'Inbound Notify', 'Inbound Parent Page', 'Send', 'Inbound Furl' );
|
354 |
+
|
355 |
+
$main_count = 0;
|
356 |
+
$url_request = "";
|
357 |
+
foreach ($form_data as $key => $value) {
|
358 |
+
//array_push($action_categories, $ctaw_cat->category_nicename);
|
359 |
+
$urlparam = ($main_count < 1 ) ? "?" : "&";
|
360 |
+
$url_request .= $urlparam . $key . "=" . urlencode($value);
|
361 |
+
$name = str_replace(array('-','_'),' ', $key);
|
362 |
+
$name = ucwords($name);
|
363 |
+
if ( $name === "Inbound Current Page Url" ) {
|
364 |
+
$name = "Converted on Page";
|
365 |
+
}
|
366 |
+
$field_data = ($form_data[$key] != "") ? $form_data[$key] : "<span style='color:#949494; font-size: 10px;'>(Field left blank)</span>";
|
367 |
+
|
368 |
+
|
369 |
+
if(!in_array($name, $exclude_array)) {
|
370 |
+
$email_message .= "<div style='border:solid 1px #EBEBEA; padding-top:10px; padding-bottom:10px; padding-left:20px; padding-right:20px;'><strong style='min-width: 120px;display: inline-block;'>".$name . ": </strong>" . $field_data ."</div>\n";
|
371 |
+
}
|
372 |
+
$main_count++;
|
373 |
+
}
|
374 |
+
|
375 |
+
$email_message .= "<div style='border:solid 1px #EBEBEA; background-color:#fff; padding-top:10px; padding-bottom:10px; padding-left:20px; padding-right:20px;'><h1><a style='color: #00F;font-size: 20px;' href='".$admin_url."/edit.php?post_type=wp-lead&lead-email-redirect=".$form_data['email']."' target='_blank'>View this Lead</a></h1></div>\n";
|
376 |
+
$email_message .= '</tr>
|
377 |
+
</table>
|
378 |
+
</body>
|
379 |
+
</html>';
|
380 |
+
if (isset($form_data['first-name']) && isset($form_data['last-name'])) {
|
381 |
+
$from_name = $form_data['first-name'] . " ". $form_data['last-name'];
|
382 |
+
} else if (isset($form_data['first-name'])) {
|
383 |
+
$from_name = $form_data['first-name'];
|
384 |
+
} else {
|
385 |
+
$from_name = get_bloginfo( 'name' );
|
386 |
+
}
|
387 |
+
// set the e-mail headers with the user's name, e-mail address and character encoding
|
388 |
+
$headers = "From: " . $from_name . " <" . $form_data['email'] . ">\n";
|
389 |
+
$headers .= 'Content-type: text/html';
|
390 |
+
// send the e-mail with the shortcode attribute named 'email' and the POSTed data
|
391 |
+
wp_mail( $to, $email_subject, $email_message, $headers );
|
392 |
+
// and set the result text to the shortcode attribute named 'success'
|
393 |
+
//$result = $success;
|
394 |
+
// ...and switch the $sent variable to TRUE
|
395 |
+
$sent = true;
|
396 |
+
|
397 |
+
//echo "email sent";
|
398 |
+
// Do redirect
|
399 |
+
//echo $redirect . $url_request;
|
400 |
+
if ($redirect != "") {
|
401 |
+
|
402 |
+
wp_redirect( $redirect );
|
403 |
+
exit();
|
404 |
+
}
|
405 |
+
}
|
406 |
+
|
407 |
+
}
|
408 |
+
|
409 |
+
}
|
410 |
+
}
|
411 |
+
|
412 |
+
}
|
413 |
+
|
414 |
+
InboundForms::init();
|
415 |
+
?>
|
shared/functions.templates.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
// Convert Hex to RGB Value for submit button
|
4 |
if (!function_exists('inbound_Hex_2_RGB')) {
|
5 |
function inbound_Hex_2_RGB($hex) {
|
6 |
-
$hex =
|
7 |
$color = array();
|
8 |
|
9 |
if(strlen($hex) == 3) {
|
3 |
// Convert Hex to RGB Value for submit button
|
4 |
if (!function_exists('inbound_Hex_2_RGB')) {
|
5 |
function inbound_Hex_2_RGB($hex) {
|
6 |
+
$hex = preg_replace("/#/", "", $hex);
|
7 |
$color = array();
|
8 |
|
9 |
if(strlen($hex) == 3) {
|
shared/inbound-shortcodes/css/form-cpt.css
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#side-sortables, #cpt-form-serialize, #inbound-shortcodes-form-wrap #inbound-shortcodes-form-head, #inbound_insert_shortcode_two, #shortcode_cancel, #entire-form-area {
|
2 |
+
display: none;
|
3 |
+
}
|
4 |
+
#cpt-form-shortcode {
|
5 |
+
display: none;
|
6 |
+
}
|
7 |
+
#cpt-form-serialize {
|
8 |
+
word-wrap: break-word;
|
9 |
+
}
|
10 |
+
/*
|
11 |
+
#postbox-container-2 {
|
12 |
+
display: none;
|
13 |
+
}*/
|
14 |
+
#poststuff #post-body.columns-2 {
|
15 |
+
margin-right: 0px;
|
16 |
+
}
|
17 |
+
#popup-controls {
|
18 |
+
position: fixed !important;
|
19 |
+
border-top: 1px solid #CCC;
|
20 |
+
bottom: 0px !important;
|
21 |
+
width: 100%;
|
22 |
+
margin-left: -19px;
|
23 |
+
padding-left: 20px;}
|
24 |
+
#inbound-shortcodes-form-table tbody tr.form-row.has-child {
|
25 |
+
display: block;
|
26 |
+
padding: 10px 0 0;
|
27 |
+
border-bottom: none;
|
28 |
+
padding-left: 10px;
|
29 |
+
}
|
30 |
+
.form-field-row-number {
|
31 |
+
position: absolute;
|
32 |
+
left: 0px; }
|
33 |
+
#inbound-shortcodes-popup {
|
34 |
+
width: 100%;
|
35 |
+
overflow: visible;}
|
36 |
+
#inbound-shortcodes-preview-wrap {
|
37 |
+
margin-top: -30px;
|
38 |
+
}
|
shared/inbound-shortcodes/css/frontend-render.css
ADDED
@@ -0,0 +1,1568 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
.inbound-label.inbound-label-top, .inbound-label.inbound-label-bottom {
|
3 |
+
display: block;
|
4 |
+
}
|
5 |
+
#inbound-form-wrapper .inbound-label.inbound-label-bottom {
|
6 |
+
margin: 0px 0 10px 0;
|
7 |
+
}
|
8 |
+
#inbound-form-wrapper .inbound-label.inbound-label-inline {
|
9 |
+
min-width: 80px;
|
10 |
+
display: inline-block;
|
11 |
+
padding-right: 10px;
|
12 |
+
}
|
13 |
+
.radio-inbound-vertical.radio-inbound-label-bottom, #inbound-form-wrapper .inbound-label.inbound-label-inline.inbound-input-radio, .radio-inbound-vertical.radio-inbound-label-top {
|
14 |
+
display: block;
|
15 |
+
}
|
16 |
+
.radio-inbound-vertical.radio-inbound-label-bottom:last-child {
|
17 |
+
margin: 0px 0 10px 0;
|
18 |
+
}
|
19 |
+
.radio-inbound-vertical.radio-inbound-label-inline {
|
20 |
+
padding-right: 5px;
|
21 |
+
}
|
22 |
+
.inbound-label.inbound-label-placeholder {
|
23 |
+
display: none;
|
24 |
+
}
|
25 |
+
.inbound-horizontal {
|
26 |
+
display: inline-block;
|
27 |
+
}
|
28 |
+
/* global fixes */
|
29 |
+
.inbound-field {
|
30 |
+
margin-left: 0 !important;
|
31 |
+
list-style-type: none !important;
|
32 |
+
list-style-image: none !important;
|
33 |
+
list-style: none !important;
|
34 |
+
overflow: visible;
|
35 |
+
}
|
36 |
+
.inbound-field label {
|
37 |
+
margin: 10px 0 4px 0;
|
38 |
+
font-weight: bold;
|
39 |
+
line-height: 1.3em;
|
40 |
+
clear: both;
|
41 |
+
}
|
42 |
+
.inbound-field input[type=radio] {
|
43 |
+
margin-top: 4px;
|
44 |
+
width: auto !important;
|
45 |
+
}
|
46 |
+
.inbound-field.inbound-submit-area {
|
47 |
+
padding: 0px 0 10px 0;
|
48 |
+
margin: 15px 0 0 0;
|
49 |
+
clear: both;
|
50 |
+
}
|
51 |
+
.inbound-field.inbound-submit-area input.button, .inbound-field.inbound-submit-area input[type=submit] {
|
52 |
+
font-size: 1em;
|
53 |
+
}
|
54 |
+
.inbound-description {
|
55 |
+
font-size: 0.85em;
|
56 |
+
line-height: 1.5em;
|
57 |
+
clear: both;
|
58 |
+
font-family: sans-serif;
|
59 |
+
letter-spacing: normal;
|
60 |
+
padding: 10px 0 0 0;
|
61 |
+
width: 99.8%;
|
62 |
+
}
|
63 |
+
textarea.inbound-input-textarea {
|
64 |
+
height: 150px;
|
65 |
+
width: 99.2%;
|
66 |
+
}
|
67 |
+
#inbound-form-wrapper {
|
68 |
+
overflow: inherit;
|
69 |
+
margin: 10px 0;
|
70 |
+
max-width: 98%;
|
71 |
+
}
|
72 |
+
#inbound-form-wrapper input[type=text], #inbound-form-wrapper input[type=url], #inbound-form-wrapper input[type=email], #inbound-form-wrapper input[type=tel], #inbound-form-wrapper input[type=number], #inbound-form-wrapper input[type=password] {
|
73 |
+
width: 47%;
|
74 |
+
}
|
75 |
+
|
76 |
+
#inbound-form-wrapper .inbound-horizontal input[type=text], #inbound-form-wrapper .inbound-horizontal input[type=url], #inbound-form-wrapper .inbound-horizontal input[type=email], #inbound-form-wrapper .inbound-horizontal input[type=tel], #inbound-form-wrapper .inbound-horizontal input[type=number], #inbound-form-wrapper .inbound-horizontal input[type=password] {
|
77 |
+
width: 88%;
|
78 |
+
}
|
79 |
+
|
80 |
+
#inbound-form-wrapper .inbound-horizontal.label-inbound-label-inline input[type=text], #inbound-form-wrapper .inbound-horizontal.label-inbound-label-inline input[type=url], #inbound-form-wrapper .inbound-horizontal.label-inbound-label-inline input[type=email], #inbound-form-wrapper .inbound-horizontal.label-inbound-label-inline input[type=tel], #inbound-form-wrapper .inbound-horizontal.label-inbound-label-inline input[type=number], #inbound-form-wrapper .inbound-horizontal.label-inbound-label-inline input[type=password] {
|
81 |
+
width: 130px;
|
82 |
+
}
|
83 |
+
|
84 |
+
#inbound-form-wrapper .inbound-horizontal.label-inbound-label-inline .inbound-label.inbound-label-inline {
|
85 |
+
min-width: 60px;
|
86 |
+
display: inline-block;
|
87 |
+
padding-right: 10px;
|
88 |
+
text-align: right;
|
89 |
+
}
|
90 |
+
|
91 |
+
.inbound-label.inbound-input-radio {
|
92 |
+
display: block;
|
93 |
+
}
|
94 |
+
.rule-done {
|
95 |
+
margin-top: 4px;
|
96 |
+
width: auto !important;
|
97 |
+
float: left;
|
98 |
+
}
|
99 |
+
.radionotdonelabel {
|
100 |
+
display: block;
|
101 |
+
margin: 0 0 0 24px;
|
102 |
+
padding: 0;
|
103 |
+
width: auto;
|
104 |
+
line-height: 1.5;
|
105 |
+
vertical-align: top;
|
106 |
+
}
|
107 |
+
/* Grid
|
108 |
+
* ------------------------------------------*/
|
109 |
+
.inbound-clear{
|
110 |
+
clear:both;
|
111 |
+
display:block;
|
112 |
+
overflow:hidden;
|
113 |
+
width:0;
|
114 |
+
height:0
|
115 |
+
}
|
116 |
+
.inbound-clearfix:before, .inbound-clearfix:after,
|
117 |
+
.inbound-row:before, .inbound-row:after,
|
118 |
+
.inbound-row_30:before, .inbound-row_30:after{
|
119 |
+
content:'\0020';
|
120 |
+
display:block;
|
121 |
+
overflow:hidden;
|
122 |
+
width:0;
|
123 |
+
height:0
|
124 |
+
}
|
125 |
+
.inbound-clearfix:after, .inbound-row:after, .inbound-row_30:after{
|
126 |
+
clear:both
|
127 |
+
}
|
128 |
+
.inbound-clearfix{
|
129 |
+
zoom:1
|
130 |
+
}
|
131 |
+
.inbound-row{
|
132 |
+
margin-left:-10px;
|
133 |
+
margin-right:-10px;
|
134 |
+
}
|
135 |
+
.inbound-row_30{
|
136 |
+
margin-left:-15px;
|
137 |
+
margin-right:-15px;
|
138 |
+
}
|
139 |
+
.inbound-grid{
|
140 |
+
float:left;
|
141 |
+
min-height:1px;
|
142 |
+
padding-left:5px;
|
143 |
+
padding-right:5px;
|
144 |
+
position:relative;
|
145 |
+
}
|
146 |
+
.row_30 .inbound-grid{
|
147 |
+
padding-left:15px;
|
148 |
+
padding-right:15px;
|
149 |
+
}
|
150 |
+
.inbound-grid.full{
|
151 |
+
width:100%;
|
152 |
+
}
|
153 |
+
.inbound-grid.one-half{
|
154 |
+
width:48%;
|
155 |
+
}
|
156 |
+
.inbound-grid.one-third{
|
157 |
+
width:31.333333%;
|
158 |
+
}
|
159 |
+
.inbound-grid.two-third{
|
160 |
+
width:66.666667%;
|
161 |
+
}
|
162 |
+
.inbound-grid.one-fourth{
|
163 |
+
width:23%;
|
164 |
+
}
|
165 |
+
.inbound-grid.three-fourth{
|
166 |
+
width:75%;
|
167 |
+
}
|
168 |
+
.inbound-grid.one-fifth{
|
169 |
+
width:18%;
|
170 |
+
}
|
171 |
+
.inbound-grid.two-fifth{
|
172 |
+
width:40%;
|
173 |
+
}
|
174 |
+
.inbound-grid.three-fifth{
|
175 |
+
width:60%;
|
176 |
+
}
|
177 |
+
.inbound-grid.four-fifth{
|
178 |
+
width:80%;
|
179 |
+
}
|
180 |
+
|
181 |
+
|
182 |
+
|
183 |
+
/* Social Icons
|
184 |
+
* ----------------------------------------------------- */
|
185 |
+
ul.social-links{
|
186 |
+
list-style: none;
|
187 |
+
margin: 0;
|
188 |
+
padding: 0;
|
189 |
+
}
|
190 |
+
ul.social-links li{
|
191 |
+
display: inline-block;
|
192 |
+
list-style: none;
|
193 |
+
margin: 0;
|
194 |
+
padding: 7px 0;
|
195 |
+
}
|
196 |
+
ul.social-links li a{
|
197 |
+
background: #f2f2f2;
|
198 |
+
border: 1px solid #EBEBEA;
|
199 |
+
-webkit-border-radius: 2px;
|
200 |
+
-moz-border-radius: 2px;
|
201 |
+
border-radius: 2px;
|
202 |
+
display: inline-block;
|
203 |
+
width: 32px;
|
204 |
+
height: 32px;
|
205 |
+
line-height: 32px;
|
206 |
+
text-align: center;
|
207 |
+
color: #696763;
|
208 |
+
margin: 0px 1px;
|
209 |
+
}
|
210 |
+
ul.social-links li a:hover{
|
211 |
+
background-color: #c8232b;
|
212 |
+
border-color: rgba(0,0,0,0.2);
|
213 |
+
color: #fff;
|
214 |
+
}
|
215 |
+
#footer-wrapper ul.social-links{
|
216 |
+
float: right;
|
217 |
+
}
|
218 |
+
#footer-wrapper ul.social-links li a{
|
219 |
+
background-color: #4A4845;
|
220 |
+
border: none;
|
221 |
+
color: #9C9A96;
|
222 |
+
}
|
223 |
+
#footer-wrapper ul.social-links li a:hover{
|
224 |
+
background-color: #c8232b;
|
225 |
+
color: #fff;
|
226 |
+
}
|
227 |
+
|
228 |
+
/* About Widget
|
229 |
+
* ----------------------------------------------------- */
|
230 |
+
.widget-about{
|
231 |
+
background: url('images/map.png') no-repeat 0 0;
|
232 |
+
background-size: 100%;
|
233 |
+
}
|
234 |
+
.widget-about .address,
|
235 |
+
.widget-about .telephone,
|
236 |
+
.widget-about .email{
|
237 |
+
/*font-size: 85%;*/
|
238 |
+
}
|
239 |
+
.widget-about i{
|
240 |
+
color: #9C9A96;
|
241 |
+
margin-right: 5px;
|
242 |
+
}
|
243 |
+
|
244 |
+
/* Divider
|
245 |
+
* ----------------------------------------------------- */
|
246 |
+
.divider{
|
247 |
+
border-top: 1px solid #EBEBEA;
|
248 |
+
height: 1px;
|
249 |
+
margin: 0px;
|
250 |
+
position: relative;
|
251 |
+
}
|
252 |
+
.divider.none{
|
253 |
+
border:none
|
254 |
+
}
|
255 |
+
.divider.solid{
|
256 |
+
border-top: 1px solid #EBEBEA;
|
257 |
+
}
|
258 |
+
.divider.dashed{
|
259 |
+
border-top: 1px dashed #EBEBEA;
|
260 |
+
}
|
261 |
+
.divider.dotted{
|
262 |
+
border-top: 1px dotted #EBEBEA;
|
263 |
+
}
|
264 |
+
.divider.double{
|
265 |
+
border-top: 3px double #EBEBEA;
|
266 |
+
}
|
267 |
+
|
268 |
+
/* Teaser
|
269 |
+
* ----------------------------------------------------- */
|
270 |
+
.teaser{
|
271 |
+
margin-bottom: 20px;
|
272 |
+
}
|
273 |
+
.teaser .teaser-header{
|
274 |
+
margin: 0px 0px 10px 56px;
|
275 |
+
}
|
276 |
+
.teaser .teaser-title{
|
277 |
+
margin: 0px;
|
278 |
+
}
|
279 |
+
.teaser .teaser-subtitle{
|
280 |
+
color: #9C9A96;
|
281 |
+
}
|
282 |
+
.teaser .teaser-icon{
|
283 |
+
background: #4A4845;
|
284 |
+
-webkit-border-radius: 2px;
|
285 |
+
-moz-border-radius: 2px;
|
286 |
+
border-radius: 2px;
|
287 |
+
color: #fff;
|
288 |
+
font-size: 16px;
|
289 |
+
float: left;
|
290 |
+
line-height: 36px;
|
291 |
+
height: 36px;
|
292 |
+
width: 36px;
|
293 |
+
margin-top: 5px;
|
294 |
+
text-align: center;
|
295 |
+
}
|
296 |
+
.teaser .teaser-image{
|
297 |
+
float: left;
|
298 |
+
height: 36px;
|
299 |
+
width: 36px;
|
300 |
+
margin-top: 5px;
|
301 |
+
}
|
302 |
+
.teaser:hover .teaser-icon{
|
303 |
+
background-color: #c8232b;
|
304 |
+
}
|
305 |
+
|
306 |
+
/* Nested teaser */
|
307 |
+
.teaser.nested .teaser-content{
|
308 |
+
margin-left: 56px
|
309 |
+
}
|
310 |
+
|
311 |
+
/* Centered teaser */
|
312 |
+
.teaser.centered{
|
313 |
+
text-align: center;
|
314 |
+
}
|
315 |
+
.teaser.centered .teaser-icon{
|
316 |
+
background: none;
|
317 |
+
color: #696763;
|
318 |
+
float: none;
|
319 |
+
font-size: 64px;
|
320 |
+
line-height: 64px;
|
321 |
+
width: 64px;
|
322 |
+
height: 64px;
|
323 |
+
margin: 0px auto 5px auto;
|
324 |
+
}
|
325 |
+
.teaser.centered .teaser-header{
|
326 |
+
margin-left: 0px;
|
327 |
+
}
|
328 |
+
|
329 |
+
/* Call Out
|
330 |
+
* ----------------------------------------------------- */
|
331 |
+
.callout{
|
332 |
+
background: #f2f2f2 url('images/gradient.png') repeat-x top left;
|
333 |
+
border: 1px solid #EBEBEA;
|
334 |
+
-webkit-box-shadow: inset 1px 1px 1px #f9f9f9;
|
335 |
+
-moz-box-shadow: inset 1px 1px 1px #f9f9f9;
|
336 |
+
box-shadow: inset 1px 1px 1px #f9f9f9;
|
337 |
+
padding: 20px 25px 0px;
|
338 |
+
margin-bottom: 20px;
|
339 |
+
}
|
340 |
+
.callout .left, .callout .right{
|
341 |
+
margin-bottom: 15px;
|
342 |
+
}
|
343 |
+
.callout h2{
|
344 |
+
font-size: 24px;
|
345 |
+
line-height: 24px;
|
346 |
+
margin: 0px 0px 5px;
|
347 |
+
text-shadow: 1px 1px 1px #fff;
|
348 |
+
}
|
349 |
+
.callout .subtitle{
|
350 |
+
font-size: 16px;
|
351 |
+
line-height: 22px;
|
352 |
+
text-shadow: 1px 1px 1px #fff;
|
353 |
+
margin: 0px 0px 5px;
|
354 |
+
}
|
355 |
+
.callout .button{
|
356 |
+
margin: 7px 0px 5px 0px
|
357 |
+
}
|
358 |
+
|
359 |
+
/* Intro
|
360 |
+
* ----------------------------------------------------- */
|
361 |
+
.intro{
|
362 |
+
margin-bottom: 20px;
|
363 |
+
}
|
364 |
+
.intro h1{
|
365 |
+
margin-bottom: 10px;
|
366 |
+
}
|
367 |
+
.intro .intro-content{
|
368 |
+
font-size: 16px;
|
369 |
+
line-height: 24px;
|
370 |
+
margin-bottom: 20px;
|
371 |
+
}
|
372 |
+
|
373 |
+
/* Tabs
|
374 |
+
* ----------------------------------------------------- */
|
375 |
+
.tabs-content{
|
376 |
+
margin-bottom: 20px;
|
377 |
+
}
|
378 |
+
ul.tabs-nav{
|
379 |
+
border-bottom: 1px solid #EBEBEA;
|
380 |
+
list-style: none;
|
381 |
+
margin: 0;
|
382 |
+
padding: 0;
|
383 |
+
}
|
384 |
+
ul.tabs-nav li{
|
385 |
+
display: inline-block;
|
386 |
+
margin: 0;
|
387 |
+
padding: 0;
|
388 |
+
}
|
389 |
+
ul.tabs-nav li a{
|
390 |
+
background: #f2f2f2 url('images/gradient.png');
|
391 |
+
border: 1px solid #EBEBEA;
|
392 |
+
border-right: none;
|
393 |
+
-webkit-box-shadow: inset 1px 1px 1px rgba(255,255,255,0.5);
|
394 |
+
-moz-box-shadow: inset 1px 1px 1px rgba(255,255,255,0.5);
|
395 |
+
box-shadow: inset 1px 1px 1px rgba(255,255,255,0.5);
|
396 |
+
color: #696763;
|
397 |
+
display: inline-block;
|
398 |
+
font-weight: bold;
|
399 |
+
padding: 10px 20px;
|
400 |
+
position: relative;
|
401 |
+
margin-bottom: -1px;
|
402 |
+
text-shadow: 1px 1px 1px #fff;
|
403 |
+
}
|
404 |
+
ul.tabs-nav li a span{
|
405 |
+
display: inline-block;
|
406 |
+
margin-left: 5px;
|
407 |
+
}
|
408 |
+
ul.tabs-nav li a.active{
|
409 |
+
background-color: #fff;
|
410 |
+
border-bottom-color: #fff;
|
411 |
+
color: #4A4845;
|
412 |
+
}
|
413 |
+
ul.tabs-nav li:last-child{
|
414 |
+
border-right: 1px solid #EBEBEA;
|
415 |
+
}
|
416 |
+
|
417 |
+
.tabs > div{
|
418 |
+
border: 1px solid #EBEBEA;;
|
419 |
+
border-top: none;
|
420 |
+
padding: 20px;
|
421 |
+
}
|
422 |
+
|
423 |
+
/* Accordion
|
424 |
+
* ----------------------------------------------------- */
|
425 |
+
.accordion{
|
426 |
+
margin-bottom: 20px
|
427 |
+
}
|
428 |
+
.accordion .pane-title{
|
429 |
+
background: #f2f2f2 url('images/gradient.png') repeat-x top left;
|
430 |
+
border: 1px solid #EBEBEA;
|
431 |
+
-webkit-box-shadow: inset 1px 1px 1px rgba(255,255,255,0.5);
|
432 |
+
-moz-box-shadow: inset 1px 1px 1px rgba(255,255,255,0.5);
|
433 |
+
box-shadow: inset 1px 1px 1px rgba(255,255,255,0.5);
|
434 |
+
font-size: 110%;
|
435 |
+
display: block;
|
436 |
+
font-weight: bold;
|
437 |
+
padding: 12px 20px;
|
438 |
+
position: relative;
|
439 |
+
margin-bottom: -1px;
|
440 |
+
text-shadow: 1px 1px 1px #fff;
|
441 |
+
}
|
442 |
+
.accordion .pane-title.active{
|
443 |
+
color: #4A4845;
|
444 |
+
}
|
445 |
+
.accordion .pane-title .pane-icon{
|
446 |
+
width: 16px;
|
447 |
+
margin-right: 10px;
|
448 |
+
text-align: center;
|
449 |
+
}
|
450 |
+
.accordion .pane-title .status-off,
|
451 |
+
.accordion .pane-title .status-on{
|
452 |
+
color: #CECDCA;
|
453 |
+
cursor: pointer;
|
454 |
+
float: right;
|
455 |
+
font-family: Verdana;
|
456 |
+
font-size: 14px;
|
457 |
+
font-weight: bold;
|
458 |
+
}
|
459 |
+
.accordion .pane-title .status-off{
|
460 |
+
display: block;
|
461 |
+
}
|
462 |
+
.accordion .pane-title .status-on{
|
463 |
+
display: none;
|
464 |
+
}
|
465 |
+
.accordion .pane-title.active .status-off{
|
466 |
+
display: none;
|
467 |
+
}
|
468 |
+
.accordion .pane-title.active .status-on{
|
469 |
+
display: block;
|
470 |
+
}
|
471 |
+
.accordion .pane{
|
472 |
+
border: 1px solid #EBEBEA;
|
473 |
+
padding: 20px;
|
474 |
+
margin: 0px 0px 20px 0px;
|
475 |
+
}
|
476 |
+
.accordion .pane.last{
|
477 |
+
margin: 0px;
|
478 |
+
}
|
479 |
+
|
480 |
+
/* Fancy quote
|
481 |
+
* ----------------------------------------------------- */
|
482 |
+
.fancy-quote{
|
483 |
+
margin: 0 0 20px;
|
484 |
+
}
|
485 |
+
.fancy-quote .quote-text{
|
486 |
+
background: #f2f2f2 url('images/gradient.png') repeat-x top left;
|
487 |
+
border: 1px solid #EBEBEA;
|
488 |
+
-webkit-box-shadow: inset 1px 1px 1px rgba(255,255,255,0.5);
|
489 |
+
-moz-box-shadow: inset 1px 1px 1px rgba(255,255,255,0.5);
|
490 |
+
box-shadow: inset 1px 1px 1px rgba(255,255,255,0.5);
|
491 |
+
color: #555;
|
492 |
+
font: normal 16px/22px Georgia, serif;
|
493 |
+
margin: 0px 0px 15px;
|
494 |
+
padding: 20px;
|
495 |
+
position: relative;
|
496 |
+
text-shadow: 1px 1px 1px rgba(255,255,255,0.5);
|
497 |
+
}
|
498 |
+
.fancy-quote .quote-text p{
|
499 |
+
margin: 0;
|
500 |
+
}
|
501 |
+
.fancy-quote .quote-text .triangle{
|
502 |
+
background: #f2f2f2;
|
503 |
+
border: 1px solid;
|
504 |
+
border-color: #f2f2f2 #EBEBEA #EBEBEA #f2f2f2;
|
505 |
+
display: block;
|
506 |
+
width: 16px;
|
507 |
+
height: 16px;
|
508 |
+
position: absolute;
|
509 |
+
bottom: -8px; left: 25px;
|
510 |
+
-webkit-transform: rotate(45deg);
|
511 |
+
-moz-transform: rotate(45deg);
|
512 |
+
-ms-transform: rotate(45deg);
|
513 |
+
-o-transform: rotate(45deg);
|
514 |
+
transform: rotate(45deg);
|
515 |
+
}
|
516 |
+
.fancy-quote .quote-author{
|
517 |
+
padding: 0px 0px;
|
518 |
+
position: relative;
|
519 |
+
}
|
520 |
+
.fancy-quote .quote-author .quote-author-name{
|
521 |
+
font-weight: bold;
|
522 |
+
}
|
523 |
+
.fancy-quote .quote-author .quote-author-name:before{
|
524 |
+
content: "\2014 \0020";
|
525 |
+
color: #CECDCA;
|
526 |
+
font-weight: normal;
|
527 |
+
}
|
528 |
+
.fancy-quote .quote-author .quote-author-meta{
|
529 |
+
color: #9C9A96;
|
530 |
+
}
|
531 |
+
|
532 |
+
/* Pricing
|
533 |
+
* ----------------------------------------------------- */
|
534 |
+
.pricing{
|
535 |
+
border-left: 1px solid #fff;
|
536 |
+
margin-bottom: 30px;
|
537 |
+
margin-top: 10px;
|
538 |
+
}
|
539 |
+
.pricing .plan{
|
540 |
+
background: #fff;
|
541 |
+
border: 1px solid #EBEBEA;
|
542 |
+
float: left;
|
543 |
+
padding: 0;
|
544 |
+
text-align: center;
|
545 |
+
position: relative;
|
546 |
+
margin-left: -1px;
|
547 |
+
}
|
548 |
+
.pricing .plan-header{
|
549 |
+
background: #f2f2f2 url('images/gradient.png') repeat-x top left;
|
550 |
+
border-bottom: 1px solid #EBEBEA;
|
551 |
+
-webkit-box-shadow: inset 1px 1px 1px rgba(255,255,255,0.3);
|
552 |
+
-moz-box-shadow: inset 1px 1px 1px rgba(255,255,255,0.3);
|
553 |
+
box-shadow: inset 1px 1px 1px rgba(255,255,255,0.3);
|
554 |
+
padding: 20px;
|
555 |
+
text-shadow: 1px 1px 1px #fff;
|
556 |
+
}
|
557 |
+
.pricing .plan-header h2{
|
558 |
+
font-size: 16px;
|
559 |
+
line-height: 22px;
|
560 |
+
margin: 0;
|
561 |
+
}
|
562 |
+
.pricing .plan-price{
|
563 |
+
background: #fcfcfc;
|
564 |
+
border-bottom: 1px solid #EBEBEA;
|
565 |
+
-webkit-box-shadow: inset 1px 1px 1px rgba(255,255,255,0.3);
|
566 |
+
-moz-box-shadow: inset 1px 1px 1px rgba(255,255,255,0.3);
|
567 |
+
box-shadow: inset 1px 1px 1px rgba(255,255,255,0.3);
|
568 |
+
padding: 20px;
|
569 |
+
text-shadow: 1px 1px 1px #fff;
|
570 |
+
}
|
571 |
+
.pricing .plan-price strong{
|
572 |
+
display: block;
|
573 |
+
font-size: 40px;
|
574 |
+
line-height: 40px;
|
575 |
+
}
|
576 |
+
.pricing .plan-price span{
|
577 |
+
color: #9C9A96;
|
578 |
+
}
|
579 |
+
.pricing .plan-content{
|
580 |
+
background: #fff;
|
581 |
+
}
|
582 |
+
.pricing .plan-content ul,
|
583 |
+
.pricing .plan-content ol{
|
584 |
+
list-style: none;
|
585 |
+
padding: 0;
|
586 |
+
margin: 0;
|
587 |
+
}
|
588 |
+
.pricing .plan-content ul li,
|
589 |
+
.pricing .plan-content ol li{
|
590 |
+
border-bottom: 1px solid #EBEBEA;
|
591 |
+
padding: 10px 20px;
|
592 |
+
margin: 0;
|
593 |
+
}
|
594 |
+
.pricing .plan-footer{
|
595 |
+
background: #f9f9f9;
|
596 |
+
-webkit-box-shadow: inset 1px 1px 1px rgba(255,255,255,0.3);
|
597 |
+
-moz-box-shadow: inset 1px 1px 1px rgba(255,255,255,0.3);
|
598 |
+
box-shadow: inset 1px 1px 1px rgba(255,255,255,0.3);
|
599 |
+
padding: 20px;
|
600 |
+
}
|
601 |
+
.pricing .plan-footer .button{
|
602 |
+
padding: 5px 20px;
|
603 |
+
}
|
604 |
+
|
605 |
+
/* Featured Plan */
|
606 |
+
.pricing .plan.featured{
|
607 |
+
border-color: #CECDCA;
|
608 |
+
-webkit-box-shadow: 0px 0px 15px rgba(0,0,0,0.1);
|
609 |
+
-moz-box-shadow: 0px 0px 15px rgba(0,0,0,0.1);
|
610 |
+
box-shadow: 0px 0px 15px rgba(0,0,0,0.1);
|
611 |
+
z-index: 200;
|
612 |
+
margin-top: -10px;
|
613 |
+
}
|
614 |
+
.pricing .plan.featured .plan-header{
|
615 |
+
background-color: #e0e0e0;
|
616 |
+
border-color: #CECDCA;
|
617 |
+
padding: 25px 0px;
|
618 |
+
}
|
619 |
+
.pricing .plan.featured .plan-header h2{
|
620 |
+
}
|
621 |
+
.pricing .plan.featured .plan-price{
|
622 |
+
background-color: #f2f2f2;
|
623 |
+
}
|
624 |
+
.pricing .plan.featured .plan-content{
|
625 |
+
}
|
626 |
+
.pricing .plan.featured .plan-footer{
|
627 |
+
padding: 25px 0px;
|
628 |
+
background-color: #f2f2f2;
|
629 |
+
border-color: #CECDCA;
|
630 |
+
}
|
631 |
+
|
632 |
+
/* Dropcap
|
633 |
+
* ----------------------------------------------------- */
|
634 |
+
.dropcap{
|
635 |
+
font-size: 48px;
|
636 |
+
font-weight: bold;
|
637 |
+
float: left;
|
638 |
+
margin: 10px 10px 10px 0;
|
639 |
+
}
|
640 |
+
.dropcap.square{
|
641 |
+
background: #696763;
|
642 |
+
color: #fff;
|
643 |
+
font-size: 24px;
|
644 |
+
width: 48px;
|
645 |
+
height: 48px;
|
646 |
+
line-height: 48px;
|
647 |
+
text-align: center;
|
648 |
+
margin: 6px 10px 0px 0
|
649 |
+
}
|
650 |
+
.dropcap.circle{
|
651 |
+
background: #696763;
|
652 |
+
border-radius: 50%;
|
653 |
+
color: #fff;
|
654 |
+
font-size: 24px;
|
655 |
+
width: 48px;
|
656 |
+
height: 48px;
|
657 |
+
line-height: 48px;
|
658 |
+
text-align: center;
|
659 |
+
margin: 6px 10px 0px 0
|
660 |
+
}
|
661 |
+
|
662 |
+
/* Alert message
|
663 |
+
* ----------------------------------------------------- */
|
664 |
+
.alert-message{
|
665 |
+
background: #FFF;
|
666 |
+
border: 1px solid #EBEBEA;
|
667 |
+
padding: 8px 50px 8px 20px;
|
668 |
+
-webkit-border-radius: 3px;
|
669 |
+
-moz-border-radius: 3px;
|
670 |
+
border-radius: 3px;
|
671 |
+
position: relative;
|
672 |
+
margin-bottom: 20px;
|
673 |
+
text-shadow: 1px 1px 1px rgba(255,255,255,0.5);
|
674 |
+
}
|
675 |
+
.alert-message span.close{
|
676 |
+
position: absolute;
|
677 |
+
color: #CECDCA;
|
678 |
+
display: inline-block;
|
679 |
+
font-size: 14px;
|
680 |
+
line-height: 100%;
|
681 |
+
font-weight: 700;
|
682 |
+
width: 14px;
|
683 |
+
height: 14px;
|
684 |
+
text-align: center;
|
685 |
+
cursor: pointer;
|
686 |
+
right: 10px;
|
687 |
+
top: 11px;
|
688 |
+
}
|
689 |
+
.alert-message span.close:hover{
|
690 |
+
color: #9C9A96;
|
691 |
+
}
|
692 |
+
.alert-message.blue{
|
693 |
+
background: #dbf3f9;
|
694 |
+
border: 1px solid #c5e3ea;
|
695 |
+
}
|
696 |
+
.alert-message.green{
|
697 |
+
background: #e2ffc9;
|
698 |
+
border: 1px solid #c5eda3;
|
699 |
+
}
|
700 |
+
.alert-message.red{
|
701 |
+
background: #ffe2e2;
|
702 |
+
border: 1px solid #fcd1d1;
|
703 |
+
}
|
704 |
+
.alert-message.yellow{
|
705 |
+
background: #fcf7d1;
|
706 |
+
border: 1px solid #f2ebba;
|
707 |
+
}
|
708 |
+
|
709 |
+
/* Content Box
|
710 |
+
* ----------------------------------------------------- */
|
711 |
+
.content-box{
|
712 |
+
background: #f2f2f2 url('images/gradient.png') repeat-x top left;
|
713 |
+
border: 1px solid #EBEBEA;
|
714 |
+
-webkit-box-shadow: inset 1px 1px 1px rgba(255,255,255,0.5);
|
715 |
+
-moz-box-shadow: inset 1px 1px 1px rgba(255,255,255,0.5);
|
716 |
+
box-shadow: inset 1px 1px 1px rgba(255,255,255,0.5);
|
717 |
+
margin: 0px 0px 20px;
|
718 |
+
padding: 20px 20px 20px;
|
719 |
+
position: relative;
|
720 |
+
text-shadow: 1px 1px 1px rgba(255,255,255,0.5);
|
721 |
+
}
|
722 |
+
.content-box > p:last-child{
|
723 |
+
margin-bottom: 0;
|
724 |
+
}
|
725 |
+
.content-box.blue{
|
726 |
+
background: #EEF9FC;
|
727 |
+
border: 1px solid #dfecf9;
|
728 |
+
}
|
729 |
+
.content-box.green{
|
730 |
+
background: #E9FFD6;
|
731 |
+
border: 1px solid #D4F2BB;
|
732 |
+
}
|
733 |
+
.content-box.red{
|
734 |
+
background: #FCE3E3;
|
735 |
+
border: 1px solid #fcd1d1;
|
736 |
+
}
|
737 |
+
.content-box.yellow{
|
738 |
+
background: #fcf7d1;
|
739 |
+
border: 1px solid #f2ebba;
|
740 |
+
}
|
741 |
+
.content-box h1,
|
742 |
+
.content-box h2,
|
743 |
+
.content-box h3,
|
744 |
+
.content-box h4,
|
745 |
+
.content-box h5,
|
746 |
+
.content-box h6{
|
747 |
+
margin-bottom: 10px;
|
748 |
+
}
|
749 |
+
|
750 |
+
/* Profile Box
|
751 |
+
* ----------------------------------------------------- */
|
752 |
+
.profile-box{
|
753 |
+
margin-bottom: 20px;
|
754 |
+
}
|
755 |
+
.profile-box .profile-img{
|
756 |
+
margin-bottom: 15px;
|
757 |
+
}
|
758 |
+
.profile-box .profile-img img{
|
759 |
+
display: block;
|
760 |
+
width: 100%;
|
761 |
+
height: auto;
|
762 |
+
margin: -1px;
|
763 |
+
}
|
764 |
+
.profile-box .profile-name{
|
765 |
+
margin-bottom: 0;
|
766 |
+
}
|
767 |
+
.profile-box .profile-meta{
|
768 |
+
color: #9C9A96;
|
769 |
+
margin-bottom: 15px;
|
770 |
+
}
|
771 |
+
.profile-box .profile-desc p:last-child{
|
772 |
+
margin-bottom: 0px;
|
773 |
+
}
|
774 |
+
.profile-box .profile-footer{
|
775 |
+
margin-top: 15px;
|
776 |
+
}
|
777 |
+
.profile-box .profile-footer a{
|
778 |
+
color: #9C9A96;
|
779 |
+
font-size: 12px;
|
780 |
+
margin-right: 10px;
|
781 |
+
}
|
782 |
+
|
783 |
+
/* Client Box
|
784 |
+
* ----------------------------------------------------- */
|
785 |
+
.client_box{
|
786 |
+
margin-bottom: 20px;
|
787 |
+
}
|
788 |
+
.client_box ul{
|
789 |
+
list-style: none;
|
790 |
+
margin: 0;
|
791 |
+
padding: 0;
|
792 |
+
}
|
793 |
+
.client_box ul li.inbound-grid{
|
794 |
+
border: 1px solid #EBEBEA;
|
795 |
+
margin: 0px -1px -1px 0px;
|
796 |
+
padding: 0;
|
797 |
+
}
|
798 |
+
.client_box ul li a{
|
799 |
+
display: block;
|
800 |
+
text-align: center;
|
801 |
+
}
|
802 |
+
.client_box ul li:hover{
|
803 |
+
border-color: #CECDCA;
|
804 |
+
-webkit-box-shadow: 0px 0px 8px rgba(0,0,0,0.1);
|
805 |
+
-moz-box-shadow: 0px 0px 8px rgba(0,0,0,0.1);
|
806 |
+
box-shadow: 0px 0px 8px rgba(0,0,0,0.1);
|
807 |
+
z-index: 200
|
808 |
+
}
|
809 |
+
|
810 |
+
/* Google Map
|
811 |
+
* ----------------------------------------------------- */
|
812 |
+
.google_map{
|
813 |
+
max-width: 100%;
|
814 |
+
margin-bottom: 20px;
|
815 |
+
}
|
816 |
+
|
817 |
+
/* Buttons
|
818 |
+
* ------------------------------------------*/
|
819 |
+
#respond #submit, .button{
|
820 |
+
background:#c8232b url('../images/gradient.png') repeat-x top left;
|
821 |
+
border:1px solid rgba(0,0,0,0.15);
|
822 |
+
-webkit-border-radius:2px;
|
823 |
+
-moz-border-radius:2px;
|
824 |
+
border-radius:2px;
|
825 |
+
-webkit-box-shadow:0px 2px 3px rgba(0,0,0,0.15), inset 1px 1px 1px rgba(255,255,255,0.2);
|
826 |
+
-moz-box-shadow:0px 2px 3px rgba(0,0,0,0.15), inset 1px 1px 1px rgba(255,255,255,0.2);
|
827 |
+
box-shadow:0px 2px 3px rgba(0,0,0,0.15), inset 1px 1px 1px rgba(255,255,255,0.2);
|
828 |
+
color:#fff;
|
829 |
+
cursor:pointer;
|
830 |
+
display:inline-block;
|
831 |
+
font-family:inherit;
|
832 |
+
font-size:14px;
|
833 |
+
font-weight:bold;
|
834 |
+
padding:8px 15px;
|
835 |
+
text-shadow:-1px -1px 1px rgba(0,0,0,0.15);
|
836 |
+
text-decoration: none;
|
837 |
+
}
|
838 |
+
.button:hover{
|
839 |
+
background-image: url('../images/gradient-hover.png');
|
840 |
+
color:#fff;
|
841 |
+
}
|
842 |
+
.button.small{
|
843 |
+
font-size: 100%;
|
844 |
+
padding:4px 10px;
|
845 |
+
}
|
846 |
+
.button.large{
|
847 |
+
font-size:18px;
|
848 |
+
padding:12px 30px;
|
849 |
+
}
|
850 |
+
input[type=submit].button, button.button{
|
851 |
+
-webkit-appearance:none;
|
852 |
+
}
|
853 |
+
.button.black{
|
854 |
+
background-color: #4A4845;
|
855 |
+
}
|
856 |
+
.button.blue{
|
857 |
+
background-color: #707ef9;
|
858 |
+
}
|
859 |
+
.button.brown{
|
860 |
+
background-color: #5e3d1d;
|
861 |
+
}
|
862 |
+
.button.green{
|
863 |
+
background-color: #65b20e;
|
864 |
+
}
|
865 |
+
.button.orange{
|
866 |
+
background-color: #ff9900;
|
867 |
+
}
|
868 |
+
.button.pink{
|
869 |
+
background-color: #fc149f;
|
870 |
+
}
|
871 |
+
.button.purple{
|
872 |
+
background-color: #993d9e;
|
873 |
+
}
|
874 |
+
.button.red{
|
875 |
+
background-color: #fc5a5a;
|
876 |
+
}
|
877 |
+
.button.silver{
|
878 |
+
background-color: #858585;
|
879 |
+
}
|
880 |
+
.button.yellow{
|
881 |
+
background-color: #f7c707;
|
882 |
+
}
|
883 |
+
.button.white{
|
884 |
+
background-color: #f4f4f4;
|
885 |
+
border-color: #ccc;
|
886 |
+
-webkit-box-shadow:0px 1px 2px rgba(0,0,0,0.08), inset 1px 1px 1px rgba(255,255,255,0.2);
|
887 |
+
-moz-box-shadow:0px 1px 2px rgba(0,0,0,0.08), inset 1px 1px 1px rgba(255,255,255,0.2);
|
888 |
+
box-shadow:0px 1px 2px rgba(0,0,0,0.08), inset 1px 1px 1px rgba(255,255,255,0.2);
|
889 |
+
color: #666;
|
890 |
+
text-shadow: none;
|
891 |
+
}
|
892 |
+
.button.white:hover{
|
893 |
+
color: #4A4845;
|
894 |
+
}
|
895 |
+
|
896 |
+
/* Font Awesome
|
897 |
+
* the iconic font designed for use with Twitter Bootstrap
|
898 |
+
* -------------------------------------------------------
|
899 |
+
* The full suite of pictographic icons, examples, and documentation
|
900 |
+
* can be found at: http://fortawesome.github.com/Font-Awesome/
|
901 |
+
|
902 |
+
* License
|
903 |
+
* -------------------------------------------------------
|
904 |
+
* The Font Awesome webfont, CSS, and LESS files are licensed under CC BY 3.0:
|
905 |
+
* http://creativecommons.org/licenses/by/3.0/ A mention of
|
906 |
+
* 'Font Awesome - http://fortawesome.github.com/Font-Awesome' in human-readable
|
907 |
+
* source code is considered acceptable attribution (most common on the web).
|
908 |
+
* If human readable source code is not available to the end user, a mention in
|
909 |
+
* an 'About' or 'Credits' screen is considered acceptable (most common in desktop
|
910 |
+
* or mobile software).
|
911 |
+
|
912 |
+
* Contact
|
913 |
+
* -------------------------------------------------------
|
914 |
+
* Email: dave@davegandy.com
|
915 |
+
* Twitter: http://twitter.com/fortaweso_me
|
916 |
+
* Work: http://lemonwi.se co-founder */
|
917 |
+
|
918 |
+
@font-face {
|
919 |
+
font-family: 'FontAwesome';
|
920 |
+
src: url('../fonts/fontawesome/fontawesome-webfont.eot?v=3.0.2');
|
921 |
+
src: url('../fonts/fontawesome/fontawesome-webfont.eot?#iefix&v=3.0.2') format('embedded-opentype'),
|
922 |
+
url('../fonts/fontawesome/fontawesome-webfont.woff?v=3.0.2') format('woff'),
|
923 |
+
url('../fonts/fontawesome/fontawesome-webfont.ttf?v=3.0.2') format('truetype');
|
924 |
+
font-weight: normal;
|
925 |
+
font-style: normal;
|
926 |
+
}
|
927 |
+
|
928 |
+
/* FontAwesome styles */
|
929 |
+
[class^="icon-"],
|
930 |
+
[class*=" icon-"] {
|
931 |
+
font-family: 'FontAwesome';
|
932 |
+
font-weight: normal;
|
933 |
+
font-style: normal;
|
934 |
+
text-decoration: inherit;
|
935 |
+
-webkit-font-smoothing: antialiased;
|
936 |
+
|
937 |
+
/* sprites.less reset */
|
938 |
+
display: inline;
|
939 |
+
width: auto;
|
940 |
+
height: auto;
|
941 |
+
line-height: normal;
|
942 |
+
vertical-align: baseline;
|
943 |
+
background-image: none;
|
944 |
+
background-position: 0% 0%;
|
945 |
+
background-repeat: repeat;
|
946 |
+
margin-top: 0;
|
947 |
+
}
|
948 |
+
/* more sprites.less reset */
|
949 |
+
.icon-white,
|
950 |
+
.nav-pills > .active > a > [class^="icon-"],
|
951 |
+
.nav-pills > .active > a > [class*=" icon-"],
|
952 |
+
.nav-list > .active > a > [class^="icon-"],
|
953 |
+
.nav-list > .active > a > [class*=" icon-"],
|
954 |
+
.navbar-inverse .nav > .active > a > [class^="icon-"],
|
955 |
+
.navbar-inverse .nav > .active > a > [class*=" icon-"],
|
956 |
+
.dropdown-menu > li > a:hover > [class^="icon-"],
|
957 |
+
.dropdown-menu > li > a:hover > [class*=" icon-"],
|
958 |
+
.dropdown-menu > .active > a > [class^="icon-"],
|
959 |
+
.dropdown-menu > .active > a > [class*=" icon-"],
|
960 |
+
.dropdown-submenu:hover > a > [class^="icon-"],
|
961 |
+
.dropdown-submenu:hover > a > [class*=" icon-"] {
|
962 |
+
background-image: none;
|
963 |
+
}
|
964 |
+
[class^="icon-"]:before,
|
965 |
+
[class*=" icon-"]:before {
|
966 |
+
text-decoration: inherit;
|
967 |
+
display: inline-block;
|
968 |
+
speak: none;
|
969 |
+
}
|
970 |
+
/* makes sure icons active on rollover in links */
|
971 |
+
a [class^="icon-"],
|
972 |
+
a [class*=" icon-"] {
|
973 |
+
display: inline-block;
|
974 |
+
}
|
975 |
+
/* makes the font 33% larger relative to the icon container */
|
976 |
+
.icon-large:before {
|
977 |
+
vertical-align: -10%;
|
978 |
+
font-size: 1.3333333333333333em;
|
979 |
+
}
|
980 |
+
.btn [class^="icon-"],
|
981 |
+
.nav [class^="icon-"],
|
982 |
+
.btn [class*=" icon-"],
|
983 |
+
.nav [class*=" icon-"] {
|
984 |
+
display: inline;
|
985 |
+
/* keeps button heights with and without icons the same */
|
986 |
+
|
987 |
+
}
|
988 |
+
.btn [class^="icon-"].icon-large,
|
989 |
+
.nav [class^="icon-"].icon-large,
|
990 |
+
.btn [class*=" icon-"].icon-large,
|
991 |
+
.nav [class*=" icon-"].icon-large {
|
992 |
+
line-height: .9em;
|
993 |
+
}
|
994 |
+
.btn [class^="icon-"].icon-spin,
|
995 |
+
.nav [class^="icon-"].icon-spin,
|
996 |
+
.btn [class*=" icon-"].icon-spin,
|
997 |
+
.nav [class*=" icon-"].icon-spin {
|
998 |
+
display: inline-block;
|
999 |
+
}
|
1000 |
+
.nav-tabs [class^="icon-"],
|
1001 |
+
.nav-pills [class^="icon-"],
|
1002 |
+
.nav-tabs [class*=" icon-"],
|
1003 |
+
.nav-pills [class*=" icon-"] {
|
1004 |
+
/* keeps button heights with and without icons the same */
|
1005 |
+
|
1006 |
+
}
|
1007 |
+
.nav-tabs [class^="icon-"],
|
1008 |
+
.nav-pills [class^="icon-"],
|
1009 |
+
.nav-tabs [class*=" icon-"],
|
1010 |
+
.nav-pills [class*=" icon-"],
|
1011 |
+
.nav-tabs [class^="icon-"].icon-large,
|
1012 |
+
.nav-pills [class^="icon-"].icon-large,
|
1013 |
+
.nav-tabs [class*=" icon-"].icon-large,
|
1014 |
+
.nav-pills [class*=" icon-"].icon-large {
|
1015 |
+
line-height: .9em;
|
1016 |
+
}
|
1017 |
+
li [class^="icon-"],
|
1018 |
+
.nav li [class^="icon-"],
|
1019 |
+
li [class*=" icon-"],
|
1020 |
+
.nav li [class*=" icon-"] {
|
1021 |
+
display: inline-block;
|
1022 |
+
width: 1.25em;
|
1023 |
+
text-align: center;
|
1024 |
+
}
|
1025 |
+
li [class^="icon-"].icon-large,
|
1026 |
+
.nav li [class^="icon-"].icon-large,
|
1027 |
+
li [class*=" icon-"].icon-large,
|
1028 |
+
.nav li [class*=" icon-"].icon-large {
|
1029 |
+
/* increased font size for icon-large */
|
1030 |
+
|
1031 |
+
width: 1.5625em;
|
1032 |
+
}
|
1033 |
+
ul.icons {
|
1034 |
+
list-style-type: none;
|
1035 |
+
text-indent: -0.75em;
|
1036 |
+
}
|
1037 |
+
ul.icons li [class^="icon-"],
|
1038 |
+
ul.icons li [class*=" icon-"] {
|
1039 |
+
width: .75em;
|
1040 |
+
}
|
1041 |
+
.icon-muted {
|
1042 |
+
color: #eeeeee;
|
1043 |
+
}
|
1044 |
+
.icon-border {
|
1045 |
+
border: solid 1px #eeeeee;
|
1046 |
+
padding: .2em .25em .15em;
|
1047 |
+
-webkit-border-radius: 3px;
|
1048 |
+
-moz-border-radius: 3px;
|
1049 |
+
border-radius: 3px;
|
1050 |
+
}
|
1051 |
+
.icon-2x {
|
1052 |
+
font-size: 2em;
|
1053 |
+
}
|
1054 |
+
.icon-2x.icon-border {
|
1055 |
+
border-width: 2px;
|
1056 |
+
-webkit-border-radius: 4px;
|
1057 |
+
-moz-border-radius: 4px;
|
1058 |
+
border-radius: 4px;
|
1059 |
+
}
|
1060 |
+
.icon-3x {
|
1061 |
+
font-size: 3em;
|
1062 |
+
}
|
1063 |
+
.icon-3x.icon-border {
|
1064 |
+
border-width: 3px;
|
1065 |
+
-webkit-border-radius: 5px;
|
1066 |
+
-moz-border-radius: 5px;
|
1067 |
+
border-radius: 5px;
|
1068 |
+
}
|
1069 |
+
.icon-4x {
|
1070 |
+
font-size: 4em;
|
1071 |
+
}
|
1072 |
+
.icon-4x.icon-border {
|
1073 |
+
border-width: 4px;
|
1074 |
+
-webkit-border-radius: 6px;
|
1075 |
+
-moz-border-radius: 6px;
|
1076 |
+
border-radius: 6px;
|
1077 |
+
}
|
1078 |
+
.pull-right {
|
1079 |
+
float: right;
|
1080 |
+
}
|
1081 |
+
.pull-left {
|
1082 |
+
float: left;
|
1083 |
+
}
|
1084 |
+
[class^="icon-"].pull-left,
|
1085 |
+
[class*=" icon-"].pull-left {
|
1086 |
+
margin-right: .3em;
|
1087 |
+
}
|
1088 |
+
[class^="icon-"].pull-right,
|
1089 |
+
[class*=" icon-"].pull-right {
|
1090 |
+
margin-left: .3em;
|
1091 |
+
}
|
1092 |
+
.btn [class^="icon-"].pull-left.icon-2x,
|
1093 |
+
.btn [class*=" icon-"].pull-left.icon-2x,
|
1094 |
+
.btn [class^="icon-"].pull-right.icon-2x,
|
1095 |
+
.btn [class*=" icon-"].pull-right.icon-2x {
|
1096 |
+
margin-top: .18em;
|
1097 |
+
}
|
1098 |
+
.btn [class^="icon-"].icon-spin.icon-large,
|
1099 |
+
.btn [class*=" icon-"].icon-spin.icon-large {
|
1100 |
+
line-height: .8em;
|
1101 |
+
}
|
1102 |
+
.btn.btn-small [class^="icon-"].pull-left.icon-2x,
|
1103 |
+
.btn.btn-small [class*=" icon-"].pull-left.icon-2x,
|
1104 |
+
.btn.btn-small [class^="icon-"].pull-right.icon-2x,
|
1105 |
+
.btn.btn-small [class*=" icon-"].pull-right.icon-2x {
|
1106 |
+
margin-top: .25em;
|
1107 |
+
}
|
1108 |
+
.btn.btn-large [class^="icon-"],
|
1109 |
+
.btn.btn-large [class*=" icon-"] {
|
1110 |
+
margin-top: 0;
|
1111 |
+
}
|
1112 |
+
.btn.btn-large [class^="icon-"].pull-left.icon-2x,
|
1113 |
+
.btn.btn-large [class*=" icon-"].pull-left.icon-2x,
|
1114 |
+
.btn.btn-large [class^="icon-"].pull-right.icon-2x,
|
1115 |
+
.btn.btn-large [class*=" icon-"].pull-right.icon-2x {
|
1116 |
+
margin-top: .05em;
|
1117 |
+
}
|
1118 |
+
.btn.btn-large [class^="icon-"].pull-left.icon-2x,
|
1119 |
+
.btn.btn-large [class*=" icon-"].pull-left.icon-2x {
|
1120 |
+
margin-right: .2em;
|
1121 |
+
}
|
1122 |
+
.btn.btn-large [class^="icon-"].pull-right.icon-2x,
|
1123 |
+
.btn.btn-large [class*=" icon-"].pull-right.icon-2x {
|
1124 |
+
margin-left: .2em;
|
1125 |
+
}
|
1126 |
+
.icon-spin {
|
1127 |
+
display: inline-block;
|
1128 |
+
-moz-animation: spin 2s infinite linear;
|
1129 |
+
-o-animation: spin 2s infinite linear;
|
1130 |
+
-webkit-animation: spin 2s infinite linear;
|
1131 |
+
animation: spin 2s infinite linear;
|
1132 |
+
}
|
1133 |
+
@-moz-keyframes spin {
|
1134 |
+
0% { -moz-transform: rotate(0deg); }
|
1135 |
+
100% { -moz-transform: rotate(359deg); }
|
1136 |
+
}
|
1137 |
+
@-webkit-keyframes spin {
|
1138 |
+
0% { -webkit-transform: rotate(0deg); }
|
1139 |
+
100% { -webkit-transform: rotate(359deg); }
|
1140 |
+
}
|
1141 |
+
@-o-keyframes spin {
|
1142 |
+
0% { -o-transform: rotate(0deg); }
|
1143 |
+
100% { -o-transform: rotate(359deg); }
|
1144 |
+
}
|
1145 |
+
@-ms-keyframes spin {
|
1146 |
+
0% { -ms-transform: rotate(0deg); }
|
1147 |
+
100% { -ms-transform: rotate(359deg); }
|
1148 |
+
}
|
1149 |
+
@keyframes spin {
|
1150 |
+
0% { transform: rotate(0deg); }
|
1151 |
+
100% { transform: rotate(359deg); }
|
1152 |
+
}
|
1153 |
+
@-moz-document url-prefix() {
|
1154 |
+
.icon-spin {
|
1155 |
+
height: .9em;
|
1156 |
+
}
|
1157 |
+
.btn .icon-spin {
|
1158 |
+
height: auto;
|
1159 |
+
}
|
1160 |
+
.icon-spin.icon-large {
|
1161 |
+
height: 1.25em;
|
1162 |
+
}
|
1163 |
+
.btn .icon-spin.icon-large {
|
1164 |
+
height: .75em;
|
1165 |
+
}
|
1166 |
+
}
|
1167 |
+
/* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen
|
1168 |
+
readers do not read off random characters that represent icons */
|
1169 |
+
.icon-glass:before { content: "\f000"; }
|
1170 |
+
.icon-music:before { content: "\f001"; }
|
1171 |
+
.icon-search:before { content: "\f002"; }
|
1172 |
+
.icon-envelope:before { content: "\f003"; }
|
1173 |
+
.icon-heart:before { content: "\f004"; }
|
1174 |
+
.icon-star:before { content: "\f005"; }
|
1175 |
+
.icon-star-empty:before { content: "\f006"; }
|
1176 |
+
.icon-user:before { content: "\f007"; }
|
1177 |
+
.icon-film:before { content: "\f008"; }
|
1178 |
+
.icon-th-large:before { content: "\f009"; }
|
1179 |
+
.icon-th:before { content: "\f00a"; }
|
1180 |
+
.icon-th-list:before { content: "\f00b"; }
|
1181 |
+
.icon-ok:before { content: "\f00c"; }
|
1182 |
+
.icon-remove:before { content: "\f00d"; }
|
1183 |
+
.icon-zoom-in:before { content: "\f00e"; }
|
1184 |
+
|
1185 |
+
.icon-zoom-out:before { content: "\f010"; }
|
1186 |
+
.icon-off:before { content: "\f011"; }
|
1187 |
+
.icon-signal:before { content: "\f012"; }
|
1188 |
+
.icon-cog:before { content: "\f013"; }
|
1189 |
+
.icon-trash:before { content: "\f014"; }
|
1190 |
+
.icon-home:before { content: "\f015"; }
|
1191 |
+
.icon-file:before { content: "\f016"; }
|
1192 |
+
.icon-time:before { content: "\f017"; }
|
1193 |
+
.icon-road:before { content: "\f018"; }
|
1194 |
+
.icon-download-alt:before { content: "\f019"; }
|
1195 |
+
.icon-download:before { content: "\f01a"; }
|
1196 |
+
.icon-upload:before { content: "\f01b"; }
|
1197 |
+
.icon-inbox:before { content: "\f01c"; }
|
1198 |
+
.icon-play-circle:before { content: "\f01d"; }
|
1199 |
+
.icon-repeat:before { content: "\f01e"; }
|
1200 |
+
|
1201 |
+
/* \f020 doesn't work in Safari. all shifted one down */
|
1202 |
+
.icon-refresh:before { content: "\f021"; }
|
1203 |
+
.icon-list-alt:before { content: "\f022"; }
|
1204 |
+
.icon-lock:before { content: "\f023"; }
|
1205 |
+
.icon-flag:before { content: "\f024"; }
|
1206 |
+
.icon-headphones:before { content: "\f025"; }
|
1207 |
+
.icon-volume-off:before { content: "\f026"; }
|
1208 |
+
.icon-volume-down:before { content: "\f027"; }
|
1209 |
+
.icon-volume-up:before { content: "\f028"; }
|
1210 |
+
.icon-qrcode:before { content: "\f029"; }
|
1211 |
+
.icon-barcode:before { content: "\f02a"; }
|
1212 |
+
.icon-tag:before { content: "\f02b"; }
|
1213 |
+
.icon-tags:before { content: "\f02c"; }
|
1214 |
+
.icon-book:before { content: "\f02d"; }
|
1215 |
+
.icon-bookmark:before { content: "\f02e"; }
|
1216 |
+
.icon-print:before { content: "\f02f"; }
|
1217 |
+
|
1218 |
+
.icon-camera:before { content: "\f030"; }
|
1219 |
+
.icon-font:before { content: "\f031"; }
|
1220 |
+
.icon-bold:before { content: "\f032"; }
|
1221 |
+
.icon-italic:before { content: "\f033"; }
|
1222 |
+
.icon-text-height:before { content: "\f034"; }
|
1223 |
+
.icon-text-width:before { content: "\f035"; }
|
1224 |
+
.icon-align-left:before { content: "\f036"; }
|
1225 |
+
.icon-align-center:before { content: "\f037"; }
|
1226 |
+
.icon-align-right:before { content: "\f038"; }
|
1227 |
+
.icon-align-justify:before { content: "\f039"; }
|
1228 |
+
.icon-list:before { content: "\f03a"; }
|
1229 |
+
.icon-indent-left:before { content: "\f03b"; }
|
1230 |
+
.icon-indent-right:before { content: "\f03c"; }
|
1231 |
+
.icon-facetime-video:before { content: "\f03d"; }
|
1232 |
+
.icon-picture:before { content: "\f03e"; }
|
1233 |
+
|
1234 |
+
.icon-pencil:before { content: "\f040"; }
|
1235 |
+
.icon-map-marker:before { content: "\f041"; }
|
1236 |
+
.icon-adjust:before { content: "\f042"; }
|
1237 |
+
.icon-tint:before { content: "\f043"; }
|
1238 |
+
.icon-edit:before { content: "\f044"; }
|
1239 |
+
.icon-share:before { content: "\f045"; }
|
1240 |
+
.icon-check:before { content: "\f046"; }
|
1241 |
+
.icon-move:before { content: "\f047"; }
|
1242 |
+
.icon-step-backward:before { content: "\f048"; }
|
1243 |
+
.icon-fast-backward:before { content: "\f049"; }
|
1244 |
+
.icon-backward:before { content: "\f04a"; }
|
1245 |
+
.icon-play:before { content: "\f04b"; }
|
1246 |
+
.icon-pause:before { content: "\f04c"; }
|
1247 |
+
.icon-stop:before { content: "\f04d"; }
|
1248 |
+
.icon-forward:before { content: "\f04e"; }
|
1249 |
+
|
1250 |
+
.icon-fast-forward:before { content: "\f050"; }
|
1251 |
+
.icon-step-forward:before { content: "\f051"; }
|
1252 |
+
.icon-eject:before { content: "\f052"; }
|
1253 |
+
.icon-chevron-left:before { content: "\f053"; }
|
1254 |
+
.icon-chevron-right:before { content: "\f054"; }
|
1255 |
+
.icon-plus-sign:before { content: "\f055"; }
|
1256 |
+
.icon-minus-sign:before { content: "\f056"; }
|
1257 |
+
.icon-remove-sign:before { content: "\f057"; }
|
1258 |
+
.icon-ok-sign:before { content: "\f058"; }
|
1259 |
+
.icon-question-sign:before { content: "\f059"; }
|
1260 |
+
.icon-info-sign:before { content: "\f05a"; }
|
1261 |
+
.icon-screenshot:before { content: "\f05b"; }
|
1262 |
+
.icon-remove-circle:before { content: "\f05c"; }
|
1263 |
+
.icon-ok-circle:before { content: "\f05d"; }
|
1264 |
+
.icon-ban-circle:before { content: "\f05e"; }
|
1265 |
+
|
1266 |
+
.icon-arrow-left:before { content: "\f060"; }
|
1267 |
+
.icon-arrow-right:before { content: "\f061"; }
|
1268 |
+
.icon-arrow-up:before { content: "\f062"; }
|
1269 |
+
.icon-arrow-down:before { content: "\f063"; }
|
1270 |
+
.icon-share-alt:before { content: "\f064"; }
|
1271 |
+
.icon-resize-full:before { content: "\f065"; }
|
1272 |
+
.icon-resize-small:before { content: "\f066"; }
|
1273 |
+
.icon-plus:before { content: "\f067"; }
|
1274 |
+
.icon-minus:before { content: "\f068"; }
|
1275 |
+
.icon-asterisk:before { content: "\f069"; }
|
1276 |
+
.icon-exclamation-sign:before { content: "\f06a"; }
|
1277 |
+
.icon-gift:before { content: "\f06b"; }
|
1278 |
+
.icon-leaf:before { content: "\f06c"; }
|
1279 |
+
.icon-fire:before { content: "\f06d"; }
|
1280 |
+
.icon-eye-open:before { content: "\f06e"; }
|
1281 |
+
|
1282 |
+
.icon-eye-close:before { content: "\f070"; }
|
1283 |
+
.icon-warning-sign:before { content: "\f071"; }
|
1284 |
+
.icon-plane:before { content: "\f072"; }
|
1285 |
+
.icon-calendar:before { content: "\f073"; }
|
1286 |
+
.icon-random:before { content: "\f074"; }
|
1287 |
+
.icon-comment:before { content: "\f075"; }
|
1288 |
+
.icon-magnet:before { content: "\f076"; }
|
1289 |
+
.icon-chevron-up:before { content: "\f077"; }
|
1290 |
+
.icon-chevron-down:before { content: "\f078"; }
|
1291 |
+
.icon-retweet:before { content: "\f079"; }
|
1292 |
+
.icon-shopping-cart:before { content: "\f07a"; }
|
1293 |
+
.icon-folder-close:before { content: "\f07b"; }
|
1294 |
+
.icon-folder-open:before { content: "\f07c"; }
|
1295 |
+
.icon-resize-vertical:before { content: "\f07d"; }
|
1296 |
+
.icon-resize-horizontal:before { content: "\f07e"; }
|
1297 |
+
|
1298 |
+
.icon-bar-chart:before { content: "\f080"; }
|
1299 |
+
.icon-twitter-sign:before { content: "\f081"; }
|
1300 |
+
.icon-facebook-sign:before { content: "\f082"; }
|
1301 |
+
.icon-camera-retro:before { content: "\f083"; }
|
1302 |
+
.icon-key:before { content: "\f084"; }
|
1303 |
+
.icon-cogs:before { content: "\f085"; }
|
1304 |
+
.icon-comments:before { content: "\f086"; }
|
1305 |
+
.icon-thumbs-up:before { content: "\f087"; }
|
1306 |
+
.icon-thumbs-down:before { content: "\f088"; }
|
1307 |
+
.icon-star-half:before { content: "\f089"; }
|
1308 |
+
.icon-heart-empty:before { content: "\f08a"; }
|
1309 |
+
.icon-signout:before { content: "\f08b"; }
|
1310 |
+
.icon-linkedin-sign:before { content: "\f08c"; }
|
1311 |
+
.icon-pushpin:before { content: "\f08d"; }
|
1312 |
+
.icon-external-link:before { content: "\f08e"; }
|
1313 |
+
|
1314 |
+
.icon-signin:before { content: "\f090"; }
|
1315 |
+
.icon-trophy:before { content: "\f091"; }
|
1316 |
+
.icon-github-sign:before { content: "\f092"; }
|
1317 |
+
.icon-upload-alt:before { content: "\f093"; }
|
1318 |
+
.icon-lemon:before { content: "\f094"; }
|
1319 |
+
.icon-phone:before { content: "\f095"; }
|
1320 |
+
.icon-check-empty:before { content: "\f096"; }
|
1321 |
+
.icon-bookmark-empty:before { content: "\f097"; }
|
1322 |
+
.icon-phone-sign:before { content: "\f098"; }
|
1323 |
+
.icon-twitter:before { content: "\f099"; }
|
1324 |
+
.icon-facebook:before { content: "\f09a"; }
|
1325 |
+
.icon-github:before { content: "\f09b"; }
|
1326 |
+
.icon-unlock:before { content: "\f09c"; }
|
1327 |
+
.icon-credit-card:before { content: "\f09d"; }
|
1328 |
+
.icon-rss:before { content: "\f09e"; }
|
1329 |
+
|
1330 |
+
.icon-hdd:before { content: "\f0a0"; }
|
1331 |
+
.icon-bullhorn:before { content: "\f0a1"; }
|
1332 |
+
.icon-bell:before { content: "\f0a2"; }
|
1333 |
+
.icon-certificate:before { content: "\f0a3"; }
|
1334 |
+
.icon-hand-right:before { content: "\f0a4"; }
|
1335 |
+
.icon-hand-left:before { content: "\f0a5"; }
|
1336 |
+
.icon-hand-up:before { content: "\f0a6"; }
|
1337 |
+
.icon-hand-down:before { content: "\f0a7"; }
|
1338 |
+
.icon-circle-arrow-left:before { content: "\f0a8"; }
|
1339 |
+
.icon-circle-arrow-right:before { content: "\f0a9"; }
|
1340 |
+
.icon-circle-arrow-up:before { content: "\f0aa"; }
|
1341 |
+
.icon-circle-arrow-down:before { content: "\f0ab"; }
|
1342 |
+
.icon-globe:before { content: "\f0ac"; }
|
1343 |
+
.icon-wrench:before { content: "\f0ad"; }
|
1344 |
+
.icon-tasks:before { content: "\f0ae"; }
|
1345 |
+
|
1346 |
+
.icon-filter:before { content: "\f0b0"; }
|
1347 |
+
.icon-briefcase:before { content: "\f0b1"; }
|
1348 |
+
.icon-fullscreen:before { content: "\f0b2"; }
|
1349 |
+
|
1350 |
+
.icon-group:before { content: "\f0c0"; }
|
1351 |
+
.icon-link:before { content: "\f0c1"; }
|
1352 |
+
.icon-cloud:before { content: "\f0c2"; }
|
1353 |
+
.icon-beaker:before { content: "\f0c3"; }
|
1354 |
+
.icon-cut:before { content: "\f0c4"; }
|
1355 |
+
.icon-copy:before { content: "\f0c5"; }
|
1356 |
+
.icon-paper-clip:before { content: "\f0c6"; }
|
1357 |
+
.icon-save:before { content: "\f0c7"; }
|
1358 |
+
.icon-sign-blank:before { content: "\f0c8"; }
|
1359 |
+
.icon-reorder:before { content: "\f0c9"; }
|
1360 |
+
.icon-list-ul:before { content: "\f0ca"; }
|
1361 |
+
.icon-list-ol:before { content: "\f0cb"; }
|
1362 |
+
.icon-strikethrough:before { content: "\f0cc"; }
|
1363 |
+
.icon-underline:before { content: "\f0cd"; }
|
1364 |
+
.icon-table:before { content: "\f0ce"; }
|
1365 |
+
|
1366 |
+
.icon-magic:before { content: "\f0d0"; }
|
1367 |
+
.icon-truck:before { content: "\f0d1"; }
|
1368 |
+
.icon-pinterest:before { content: "\f0d2"; }
|
1369 |
+
.icon-pinterest-sign:before { content: "\f0d3"; }
|
1370 |
+
.icon-google-plus-sign:before { content: "\f0d4"; }
|
1371 |
+
.icon-google-plus:before { content: "\f0d5"; }
|
1372 |
+
.icon-money:before { content: "\f0d6"; }
|
1373 |
+
.icon-caret-down:before { content: "\f0d7"; }
|
1374 |
+
.icon-caret-up:before { content: "\f0d8"; }
|
1375 |
+
.icon-caret-left:before { content: "\f0d9"; }
|
1376 |
+
.icon-caret-right:before { content: "\f0da"; }
|
1377 |
+
.icon-columns:before { content: "\f0db"; }
|
1378 |
+
.icon-sort:before { content: "\f0dc"; }
|
1379 |
+
.icon-sort-down:before { content: "\f0dd"; }
|
1380 |
+
.icon-sort-up:before { content: "\f0de"; }
|
1381 |
+
|
1382 |
+
.icon-envelope-alt:before { content: "\f0e0"; }
|
1383 |
+
.icon-linkedin:before { content: "\f0e1"; }
|
1384 |
+
.icon-undo:before { content: "\f0e2"; }
|
1385 |
+
.icon-legal:before { content: "\f0e3"; }
|
1386 |
+
.icon-dashboard:before { content: "\f0e4"; }
|
1387 |
+
.icon-comment-alt:before { content: "\f0e5"; }
|
1388 |
+
.icon-comments-alt:before { content: "\f0e6"; }
|
1389 |
+
.icon-bolt:before { content: "\f0e7"; }
|
1390 |
+
.icon-sitemap:before { content: "\f0e8"; }
|
1391 |
+
.icon-umbrella:before { content: "\f0e9"; }
|
1392 |
+
.icon-paste:before { content: "\f0ea"; }
|
1393 |
+
.icon-lightbulb:before { content: "\f0eb"; }
|
1394 |
+
.icon-exchange:before { content: "\f0ec"; }
|
1395 |
+
.icon-cloud-download:before { content: "\f0ed"; }
|
1396 |
+
.icon-cloud-upload:before { content: "\f0ee"; }
|
1397 |
+
|
1398 |
+
.icon-user-md:before { content: "\f0f0"; }
|
1399 |
+
.icon-stethoscope:before { content: "\f0f1"; }
|
1400 |
+
.icon-suitcase:before { content: "\f0f2"; }
|
1401 |
+
.icon-bell-alt:before { content: "\f0f3"; }
|
1402 |
+
.icon-coffee:before { content: "\f0f4"; }
|
1403 |
+
.icon-food:before { content: "\f0f5"; }
|
1404 |
+
.icon-file-alt:before { content: "\f0f6"; }
|
1405 |
+
.icon-building:before { content: "\f0f7"; }
|
1406 |
+
.icon-hospital:before { content: "\f0f8"; }
|
1407 |
+
.icon-ambulance:before { content: "\f0f9"; }
|
1408 |
+
.icon-medkit:before { content: "\f0fa"; }
|
1409 |
+
.icon-fighter-jet:before { content: "\f0fb"; }
|
1410 |
+
.icon-beer:before { content: "\f0fc"; }
|
1411 |
+
.icon-h-sign:before { content: "\f0fd"; }
|
1412 |
+
.icon-plus-sign-alt:before { content: "\f0fe"; }
|
1413 |
+
|
1414 |
+
.icon-double-angle-left:before { content: "\f100"; }
|
1415 |
+
.icon-double-angle-right:before { content: "\f101"; }
|
1416 |
+
.icon-double-angle-up:before { content: "\f102"; }
|
1417 |
+
.icon-double-angle-down:before { content: "\f103"; }
|
1418 |
+
.icon-angle-left:before { content: "\f104"; }
|
1419 |
+
.icon-angle-right:before { content: "\f105"; }
|
1420 |
+
.icon-angle-up:before { content: "\f106"; }
|
1421 |
+
.icon-angle-down:before { content: "\f107"; }
|
1422 |
+
.icon-desktop:before { content: "\f108"; }
|
1423 |
+
.icon-laptop:before { content: "\f109"; }
|
1424 |
+
.icon-tablet:before { content: "\f10a"; }
|
1425 |
+
.icon-mobile-phone:before { content: "\f10b"; }
|
1426 |
+
.icon-circle-blank:before { content: "\f10c"; }
|
1427 |
+
.icon-quote-left:before { content: "\f10d"; }
|
1428 |
+
.icon-quote-right:before { content: "\f10e"; }
|
1429 |
+
|
1430 |
+
.icon-spinner:before { content: "\f110"; }
|
1431 |
+
.icon-circle:before { content: "\f111"; }
|
1432 |
+
.icon-reply:before { content: "\f112"; }
|
1433 |
+
.icon-github-alt:before { content: "\f113"; }
|
1434 |
+
.icon-folder-close-alt:before { content: "\f114"; }
|
1435 |
+
.icon-folder-open-alt:before { content: "\f115"; }
|
1436 |
+
|
1437 |
+
/* Button Pack - Flat */
|
1438 |
+
|
1439 |
+
.inbound-flat-btn{
|
1440 |
+
display:block;
|
1441 |
+
float:left;
|
1442 |
+
padding:.6em .6em;
|
1443 |
+
font-size:1.1em;
|
1444 |
+
margin:1em .5em;
|
1445 |
+
color:#fff;
|
1446 |
+
width:16em;
|
1447 |
+
text-decoration:none;
|
1448 |
+
cursor:pointer;
|
1449 |
+
font-family:helvetica;
|
1450 |
+
line-height:2;
|
1451 |
+
position:relative;
|
1452 |
+
z-index:2;
|
1453 |
+
overflow:hidden;
|
1454 |
+
text-shadow:0 -1px 0 rgba(0,0,0,.35);
|
1455 |
+
}
|
1456 |
+
.inbound-flat-btn span.icon{
|
1457 |
+
display:block;
|
1458 |
+
float:left;
|
1459 |
+
margin:-.38em;
|
1460 |
+
font-size:1.6em;
|
1461 |
+
width:20%;
|
1462 |
+
height:56px;
|
1463 |
+
text-align:center;
|
1464 |
+
line-height:2.2;
|
1465 |
+
margin-right:1em;
|
1466 |
+
}
|
1467 |
+
|
1468 |
+
.inbound-flat-btn.download{
|
1469 |
+
background:#2ecc71;
|
1470 |
+
}
|
1471 |
+
.inbound-flat-btn.download span.icon{
|
1472 |
+
background:#27ae60
|
1473 |
+
}
|
1474 |
+
.inbound-flat-btn.dribbble{
|
1475 |
+
background:#ea4c89
|
1476 |
+
}
|
1477 |
+
.inbound-flat-btn.dribbble span.icon{
|
1478 |
+
background:#c24879
|
1479 |
+
}
|
1480 |
+
.inbound-flat-btn.facebook{
|
1481 |
+
background:#4d69a2
|
1482 |
+
}
|
1483 |
+
.inbound-flat-btn.facebook span.icon{
|
1484 |
+
background:#2f477a
|
1485 |
+
}
|
1486 |
+
|
1487 |
+
.inbound-flat-btn:after{content:'';
|
1488 |
+
display:block;
|
1489 |
+
width:100%;
|
1490 |
+
height:100%;
|
1491 |
+
box-shadow:inset 0 -2px 0 rgba(0,0,0,.25);
|
1492 |
+
position:absolute;
|
1493 |
+
margin:-2.6em -.6em;}
|
1494 |
+
|
1495 |
+
.inbound-flat-btn:active{
|
1496 |
+
height:54px;
|
1497 |
+
top:2px;
|
1498 |
+
}
|
1499 |
+
.inbound-flat-btn:active:after{
|
1500 |
+
box-shadow:inset 0 -2px 0 rgba(0,0,0,0);
|
1501 |
+
}
|
1502 |
+
/* Button Pack - Sunk */
|
1503 |
+
.inbound-sunk-button-wrapper {
|
1504 |
+
width: 165px;
|
1505 |
+
background: #E0E0E0;
|
1506 |
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#E9E9E9', endColorstr='#D7D7D7');
|
1507 |
+
background: -webkit-gradient(linear, left top, left bottom, from(#E9E9E9), to(#D7D7D7));
|
1508 |
+
background: -moz-linear-gradient(top, #E9E9E9, #D7D7D7);
|
1509 |
+
padding: 8px;
|
1510 |
+
-webkit-box-shadow: inset 0px 2px 2px #B2B3B5, 0px 1px 0 #fff;
|
1511 |
+
-moz-box-shadow: inset 0px 2px 2px #B2B3B5, 0px 1px 0 #fff;
|
1512 |
+
-o-box-shadow: inset 0px 2px 2px #B2B3B5, 0px 1px 0 #fff;
|
1513 |
+
-khtml-box-shadow: inset 0px 2px 2px #B2B3B5, 0px 1px 0 #fff;
|
1514 |
+
box-shadow: inset 0px 2px 2px #B2B3B5, 0px 1px 0 #fff;
|
1515 |
+
-webkit-border-radius: 50px;
|
1516 |
+
-moz-border-radius: 50px;
|
1517 |
+
-o-border-radius: 50px;
|
1518 |
+
-khtml-border-radius: 50px;
|
1519 |
+
border-radius: 50px;
|
1520 |
+
}
|
1521 |
+
a.inbound-sunk-button {
|
1522 |
+
display: block;
|
1523 |
+
width: 165px;
|
1524 |
+
height: 35px;
|
1525 |
+
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
1526 |
+
font-size: 14px;
|
1527 |
+
text-align: center;
|
1528 |
+
line-height: 34px;
|
1529 |
+
text-decoration: none;
|
1530 |
+
-webkit-border-radius: 50px;
|
1531 |
+
-moz-border-radius: 50px;
|
1532 |
+
-o-border-radius: 50px;
|
1533 |
+
-khtml-border-radius: 50px;
|
1534 |
+
border-radius: 50px;
|
1535 |
+
font-weight: bold;
|
1536 |
+
}
|
1537 |
+
a.inbound-sunk-button:hover, a.inbound-sunk-button:active {
|
1538 |
+
border: none;
|
1539 |
+
}
|
1540 |
+
a.inbound-sunk-light {
|
1541 |
+
background: #F5F5F5;
|
1542 |
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFF', endColorstr='#ECECEC');
|
1543 |
+
background: -webkit-gradient(linear, left top, left bottom, from(#FFF), to(#ECECEC));
|
1544 |
+
background: -moz-linear-gradient(top, #FFFFFF, #ECECEC);
|
1545 |
+
color: #858585;
|
1546 |
+
text-shadow: 0px 1px 0px #FFF;
|
1547 |
+
-webkit-box-shadow: inset 0px 1px 0 #FFF, 0px 1px 0 #B5B5B5;
|
1548 |
+
-moz-box-shadow: inset 0px 1px 0 #fff, 0px 1px 0 #B5B5B5;
|
1549 |
+
-o-box-shadow: inset 0px 1px 0 #fff, 0px 1px 0 #B5B5B5;
|
1550 |
+
-khtml-box-shadow: inset 0px 1px 0 #fff, 0px 1px 0 #B5B5B5;
|
1551 |
+
box-shadow: inset 0px 1px 0 #FFF, 0px 1px 0 #B5B5B5;
|
1552 |
+
}
|
1553 |
+
a.inbound-sunk-light:hover {
|
1554 |
+
background: #FFF;
|
1555 |
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFF', endColorstr='#F7F7F7');
|
1556 |
+
background: -webkit-gradient(linear, left top, left bottom, from(#FFF), to(#F7F7F7));
|
1557 |
+
background: -moz-linear-gradient(top, #FFFFFF, #F7F7F7);
|
1558 |
+
color: #717171;
|
1559 |
+
}
|
1560 |
+
a.inbound-sunk-light:active {
|
1561 |
+
background: #EEE;
|
1562 |
+
color: #717171;
|
1563 |
+
-webkit-box-shadow: inset 0px 2px 3px #AAA, 0px 1px 0 #B5B5B5;
|
1564 |
+
-moz-box-shadow: inset 0px 2px 3px #aaa, 0px 1px 0 #B5B5B5;
|
1565 |
+
-o-box-shadow: inset 0px 2px 3px #aaa, 0px 1px 0 #B5B5B5;
|
1566 |
+
-khtml-box-shadow: inset 0px 2px 3px #aaa, 0px 1px 0 #B5B5B5;
|
1567 |
+
box-shadow: inset 0px 2px 3px #AAA, 0px 1px 0 #B5B5B5;
|
1568 |
+
}
|
shared/inbound-shortcodes/css/ie7-render.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
.icon-large{font-size:1.3333333333333333em;margin-top:-4px;padding-top:3px;margin-bottom:-4px;padding-bottom:3px;vertical-align:middle}.nav [class^="icon-"],.nav [class*=" icon-"]{vertical-align:inherit;margin-top:-4px;padding-top:3px;margin-bottom:-4px;padding-bottom:3px}.nav [class^="icon-"].icon-large,.nav [class*=" icon-"].icon-large{vertical-align:-25%}.nav-pills [class^="icon-"].icon-large,.nav-tabs [class^="icon-"].icon-large,.nav-pills [class*=" icon-"].icon-large,.nav-tabs [class*=" icon-"].icon-large{line-height:.75em;margin-top:-7px;padding-top:5px;margin-bottom:-5px;padding-bottom:4px}.btn [class^="icon-"].pull-left,.btn [class*=" icon-"].pull-left,.btn [class^="icon-"].pull-right,.btn [class*=" icon-"].pull-right{vertical-align:inherit}.btn [class^="icon-"].icon-large,.btn [class*=" icon-"].icon-large{margin-top:-0.5em}a [class^="icon-"],a [class*=" icon-"]{cursor:pointer}ul.icons{text-indent:-1.5em;margin-left:3em}.icon-glass{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-music{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-search{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-envelope{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-heart{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-star{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-star-empty{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-user{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-film{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-th-large{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-th{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-th-list{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-ok{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-remove{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-zoom-in{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-zoom-out{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-off{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-signal{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-cog{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-trash{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-home{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-file{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-time{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-road{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-download-alt{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-download{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-upload{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-inbox{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-play-circle{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-repeat{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-refresh{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-list-alt{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-lock{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-flag{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-headphones{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-volume-off{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-volume-down{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-volume-up{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-qrcode{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-barcode{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-tag{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-tags{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-book{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-bookmark{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-print{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-camera{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-font{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-bold{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-italic{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-text-height{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-text-width{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-align-left{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-align-center{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-align-right{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-align-justify{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-list{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-indent-left{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-indent-right{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-facetime-video{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-picture{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-pencil{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-map-marker{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-adjust{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-tint{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-edit{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-share{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-check{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-move{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-step-backward{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-fast-backward{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-backward{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-play{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-pause{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-stop{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-forward{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-fast-forward{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-step-forward{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-eject{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-chevron-left{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-chevron-right{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-plus-sign{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-minus-sign{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-remove-sign{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-ok-sign{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-question-sign{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-info-sign{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-screenshot{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-remove-circle{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-ok-circle{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-ban-circle{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-arrow-left{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-arrow-right{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-arrow-up{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-arrow-down{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-share-alt{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-resize-full{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-resize-small{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-plus{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-minus{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-asterisk{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-exclamation-sign{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-gift{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-leaf{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-fire{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-eye-open{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-eye-close{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-warning-sign{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-plane{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-calendar{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-random{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-comment{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-magnet{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-chevron-up{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-chevron-down{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-retweet{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-shopping-cart{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-folder-close{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-folder-open{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-resize-vertical{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-resize-horizontal{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-bar-chart{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-twitter-sign{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-facebook-sign{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-camera-retro{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-key{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-cogs{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-comments{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-thumbs-up{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-thumbs-down{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-star-half{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-heart-empty{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-signout{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-linkedin-sign{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-pushpin{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-external-link{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-signin{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-trophy{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-github-sign{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-upload-alt{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-lemon{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-phone{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-check-empty{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-bookmark-empty{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-phone-sign{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-twitter{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-facebook{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-github{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-unlock{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-credit-card{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-rss{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-hdd{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-bullhorn{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-bell{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-certificate{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-hand-right{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-hand-left{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-hand-up{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-hand-down{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-circle-arrow-left{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-circle-arrow-right{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-circle-arrow-up{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-circle-arrow-down{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-globe{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-wrench{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-tasks{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-filter{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-briefcase{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-fullscreen{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-group{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-link{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-cloud{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-beaker{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-cut{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-copy{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-paper-clip{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-save{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-sign-blank{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-reorder{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-list-ul{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-list-ol{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-strikethrough{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-underline{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-table{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-magic{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-truck{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-pinterest{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-pinterest-sign{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-google-plus-sign{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-google-plus{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-money{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-caret-down{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-caret-up{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-caret-left{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-caret-right{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-columns{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-sort{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-sort-down{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-sort-up{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-envelope-alt{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-linkedin{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-undo{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-legal{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-dashboard{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-comment-alt{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-comments-alt{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-bolt{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-sitemap{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-umbrella{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-paste{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-lightbulb{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-exchange{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-cloud-download{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-cloud-upload{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-user-md{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-stethoscope{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-suitcase{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-bell-alt{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-coffee{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-food{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-file-alt{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-building{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-hospital{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-ambulance{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-medkit{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-fighter-jet{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-beer{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-h-sign{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-plus-sign-alt{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-double-angle-left{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-double-angle-right{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-double-angle-up{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-double-angle-down{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-angle-left{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-angle-right{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-angle-up{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-angle-down{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-desktop{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-laptop{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-tablet{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-mobile-phone{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-circle-blank{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-quote-left{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-quote-right{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-spinner{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-circle{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-reply{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-github-alt{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-folder-close-alt{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}.icon-folder-open-alt{*zoom:expression(this.runtimeStyle['zoom'] = '1',this.innerHTML = '')}
|
shared/inbound-shortcodes/css/shortcodes.css
ADDED
@@ -0,0 +1,491 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
#inbound-shortcodes-popup{
|
3 |
+
width:100%;
|
4 |
+
overflow:hidden;
|
5 |
+
position: relative;
|
6 |
+
}
|
7 |
+
#inbound-shortcodes-popup.no_preview{
|
8 |
+
width:560px;
|
9 |
+
}
|
10 |
+
.small-optional-text {
|
11 |
+
font-size: 10px;
|
12 |
+
font-style: italic;
|
13 |
+
color: #999;
|
14 |
+
font-weight: 200;
|
15 |
+
}
|
16 |
+
.inbound-tab-class-advanced {
|
17 |
+
|
18 |
+
}
|
19 |
+
.inbound-default-form-insert {
|
20 |
+
display: block;
|
21 |
+
}
|
22 |
+
input.short-shortcode-input {
|
23 |
+
width: 520px;
|
24 |
+
}
|
25 |
+
.row-class-helper-block label {
|
26 |
+
display: none !important;
|
27 |
+
}
|
28 |
+
#inbound-shortcodes-form-table .has-child .child-clone-rows .child-clone-row .child-clone-row-form .child-clone-row-form-row.inbound-tab-class-advanced, {
|
29 |
+
display: none;
|
30 |
+
}
|
31 |
+
.parent-inbound_shortcode_helper-block-one .label {
|
32 |
+
display: none !important;
|
33 |
+
}
|
34 |
+
.switch-to-form-builder.button, .switch-to-form-insert.button {
|
35 |
+
font-style: normal;
|
36 |
+
}
|
37 |
+
tbody.hidden-form-settings {
|
38 |
+
display: none;
|
39 |
+
}
|
40 |
+
#inbound_insert_shortcode_two.quick-forms.button-primary.inbound-shortcodes-insert-two {
|
41 |
+
color: #FFF !important;
|
42 |
+
}
|
43 |
+
.show-advanced-fields, .hide-advanced-options {
|
44 |
+
font-size: 12px;
|
45 |
+
color:#000;
|
46 |
+
font-style: normal;
|
47 |
+
cursor: pointer;
|
48 |
+
}
|
49 |
+
.hide-advanced-options {
|
50 |
+
color:#808080;
|
51 |
+
}
|
52 |
+
/* Form Wrap -------------------------- */
|
53 |
+
#inbound-shortcodes-form-wrap{
|
54 |
+
width:65%;
|
55 |
+
float:left;
|
56 |
+
|
57 |
+
}
|
58 |
+
|
59 |
+
#inbound-shortcodes-form-wrap #inbound-shortcodes-form-head{
|
60 |
+
width: 100%;
|
61 |
+
padding-top: 15px;
|
62 |
+
padding-bottom: 15px;
|
63 |
+
padding-left: 15px;
|
64 |
+
overflow: hidden;
|
65 |
+
color:#fff;
|
66 |
+
font-weight:bold;
|
67 |
+
line-height:1;
|
68 |
+
text-shadow:0 -1px 0 #000;
|
69 |
+
background-color:#404040;
|
70 |
+
}
|
71 |
+
.no_preview #inbound-shortcodes-form-wrap, .no_preview #inbound-shortcodes-form-wrap {
|
72 |
+
width: 100%;
|
73 |
+
}
|
74 |
+
#inbound-shortcodes-popup.no_preview #inbound-shortcodes-form-wrap #inbound-shortcodes-form-head{
|
75 |
+
width:100%;
|
76 |
+
}
|
77 |
+
#inbound-shortcodes-form-wrap #inbound-shortcodes-form {
|
78 |
+
width:100%;
|
79 |
+
padding:15px;
|
80 |
+
padding-top: 5px;
|
81 |
+
padding-left: 5%;
|
82 |
+
padding-bottom: 50px;
|
83 |
+
}
|
84 |
+
#inbound-shortcodes-preview {
|
85 |
+
height: 495px; }
|
86 |
+
#inbound-shortcodes-preview {
|
87 |
+
width: 31.7%;
|
88 |
+
max-height: 100%;
|
89 |
+
position: fixed;
|
90 |
+
height:81%;
|
91 |
+
border-left: solid 1px #D0D0D0;
|
92 |
+
}
|
93 |
+
#popup-controls {
|
94 |
+
position: absolute;
|
95 |
+
border-top: 1px solid #CCC;
|
96 |
+
bottom: -7px;
|
97 |
+
width: 100%;
|
98 |
+
background: #CCC;
|
99 |
+
margin: 0px;
|
100 |
+
padding: 0px;
|
101 |
+
padding-top: 10px;
|
102 |
+
padding-bottom: 10px;
|
103 |
+
-webkit-border-bottom-right-radius: 5px;
|
104 |
+
-moz-border-radius-bottomright: 5px;
|
105 |
+
border-bottom-right-radius: 5px;
|
106 |
+
-webkit-border-bottom-left-radius: 5px;
|
107 |
+
-moz-border-radius-bottomleft: 5px;
|
108 |
+
border-bottom-left-radius: 5px;
|
109 |
+
background: #EEE;
|
110 |
+
}
|
111 |
+
#inbound_insert_shortcode_two, #shortcode_cancel, #inbound_save_form {
|
112 |
+
width: 250px;
|
113 |
+
text-align: center;
|
114 |
+
color: #FFF !important;
|
115 |
+
height: 30px;
|
116 |
+
font-size: 17px;
|
117 |
+
line-height: 28px;
|
118 |
+
padding: 0 12px 2px;
|
119 |
+
margin: 0 5px;
|
120 |
+
margin-left: 25px;
|
121 |
+
}
|
122 |
+
#shortcode_cancel, #inbound_insert_shortcode_two {
|
123 |
+
color:#000 !important;
|
124 |
+
}
|
125 |
+
.need-value {
|
126 |
+
border: 1px #F00 solid !important;
|
127 |
+
}
|
128 |
+
/* Preview Wrap
|
129 |
+
* ---------------------------------------- */
|
130 |
+
#inbound-shortcodes-preview-wrap{
|
131 |
+
width: 34%;
|
132 |
+
background: #F7F7F7;
|
133 |
+
border-left: solid 1px #D0D0D0;
|
134 |
+
|
135 |
+
float: left;
|
136 |
+
|
137 |
+
}
|
138 |
+
.tog-hide-it {
|
139 |
+
display: none !important;
|
140 |
+
}
|
141 |
+
#field_instructions {
|
142 |
+
text-align: center;
|
143 |
+
font-size: 10px;
|
144 |
+
margin-top: 10px;
|
145 |
+
}
|
146 |
+
#inbound-shortcodes-popup.no_preview #inbound-shortcodes-preview-wrap{
|
147 |
+
display:none;
|
148 |
+
}
|
149 |
+
#inbound-shortcodes-preview-wrap #inbound-shortcodes-preview-head {
|
150 |
+
width:100%;
|
151 |
+
padding:15px;
|
152 |
+
color:#333;
|
153 |
+
font-weight:bold;
|
154 |
+
line-height:1;
|
155 |
+
text-shadow:0 1px 0px #fff;
|
156 |
+
background-color:#dddddd;
|
157 |
+
background-image:-webkit-gradient(linear, left top, left bottom, from(#dddddd), to(#d0d0d0));
|
158 |
+
background-image:-webkit-linear-gradient(top, #dddddd, #d0d0d0);
|
159 |
+
background-image:-moz-linear-gradient(top, #dddddd, #d0d0d0);
|
160 |
+
background-image:-ms-linear-gradient(top, #dddddd, #d0d0d0);
|
161 |
+
background-image:-o-linear-gradient(top, #dddddd, #d0d0d0);
|
162 |
+
background-image:linear-gradient(top, #dddddd, #d0d0d0);
|
163 |
+
filter:progid:DXImageTransform.Microsoft.gradient(startColorStr='#dddddd', EndColorStr='#d0d0d0');
|
164 |
+
}
|
165 |
+
#inbound-shortcodes--preview-wrap #inbound-shortcodes-nopreview{
|
166 |
+
padding:15px;
|
167 |
+
width:219px;
|
168 |
+
font-size:14px;
|
169 |
+
font-weight:bold;
|
170 |
+
color:#777;
|
171 |
+
text-shadow:0 1px 0 #fff;
|
172 |
+
text-align:center;
|
173 |
+
}
|
174 |
+
|
175 |
+
/* Form Table
|
176 |
+
* ---------------------------------------- */
|
177 |
+
#inbound-shortcodes-form-table {
|
178 |
+
width:520px;
|
179 |
+
position: relative;
|
180 |
+
}
|
181 |
+
#form-extra-controls {
|
182 |
+
position:absolute;right:-100px;
|
183 |
+
}
|
184 |
+
#inbound-shortcodes-form-table tbody tr.form-row{
|
185 |
+
display:block;
|
186 |
+
padding:7px 0;
|
187 |
+
border-bottom:solid 1px #eaeaea;
|
188 |
+
max-width::520px;
|
189 |
+
}
|
190 |
+
#inbound-shortcodes-form-table tbody tr.form-row.has-child{
|
191 |
+
display:block;
|
192 |
+
padding:10px 0 0;
|
193 |
+
border-bottom:none;
|
194 |
+
}
|
195 |
+
#inbound-shortcodes-form-table tbody:last-child tr.form-row{
|
196 |
+
border-bottom:none;
|
197 |
+
}
|
198 |
+
#inbound-shortcodes-form-table tbody tr.form-row td.label{
|
199 |
+
width:120px;
|
200 |
+
max-width:120px;
|
201 |
+
text-align:left;
|
202 |
+
vertical-align:top;
|
203 |
+
line-height:35px;
|
204 |
+
padding-right:20px;
|
205 |
+
font-weight:bold;
|
206 |
+
}
|
207 |
+
#inbound-shortcodes-form-table tbody tr.form-row .field{
|
208 |
+
width:380px;
|
209 |
+
}
|
210 |
+
#inbound-shortcodes-form-table tbody tr.form-row .freshthemes-insert{
|
211 |
+
color:#fff;
|
212 |
+
}
|
213 |
+
|
214 |
+
/* Form Element
|
215 |
+
* ---------------------------------------- */
|
216 |
+
#inbound-shortcodes-form-table input[type="text"],
|
217 |
+
#inbound-shortcodes-form-table input[type="email"],
|
218 |
+
#inbound-shortcodes-form-table input[type="url"],
|
219 |
+
#inbound-shortcodes-form-table input[type="number"],
|
220 |
+
#inbound-shortcodes-form-table input[type="password"],
|
221 |
+
#inbound-shortcodes-form-table textarea{=
|
222 |
+
padding:5px 6px;
|
223 |
+
margin:0 0 0px 0;
|
224 |
+
}
|
225 |
+
#inbound-shortcodes-form-table textarea{
|
226 |
+
max-width: 100%;
|
227 |
+
overflow:auto;
|
228 |
+
}
|
229 |
+
#inbound-shortcodes-form-table .has-child .child-clone-rows .child-clone-row:last-child{
|
230 |
+
margin-bottom: 0px;
|
231 |
+
}
|
232 |
+
#inbound-shortcodes-form-table tbody tr.form-row .field .inbound-shortcodes-form-desc,
|
233 |
+
#inbound-shortcodes-form-table tbody tr.form-row .child-clone-row-desc {
|
234 |
+
display:block;
|
235 |
+
font-size:11px;
|
236 |
+
line-height:16px;
|
237 |
+
color:#999;
|
238 |
+
font-style:italic;
|
239 |
+
clear:both;
|
240 |
+
}
|
241 |
+
|
242 |
+
/* Sortable
|
243 |
+
* ---------------------------------------- */
|
244 |
+
#inbound-shortcodes-form-table .has-child #form-child-add{
|
245 |
+
display:block;
|
246 |
+
width:520px;
|
247 |
+
margin: 0 0 0px;
|
248 |
+
padding: 3px 20px;
|
249 |
+
height:auto;
|
250 |
+
text-align:center;
|
251 |
+
font-weight:bold;
|
252 |
+
}
|
253 |
+
#inbound-shortcodes-form-table .has-child .child-clone-rows {
|
254 |
+
display: block;
|
255 |
+
}
|
256 |
+
#inbound-shortcodes-form-table .has-child .child-clone-row-field {
|
257 |
+
margin-bottom:15px;
|
258 |
+
}
|
259 |
+
#inbound-shortcodes-form-table .has-child .child-clone-rows .child-clone-row {
|
260 |
+
padding:10px 20px 0px;
|
261 |
+
background:#FFF;
|
262 |
+
border:solid 1px #ddd;
|
263 |
+
margin-bottom:15px;
|
264 |
+
cursor:move;
|
265 |
+
-moz-border-radius:3px;
|
266 |
+
border-radius:3px;
|
267 |
+
}
|
268 |
+
.form-field-row-number {
|
269 |
+
position: absolute;
|
270 |
+
left: -12px;
|
271 |
+
font-size: 18px;
|
272 |
+
}
|
273 |
+
#inbound-shortcodes-form-table .has-child .sortable-placeholder {
|
274 |
+
border:dashed 2px #e0e0e0;
|
275 |
+
margin-bottom:10px;
|
276 |
+
-moz-border-radius:5px;
|
277 |
+
border-radius:5px;
|
278 |
+
background:#f7f7f7;
|
279 |
+
height:40px;
|
280 |
+
}
|
281 |
+
#inbound-shortcodes-form-table .has-child .child-clone-rows .child-clone-row .child-clone-row-form {
|
282 |
+
display:block;
|
283 |
+
margin-bottom:5px;
|
284 |
+
}
|
285 |
+
#inbound-shortcodes-form-table .has-child .child-clone-rows .child-clone-row .child-clone-row-form .child-clone-row-form-row {
|
286 |
+
display:block;
|
287 |
+
}
|
288 |
+
#inbound-shortcodes-form-table .has-child .child-clone-rows .child-clone-row .child-clone-row-form .child-clone-row-form-row .child-clone-row-field input[type="text"],
|
289 |
+
#inbound-shortcodes-form-table .has-child .child-clone-rows .child-clone-row .child-clone-row-form .child-clone-row-form-row .child-clone-row-field textarea{
|
290 |
+
width: 100%;
|
291 |
+
}
|
292 |
+
#inbound-shortcodes-form-table .has-child .child-clone-rows .child-clone-row .child-clone-row-form .child-clone-row-form-row .child-clone-row-field textarea{
|
293 |
+
min-height: 35px;
|
294 |
+
margin-bottom: 0px;
|
295 |
+
}
|
296 |
+
#inbound-shortcodes-form-table .has-child .child-clone-rows .child-clone-row .child-clone-row-form .child-clone-row-form-row .child-clone-row-label label {
|
297 |
+
display:block;
|
298 |
+
font-weight:bold;
|
299 |
+
padding-bottom:5px;
|
300 |
+
line-height:1;
|
301 |
+
}
|
302 |
+
#inbound-shortcodes-form-table .has-child .child-clone-rows .child-clone-row .child-clone-row-remove {
|
303 |
+
color: #F00;
|
304 |
+
padding: 1px;
|
305 |
+
border-radius: 5px;
|
306 |
+
padding-top: 0px;
|
307 |
+
padding-bottom: 0px;
|
308 |
+
cursor: pointer;
|
309 |
+
}
|
310 |
+
#inbound-shortcodes-form-table .has-child .child-clone-rows .child-clone-row .child-clone-row-remove:hover {
|
311 |
+
color:#fff;
|
312 |
+
background:#FF0000;
|
313 |
+
}
|
314 |
+
|
315 |
+
/* Button */
|
316 |
+
#inbound-shortcodes-form-table .field a.button-primary.inbound-shortcodes-insert{
|
317 |
+
color:#FFF;
|
318 |
+
margin-top: -10px;
|
319 |
+
font-size: 17px;
|
320 |
+
width: 100%;
|
321 |
+
text-align: center;
|
322 |
+
}
|
323 |
+
/* Special Fields */
|
324 |
+
.inbound-hidden-row {
|
325 |
+
display: none !important;
|
326 |
+
}
|
327 |
+
.row-class-checkbox {
|
328 |
+
display: inline-block !important;
|
329 |
+
}
|
330 |
+
.row-child-class-checkbox {
|
331 |
+
margin-left: 15px;
|
332 |
+
}
|
333 |
+
.child-options-toggles {
|
334 |
+
float: right;
|
335 |
+
padding-right: 10px;
|
336 |
+
margin-top: -7px;
|
337 |
+
cursor: pointer;
|
338 |
+
font-size: 10px;
|
339 |
+
text-decoration: none;
|
340 |
+
}
|
341 |
+
.small-required-text {
|
342 |
+
color:red;
|
343 |
+
padding-left: 3px;
|
344 |
+
}
|
345 |
+
.shortcode-quick_insert_inbound_form_shortcode #inbound-shortcodes-form-table tbody tr.form-row td.label {
|
346 |
+
line-height: 29px !important;
|
347 |
+
}
|
348 |
+
.shortcode-quick_insert_inbound_form_shortcode ol.steps {
|
349 |
+
display: none;
|
350 |
+
}
|
351 |
+
#inbound-shortcodes-form-table tbody.parent-inbound_shortcode_heading_design tr.form-row td.label {
|
352 |
+
display: none;
|
353 |
+
}
|
354 |
+
#inbound-shortcodes-form-table tbody.parent-inbound_shortcode_notify tr.form-row td.label, #inbound-shortcodes-form-table tbody.parent-inbound_shortcode_insert_default tr.form-row td.label {
|
355 |
+
line-height: 14px;
|
356 |
+
}
|
357 |
+
.parent-inbound_shortcode_form_name {
|
358 |
+
margin-top: 10px;
|
359 |
+
}
|
360 |
+
/* tinmyce icons */
|
361 |
+
.wp_themeSkin .mceIcon.mce_editor-icon-forms {
|
362 |
+
background: url(../images/inbound_form_ico.png) 3px no-repeat;
|
363 |
+
}
|
364 |
+
.wp_themeSkin .mceIcon.mce_editor-icon-quick-forms {
|
365 |
+
background: url(../images/inbound_form_insert_ico.png) 6px 4px no-repeat;
|
366 |
+
}
|
367 |
+
.wp_themeSkin .mceIcon.mce_editor-icon-button {
|
368 |
+
background: url(../images/inbound_button_ico.png) 3px no-repeat;
|
369 |
+
}
|
370 |
+
.wp_themeSkin .mceIcon.mce_editor-icon-columns {
|
371 |
+
background: url(../images/inbound_columns_ico.png) 3px no-repeat;
|
372 |
+
}
|
373 |
+
/* Step Panel */
|
374 |
+
.steps *, .steps :after, .steps :before {
|
375 |
+
-webkit-box-sizing: border-box;
|
376 |
+
-moz-box-sizing: border-box;
|
377 |
+
box-sizing: border-box;
|
378 |
+
}
|
379 |
+
|
380 |
+
/* .step-link:before + .step-item padding + .step-item border */
|
381 |
+
.steps {
|
382 |
+
overflow: hidden;
|
383 |
+
list-style: none;
|
384 |
+
margin: 0px;
|
385 |
+
margin-top: 5px;
|
386 |
+
padding: 0;
|
387 |
+
counter-reset: steps;
|
388 |
+
-webkit-user-select: none;
|
389 |
+
-moz-user-select: none;
|
390 |
+
user-select: none;
|
391 |
+
}
|
392 |
+
.steps a:focus, .steps a:active {
|
393 |
+
outline: none;
|
394 |
+
}
|
395 |
+
.step-item {
|
396 |
+
counter-increment: steps;
|
397 |
+
float: left;
|
398 |
+
width: 24%;
|
399 |
+
border-top: 0.1em solid #c7c7c7;
|
400 |
+
border-bottom: 0.1em solid #c7c7c7;
|
401 |
+
padding: .5em 0;
|
402 |
+
background: #efefef;
|
403 |
+
position: relative;
|
404 |
+
}
|
405 |
+
.step-item.first {
|
406 |
+
border-left: 0.1em solid #c7c7c7;
|
407 |
+
}
|
408 |
+
.step-item.last {
|
409 |
+
border-right: 0.1em solid #c7c7c7;
|
410 |
+
}
|
411 |
+
.step-item:after {
|
412 |
+
content: '';
|
413 |
+
position: absolute;
|
414 |
+
background: inherit;
|
415 |
+
width: 21px;
|
416 |
+
height: 23px;
|
417 |
+
-webkit-transform: rotate(45deg);
|
418 |
+
-moz-transform: rotate(45deg);
|
419 |
+
-ms-transform: rotate(45deg);
|
420 |
+
-o-transform: rotate(45deg);
|
421 |
+
transform: rotate(45deg);
|
422 |
+
border-right: 0.1em solid #c7c7c7;
|
423 |
+
border-top: 0.1em solid #c7c7c7;
|
424 |
+
top: .3em;
|
425 |
+
left: 100%;
|
426 |
+
margin-left: -0.95459em;
|
427 |
+
z-index: 2;
|
428 |
+
}
|
429 |
+
.step-item.last:after {
|
430 |
+
content: none;
|
431 |
+
}
|
432 |
+
|
433 |
+
.step-link {
|
434 |
+
color: #999;
|
435 |
+
display: block;
|
436 |
+
text-align: center;
|
437 |
+
text-decoration: none;
|
438 |
+
-webkit-transition: 0.25s;
|
439 |
+
-moz-transition: 0.25s;
|
440 |
+
-o-transition: 0.25s;
|
441 |
+
transition: 0.25s;
|
442 |
+
}
|
443 |
+
.step-link:before {
|
444 |
+
-webkit-transition: 0.25s;
|
445 |
+
-moz-transition: 0.25s;
|
446 |
+
-o-transition: 0.25s;
|
447 |
+
transition: 0.25s;
|
448 |
+
content: counter(steps);
|
449 |
+
display: -moz-inline-stack;
|
450 |
+
display: inline-block;
|
451 |
+
vertical-align: middle;
|
452 |
+
*vertical-align: auto;
|
453 |
+
zoom: 1;
|
454 |
+
*display: inline;
|
455 |
+
text-align: center;
|
456 |
+
background: #bcbcbc;
|
457 |
+
border-radius: 50%;
|
458 |
+
width: 1.5em;
|
459 |
+
height: 1.5em;
|
460 |
+
line-height: 1.5em;
|
461 |
+
color: white;
|
462 |
+
margin: 0 1em;
|
463 |
+
}
|
464 |
+
.step-link:hover {
|
465 |
+
color: #333;
|
466 |
+
}
|
467 |
+
.step-link:hover:before {
|
468 |
+
background: #22a4bc;
|
469 |
+
}
|
470 |
+
|
471 |
+
.step-item.active {
|
472 |
+
background: white;
|
473 |
+
border-color: #949494;
|
474 |
+
}
|
475 |
+
.step-item.active:after {
|
476 |
+
border-color: inherit;
|
477 |
+
}
|
478 |
+
.step-item.active .step-link {
|
479 |
+
color: #333;
|
480 |
+
}
|
481 |
+
.step-item.active .step-link:before {
|
482 |
+
background: #22a4bc;
|
483 |
+
}
|
484 |
+
|
485 |
+
.no-csstransforms .step-item {
|
486 |
+
border-right: .1em solid #ccc;
|
487 |
+
border-left: .1em solid #fff;
|
488 |
+
}
|
489 |
+
.no-csstransforms .step-item:after, .no-csstransforms .step-item:before {
|
490 |
+
content: none !important;
|
491 |
+
}
|
shared/inbound-shortcodes/fonts/fontawesome/FontAwesome.otf
ADDED
Binary file
|
shared/inbound-shortcodes/fonts/fontawesome/README.md
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#Font Awesome 3.0
|
2 |
+
##the iconic font designed for use with Twitter Bootstrap
|
3 |
+
|
4 |
+
The full suite of pictographic icons, examples, and documentation can be found at:
|
5 |
+
http://fortawesome.github.com/Font-Awesome/
|
6 |
+
|
7 |
+
|
8 |
+
##License
|
9 |
+
- The Font Awesome font is licensed under the SIL Open Font License - http://scripts.sil.org/OFL
|
10 |
+
- Font Awesome CSS, LESS, and SASS files are licensed under the MIT License - http://opensource.org/licenses/mit-license.html
|
11 |
+
- The Font Awesome pictograms are licensed under the CC BY 3.0 License - http://creativecommons.org/licenses/by/3.0/
|
12 |
+
- Attribution is no longer required in Font Awesome 3.0, but much appreciated: "Font Awesome by Dave Gandy - http://fortawesome.github.com/Font-Awesome"
|
13 |
+
|
14 |
+
##Contact
|
15 |
+
- Email: dave@davegandy.com
|
16 |
+
- Twitter: http://twitter.com/fortaweso_me
|
17 |
+
- Work: Lead Product Designer @ http://kyru.us
|
shared/inbound-shortcodes/fonts/fontawesome/fontawesome-webfont.eot
ADDED
Binary file
|
shared/inbound-shortcodes/fonts/fontawesome/fontawesome-webfont.svg
ADDED
@@ -0,0 +1,284 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" standalone="no"?>
|
2 |
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
|
3 |
+
<svg xmlns="http://www.w3.org/2000/svg">
|
4 |
+
<metadata></metadata>
|
5 |
+
<defs>
|
6 |
+
<font id="fontawesomeregular" horiz-adv-x="1536" >
|
7 |
+
<font-face units-per-em="1792" ascent="1536" descent="-256" />
|
8 |
+
<missing-glyph horiz-adv-x="448" />
|
9 |
+
<glyph unicode=" " horiz-adv-x="448" />
|
10 |
+
<glyph unicode="	" horiz-adv-x="448" />
|
11 |
+
<glyph unicode=" " horiz-adv-x="448" />
|
12 |
+
<glyph unicode="¨" horiz-adv-x="1792" />
|
13 |
+
<glyph unicode="©" horiz-adv-x="1792" />
|
14 |
+
<glyph unicode="®" horiz-adv-x="1792" />
|
15 |
+
<glyph unicode="´" horiz-adv-x="1792" />
|
16 |
+
<glyph unicode="Æ" horiz-adv-x="1792" />
|
17 |
+
<glyph unicode=" " horiz-adv-x="768" />
|
18 |
+
<glyph unicode=" " />
|
19 |
+
<glyph unicode=" " horiz-adv-x="768" />
|
20 |
+
<glyph unicode=" " />
|
21 |
+
<glyph unicode=" " horiz-adv-x="512" />
|
22 |
+
<glyph unicode=" " horiz-adv-x="384" />
|
23 |
+
<glyph unicode=" " horiz-adv-x="256" />
|
24 |
+
<glyph unicode=" " horiz-adv-x="256" />
|
25 |
+
<glyph unicode=" " horiz-adv-x="192" />
|
26 |
+
<glyph unicode=" " horiz-adv-x="307" />
|
27 |
+
<glyph unicode=" " horiz-adv-x="85" />
|
28 |
+
<glyph unicode=" " horiz-adv-x="307" />
|
29 |
+
<glyph unicode=" " horiz-adv-x="384" />
|
30 |
+
<glyph unicode="™" horiz-adv-x="1792" />
|
31 |
+
<glyph unicode="∞" horiz-adv-x="1792" />
|
32 |
+
<glyph unicode="≠" horiz-adv-x="1792" />
|
33 |
+
<glyph unicode="" horiz-adv-x="500" d="M0 0z" />
|
34 |
+
<glyph unicode="" horiz-adv-x="1792" d="M1699 1350q0 -35 -43 -78l-632 -632v-768h320q26 0 45 -19t19 -45t-19 -45t-45 -19h-896q-26 0 -45 19t-19 45t19 45t45 19h320v768l-632 632q-43 43 -43 78q0 23 18 36.5t38 17.5t43 4h1408q23 0 43 -4t38 -17.5t18 -36.5z" />
|
35 |
+
<glyph unicode="" d="M1536 1312v-1120q0 -50 -34 -89t-86 -60.5t-103.5 -32t-96.5 -10.5t-96.5 10.5t-103.5 32t-86 60.5t-34 89t34 89t86 60.5t103.5 32t96.5 10.5q105 0 192 -39v537l-768 -237v-709q0 -50 -34 -89t-86 -60.5t-103.5 -32t-96.5 -10.5t-96.5 10.5t-103.5 32t-86 60.5t-34 89 t34 89t86 60.5t103.5 32t96.5 10.5q105 0 192 -39v967q0 31 19 56.5t49 35.5l832 256q12 4 28 4q40 0 68 -28t28 -68z" />
|
36 |
+
<glyph unicode="" horiz-adv-x="1664" d="M1152 704q0 185 -131.5 316.5t-316.5 131.5t-316.5 -131.5t-131.5 -316.5t131.5 -316.5t316.5 -131.5t316.5 131.5t131.5 316.5zM1664 -128q0 -52 -38 -90t-90 -38q-54 0 -90 38l-343 342q-179 -124 -399 -124q-143 0 -273.5 55.5t-225 150t-150 225t-55.5 273.5 t55.5 273.5t150 225t225 150t273.5 55.5t273.5 -55.5t225 -150t150 -225t55.5 -273.5q0 -220 -124 -399l343 -343q37 -37 37 -90z" />
|
37 |
+
<glyph unicode="" horiz-adv-x="1792" d="M1664 32v768q-32 -36 -69 -66q-268 -206 -426 -338q-51 -43 -83 -67t-86.5 -48.5t-102.5 -24.5h-1h-1q-48 0 -102.5 24.5t-86.5 48.5t-83 67q-158 132 -426 338q-37 30 -69 66v-768q0 -13 9.5 -22.5t22.5 -9.5h1472q13 0 22.5 9.5t9.5 22.5zM1664 1083v11v13.5t-0.5 13 t-3 12.5t-5.5 9t-9 7.5t-14 2.5h-1472q-13 0 -22.5 -9.5t-9.5 -22.5q0 -168 147 -284q193 -152 401 -317q6 -5 35 -29.5t46 -37.5t44.5 -31.5t50.5 -27.5t43 -9h1h1q20 0 43 9t50.5 27.5t44.5 31.5t46 37.5t35 29.5q208 165 401 317q54 43 100.5 115.5t46.5 131.5z M1792 1120v-1088q0 -66 -47 -113t-113 -47h-1472q-66 0 -113 47t-47 113v1088q0 66 47 113t113 47h1472q66 0 113 -47t47 -113z" />
|
38 |
+
<glyph unicode="" horiz-adv-x="1792" d="M896 -128q-26 0 -44 18l-624 602q-10 8 -27.5 26t-55.5 65.5t-68 97.5t-53.5 121t-23.5 138q0 220 127 344t351 124q62 0 126.5 -21.5t120 -58t95.5 -68.5t76 -68q36 36 76 68t95.5 68.5t120 58t126.5 21.5q224 0 351 -124t127 -344q0 -221 -229 -450l-623 -600 q-18 -18 -44 -18z" />
|
39 |
+
<glyph unicode="" horiz-adv-x="1664" d="M1664 889q0 -22 -26 -48l-363 -354l86 -500q1 -7 1 -20q0 -21 -10.5 -35.5t-30.5 -14.5q-19 0 -40 12l-449 236l-449 -236q-22 -12 -40 -12q-21 0 -31.5 14.5t-10.5 35.5q0 6 2 20l86 500l-364 354q-25 27 -25 48q0 37 56 46l502 73l225 455q19 41 49 41t49 -41l225 -455 l502 -73q56 -9 56 -46z" />
|
40 |
+
<glyph unicode="" horiz-adv-x="1664" d="M1137 532l306 297l-422 62l-189 382l-189 -382l-422 -62l306 -297l-73 -421l378 199l377 -199zM1664 889q0 -22 -26 -48l-363 -354l86 -500q1 -7 1 -20q0 -50 -41 -50q-19 0 -40 12l-449 236l-449 -236q-22 -12 -40 -12q-21 0 -31.5 14.5t-10.5 35.5q0 6 2 20l86 500 l-364 354q-25 27 -25 48q0 37 56 46l502 73l225 455q19 41 49 41t49 -41l225 -455l502 -73q56 -9 56 -46z" />
|
41 |
+
<glyph unicode="" horiz-adv-x="1408" d="M1408 131q0 -120 -73 -189.5t-194 -69.5h-874q-121 0 -194 69.5t-73 189.5q0 53 3.5 103.5t14 109t26.5 108.5t43 97.5t62 81t85.5 53.5t111.5 20q9 0 42 -21.5t74.5 -48t108 -48t133.5 -21.5t133.5 21.5t108 48t74.5 48t42 21.5q61 0 111.5 -20t85.5 -53.5t62 -81 t43 -97.5t26.5 -108.5t14 -109t3.5 -103.5zM1088 1024q0 -159 -112.5 -271.5t-271.5 -112.5t-271.5 112.5t-112.5 271.5t112.5 271.5t271.5 112.5t271.5 -112.5t112.5 -271.5z" />
|
42 |
+
<glyph unicode="" horiz-adv-x="1920" d="M384 -64v128q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM384 320v128q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM384 704v128q0 26 -19 45t-45 19h-128 q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM1408 -64v512q0 26 -19 45t-45 19h-768q-26 0 -45 -19t-19 -45v-512q0 -26 19 -45t45 -19h768q26 0 45 19t19 45zM384 1088v128q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45 t45 -19h128q26 0 45 19t19 45zM1792 -64v128q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM1408 704v512q0 26 -19 45t-45 19h-768q-26 0 -45 -19t-19 -45v-512q0 -26 19 -45t45 -19h768q26 0 45 19t19 45zM1792 320v128 q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM1792 704v128q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM1792 1088v128q0 26 -19 45t-45 19h-128q-26 0 -45 -19 t-19 -45v-128q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM1920 1248v-1344q0 -66 -47 -113t-113 -47h-1600q-66 0 -113 47t-47 113v1344q0 66 47 113t113 47h1600q66 0 113 -47t47 -113z" />
|
43 |
+
<glyph unicode="" horiz-adv-x="1664" d="M768 512v-384q0 -52 -38 -90t-90 -38h-512q-52 0 -90 38t-38 90v384q0 52 38 90t90 38h512q52 0 90 -38t38 -90zM768 1280v-384q0 -52 -38 -90t-90 -38h-512q-52 0 -90 38t-38 90v384q0 52 38 90t90 38h512q52 0 90 -38t38 -90zM1664 512v-384q0 -52 -38 -90t-90 -38 h-512q-52 0 -90 38t-38 90v384q0 52 38 90t90 38h512q52 0 90 -38t38 -90zM1664 1280v-384q0 -52 -38 -90t-90 -38h-512q-52 0 -90 38t-38 90v384q0 52 38 90t90 38h512q52 0 90 -38t38 -90z" />
|
44 |
+
<glyph unicode="" horiz-adv-x="1792" d="M512 288v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM512 800v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM1152 288v-192q0 -40 -28 -68t-68 -28h-320 q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM512 1312v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM1152 800v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28 h320q40 0 68 -28t28 -68zM1792 288v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM1152 1312v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM1792 800v-192 q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM1792 1312v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68z" />
|
45 |
+
<glyph unicode="" horiz-adv-x="1792" d="M512 288v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM512 800v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM1792 288v-192q0 -40 -28 -68t-68 -28h-960 q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h960q40 0 68 -28t28 -68zM512 1312v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM1792 800v-192q0 -40 -28 -68t-68 -28h-960q-40 0 -68 28t-28 68v192q0 40 28 68t68 28 h960q40 0 68 -28t28 -68zM1792 1312v-192q0 -40 -28 -68t-68 -28h-960q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h960q40 0 68 -28t28 -68z" />
|
46 |
+
<glyph unicode="" horiz-adv-x="1792" d="M1671 970q0 -40 -28 -68l-724 -724l-136 -136q-28 -28 -68 -28t-68 28l-136 136l-362 362q-28 28 -28 68t28 68l136 136q28 28 68 28t68 -28l294 -295l656 657q28 28 68 28t68 -28l136 -136q28 -28 28 -68z" />
|
47 |
+
<glyph unicode="" horiz-adv-x="1408" d="M1298 214q0 -40 -28 -68l-136 -136q-28 -28 -68 -28t-68 28l-294 294l-294 -294q-28 -28 -68 -28t-68 28l-136 136q-28 28 -28 68t28 68l294 294l-294 294q-28 28 -28 68t28 68l136 136q28 28 68 28t68 -28l294 -294l294 294q28 28 68 28t68 -28l136 -136q28 -28 28 -68 t-28 -68l-294 -294l294 -294q28 -28 28 -68z" />
|
48 |
+
<glyph unicode="" horiz-adv-x="1664" d="M1024 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-224v-224q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v224h-224q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h224v224q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5v-224h224 q13 0 22.5 -9.5t9.5 -22.5zM1152 704q0 185 -131.5 316.5t-316.5 131.5t-316.5 -131.5t-131.5 -316.5t131.5 -316.5t316.5 -131.5t316.5 131.5t131.5 316.5zM1664 -128q0 -53 -37.5 -90.5t-90.5 -37.5q-54 0 -90 38l-343 342q-179 -124 -399 -124q-143 0 -273.5 55.5 t-225 150t-150 225t-55.5 273.5t55.5 273.5t150 225t225 150t273.5 55.5t273.5 -55.5t225 -150t150 -225t55.5 -273.5q0 -220 -124 -399l343 -343q37 -37 37 -90z" />
|
49 |
+
<glyph unicode="" horiz-adv-x="1664" d="M1024 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-576q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h576q13 0 22.5 -9.5t9.5 -22.5zM1152 704q0 185 -131.5 316.5t-316.5 131.5t-316.5 -131.5t-131.5 -316.5t131.5 -316.5t316.5 -131.5t316.5 131.5t131.5 316.5z M1664 -128q0 -53 -37.5 -90.5t-90.5 -37.5q-54 0 -90 38l-343 342q-179 -124 -399 -124q-143 0 -273.5 55.5t-225 150t-150 225t-55.5 273.5t55.5 273.5t150 225t225 150t273.5 55.5t273.5 -55.5t225 -150t150 -225t55.5 -273.5q0 -220 -124 -399l343 -343q37 -37 37 -90z " />
|
50 |
+
<glyph unicode="" d="M1536 640q0 -156 -61 -298t-164 -245t-245 -164t-298 -61t-298 61t-245 164t-164 245t-61 298q0 182 80.5 343t226.5 270q43 32 95.5 25t83.5 -50q32 -42 24.5 -94.5t-49.5 -84.5q-98 -74 -151.5 -181t-53.5 -228q0 -104 40.5 -198.5t109.5 -163.5t163.5 -109.5 t198.5 -40.5t198.5 40.5t163.5 109.5t109.5 163.5t40.5 198.5q0 121 -53.5 228t-151.5 181q-42 32 -49.5 84.5t24.5 94.5q31 43 84 50t95 -25q146 -109 226.5 -270t80.5 -343zM896 1408v-640q0 -52 -38 -90t-90 -38t-90 38t-38 90v640q0 52 38 90t90 38t90 -38t38 -90z" />
|
51 |
+
<glyph unicode="" horiz-adv-x="1792" d="M256 96v-192q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM640 224v-320q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v320q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM1024 480v-576q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23 v576q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM1408 864v-960q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v960q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM1792 1376v-1472q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v1472q0 14 9 23t23 9h192q14 0 23 -9t9 -23z" />
|
52 |
+
<glyph unicode="" d="M1024 640q0 106 -75 181t-181 75t-181 -75t-75 -181t75 -181t181 -75t181 75t75 181zM1536 749v-222q0 -12 -8 -23t-20 -13l-185 -28q-19 -54 -39 -91q35 -50 107 -138q10 -12 10 -25t-9 -23q-27 -37 -99 -108t-94 -71q-12 0 -26 9l-138 108q-44 -23 -91 -38 q-16 -136 -29 -186q-7 -28 -36 -28h-222q-14 0 -24.5 8.5t-11.5 21.5l-28 184q-49 16 -90 37l-141 -107q-10 -9 -25 -9q-14 0 -25 11q-126 114 -165 168q-7 10 -7 23q0 12 8 23q15 21 51 66.5t54 70.5q-27 50 -41 99l-183 27q-13 2 -21 12.5t-8 23.5v222q0 12 8 23t19 13 l186 28q14 46 39 92q-40 57 -107 138q-10 12 -10 24q0 10 9 23q26 36 98.5 107.5t94.5 71.5q13 0 26 -10l138 -107q44 23 91 38q16 136 29 186q7 28 36 28h222q14 0 24.5 -8.5t11.5 -21.5l28 -184q49 -16 90 -37l142 107q9 9 24 9q13 0 25 -10q129 -119 165 -170q7 -8 7 -22 q0 -12 -8 -23q-15 -21 -51 -66.5t-54 -70.5q26 -50 41 -98l183 -28q13 -2 21 -12.5t8 -23.5z" />
|
53 |
+
<glyph unicode="" horiz-adv-x="1408" d="M512 800v-576q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v576q0 14 9 23t23 9h64q14 0 23 -9t9 -23zM768 800v-576q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v576q0 14 9 23t23 9h64q14 0 23 -9t9 -23zM1024 800v-576q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v576 q0 14 9 23t23 9h64q14 0 23 -9t9 -23zM1152 76v948h-896v-948q0 -22 7 -40.5t14.5 -27t10.5 -8.5h832q3 0 10.5 8.5t14.5 27t7 40.5zM480 1152h448l-48 117q-7 9 -17 11h-317q-10 -2 -17 -11zM1408 1120v-64q0 -14 -9 -23t-23 -9h-96v-948q0 -83 -47 -143.5t-113 -60.5h-832 q-66 0 -113 58.5t-47 141.5v952h-96q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h309l70 167q15 37 54 63t79 26h320q40 0 79 -26t54 -63l70 -167h309q14 0 23 -9t9 -23z" />
|
54 |
+
<glyph unicode="" horiz-adv-x="1664" d="M1408 544v-480q0 -26 -19 -45t-45 -19h-384v384h-256v-384h-384q-26 0 -45 19t-19 45v480q0 1 0.5 3t0.5 3l575 474l575 -474q1 -2 1 -6zM1631 613l-62 -74q-8 -9 -21 -11h-3q-13 0 -21 7l-692 577l-692 -577q-12 -8 -24 -7q-13 2 -21 11l-62 74q-8 10 -7 23.5t11 21.5 l719 599q32 26 76 26t76 -26l244 -204v195q0 14 9 23t23 9h192q14 0 23 -9t9 -23v-408l219 -182q10 -8 11 -21.5t-7 -23.5z" />
|
55 |
+
<glyph unicode="" horiz-adv-x="1280" d="M128 0h1024v768h-416q-40 0 -68 28t-28 68v416h-512v-1280zM768 896h299l-299 299v-299zM1280 768v-800q0 -40 -28 -68t-68 -28h-1088q-40 0 -68 28t-28 68v1344q0 40 28 68t68 28h544q40 0 88 -20t76 -48l408 -408q28 -28 48 -76t20 -88z" />
|
56 |
+
<glyph unicode="" d="M1088 608v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-384q-13 0 -22.5 9.5t-9.5 22.5v448q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5v-352h288q13 0 22.5 -9.5t9.5 -22.5zM1280 640q0 104 -40.5 198.5t-109.5 163.5t-163.5 109.5t-198.5 40.5t-198.5 -40.5 t-163.5 -109.5t-109.5 -163.5t-40.5 -198.5t40.5 -198.5t109.5 -163.5t163.5 -109.5t198.5 -40.5t198.5 40.5t163.5 109.5t109.5 163.5t40.5 198.5zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5 t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
|
57 |
+
<glyph unicode="" horiz-adv-x="1920" d="M1111 540v4l-24 320q-1 13 -11 22.5t-23 9.5h-186q-13 0 -23 -9.5t-11 -22.5l-24 -320v-4q-1 -12 8 -20t21 -8h244q12 0 21 8t8 20zM1870 73q0 -73 -46 -73h-704q13 0 22 9.5t8 22.5l-20 256q-1 13 -11 22.5t-23 9.5h-272q-13 0 -23 -9.5t-11 -22.5l-20 -256 q-1 -13 8 -22.5t22 -9.5h-704q-46 0 -46 73q0 54 26 116l417 1044q8 19 26 33t38 14h339q-13 0 -23 -9.5t-11 -22.5l-15 -192q-1 -14 8 -23t22 -9h166q13 0 22 9t8 23l-15 192q-1 13 -11 22.5t-23 9.5h339q20 0 38 -14t26 -33l417 -1044q26 -62 26 -116z" />
|
58 |
+
<glyph unicode="" horiz-adv-x="1664" d="M1339 729q17 -41 -14 -70l-448 -448q-18 -19 -45 -19t-45 19l-448 448q-31 29 -14 70q17 39 59 39h256v448q0 26 19 45t45 19h256q26 0 45 -19t19 -45v-448h256q42 0 59 -39zM1632 512q14 0 23 -9t9 -23v-576q0 -14 -9 -23t-23 -9h-1600q-14 0 -23 9t-9 23v576q0 14 9 23 t23 9h192q14 0 23 -9t9 -23v-352h1152v352q0 14 9 23t23 9h192z" />
|
59 |
+
<glyph unicode="" d="M1120 608q0 -12 -10 -24l-319 -319q-9 -9 -23 -9t-23 9l-320 320q-9 9 -9 23q0 13 9.5 22.5t22.5 9.5h192v352q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5 -9.5t9.5 -22.5v-352h192q14 0 23 -9t9 -23zM1280 640q0 104 -40.5 198.5t-109.5 163.5t-163.5 109.5t-198.5 40.5 t-198.5 -40.5t-163.5 -109.5t-109.5 -163.5t-40.5 -198.5t40.5 -198.5t109.5 -163.5t163.5 -109.5t198.5 -40.5t198.5 40.5t163.5 109.5t109.5 163.5t40.5 198.5zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5 t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
|
60 |
+
<glyph unicode="" d="M1120 672q0 -13 -9.5 -22.5t-22.5 -9.5h-192v-352q0 -13 -9.5 -22.5t-22.5 -9.5h-192q-13 0 -22.5 9.5t-9.5 22.5v352h-192q-14 0 -23 9t-9 23q0 12 10 24l319 319q9 9 23 9t23 -9l320 -320q9 -9 9 -23zM1280 640q0 104 -40.5 198.5t-109.5 163.5t-163.5 109.5 t-198.5 40.5t-198.5 -40.5t-163.5 -109.5t-109.5 -163.5t-40.5 -198.5t40.5 -198.5t109.5 -163.5t163.5 -109.5t198.5 -40.5t198.5 40.5t163.5 109.5t109.5 163.5t40.5 198.5zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5 t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
|
61 |
+
<glyph unicode="" d="M1023 576h316q-1 3 -2.5 8t-2.5 8l-212 496h-708l-212 -496q-1 -2 -2.5 -8t-2.5 -8h316l95 -192h320zM1536 546v-482q0 -26 -19 -45t-45 -19h-1408q-26 0 -45 19t-19 45v482q0 62 25 123l238 552q10 25 36.5 42t52.5 17h832q26 0 52.5 -17t36.5 -42l238 -552 q25 -61 25 -123z" />
|
62 |
+
<glyph unicode="" d="M1152 640q0 -37 -33 -56l-512 -288q-14 -8 -31 -8t-32 9q-32 18 -32 55v576q0 37 32 55q31 20 63 1l512 -288q33 -19 33 -56zM1280 640q0 104 -40.5 198.5t-109.5 163.5t-163.5 109.5t-198.5 40.5t-198.5 -40.5t-163.5 -109.5t-109.5 -163.5t-40.5 -198.5t40.5 -198.5 t109.5 -163.5t163.5 -109.5t198.5 -40.5t198.5 40.5t163.5 109.5t109.5 163.5t40.5 198.5zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
|
63 |
+
<glyph unicode="" d="M1536 1280v-448q0 -26 -19 -45t-45 -19h-448q-42 0 -59 40q-17 39 14 69l138 138q-148 137 -349 137q-104 0 -198.5 -40.5t-163.5 -109.5t-109.5 -163.5t-40.5 -198.5t40.5 -198.5t109.5 -163.5t163.5 -109.5t198.5 -40.5q169 0 304 99.5t185 261.5q7 23 30 23h199 q16 0 25 -12q10 -13 7 -27q-39 -175 -147.5 -312t-266 -213t-336.5 -76q-156 0 -298 61t-245 164t-164 245t-61 298t61 298t164 245t245 164t298 61q147 0 284.5 -55.5t244.5 -156.5l130 129q29 31 70 14q39 -17 39 -59z" />
|
64 |
+
<glyph unicode="" d="M1511 480q0 -5 -1 -7q-64 -268 -268 -434.5t-478 -166.5q-146 0 -282.5 55t-243.5 157l-129 -129q-19 -19 -45 -19t-45 19t-19 45v448q0 26 19 45t45 19h448q26 0 45 -19t19 -45t-19 -45l-137 -137q71 -66 161 -102t187 -36q134 0 250 65t186 179q11 17 53 117 q8 23 30 23h192q13 0 22.5 -9.5t9.5 -22.5zM1536 1280v-448q0 -26 -19 -45t-45 -19h-448q-26 0 -45 19t-19 45t19 45l138 138q-148 137 -349 137q-134 0 -250 -65t-186 -179q-11 -17 -53 -117q-8 -23 -30 -23h-199q-13 0 -22.5 9.5t-9.5 22.5v7q65 268 270 434.5t480 166.5 q146 0 284 -55.5t245 -156.5l130 129q19 19 45 19t45 -19t19 -45z" />
|
65 |
+
<glyph unicode="" horiz-adv-x="1792" d="M384 352v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM384 608v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M384 864v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM1536 352v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-960q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h960q13 0 22.5 -9.5t9.5 -22.5z M1536 608v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-960q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h960q13 0 22.5 -9.5t9.5 -22.5zM1536 864v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-960q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h960q13 0 22.5 -9.5 t9.5 -22.5zM1664 160v832q0 13 -9.5 22.5t-22.5 9.5h-1472q-13 0 -22.5 -9.5t-9.5 -22.5v-832q0 -13 9.5 -22.5t22.5 -9.5h1472q13 0 22.5 9.5t9.5 22.5zM1792 1248v-1088q0 -66 -47 -113t-113 -47h-1472q-66 0 -113 47t-47 113v1088q0 66 47 113t113 47h1472q66 0 113 -47 t47 -113z" />
|
66 |
+
<glyph unicode="" horiz-adv-x="1152" d="M704 512q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5q0 -37 19 -67t51 -47l-69 -229q-5 -15 5 -28t26 -13h192q16 0 26 13t5 28l-69 229q32 17 51 47t19 67zM320 768h512v192q0 106 -75 181t-181 75t-181 -75t-75 -181v-192zM1152 672v-576q0 -40 -28 -68 t-68 -28h-960q-40 0 -68 28t-28 68v576q0 40 28 68t68 28h32v192q0 184 132 316t316 132t316 -132t132 -316v-192h32q40 0 68 -28t28 -68z" />
|
67 |
+
<glyph unicode="" horiz-adv-x="1792" d="M320 1280q0 -72 -64 -110v-1266q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v1266q-64 38 -64 110q0 53 37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1792 1216v-763q0 -25 -12.5 -38.5t-39.5 -27.5q-215 -116 -369 -116q-61 0 -123.5 22t-108.5 48 t-115.5 48t-142.5 22q-192 0 -464 -146q-17 -9 -33 -9q-26 0 -45 19t-19 45v742q0 32 31 55q21 14 79 43q236 120 421 120q107 0 200 -29t219 -88q38 -19 88 -19q54 0 117.5 21t110 47t88 47t54.5 21q26 0 45 -19t19 -45z" />
|
68 |
+
<glyph unicode="" horiz-adv-x="1664" d="M1664 650q0 -166 -60 -314l-20 -49l-185 -33q-22 -83 -90.5 -136.5t-156.5 -53.5v-32q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v576q0 14 9 23t23 9h64q14 0 23 -9t9 -23v-32q71 0 130 -35.5t93 -95.5l68 12q29 95 29 193q0 148 -88 279t-236.5 209t-315.5 78 t-315.5 -78t-236.5 -209t-88 -279q0 -98 29 -193l68 -12q34 60 93 95.5t130 35.5v32q0 14 9 23t23 9h64q14 0 23 -9t9 -23v-576q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v32q-88 0 -156.5 53.5t-90.5 136.5l-185 33l-20 49q-60 148 -60 314q0 151 67 291t179 242.5 t266 163.5t320 61t320 -61t266 -163.5t179 -242.5t67 -291z" />
|
69 |
+
<glyph unicode="" horiz-adv-x="768" d="M768 1184v-1088q0 -26 -19 -45t-45 -19t-45 19l-333 333h-262q-26 0 -45 19t-19 45v384q0 26 19 45t45 19h262l333 333q19 19 45 19t45 -19t19 -45z" />
|
70 |
+
<glyph unicode="" horiz-adv-x="1152" d="M768 1184v-1088q0 -26 -19 -45t-45 -19t-45 19l-333 333h-262q-26 0 -45 19t-19 45v384q0 26 19 45t45 19h262l333 333q19 19 45 19t45 -19t19 -45zM1152 640q0 -76 -42.5 -141.5t-112.5 -93.5q-10 -5 -25 -5q-26 0 -45 18.5t-19 45.5q0 21 12 35.5t29 25t34 23t29 35.5 t12 57t-12 57t-29 35.5t-34 23t-29 25t-12 35.5q0 27 19 45.5t45 18.5q15 0 25 -5q70 -27 112.5 -93t42.5 -142z" />
|
71 |
+
<glyph unicode="" horiz-adv-x="1664" d="M768 1184v-1088q0 -26 -19 -45t-45 -19t-45 19l-333 333h-262q-26 0 -45 19t-19 45v384q0 26 19 45t45 19h262l333 333q19 19 45 19t45 -19t19 -45zM1152 640q0 -76 -42.5 -141.5t-112.5 -93.5q-10 -5 -25 -5q-26 0 -45 18.5t-19 45.5q0 21 12 35.5t29 25t34 23t29 35.5 t12 57t-12 57t-29 35.5t-34 23t-29 25t-12 35.5q0 27 19 45.5t45 18.5q15 0 25 -5q70 -27 112.5 -93t42.5 -142zM1408 640q0 -153 -85 -282.5t-225 -188.5q-13 -5 -25 -5q-27 0 -46 19t-19 45q0 39 39 59q56 29 76 44q74 54 115.5 135.5t41.5 173.5t-41.5 173.5 t-115.5 135.5q-20 15 -76 44q-39 20 -39 59q0 26 19 45t45 19q13 0 26 -5q140 -59 225 -188.5t85 -282.5zM1664 640q0 -230 -127 -422.5t-338 -283.5q-13 -5 -26 -5q-26 0 -45 19t-19 45q0 36 39 59q7 4 22.5 10.5t22.5 10.5q46 25 82 51q123 91 192 227t69 289t-69 289 t-192 227q-36 26 -82 51q-7 4 -22.5 10.5t-22.5 10.5q-39 23 -39 59q0 26 19 45t45 19q13 0 26 -5q211 -91 338 -283.5t127 -422.5z" />
|
72 |
+
<glyph unicode="" horiz-adv-x="1408" d="M384 384v-128h-128v128h128zM384 1152v-128h-128v128h128zM1152 1152v-128h-128v128h128zM128 129h384v383h-384v-383zM128 896h384v384h-384v-384zM896 896h384v384h-384v-384zM640 640v-640h-640v640h640zM1152 128v-128h-128v128h128zM1408 128v-128h-128v128h128z M1408 640v-384h-384v128h-128v-384h-128v640h384v-128h128v128h128zM640 1408v-640h-640v640h640zM1408 1408v-640h-640v640h640z" />
|
73 |
+
<glyph unicode="" horiz-adv-x="1792" d="M672 1408v-1536h-64v1536h64zM1408 1408v-1536h-64v1536h64zM1568 1408v-1536h-64v1536h64zM576 1408v-1536h-64v1536h64zM1280 1408v-1536h-256v1536h256zM896 1408v-1536h-128v1536h128zM448 1408v-1536h-128v1536h128zM1792 1408v-1536h-128v1536h128zM256 1408v-1536 h-256v1536h256z" />
|
74 |
+
<glyph unicode="" d="M448 1088q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1515 512q0 -53 -37 -90l-491 -492q-39 -37 -91 -37q-53 0 -90 37l-715 716q-38 37 -64.5 101t-26.5 117v416q0 52 38 90t90 38h416q53 0 117 -26.5t102 -64.5 l715 -714q37 -39 37 -91z" />
|
75 |
+
<glyph unicode="" horiz-adv-x="1920" d="M448 1088q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1515 512q0 -53 -37 -90l-491 -492q-39 -37 -91 -37q-53 0 -90 37l-715 716q-38 37 -64.5 101t-26.5 117v416q0 52 38 90t90 38h416q53 0 117 -26.5t102 -64.5 l715 -714q37 -39 37 -91zM1899 512q0 -53 -37 -90l-491 -492q-39 -37 -91 -37q-36 0 -59 14t-53 45l470 470q37 37 37 90q0 52 -37 91l-715 714q-38 38 -102 64.5t-117 26.5h224q53 0 117 -26.5t102 -64.5l715 -714q37 -39 37 -91z" />
|
76 |
+
<glyph unicode="" horiz-adv-x="1664" d="M1639 1058q40 -57 18 -129l-275 -906q-19 -64 -76.5 -107.5t-122.5 -43.5h-923q-77 0 -148.5 53.5t-99.5 131.5q-24 67 -2 127q0 4 3 27t4 37q1 8 -3 21.5t-3 19.5q2 11 8 21t16.5 23.5t16.5 23.5q23 38 45 91.5t30 91.5q3 10 0.5 30t-0.5 28q3 11 17 28t17 23 q21 36 42 92t25 90q1 9 -2.5 32t0.5 28q4 13 22 30.5t22 22.5q19 26 42.5 84.5t27.5 96.5q1 8 -3 25.5t-2 26.5q2 8 9 18t18 23t17 21q8 12 16.5 30.5t15 35t16 36t19.5 32t26.5 23.5t36 11.5t47.5 -5.5l-1 -3q38 9 51 9h761q74 0 114 -56t18 -130l-274 -906 q-36 -119 -71.5 -153.5t-128.5 -34.5h-869q-27 0 -38 -15q-11 -16 -1 -43q24 -70 144 -70h923q29 0 56 15.5t35 41.5l300 987q7 22 5 57q38 -15 59 -43zM575 1056q-4 -13 2 -22.5t20 -9.5h608q13 0 25.5 9.5t16.5 22.5l21 64q4 13 -2 22.5t-20 9.5h-608q-13 0 -25.5 -9.5 t-16.5 -22.5zM492 800q-4 -13 2 -22.5t20 -9.5h608q13 0 25.5 9.5t16.5 22.5l21 64q4 13 -2 22.5t-20 9.5h-608q-13 0 -25.5 -9.5t-16.5 -22.5z" />
|
77 |
+
<glyph unicode="" horiz-adv-x="1280" d="M1164 1408q23 0 44 -9q33 -13 52.5 -41t19.5 -62v-1289q0 -34 -19.5 -62t-52.5 -41q-19 -8 -44 -8q-48 0 -83 32l-441 424l-441 -424q-36 -33 -83 -33q-23 0 -44 9q-33 13 -52.5 41t-19.5 62v1289q0 34 19.5 62t52.5 41q21 9 44 9h1048z" />
|
78 |
+
<glyph unicode="" horiz-adv-x="1664" d="M384 0h896v256h-896v-256zM384 640h896v384h-160q-40 0 -68 28t-28 68v160h-640v-640zM1536 576q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1664 576v-416q0 -13 -9.5 -22.5t-22.5 -9.5h-224v-160q0 -40 -28 -68t-68 -28h-960q-40 0 -68 28t-28 68 v160h-224q-13 0 -22.5 9.5t-9.5 22.5v416q0 79 56.5 135.5t135.5 56.5h64v544q0 40 28 68t68 28h672q40 0 88 -20t76 -48l152 -152q28 -28 48 -76t20 -88v-256h64q79 0 135.5 -56.5t56.5 -135.5z" />
|
79 |
+
<glyph unicode="" horiz-adv-x="1920" d="M960 864q119 0 203.5 -84.5t84.5 -203.5t-84.5 -203.5t-203.5 -84.5t-203.5 84.5t-84.5 203.5t84.5 203.5t203.5 84.5zM1664 1280q106 0 181 -75t75 -181v-896q0 -106 -75 -181t-181 -75h-1408q-106 0 -181 75t-75 181v896q0 106 75 181t181 75h224l51 136 q19 49 69.5 84.5t103.5 35.5h512q53 0 103.5 -35.5t69.5 -84.5l51 -136h224zM960 128q185 0 316.5 131.5t131.5 316.5t-131.5 316.5t-316.5 131.5t-316.5 -131.5t-131.5 -316.5t131.5 -316.5t316.5 -131.5z" />
|
80 |
+
<glyph unicode="" horiz-adv-x="1664" d="M725 977l-170 -450q73 -1 153.5 -2t119 -1.5t52.5 -0.5l29 2q-32 95 -92 241q-53 132 -92 211zM21 -128h-21l2 79q22 7 80 18q89 16 110 31q20 16 48 68l237 616l280 724h75h53l11 -21l205 -480q103 -242 124 -297q39 -102 96 -235q26 -58 65 -164q24 -67 65 -149 q22 -49 35 -57q22 -19 69 -23q47 -6 103 -27q6 -39 6 -57q0 -14 -1 -26q-80 0 -192 8q-93 8 -189 8q-79 0 -135 -2l-200 -11l-58 -2q0 45 4 78l131 28q56 13 68 23q12 12 12 27t-6 32l-47 114l-92 228l-450 2q-29 -65 -104 -274q-23 -64 -23 -84q0 -31 17 -43 q26 -21 103 -32q3 0 13.5 -2t30 -5t40.5 -6q1 -28 1 -58q0 -17 -2 -27q-66 0 -349 20l-48 -8q-81 -14 -167 -14z" />
|
81 |
+
<glyph unicode="" horiz-adv-x="1408" d="M555 15q76 -32 140 -32q131 0 216 41t122 113q38 70 38 181q0 114 -41 180q-58 94 -141 126q-80 32 -247 32q-74 0 -101 -10v-144l-1 -173l3 -270q0 -15 12 -44zM541 761q43 -7 109 -7q175 0 264 65t89 224q0 112 -85 187q-84 75 -255 75q-52 0 -130 -13q0 -44 2 -77 q7 -122 6 -279l-1 -98q0 -43 1 -77zM0 -128l2 94q45 9 68 12q77 12 123 31q17 27 21 51q9 66 9 194l-2 497q-5 256 -9 404q-1 87 -11 109q-1 4 -12 12q-18 12 -69 15q-30 2 -114 13l-4 83l260 6l380 13l45 1q5 0 14 0.5t14 0.5q1 0 21.5 -0.5t40.5 -0.5h74q88 0 191 -27 q43 -13 96 -39q57 -29 102 -76q44 -47 65 -104t21 -122q0 -70 -32 -128t-95 -105q-26 -20 -150 -77q177 -41 267 -146q92 -106 92 -236q0 -76 -29 -161q-21 -62 -71 -117q-66 -72 -140 -108q-73 -36 -203 -60q-82 -15 -198 -11l-197 4q-84 2 -298 -11q-33 -3 -272 -11z" />
|
82 |
+
<glyph unicode="" horiz-adv-x="1024" d="M0 -126l17 85q4 1 77 20q76 19 116 39q29 37 41 101l27 139l56 268l12 64q8 44 17 84.5t16 67t12.5 46.5t9 30.5t3.5 11.5l29 157l16 63l22 135l8 50v38q-41 22 -144 28q-28 2 -38 4l19 103l317 -14q39 -2 73 -2q66 0 214 9q33 2 68 4.5t36 2.5q-2 -19 -6 -38 q-7 -29 -13 -51q-55 -19 -109 -31q-64 -16 -101 -31q-12 -31 -24 -88q-9 -44 -13 -82q-44 -199 -66 -306l-61 -311l-38 -158l-43 -235l-12 -45q-2 -7 1 -27q64 -15 119 -21q36 -5 66 -10q-1 -29 -7 -58q-7 -31 -9 -41q-18 0 -23 -1q-24 -2 -42 -2q-9 0 -28 3q-19 4 -145 17 l-198 2q-41 1 -174 -11q-74 -7 -98 -9z" />
|
83 |
+
<glyph unicode="" horiz-adv-x="1792" d="M81 1407l54 -27q20 -5 211 -5h130l19 3l115 1l215 -1h293l34 -2q14 -1 28 7t21 16l7 8l42 1q15 0 28 -1v-104.5t1 -131.5l1 -100l-1 -58q0 -32 -4 -51q-39 -15 -68 -18q-25 43 -54 128q-8 24 -15.5 62.5t-11.5 65.5t-6 29q-13 15 -27 19q-7 2 -42.5 2t-103.5 -1t-111 -1 q-34 0 -67 -5q-10 -97 -8 -136l1 -152v-332l3 -359l-1 -147q-1 -46 11 -85q49 -25 89 -32q2 0 18 -5t44 -13t43 -12q30 -8 50 -18q5 -45 5 -50q0 -10 -3 -29q-14 -1 -34 -1q-110 0 -187 10q-72 8 -238 8q-88 0 -233 -14q-48 -4 -70 -4q-2 22 -2 26l-1 26v9q21 33 79 49 q139 38 159 50q9 21 12 56q8 192 6 433l-5 428q-1 62 -0.5 118.5t0.5 102.5t-2 57t-6 15q-6 5 -14 6q-38 6 -148 6q-43 0 -100 -13.5t-73 -24.5q-13 -9 -22 -33t-22 -75t-24 -84q-6 -19 -19.5 -32t-20.5 -13q-44 27 -56 44v297v86zM1744 128q33 0 42 -18.5t-11 -44.5 l-126 -162q-20 -26 -49 -26t-49 26l-126 162q-20 26 -11 44.5t42 18.5h80v1024h-80q-33 0 -42 18.5t11 44.5l126 162q20 26 49 26t49 -26l126 -162q20 -26 11 -44.5t-42 -18.5h-80v-1024h80z" />
|
84 |
+
<glyph unicode="" d="M81 1407l54 -27q20 -5 211 -5h130l19 3l115 1l446 -1h318l34 -2q14 -1 28 7t21 16l7 8l42 1q15 0 28 -1v-104.5t1 -131.5l1 -100l-1 -58q0 -32 -4 -51q-39 -15 -68 -18q-25 43 -54 128q-8 24 -15.5 62.5t-11.5 65.5t-6 29q-13 15 -27 19q-7 2 -58.5 2t-138.5 -1t-128 -1 q-94 0 -127 -5q-10 -97 -8 -136l1 -152v52l3 -359l-1 -147q-1 -46 11 -85q49 -25 89 -32q2 0 18 -5t44 -13t43 -12q30 -8 50 -18q5 -45 5 -50q0 -10 -3 -29q-14 -1 -34 -1q-110 0 -187 10q-72 8 -238 8q-82 0 -233 -13q-45 -5 -70 -5q-2 22 -2 26l-1 26v9q21 33 79 49 q139 38 159 50q9 21 12 56q6 137 6 433l-5 44q0 265 -2 278q-2 11 -6 15q-6 5 -14 6q-38 6 -148 6q-50 0 -168.5 -14t-132.5 -24q-13 -9 -22 -33t-22 -75t-24 -84q-6 -19 -19.5 -32t-20.5 -13q-44 27 -56 44v297v86zM1505 113q26 -20 26 -49t-26 -49l-162 -126 q-26 -20 -44.5 -11t-18.5 42v80h-1024v-80q0 -33 -18.5 -42t-44.5 11l-162 126q-26 20 -26 49t26 49l162 126q26 20 44.5 11t18.5 -42v-80h1024v80q0 33 18.5 42t44.5 -11z" />
|
85 |
+
<glyph unicode="" horiz-adv-x="1792" d="M1792 192v-128q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1408 576v-128q0 -26 -19 -45t-45 -19h-1280q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1280q26 0 45 -19t19 -45zM1664 960v-128q0 -26 -19 -45 t-45 -19h-1536q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1536q26 0 45 -19t19 -45zM1280 1344v-128q0 -26 -19 -45t-45 -19h-1152q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1152q26 0 45 -19t19 -45z" />
|
86 |
+
<glyph unicode="" horiz-adv-x="1792" d="M1792 192v-128q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1408 576v-128q0 -26 -19 -45t-45 -19h-896q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h896q26 0 45 -19t19 -45zM1664 960v-128q0 -26 -19 -45t-45 -19 h-1408q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1408q26 0 45 -19t19 -45zM1280 1344v-128q0 -26 -19 -45t-45 -19h-640q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h640q26 0 45 -19t19 -45z" />
|
87 |
+
<glyph unicode="" horiz-adv-x="1792" d="M1792 192v-128q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1792 576v-128q0 -26 -19 -45t-45 -19h-1280q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1280q26 0 45 -19t19 -45zM1792 960v-128q0 -26 -19 -45 t-45 -19h-1536q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1536q26 0 45 -19t19 -45zM1792 1344v-128q0 -26 -19 -45t-45 -19h-1152q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1152q26 0 45 -19t19 -45z" />
|
88 |
+
<glyph unicode="" horiz-adv-x="1792" d="M1792 192v-128q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1792 576v-128q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1792 960v-128q0 -26 -19 -45 t-45 -19h-1664q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1792 1344v-128q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1664q26 0 45 -19t19 -45z" />
|
89 |
+
<glyph unicode="" horiz-adv-x="1792" d="M256 224v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-192q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5 -9.5t9.5 -22.5zM256 608v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-192q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5 -9.5 t9.5 -22.5zM256 992v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-192q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5 -9.5t9.5 -22.5zM1792 224v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1344q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1344 q13 0 22.5 -9.5t9.5 -22.5zM256 1376v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-192q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5 -9.5t9.5 -22.5zM1792 608v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1344q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5 t22.5 9.5h1344q13 0 22.5 -9.5t9.5 -22.5zM1792 992v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1344q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1344q13 0 22.5 -9.5t9.5 -22.5zM1792 1376v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1344q-13 0 -22.5 9.5t-9.5 22.5v192 q0 13 9.5 22.5t22.5 9.5h1344q13 0 22.5 -9.5t9.5 -22.5z" />
|
90 |
+
<glyph unicode="" horiz-adv-x="1792" d="M384 992v-576q0 -13 -9.5 -22.5t-22.5 -9.5q-14 0 -23 9l-288 288q-9 9 -9 23t9 23l288 288q9 9 23 9q13 0 22.5 -9.5t9.5 -22.5zM1792 224v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1728q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1728q13 0 22.5 -9.5 t9.5 -22.5zM1792 608v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1088q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1088q13 0 22.5 -9.5t9.5 -22.5zM1792 992v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1088q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1088 q13 0 22.5 -9.5t9.5 -22.5zM1792 1376v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1728q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1728q13 0 22.5 -9.5t9.5 -22.5z" />
|
91 |
+
<glyph unicode="" horiz-adv-x="1792" d="M352 704q0 -14 -9 -23l-288 -288q-9 -9 -23 -9q-13 0 -22.5 9.5t-9.5 22.5v576q0 13 9.5 22.5t22.5 9.5q14 0 23 -9l288 -288q9 -9 9 -23zM1792 224v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1728q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1728q13 0 22.5 -9.5 t9.5 -22.5zM1792 608v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1088q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1088q13 0 22.5 -9.5t9.5 -22.5zM1792 992v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1088q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1088 q13 0 22.5 -9.5t9.5 -22.5zM1792 1376v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1728q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1728q13 0 22.5 -9.5t9.5 -22.5z" />
|
92 |
+
<glyph unicode="" horiz-adv-x="1920" d="M1900 1278q20 -8 20 -30v-1216q0 -22 -20 -30q-8 -2 -12 -2q-12 0 -23 9l-585 586v-307q0 -119 -84.5 -203.5t-203.5 -84.5h-704q-119 0 -203.5 84.5t-84.5 203.5v704q0 119 84.5 203.5t203.5 84.5h704q119 0 203.5 -84.5t84.5 -203.5v-307l585 586q16 15 35 7z" />
|
93 |
+
<glyph unicode="" horiz-adv-x="1920" d="M640 960q0 -80 -56 -136t-136 -56t-136 56t-56 136t56 136t136 56t136 -56t56 -136zM1664 576v-448h-1408v192l320 320l160 -160l512 512zM1760 1280h-1600q-13 0 -22.5 -9.5t-9.5 -22.5v-1216q0 -13 9.5 -22.5t22.5 -9.5h1600q13 0 22.5 9.5t9.5 22.5v1216 q0 13 -9.5 22.5t-22.5 9.5zM1920 1248v-1216q0 -66 -47 -113t-113 -47h-1600q-66 0 -113 47t-47 113v1216q0 66 47 113t113 47h1600q66 0 113 -47t47 -113z" />
|
94 |
+
<glyph unicode="" d="M363 0l91 91l-235 235l-91 -91v-107h128v-128h107zM886 928q0 22 -22 22q-10 0 -17 -7l-542 -542q-7 -7 -7 -17q0 -22 22 -22q10 0 17 7l542 542q7 7 7 17zM832 1120l416 -416l-832 -832h-416v416zM1515 1024q0 -53 -37 -90l-166 -166l-416 416l166 165q36 38 90 38 q53 0 91 -38l235 -234q37 -39 37 -91z" />
|
95 |
+
<glyph unicode="" horiz-adv-x="1024" d="M768 896q0 106 -75 181t-181 75t-181 -75t-75 -181t75 -181t181 -75t181 75t75 181zM1024 896q0 -109 -33 -179l-364 -774q-16 -33 -47.5 -52t-67.5 -19t-67.5 19t-46.5 52l-365 774q-33 70 -33 179q0 212 150 362t362 150t362 -150t150 -362z" />
|
96 |
+
<glyph unicode="" d="M768 1408q209 0 385.5 -103t279.5 -279.5t103 -385.5t-103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103zM256 640q0 -104 40.5 -198.5t109.5 -163.5t163.5 -109.5t198.5 -40.5v1024q-104 0 -198.5 -40.5 t-163.5 -109.5t-109.5 -163.5t-40.5 -198.5z" />
|
97 |
+
<glyph unicode="" horiz-adv-x="1024" d="M512 384q0 36 -20 69q-1 1 -15.5 22.5t-25.5 38t-25 44t-21 50.5q-4 16 -21 16t-21 -16q-7 -23 -21 -50.5t-25 -44t-25.5 -38t-15.5 -22.5q-20 -33 -20 -69q0 -53 37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1024 512q0 -212 -150 -362t-362 -150t-362 150t-150 362 q0 145 81 275q6 9 62.5 90.5t101 151t99.5 178t83 201.5q9 30 34 47t51 17t51.5 -17t33.5 -47q28 -93 83 -201.5t99.5 -178t101 -151t62.5 -90.5q81 -127 81 -275z" />
|
98 |
+
<glyph unicode="" horiz-adv-x="1792" d="M888 352l116 116l-152 152l-116 -116v-56h96v-96h56zM1328 1072q-16 16 -33 -1l-350 -350q-17 -17 -1 -33t33 1l350 350q17 17 1 33zM1408 478v-190q0 -119 -84.5 -203.5t-203.5 -84.5h-832q-119 0 -203.5 84.5t-84.5 203.5v832q0 119 84.5 203.5t203.5 84.5h832 q63 0 117 -25q15 -7 18 -23q3 -17 -9 -29l-49 -49q-14 -14 -32 -8q-23 6 -45 6h-832q-66 0 -113 -47t-47 -113v-832q0 -66 47 -113t113 -47h832q66 0 113 47t47 113v126q0 13 9 22l64 64q15 15 35 7t20 -29zM1312 1216l288 -288l-672 -672h-288v288zM1756 1084l-92 -92 l-288 288l92 92q28 28 68 28t68 -28l152 -152q28 -28 28 -68t-28 -68z" />
|
99 |
+
<glyph unicode="" horiz-adv-x="1664" d="M1408 547v-259q0 -119 -84.5 -203.5t-203.5 -84.5h-832q-119 0 -203.5 84.5t-84.5 203.5v832q0 119 84.5 203.5t203.5 84.5h255v0q13 0 22.5 -9.5t9.5 -22.5q0 -27 -26 -32q-77 -26 -133 -60q-10 -4 -16 -4h-112q-66 0 -113 -47t-47 -113v-832q0 -66 47 -113t113 -47h832 q66 0 113 47t47 113v214q0 19 18 29q28 13 54 37q16 16 35 8q21 -9 21 -29zM1645 1043l-384 -384q-18 -19 -45 -19q-12 0 -25 5q-39 17 -39 59v192h-160q-323 0 -438 -131q-119 -137 -74 -473q3 -23 -20 -34q-8 -2 -12 -2q-16 0 -26 13q-10 14 -21 31t-39.5 68.5t-49.5 99.5 t-38.5 114t-17.5 122q0 49 3.5 91t14 90t28 88t47 81.5t68.5 74t94.5 61.5t124.5 48.5t159.5 30.5t196.5 11h160v192q0 42 39 59q13 5 25 5q26 0 45 -19l384 -384q19 -19 19 -45t-19 -45z" />
|
100 |
+
<glyph unicode="" horiz-adv-x="1664" d="M1408 606v-318q0 -119 -84.5 -203.5t-203.5 -84.5h-832q-119 0 -203.5 84.5t-84.5 203.5v832q0 119 84.5 203.5t203.5 84.5h832q63 0 117 -25q15 -7 18 -23q3 -17 -9 -29l-49 -49q-10 -10 -23 -10q-3 0 -9 2q-23 6 -45 6h-832q-66 0 -113 -47t-47 -113v-832 q0 -66 47 -113t113 -47h832q66 0 113 47t47 113v254q0 13 9 22l64 64q10 10 23 10q6 0 12 -3q20 -8 20 -29zM1639 1095l-814 -814q-24 -24 -57 -24t-57 24l-430 430q-24 24 -24 57t24 57l110 110q24 24 57 24t57 -24l263 -263l647 647q24 24 57 24t57 -24l110 -110 q24 -24 24 -57t-24 -57z" />
|
101 |
+
<glyph unicode="" horiz-adv-x="1792" d="M1792 640q0 -26 -19 -45l-256 -256q-19 -19 -45 -19t-45 19t-19 45v128h-384v-384h128q26 0 45 -19t19 -45t-19 -45l-256 -256q-19 -19 -45 -19t-45 19l-256 256q-19 19 -19 45t19 45t45 19h128v384h-384v-128q0 -26 -19 -45t-45 -19t-45 19l-256 256q-19 19 -19 45 t19 45l256 256q19 19 45 19t45 -19t19 -45v-128h384v384h-128q-26 0 -45 19t-19 45t19 45l256 256q19 19 45 19t45 -19l256 -256q19 -19 19 -45t-19 -45t-45 -19h-128v-384h384v128q0 26 19 45t45 19t45 -19l256 -256q19 -19 19 -45z" />
|
102 |
+
<glyph unicode="" horiz-adv-x="1024" d="M979 1395q19 19 32 13t13 -32v-1472q0 -26 -13 -32t-32 13l-710 710q-9 9 -13 19v-678q0 -26 -19 -45t-45 -19h-128q-26 0 -45 19t-19 45v1408q0 26 19 45t45 19h128q26 0 45 -19t19 -45v-678q4 11 13 19z" />
|
103 |
+
<glyph unicode="" horiz-adv-x="1792" d="M1747 1395q19 19 32 13t13 -32v-1472q0 -26 -13 -32t-32 13l-710 710q-9 9 -13 19v-710q0 -26 -13 -32t-32 13l-710 710q-9 9 -13 19v-678q0 -26 -19 -45t-45 -19h-128q-26 0 -45 19t-19 45v1408q0 26 19 45t45 19h128q26 0 45 -19t19 -45v-678q4 11 13 19l710 710 q19 19 32 13t13 -32v-710q4 11 13 19z" />
|
104 |
+
<glyph unicode="" horiz-adv-x="1664" d="M1619 1395q19 19 32 13t13 -32v-1472q0 -26 -13 -32t-32 13l-710 710q-8 9 -13 19v-710q0 -26 -13 -32t-32 13l-710 710q-19 19 -19 45t19 45l710 710q19 19 32 13t13 -32v-710q5 11 13 19z" />
|
105 |
+
<glyph unicode="" horiz-adv-x="1408" d="M1384 609l-1328 -738q-23 -13 -39.5 -3t-16.5 36v1472q0 26 16.5 36t39.5 -3l1328 -738q23 -13 23 -31t-23 -31z" />
|
106 |
+
<glyph unicode="" d="M1536 1344v-1408q0 -26 -19 -45t-45 -19h-512q-26 0 -45 19t-19 45v1408q0 26 19 45t45 19h512q26 0 45 -19t19 -45zM640 1344v-1408q0 -26 -19 -45t-45 -19h-512q-26 0 -45 19t-19 45v1408q0 26 19 45t45 19h512q26 0 45 -19t19 -45z" />
|
107 |
+
<glyph unicode="" d="M1536 1344v-1408q0 -26 -19 -45t-45 -19h-1408q-26 0 -45 19t-19 45v1408q0 26 19 45t45 19h1408q26 0 45 -19t19 -45z" />
|
108 |
+
<glyph unicode="" horiz-adv-x="1664" d="M45 -115q-19 -19 -32 -13t-13 32v1472q0 26 13 32t32 -13l710 -710q8 -8 13 -19v710q0 26 13 32t32 -13l710 -710q19 -19 19 -45t-19 -45l-710 -710q-19 -19 -32 -13t-13 32v710q-5 -10 -13 -19z" />
|
109 |
+
<glyph unicode="" horiz-adv-x="1792" d="M45 -115q-19 -19 -32 -13t-13 32v1472q0 26 13 32t32 -13l710 -710q8 -8 13 -19v710q0 26 13 32t32 -13l710 -710q8 -8 13 -19v678q0 26 19 45t45 19h128q26 0 45 -19t19 -45v-1408q0 -26 -19 -45t-45 -19h-128q-26 0 -45 19t-19 45v678q-5 -10 -13 -19l-710 -710 q-19 -19 -32 -13t-13 32v710q-5 -10 -13 -19z" />
|
110 |
+
<glyph unicode="" horiz-adv-x="1024" d="M45 -115q-19 -19 -32 -13t-13 32v1472q0 26 13 32t32 -13l710 -710q8 -8 13 -19v678q0 26 19 45t45 19h128q26 0 45 -19t19 -45v-1408q0 -26 -19 -45t-45 -19h-128q-26 0 -45 19t-19 45v678q-5 -10 -13 -19z" />
|
111 |
+
<glyph unicode="" horiz-adv-x="1538" d="M14 557l710 710q19 19 45 19t45 -19l710 -710q19 -19 13 -32t-32 -13h-1472q-26 0 -32 13t13 32zM1473 0h-1408q-26 0 -45 19t-19 45v256q0 26 19 45t45 19h1408q26 0 45 -19t19 -45v-256q0 -26 -19 -45t-45 -19z" />
|
112 |
+
<glyph unicode="" horiz-adv-x="1152" d="M742 -37l-652 651q-37 37 -37 90.5t37 90.5l652 651q37 37 90.5 37t90.5 -37l75 -75q37 -37 37 -90.5t-37 -90.5l-486 -486l486 -485q37 -38 37 -91t-37 -90l-75 -75q-37 -37 -90.5 -37t-90.5 37z" />
|
113 |
+
<glyph unicode="" horiz-adv-x="1152" d="M1099 704q0 -52 -37 -91l-652 -651q-37 -37 -90 -37t-90 37l-76 75q-37 39 -37 91q0 53 37 90l486 486l-486 485q-37 39 -37 91q0 53 37 90l76 75q36 38 90 38t90 -38l652 -651q37 -37 37 -90z" />
|
114 |
+
<glyph unicode="" d="M1216 576v128q0 26 -19 45t-45 19h-256v256q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-256h-256q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h256v-256q0 -26 19 -45t45 -19h128q26 0 45 19t19 45v256h256q26 0 45 19t19 45zM1536 640q0 -209 -103 -385.5 t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
|
115 |
+
<glyph unicode="" d="M1216 576v128q0 26 -19 45t-45 19h-768q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h768q26 0 45 19t19 45zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5 t103 -385.5z" />
|
116 |
+
<glyph unicode="" d="M1149 414q0 26 -19 45l-181 181l181 181q19 19 19 45q0 27 -19 46l-90 90q-19 19 -46 19q-26 0 -45 -19l-181 -181l-181 181q-19 19 -45 19q-27 0 -46 -19l-90 -90q-19 -19 -19 -46q0 -26 19 -45l181 -181l-181 -181q-19 -19 -19 -45q0 -27 19 -46l90 -90q19 -19 46 -19 q26 0 45 19l181 181l181 -181q19 -19 45 -19q27 0 46 19l90 90q19 19 19 46zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
|
117 |
+
<glyph unicode="" d="M1284 802q0 28 -18 46l-91 90q-19 19 -45 19t-45 -19l-408 -407l-226 226q-19 19 -45 19t-45 -19l-91 -90q-18 -18 -18 -46q0 -27 18 -45l362 -362q19 -19 45 -19q27 0 46 19l543 543q18 18 18 45zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103 t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
|
118 |
+
<glyph unicode="" d="M896 160v192q0 13 -9.5 22.5t-22.5 9.5h-192q-13 0 -22.5 -9.5t-9.5 -22.5v-192q0 -13 9.5 -22.5t22.5 -9.5h192q13 0 22.5 9.5t9.5 22.5zM1152 832q0 97 -58.5 172t-144.5 111.5t-181 36.5t-181 -36.5t-144.5 -111.5t-58.5 -172v-11v-13t1 -11.5t3 -11.5t5.5 -8t9 -7 t13.5 -2h192q14 0 23 9t9 23q0 12 11 27q19 31 50.5 50t66.5 19q39 0 83 -21.5t44 -57.5q0 -33 -26.5 -58t-63.5 -44t-74.5 -41.5t-64 -63.5t-26.5 -98v-11v-13t1 -11.5t3 -11.5t5.5 -8t9 -7t13.5 -2h192q17 0 24 10.5t8 24.5t13.5 33t37.5 32q60 33 70 39q62 44 98.5 108 t36.5 137zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
|
119 |
+
<glyph unicode="" d="M1024 160v64q0 14 -9 23t-23 9h-96v480q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h96v-384h-96q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h448q14 0 23 9t9 23zM896 928v192q0 14 -9 23t-23 9h-192q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23 t23 -9h192q14 0 23 9t9 23zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
|
120 |
+
<glyph unicode="" d="M1197 512h-109q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h109q-32 108 -112.5 188.5t-188.5 112.5v-109q0 -26 -19 -45t-45 -19h-128q-26 0 -45 19t-19 45v109q-108 -32 -188.5 -112.5t-112.5 -188.5h109q26 0 45 -19t19 -45v-128q0 -26 -19 -45t-45 -19h-109 q32 -108 112.5 -188.5t188.5 -112.5v109q0 26 19 45t45 19h128q26 0 45 -19t19 -45v-109q108 32 188.5 112.5t112.5 188.5zM1536 704v-128q0 -26 -19 -45t-45 -19h-143q-37 -161 -154.5 -278.5t-278.5 -154.5v-143q0 -26 -19 -45t-45 -19h-128q-26 0 -45 19t-19 45v143 q-161 37 -278.5 154.5t-154.5 278.5h-143q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h143q37 161 154.5 278.5t278.5 154.5v143q0 26 19 45t45 19h128q26 0 45 -19t19 -45v-143q161 -37 278.5 -154.5t154.5 -278.5h143q26 0 45 -19t19 -45z" />
|
121 |
+
<glyph unicode="" d="M1125 448q0 -27 -18 -45l-102 -102q-18 -18 -45 -18t-45 18l-147 147l-147 -147q-18 -18 -45 -18t-45 18l-102 102q-18 18 -18 45t18 45l147 147l-147 147q-18 18 -18 45t18 45l102 102q18 18 45 18t45 -18l147 -147l147 147q18 18 45 18t45 -18l102 -102q18 -18 18 -45 t-18 -45l-147 -147l147 -147q18 -18 18 -45zM1280 640q0 104 -40.5 198.5t-109.5 163.5t-163.5 109.5t-198.5 40.5t-198.5 -40.5t-163.5 -109.5t-109.5 -163.5t-40.5 -198.5t40.5 -198.5t109.5 -163.5t163.5 -109.5t198.5 -40.5t198.5 40.5t163.5 109.5t109.5 163.5 t40.5 198.5zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
|
122 |
+
<glyph unicode="" d="M1189 768q0 -27 -18 -45l-320 -320l-102 -102q-18 -18 -45 -18t-45 18l-102 102l-192 192q-18 18 -18 45t18 45l102 102q18 18 45 18t45 -18l147 -147l275 275q18 18 45 18t45 -18l102 -102q18 -18 18 -45zM1280 640q0 104 -40.5 198.5t-109.5 163.5t-163.5 109.5 t-198.5 40.5t-198.5 -40.5t-163.5 -109.5t-109.5 -163.5t-40.5 -198.5t40.5 -198.5t109.5 -163.5t163.5 -109.5t198.5 -40.5t198.5 40.5t163.5 109.5t109.5 163.5t40.5 198.5zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5 t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
|
123 |
+
<glyph unicode="" d="M1280 640q0 139 -71 260l-701 -701q121 -71 260 -71q104 0 198.5 40.5t163.5 109.5t109.5 163.5t40.5 198.5zM327 380l701 701q-121 71 -260 71q-104 0 -198.5 -40.5t-163.5 -109.5t-109.5 -163.5t-40.5 -198.5q0 -139 71 -260zM1536 640q0 -209 -103 -385.5 t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
|
124 |
+
<glyph unicode="" d="M1536 640v-128q0 -53 -32.5 -90.5t-84.5 -37.5h-704l293 -294q38 -36 38 -90t-38 -90l-75 -76q-37 -37 -90 -37q-52 0 -91 37l-651 652q-37 37 -37 90q0 52 37 91l651 650q38 38 91 38q52 0 90 -38l75 -74q38 -38 38 -91t-38 -91l-293 -293h704q52 0 84.5 -37.5 t32.5 -90.5z" />
|
125 |
+
<glyph unicode="" d="M1472 576q0 -54 -37 -91l-651 -651q-39 -37 -91 -37q-51 0 -90 37l-75 75q-38 38 -38 91t38 91l293 293h-704q-52 0 -84.5 37.5t-32.5 90.5v128q0 53 32.5 90.5t84.5 37.5h704l-293 294q-38 36 -38 90t38 90l75 75q38 38 90 38q53 0 91 -38l651 -651q37 -35 37 -90z" />
|
126 |
+
<glyph unicode="" horiz-adv-x="1664" d="M1611 565q0 -51 -37 -90l-75 -75q-38 -38 -91 -38q-54 0 -90 38l-294 293v-704q0 -52 -37.5 -84.5t-90.5 -32.5h-128q-53 0 -90.5 32.5t-37.5 84.5v704l-294 -293q-36 -38 -90 -38t-90 38l-75 75q-38 38 -38 90q0 53 38 91l651 651q35 37 90 37q54 0 91 -37l651 -651 q37 -39 37 -91z" />
|
127 |
+
<glyph unicode="" horiz-adv-x="1664" d="M1611 704q0 -53 -37 -90l-651 -652q-39 -37 -91 -37q-53 0 -90 37l-651 652q-38 36 -38 90q0 53 38 91l74 75q39 37 91 37q53 0 90 -37l294 -294v704q0 52 38 90t90 38h128q52 0 90 -38t38 -90v-704l294 294q37 37 90 37q52 0 91 -37l75 -75q37 -39 37 -91z" />
|
128 |
+
<glyph unicode="" horiz-adv-x="1792" d="M1792 896q0 -26 -19 -45l-512 -512q-19 -19 -45 -19t-45 19t-19 45v256h-224q-98 0 -175.5 -6t-154 -21.5t-133 -42.5t-105.5 -69.5t-80 -101t-48.5 -138.5t-17.5 -181q0 -55 5 -123q0 -6 2.5 -23.5t2.5 -26.5q0 -15 -8.5 -25t-23.5 -10q-16 0 -28 17q-7 9 -13 22 t-13.5 30t-10.5 24q-127 285 -127 451q0 199 53 333q162 403 875 403h224v256q0 26 19 45t45 19t45 -19l512 -512q19 -19 19 -45z" />
|
129 |
+
<glyph unicode="" d="M755 480q0 -13 -10 -23l-332 -332l144 -144q19 -19 19 -45t-19 -45t-45 -19h-448q-26 0 -45 19t-19 45v448q0 26 19 45t45 19t45 -19l144 -144l332 332q10 10 23 10t23 -10l114 -114q10 -10 10 -23zM1536 1344v-448q0 -26 -19 -45t-45 -19t-45 19l-144 144l-332 -332 q-10 -10 -23 -10t-23 10l-114 114q-10 10 -10 23t10 23l332 332l-144 144q-19 19 -19 45t19 45t45 19h448q26 0 45 -19t19 -45z" />
|
130 |
+
<glyph unicode="" d="M768 576v-448q0 -26 -19 -45t-45 -19t-45 19l-144 144l-332 -332q-10 -10 -23 -10t-23 10l-114 114q-10 10 -10 23t10 23l332 332l-144 144q-19 19 -19 45t19 45t45 19h448q26 0 45 -19t19 -45zM1523 1248q0 -13 -10 -23l-332 -332l144 -144q19 -19 19 -45t-19 -45 t-45 -19h-448q-26 0 -45 19t-19 45v448q0 26 19 45t45 19t45 -19l144 -144l332 332q10 10 23 10t23 -10l114 -114q10 -10 10 -23z" />
|
131 |
+
<glyph unicode="" horiz-adv-x="1408" d="M1408 800v-192q0 -40 -28 -68t-68 -28h-416v-416q0 -40 -28 -68t-68 -28h-192q-40 0 -68 28t-28 68v416h-416q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h416v416q0 40 28 68t68 28h192q40 0 68 -28t28 -68v-416h416q40 0 68 -28t28 -68z" />
|
132 |
+
<glyph unicode="" horiz-adv-x="1408" d="M1408 800v-192q0 -40 -28 -68t-68 -28h-1216q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h1216q40 0 68 -28t28 -68z" />
|
133 |
+
<glyph unicode="" horiz-adv-x="1664" d="M1482 486q46 -26 59.5 -77.5t-12.5 -97.5l-64 -110q-26 -46 -77.5 -59.5t-97.5 12.5l-266 153v-307q0 -52 -38 -90t-90 -38h-128q-52 0 -90 38t-38 90v307l-266 -153q-46 -26 -97.5 -12.5t-77.5 59.5l-64 110q-26 46 -12.5 97.5t59.5 77.5l266 154l-266 154 q-46 26 -59.5 77.5t12.5 97.5l64 110q26 46 77.5 59.5t97.5 -12.5l266 -153v307q0 52 38 90t90 38h128q52 0 90 -38t38 -90v-307l266 153q46 26 97.5 12.5t77.5 -59.5l64 -110q26 -46 12.5 -97.5t-59.5 -77.5l-266 -154z" />
|
134 |
+
<glyph unicode="" d="M768 1408q209 0 385.5 -103t279.5 -279.5t103 -385.5t-103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103zM896 161v190q0 14 -9 23.5t-22 9.5h-192q-13 0 -23 -10t-10 -23v-190q0 -13 10 -23t23 -10h192 q13 0 22 9.5t9 23.5zM894 505l18 621q0 12 -10 18q-10 8 -24 8h-220q-14 0 -24 -8q-10 -6 -10 -18l17 -621q0 -10 10 -17.5t24 -7.5h185q14 0 23.5 7.5t10.5 17.5z" />
|
135 |
+
<glyph unicode="" d="M928 180v716h-320v-716q0 -25 18.5 -38.5t45.5 -13.5h192q27 0 45.5 13.5t18.5 38.5zM472 1024h195l-126 161q-24 31 -69 31q-40 0 -68 -28t-28 -68t28 -68t68 -28zM1160 1120q0 40 -28 68t-68 28q-45 0 -69 -31l-125 -161h194q40 0 68 28t28 68zM1536 864v-320 q0 -14 -10 -22t-27 -10.5t-32 -2.5t-34.5 1.5t-24.5 1.5v-416q0 -40 -28 -68t-68 -28h-1088q-40 0 -68 28t-28 68v416q-5 0 -24.5 -1.5t-34.5 -1.5t-32 2.5t-27 10.5t-10 22v320q0 13 9.5 22.5t22.5 9.5h440q-93 0 -158.5 65.5t-65.5 158.5t65.5 158.5t158.5 65.5 q108 0 168 -77l128 -165l128 165q60 77 168 77q93 0 158.5 -65.5t65.5 -158.5t-65.5 -158.5t-158.5 -65.5h440q13 0 22.5 -9.5t9.5 -22.5z" />
|
136 |
+
<glyph unicode="" horiz-adv-x="1792" d="M1280 832q0 26 -19 45t-45 19q-172 0 -318 -49.5t-259.5 -134t-235.5 -219.5q-19 -21 -19 -45q0 -26 19 -45t45 -19q24 0 45 19q27 24 74 71t67 66q137 124 268.5 176t313.5 52q26 0 45 19t19 45zM1792 1030q0 -95 -20 -193q-46 -224 -184.5 -383t-357.5 -268 q-214 -108 -438 -108q-148 0 -286 47q-15 5 -88 42t-96 37q-16 0 -39.5 -32t-45 -70t-52.5 -70t-60 -32q-30 0 -51 11t-31 24t-27 42q-2 4 -6 11t-5.5 10t-3 9.5t-1.5 13.5q0 35 31 73.5t68 65.5t68 56t31 48q0 4 -14 38t-16 44q-9 51 -9 104q0 115 43.5 220t119 184.5 t170.5 139t204 95.5q55 18 145 25.5t179.5 9t178.5 6t163.5 24t113.5 56.5l29.5 29.5t29.5 28t27 20t36.5 16t43.5 4.5q39 0 70.5 -46t47.5 -112t24 -124t8 -96z" />
|
137 |
+
<glyph unicode="" horiz-adv-x="1408" d="M1408 -160v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-1344q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h1344q13 0 22.5 -9.5t9.5 -22.5zM1152 896q0 -78 -24.5 -144t-64 -112.5t-87.5 -88t-96 -77.5t-87.5 -72t-64 -81.5t-24.5 -96.5q0 -96 67 -224l-4 1l1 -1 q-90 41 -160 83t-138.5 100t-113.5 122.5t-72.5 150.5t-27.5 184q0 78 24.5 144t64 112.5t87.5 88t96 77.5t87.5 72t64 81.5t24.5 96.5q0 94 -66 224l3 -1l-1 1q90 -41 160 -83t138.5 -100t113.5 -122.5t72.5 -150.5t27.5 -184z" />
|
138 |
+
<glyph unicode="" horiz-adv-x="1792" d="M1664 576q-152 236 -381 353q61 -104 61 -225q0 -185 -131.5 -316.5t-316.5 -131.5t-316.5 131.5t-131.5 316.5q0 121 61 225q-229 -117 -381 -353q133 -205 333.5 -326.5t434.5 -121.5t434.5 121.5t333.5 326.5zM944 960q0 20 -14 34t-34 14q-125 0 -214.5 -89.5 t-89.5 -214.5q0 -20 14 -34t34 -14t34 14t14 34q0 86 61 147t147 61q20 0 34 14t14 34zM1792 576q0 -34 -20 -69q-140 -230 -376.5 -368.5t-499.5 -138.5t-499.5 139t-376.5 368q-20 35 -20 69t20 69q140 229 376.5 368t499.5 139t499.5 -139t376.5 -368q20 -35 20 -69z" />
|
139 |
+
<glyph unicode="" horiz-adv-x="1792" d="M555 201l78 141q-87 63 -136 159t-49 203q0 121 61 225q-229 -117 -381 -353q167 -258 427 -375zM944 960q0 20 -14 34t-34 14q-125 0 -214.5 -89.5t-89.5 -214.5q0 -20 14 -34t34 -14t34 14t14 34q0 86 61 147t147 61q20 0 34 14t14 34zM1307 1151q0 -7 -1 -9 q-105 -188 -315 -566t-316 -567l-49 -89q-10 -16 -28 -16q-12 0 -134 70q-16 10 -16 28q0 12 44 87q-143 65 -263.5 173t-208.5 245q-20 31 -20 69t20 69q153 235 380 371t496 136q89 0 180 -17l54 97q10 16 28 16q5 0 18 -6t31 -15.5t33 -18.5t31.5 -18.5t19.5 -11.5 q16 -10 16 -27zM1344 704q0 -139 -79 -253.5t-209 -164.5l280 502q8 -45 8 -84zM1792 576q0 -35 -20 -69q-39 -64 -109 -145q-150 -172 -347.5 -267t-419.5 -95l74 132q212 18 392.5 137t301.5 307q-115 179 -282 294l63 112q95 -64 182.5 -153t144.5 -184q20 -34 20 -69z " />
|
140 |
+
<glyph unicode="" horiz-adv-x="1792" d="M1024 161v190q0 14 -9.5 23.5t-22.5 9.5h-192q-13 0 -22.5 -9.5t-9.5 -23.5v-190q0 -14 9.5 -23.5t22.5 -9.5h192q13 0 22.5 9.5t9.5 23.5zM1022 535l18 459q0 12 -10 19q-13 11 -24 11h-220q-11 0 -24 -11q-10 -7 -10 -21l17 -457q0 -10 10 -16.5t24 -6.5h185 q14 0 23.5 6.5t10.5 16.5zM1008 1469l768 -1408q35 -63 -2 -126q-17 -29 -46.5 -46t-63.5 -17h-1536q-34 0 -63.5 17t-46.5 46q-37 63 -2 126l768 1408q17 31 47 49t65 18t65 -18t47 -49z" />
|
141 |
+
<glyph unicode="" horiz-adv-x="1408" d="M1397 1324q0 -87 -149 -236l-240 -240l143 -746l1 -6q0 -14 -9 -23l-64 -64q-9 -9 -23 -9q-21 0 -29 18l-274 575l-245 -245q68 -238 68 -252t-9 -23l-64 -64q-9 -9 -23 -9q-18 0 -28 16l-155 280l-280 155q-17 9 -17 28q0 14 9 23l64 65q9 9 23 9t252 -68l245 245 l-575 274q-18 8 -18 29q0 14 9 23l64 64q9 9 23 9q4 0 6 -1l746 -143l240 240q149 149 236 149q32 0 52.5 -20.5t20.5 -52.5z" />
|
142 |
+
<glyph unicode="" horiz-adv-x="1664" d="M128 -128h288v288h-288v-288zM480 -128h320v288h-320v-288zM128 224h288v320h-288v-320zM480 224h320v320h-320v-320zM128 608h288v288h-288v-288zM864 -128h320v288h-320v-288zM480 608h320v288h-320v-288zM1248 -128h288v288h-288v-288zM864 224h320v320h-320v-320z M512 1088v288q0 13 -9.5 22.5t-22.5 9.5h-64q-13 0 -22.5 -9.5t-9.5 -22.5v-288q0 -13 9.5 -22.5t22.5 -9.5h64q13 0 22.5 9.5t9.5 22.5zM1248 224h288v320h-288v-320zM864 608h320v288h-320v-288zM1248 608h288v288h-288v-288zM1280 1088v288q0 13 -9.5 22.5t-22.5 9.5h-64 q-13 0 -22.5 -9.5t-9.5 -22.5v-288q0 -13 9.5 -22.5t22.5 -9.5h64q13 0 22.5 9.5t9.5 22.5zM1664 1152v-1280q0 -52 -38 -90t-90 -38h-1408q-52 0 -90 38t-38 90v1280q0 52 38 90t90 38h128v96q0 66 47 113t113 47h64q66 0 113 -47t47 -113v-96h384v96q0 66 47 113t113 47 h64q66 0 113 -47t47 -113v-96h128q52 0 90 -38t38 -90z" />
|
143 |
+
<glyph unicode="" horiz-adv-x="1792" d="M666 1055q-60 -92 -137 -273q-22 45 -37 72.5t-40.5 63.5t-51 56.5t-63 35t-81.5 14.5h-224q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h224q250 0 410 -225zM1792 256q0 -14 -9 -23l-320 -320q-9 -9 -23 -9q-13 0 -22.5 9.5t-9.5 22.5v192q-32 0 -85 -0.5t-81 -1t-73 1 t-71 5t-64 10.5t-63 18.5t-58 28.5t-59 40t-55 53.5t-56 69.5q59 93 136 273q22 -45 37 -72.5t40.5 -63.5t51 -56.5t63 -35t81.5 -14.5h256v192q0 14 9 23t23 9q12 0 24 -10l319 -319q9 -9 9 -23zM1792 1152q0 -14 -9 -23l-320 -320q-9 -9 -23 -9q-13 0 -22.5 9.5t-9.5 22.5 v192h-256q-48 0 -87 -15t-69 -45t-51 -61.5t-45 -77.5q-32 -62 -78 -171q-29 -66 -49.5 -111t-54 -105t-64 -100t-74 -83t-90 -68.5t-106.5 -42t-128 -16.5h-224q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h224q48 0 87 15t69 45t51 61.5t45 77.5q32 62 78 171q29 66 49.5 111 t54 105t64 100t74 83t90 68.5t106.5 42t128 16.5h256v192q0 14 9 23t23 9q12 0 24 -10l319 -319q9 -9 9 -23z" />
|
144 |
+
<glyph unicode="" horiz-adv-x="1792" d="M1792 640q0 -174 -120 -321.5t-326 -233t-450 -85.5q-70 0 -145 8q-198 -175 -460 -242q-49 -14 -114 -22q-17 -2 -30.5 9t-17.5 29v1q-3 4 -0.5 12t2 10t4.5 9.5l6 9t7 8.5t8 9q7 8 31 34.5t34.5 38t31 39.5t32.5 51t27 59t26 76q-157 89 -247.5 220t-90.5 281 q0 130 71 248.5t191 204.5t286 136.5t348 50.5q244 0 450 -85.5t326 -233t120 -321.5z" />
|
145 |
+
<glyph unicode="" d="M1536 704v-128q0 -201 -98.5 -362t-274 -251.5t-395.5 -90.5t-395.5 90.5t-274 251.5t-98.5 362v128q0 26 19 45t45 19h384q26 0 45 -19t19 -45v-128q0 -52 23.5 -90t53.5 -57t71 -30t64 -13t44 -2t44 2t64 13t71 30t53.5 57t23.5 90v128q0 26 19 45t45 19h384 q26 0 45 -19t19 -45zM512 1344v-384q0 -26 -19 -45t-45 -19h-384q-26 0 -45 19t-19 45v384q0 26 19 45t45 19h384q26 0 45 -19t19 -45zM1536 1344v-384q0 -26 -19 -45t-45 -19h-384q-26 0 -45 19t-19 45v384q0 26 19 45t45 19h384q26 0 45 -19t19 -45z" />
|
146 |
+
<glyph unicode="" horiz-adv-x="1664" d="M1611 320q0 -53 -37 -90l-75 -75q-38 -38 -91 -38q-54 0 -90 38l-486 485l-486 -485q-36 -38 -90 -38t-90 38l-75 75q-38 36 -38 90q0 53 38 91l651 651q37 37 90 37q52 0 91 -37l650 -651q38 -38 38 -91z" />
|
147 |
+
<glyph unicode="" horiz-adv-x="1664" d="M1611 832q0 -53 -37 -90l-651 -651q-38 -38 -91 -38q-54 0 -90 38l-651 651q-38 36 -38 90q0 53 38 91l74 75q39 37 91 37q53 0 90 -37l486 -486l486 486q37 37 90 37q52 0 91 -37l75 -75q37 -39 37 -91z" />
|
148 |
+
<glyph unicode="" horiz-adv-x="1920" d="M1280 32q0 -13 -9.5 -22.5t-22.5 -9.5h-960q-8 0 -13.5 2t-9 7t-5.5 8t-3 11.5t-1 11.5v13v11v160v416h-192q-26 0 -45 19t-19 45q0 24 15 41l320 384q19 22 49 22t49 -22l320 -384q15 -17 15 -41q0 -26 -19 -45t-45 -19h-192v-384h576q16 0 25 -11l160 -192q7 -11 7 -21 zM1920 448q0 -24 -15 -41l-320 -384q-20 -23 -49 -23t-49 23l-320 384q-15 17 -15 41q0 26 19 45t45 19h192v384h-576q-16 0 -25 12l-160 192q-7 9 -7 20q0 13 9.5 22.5t22.5 9.5h960q8 0 13.5 -2t9 -7t5.5 -8t3 -11.5t1 -11.5v-13v-11v-160v-416h192q26 0 45 -19t19 -45z " />
|
149 |
+
<glyph unicode="" horiz-adv-x="1664" d="M640 0q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1536 0q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1664 1088v-512q0 -24 -16 -42.5t-41 -21.5 l-1044 -122q1 -7 4.5 -21.5t6 -26.5t2.5 -22q0 -16 -24 -64h920q26 0 45 -19t19 -45t-19 -45t-45 -19h-1024q-26 0 -45 19t-19 45q0 14 11 39.5t29.5 59.5t20.5 38l-177 823h-204q-26 0 -45 19t-19 45t19 45t45 19h256q16 0 28.5 -6.5t20 -15.5t13 -24.5t7.5 -26.5 t5.5 -29.5t4.5 -25.5h1201q26 0 45 -19t19 -45z" />
|
150 |
+
<glyph unicode="" horiz-adv-x="1664" d="M1664 928v-704q0 -92 -66 -158t-158 -66h-1216q-92 0 -158 66t-66 158v960q0 92 66 158t158 66h320q92 0 158 -66t66 -158v-32h672q92 0 158 -66t66 -158z" />
|
151 |
+
<glyph unicode="" horiz-adv-x="1920" d="M1879 584q0 -31 -31 -66l-336 -396q-43 -51 -120.5 -86.5t-143.5 -35.5h-1088q-34 0 -60.5 13t-26.5 43q0 31 31 66l336 396q43 51 120.5 86.5t143.5 35.5h1088q34 0 60.5 -13t26.5 -43zM1536 928v-160h-832q-94 0 -197 -47.5t-164 -119.5l-337 -396l-5 -6q0 4 -0.5 12.5 t-0.5 12.5v960q0 92 66 158t158 66h320q92 0 158 -66t66 -158v-32h544q92 0 158 -66t66 -158z" />
|
152 |
+
<glyph unicode="" horiz-adv-x="768" d="M704 1216q0 -26 -19 -45t-45 -19h-128v-1024h128q26 0 45 -19t19 -45t-19 -45l-256 -256q-19 -19 -45 -19t-45 19l-256 256q-19 19 -19 45t19 45t45 19h128v1024h-128q-26 0 -45 19t-19 45t19 45l256 256q19 19 45 19t45 -19l256 -256q19 -19 19 -45z" />
|
153 |
+
<glyph unicode="" horiz-adv-x="1792" d="M1792 640q0 -26 -19 -45l-256 -256q-19 -19 -45 -19t-45 19t-19 45v128h-1024v-128q0 -26 -19 -45t-45 -19t-45 19l-256 256q-19 19 -19 45t19 45l256 256q19 19 45 19t45 -19t19 -45v-128h1024v128q0 26 19 45t45 19t45 -19l256 -256q19 -19 19 -45z" />
|
154 |
+
<glyph unicode="" horiz-adv-x="1920" d="M512 512v-384h-256v384h256zM896 1024v-896h-256v896h256zM1280 768v-640h-256v640h256zM1664 1152v-1024h-256v1024h256zM1792 32v1216q0 13 -9.5 22.5t-22.5 9.5h-1600q-13 0 -22.5 -9.5t-9.5 -22.5v-1216q0 -13 9.5 -22.5t22.5 -9.5h1600q13 0 22.5 9.5t9.5 22.5z M1920 1248v-1216q0 -66 -47 -113t-113 -47h-1600q-66 0 -113 47t-47 113v1216q0 66 47 113t113 47h1600q66 0 113 -47t47 -113z" />
|
155 |
+
<glyph unicode="" d="M1280 958q0 13 -9.5 22.5t-22.5 9.5q-5 0 -15 -4q20 34 20 55q0 13 -9.5 22.5t-22.5 9.5q-7 0 -17 -5q-60 -34 -97 -43q-65 63 -154 63q-98 0 -164.5 -72.5t-64.5 -169.5v-12q-107 14 -187.5 64t-156.5 139q-10 12 -28 12q-26 0 -41 -50.5t-15 -86.5q0 -62 29 -117 q-13 -2 -21.5 -11.5t-8.5 -22.5q0 -112 81 -185q-12 -8 -12 -25q0 -6 1 -9q15 -51 50.5 -91.5t84.5 -60.5q-77 -43 -165 -43q-8 0 -24 1.5t-23 1.5q-13 0 -22.5 -9.5t-9.5 -22.5q0 -17 14 -26q63 -47 150 -73.5t170 -26.5q130 0 248 58q166 79 256 232.5t88 339.5v12 q27 22 62.5 63t35.5 61zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
|
156 |
+
<glyph unicode="" d="M1248 1408q119 0 203.5 -84.5t84.5 -203.5v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-350q-2 0 -2 1v671h177q31 0 32 23l12 164q2 15 -8 25q-10 12 -24 12h-189v72q0 44 11.5 57t54.5 13q57 0 117 -13q13 -3 26 5q11 8 13 22l23 166q2 12 -5.5 22.5t-19.5 13.5 q-93 26 -197 26q-311 0 -311 -299v-85h-95q-13 0 -23 -10.5t-10 -24.5v-172q0 -8 5.5 -12t10 -4.5t17.5 -0.5h95v-671l10 -1h-330q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960z" />
|
157 |
+
<glyph unicode="" horiz-adv-x="1792" d="M928 704q0 14 -9 23t-23 9q-66 0 -113 -47t-47 -113q0 -14 9 -23t23 -9t23 9t9 23q0 40 28 68t68 28q14 0 23 9t9 23zM1152 574q0 -106 -75 -181t-181 -75t-181 75t-75 181t75 181t181 75t181 -75t75 -181zM128 0h1536v128h-1536v-128zM1280 574q0 159 -112.5 271.5 t-271.5 112.5t-271.5 -112.5t-112.5 -271.5t112.5 -271.5t271.5 -112.5t271.5 112.5t112.5 271.5zM256 1216h384v128h-384v-128zM128 1024h1536v118v138h-828l-64 -128h-644v-128zM1792 1280v-1280q0 -53 -37.5 -90.5t-90.5 -37.5h-1536q-53 0 -90.5 37.5t-37.5 90.5v1280 q0 53 37.5 90.5t90.5 37.5h1536q53 0 90.5 -37.5t37.5 -90.5z" />
|
158 |
+
<glyph unicode="" horiz-adv-x="1792" d="M832 1024q0 80 -56 136t-136 56t-136 -56t-56 -136q0 -42 19 -83q-41 19 -83 19q-80 0 -136 -56t-56 -136t56 -136t136 -56t136 56t56 136q0 42 -19 83q41 -19 83 -19q80 0 136 56t56 136zM1683 320q0 -17 -49 -66t-66 -49q-9 0 -28.5 16t-36.5 33t-38.5 40t-24.5 26 l-96 -96l220 -220q28 -28 28 -68q0 -42 -39 -81t-81 -39q-40 0 -68 28l-671 671q-176 -131 -365 -131q-163 0 -265.5 102.5t-102.5 265.5q0 160 95 313t248 248t313 95q163 0 265.5 -102.5t102.5 -265.5q0 -189 -131 -365l355 -355l96 96q-3 3 -26 24.5t-40 38.5t-33 36.5 t-16 28.5q0 17 49 66t66 49q13 0 23 -10q6 -6 46 -44.5t82 -79.5t86.5 -86t73 -78t28.5 -41z" />
|
159 |
+
<glyph unicode="" horiz-adv-x="1920" d="M896 640q0 106 -75 181t-181 75t-181 -75t-75 -181t75 -181t181 -75t181 75t75 181zM1664 128q0 52 -38 90t-90 38t-90 -38t-38 -90q0 -53 37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1664 1152q0 52 -38 90t-90 38t-90 -38t-38 -90q0 -53 37.5 -90.5t90.5 -37.5 t90.5 37.5t37.5 90.5zM1280 731v-185q0 -10 -7 -19.5t-16 -10.5l-155 -24q-11 -35 -32 -76q34 -48 90 -115q7 -10 7 -20q0 -12 -7 -19q-23 -30 -82.5 -89.5t-78.5 -59.5q-11 0 -21 7l-115 90q-37 -19 -77 -31q-11 -108 -23 -155q-7 -24 -30 -24h-186q-11 0 -20 7.5t-10 17.5 l-23 153q-34 10 -75 31l-118 -89q-7 -7 -20 -7q-11 0 -21 8q-144 133 -144 160q0 9 7 19q10 14 41 53t47 61q-23 44 -35 82l-152 24q-10 1 -17 9.5t-7 19.5v185q0 10 7 19.5t16 10.5l155 24q11 35 32 76q-34 48 -90 115q-7 11 -7 20q0 12 7 20q22 30 82 89t79 59q11 0 21 -7 l115 -90q34 18 77 32q11 108 23 154q7 24 30 24h186q11 0 20 -7.5t10 -17.5l23 -153q34 -10 75 -31l118 89q8 7 20 7q11 0 21 -8q144 -133 144 -160q0 -9 -7 -19q-12 -16 -42 -54t-45 -60q23 -48 34 -82l152 -23q10 -2 17 -10.5t7 -19.5zM1920 198v-140q0 -16 -149 -31 q-12 -27 -30 -52q51 -113 51 -138q0 -4 -4 -7q-122 -71 -124 -71q-8 0 -46 47t-52 68q-20 -2 -30 -2t-30 2q-14 -21 -52 -68t-46 -47q-2 0 -124 71q-4 3 -4 7q0 25 51 138q-18 25 -30 52q-149 15 -149 31v140q0 16 149 31q13 29 30 52q-51 113 -51 138q0 4 4 7q4 2 35 20 t59 34t30 16q8 0 46 -46.5t52 -67.5q20 2 30 2t30 -2q51 71 92 112l6 2q4 0 124 -70q4 -3 4 -7q0 -25 -51 -138q17 -23 30 -52q149 -15 149 -31zM1920 1222v-140q0 -16 -149 -31q-12 -27 -30 -52q51 -113 51 -138q0 -4 -4 -7q-122 -71 -124 -71q-8 0 -46 47t-52 68 q-20 -2 -30 -2t-30 2q-14 -21 -52 -68t-46 -47q-2 0 -124 71q-4 3 -4 7q0 25 51 138q-18 25 -30 52q-149 15 -149 31v140q0 16 149 31q13 29 30 52q-51 113 -51 138q0 4 4 7q4 2 35 20t59 34t30 16q8 0 46 -46.5t52 -67.5q20 2 30 2t30 -2q51 71 92 112l6 2q4 0 124 -70 q4 -3 4 -7q0 -25 -51 -138q17 -23 30 -52q149 -15 149 -31z" />
|
160 |
+
<glyph unicode="" horiz-adv-x="1792" d="M1408 768q0 -139 -94 -257t-256.5 -186.5t-353.5 -68.5q-86 0 -176 16q-124 -88 -278 -128q-36 -9 -86 -16h-3q-11 0 -20.5 8t-11.5 21q-1 3 -1 6.5t0.5 6.5t2 6l2.5 5t3.5 5.5t4 5t4.5 5t4 4.5q5 6 23 25t26 29.5t22.5 29t25 38.5t20.5 44q-124 72 -195 177t-71 224 q0 139 94 257t256.5 186.5t353.5 68.5t353.5 -68.5t256.5 -186.5t94 -257zM1792 512q0 -120 -71 -224.5t-195 -176.5q10 -24 20.5 -44t25 -38.5t22.5 -29t26 -29.5t23 -25q1 -1 4 -4.5t4.5 -5t4 -5t3.5 -5.5l2.5 -5t2 -6t0.5 -6.5t-1 -6.5q-3 -14 -13 -22t-22 -7 q-50 7 -86 16q-154 40 -278 128q-90 -16 -176 -16q-271 0 -472 132q58 -4 88 -4q161 0 309 45t264 129q125 92 192 212t67 254q0 77 -23 152q129 -71 204 -178t75 -230z" />
|
161 |
+
<glyph unicode="" d="M256 192q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1408 768q0 51 -39 89.5t-89 38.5h-352q0 58 48 159.5t48 160.5q0 98 -32 145t-128 47q-26 -26 -38 -85t-30.5 -125.5t-59.5 -109.5q-22 -23 -77 -91q-4 -5 -23 -30t-31.5 -41t-34.5 -42.5 t-40 -44t-38.5 -35.5t-40 -27t-35.5 -9h-32v-640h32q13 0 31.5 -3t33 -6.5t38 -11t35 -11.5t35.5 -12.5t29 -10.5q211 -73 342 -73h121q192 0 192 167q0 26 -5 56q30 16 47.5 52.5t17.5 73.5t-18 69q53 50 53 119q0 25 -10 55.5t-25 47.5q32 1 53.5 47t21.5 81zM1536 769 q0 -89 -49 -163q9 -33 9 -69q0 -77 -38 -144q3 -21 3 -43q0 -101 -60 -178q1 -139 -85 -219.5t-227 -80.5h-36h-93q-96 0 -189.5 22.5t-216.5 65.5q-116 40 -138 40h-288q-53 0 -90.5 37.5t-37.5 90.5v640q0 53 37.5 90.5t90.5 37.5h274q36 24 137 155q58 75 107 128 q24 25 35.5 85.5t30.5 126.5t62 108q39 37 90 37q84 0 151 -32.5t102 -101.5t35 -186q0 -93 -48 -192h176q104 0 180 -76t76 -179z" />
|
162 |
+
<glyph unicode="" d="M256 1088q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1408 512q0 35 -21.5 81t-53.5 47q15 17 25 47.5t10 55.5q0 69 -53 119q18 32 18 69t-17.5 73.5t-47.5 52.5q5 30 5 56q0 85 -49 126t-136 41h-128q-131 0 -342 -73q-5 -2 -29 -10.5 t-35.5 -12.5t-35 -11.5t-38 -11t-33 -6.5t-31.5 -3h-32v-640h32q16 0 35.5 -9t40 -27t38.5 -35.5t40 -44t34.5 -42.5t31.5 -41t23 -30q55 -68 77 -91q41 -43 59.5 -109.5t30.5 -125.5t38 -85q96 0 128 47t32 145q0 59 -48 160.5t-48 159.5h352q50 0 89 38.5t39 89.5z M1536 511q0 -103 -76 -179t-180 -76h-176q48 -99 48 -192q0 -118 -35 -186q-35 -69 -102 -101.5t-151 -32.5q-51 0 -90 37q-34 33 -54 82t-25.5 90.5t-17.5 84.5t-31 64q-48 50 -107 127q-101 131 -137 155h-274q-53 0 -90.5 37.5t-37.5 90.5v640q0 53 37.5 90.5t90.5 37.5 h288q22 0 138 40q128 44 223 66t200 22h112q140 0 226.5 -79t85.5 -216v-5q60 -77 60 -178q0 -22 -3 -43q38 -67 38 -144q0 -36 -9 -69q49 -74 49 -163z" />
|
163 |
+
<glyph unicode="" horiz-adv-x="896" d="M832 1504v-1339l-449 -236q-22 -12 -40 -12q-21 0 -31.5 14.5t-10.5 35.5q0 6 2 20l86 500l-364 354q-25 27 -25 48q0 37 56 46l502 73l225 455q19 41 49 41z" />
|
164 |
+
<glyph unicode="" horiz-adv-x="1792" d="M1664 940q0 81 -21.5 143t-55 98.5t-81.5 59.5t-94 31t-98 8t-112 -25.5t-110.5 -64t-86.5 -72t-60 -61.5q-18 -22 -49 -22t-49 22q-24 28 -60 61.5t-86.5 72t-110.5 64t-112 25.5t-98 -8t-94 -31t-81.5 -59.5t-55 -98.5t-21.5 -143q0 -168 187 -355l581 -560l580 559 q188 188 188 356zM1792 940q0 -221 -229 -450l-623 -600q-18 -18 -44 -18t-44 18l-624 602q-10 8 -27.5 26t-55.5 65.5t-68 97.5t-53.5 121t-23.5 138q0 220 127 344t351 124q62 0 126.5 -21.5t120 -58t95.5 -68.5t76 -68q36 36 76 68t95.5 68.5t120 58t126.5 21.5 q224 0 351 -124t127 -344z" />
|
165 |
+
<glyph unicode="" horiz-adv-x="1664" d="M640 96q0 -4 1 -20t0.5 -26.5t-3 -23.5t-10 -19.5t-20.5 -6.5h-320q-119 0 -203.5 84.5t-84.5 203.5v704q0 119 84.5 203.5t203.5 84.5h320q13 0 22.5 -9.5t9.5 -22.5q0 -4 1 -20t0.5 -26.5t-3 -23.5t-10 -19.5t-20.5 -6.5h-320q-66 0 -113 -47t-47 -113v-704 q0 -66 47 -113t113 -47h288h11h13t11.5 -1t11.5 -3t8 -5.5t7 -9t2 -13.5zM1568 640q0 -26 -19 -45l-544 -544q-19 -19 -45 -19t-45 19t-19 45v288h-448q-26 0 -45 19t-19 45v384q0 26 19 45t45 19h448v288q0 26 19 45t45 19t45 -19l544 -544q19 -19 19 -45z" />
|
166 |
+
<glyph unicode="" d="M512 160v640q0 13 -9.5 22.5t-22.5 9.5h-192q-13 0 -22.5 -9.5t-9.5 -22.5v-640q0 -13 9.5 -22.5t22.5 -9.5h192q13 0 22.5 9.5t9.5 22.5zM503 1028q0 51 -36 87.5t-88 36.5q-51 0 -87 -36.5t-36 -87.5t36 -87.5t87 -36.5q52 0 88 36.5t36 87.5zM1280 160v435 q0 127 -73.5 192.5t-202.5 65.5q-90 0 -158 -45q-12 -8 -14 -12q0 36 -35 36h-176q-14 0 -29.5 -7.5t-15.5 -20.5v-644q0 -13 15.5 -22.5t29.5 -9.5h182q12 0 20.5 9.5t8.5 22.5v349q0 140 114 140q49 0 63.5 -22.5t14.5 -73.5v-393q0 -13 12 -22.5t26 -9.5h186 q13 0 22.5 9.5t9.5 22.5zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
|
167 |
+
<glyph unicode="" horiz-adv-x="1152" d="M480 672v448q0 14 -9 23t-23 9t-23 -9t-9 -23v-448q0 -14 9 -23t23 -9t23 9t9 23zM1152 320q0 -26 -19 -45t-45 -19h-429l-51 -483q-2 -12 -10.5 -20.5t-20.5 -8.5h-1q-27 0 -32 27l-76 485h-404q-26 0 -45 19t-19 45q0 123 78.5 221.5t177.5 98.5v512q-52 0 -90 38 t-38 90t38 90t90 38h640q52 0 90 -38t38 -90t-38 -90t-90 -38v-512q99 0 177.5 -98.5t78.5 -221.5z" />
|
168 |
+
<glyph unicode="" horiz-adv-x="1792" d="M1408 608v-320q0 -119 -84.5 -203.5t-203.5 -84.5h-832q-119 0 -203.5 84.5t-84.5 203.5v832q0 119 84.5 203.5t203.5 84.5h704q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-704q-66 0 -113 -47t-47 -113v-832q0 -66 47 -113t113 -47h832q66 0 113 47t47 113v320 q0 14 9 23t23 9h64q14 0 23 -9t9 -23zM1792 1472v-512q0 -26 -19 -45t-45 -19t-45 19l-176 176l-652 -652q-10 -10 -23 -10t-23 10l-114 114q-10 10 -10 23t10 23l652 652l-176 176q-19 19 -19 45t19 45t45 19h512q26 0 45 -19t19 -45z" />
|
169 |
+
<glyph unicode="" d="M1184 640q0 -26 -19 -45l-544 -544q-19 -19 -45 -19t-45 19t-19 45v288h-448q-26 0 -45 19t-19 45v384q0 26 19 45t45 19h448v288q0 26 19 45t45 19t45 -19l544 -544q19 -19 19 -45zM1536 992v-704q0 -119 -84.5 -203.5t-203.5 -84.5h-320q-13 0 -22.5 9.5t-9.5 22.5 q0 4 -1 20t-0.5 26.5t3 23.5t10 19.5t20.5 6.5h320q66 0 113 47t47 113v704q0 66 -47 113t-113 47h-288h-11h-13t-11.5 1t-11.5 3t-8 5.5t-7 9t-2 13.5q0 4 -1 20t-0.5 26.5t3 23.5t10 19.5t20.5 6.5h320q119 0 203.5 -84.5t84.5 -203.5z" />
|
170 |
+
<glyph unicode="" horiz-adv-x="1664" d="M458 653q-74 162 -74 371h-256v-96q0 -78 94.5 -162t235.5 -113zM1536 928v96h-256q0 -209 -74 -371q141 29 235.5 113t94.5 162zM1664 1056v-128q0 -71 -41.5 -143t-112 -130t-173 -97.5t-215.5 -44.5q-42 -54 -95 -95q-38 -34 -52.5 -72.5t-14.5 -89.5q0 -54 30.5 -91 t97.5 -37q75 0 133.5 -45.5t58.5 -114.5v-64q0 -14 -9 -23t-23 -9h-832q-14 0 -23 9t-9 23v64q0 69 58.5 114.5t133.5 45.5q67 0 97.5 37t30.5 91q0 51 -14.5 89.5t-52.5 72.5q-53 41 -95 95q-113 5 -215.5 44.5t-173 97.5t-112 130t-41.5 143v128q0 40 28 68t68 28h288v96 q0 66 47 113t113 47h576q66 0 113 -47t47 -113v-96h288q40 0 68 -28t28 -68z" />
|
171 |
+
<glyph unicode="" d="M582 228q0 -66 -93 -66q-107 0 -107 63q0 64 98 64q102 0 102 -61zM546 694q0 -85 -74 -85q-77 0 -77 84q0 90 77 90q36 0 55 -26t19 -63zM712 769v125q-78 -29 -135 -29q-50 29 -110 29q-86 0 -145 -57t-59 -143q0 -50 29.5 -102t73.5 -67v-3q-38 -17 -38 -85 q0 -52 41 -77v-3q-113 -37 -113 -139q0 -60 36 -98t84 -51t107 -13q224 0 224 187q0 48 -25.5 78t-62.5 42.5t-74 21.5t-62.5 23.5t-25.5 39.5q0 44 49 52q77 15 122 70t45 134q0 24 -10 52q30 7 49 13zM771 350h137q-2 20 -2 90v372q0 59 2 76h-137q3 -26 3 -79v-377 q0 -55 -3 -82zM1280 366v121q-30 -21 -68 -21q-53 0 -53 82v225h52q9 0 26.5 -1t26.5 -1v117h-105q0 82 3 102h-140q4 -24 4 -55v-47h-60v-117q36 3 37 3q4 0 11.5 -0.5t11.5 -0.5v-2h-2v-217q0 -37 2.5 -64t11.5 -56.5t24.5 -48.5t43.5 -31t66 -12q64 0 108 24zM924 1072 q0 36 -24 63.5t-60 27.5t-60.5 -27t-24.5 -64q0 -36 25 -62.5t60 -26.5t59.5 27t24.5 62zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
|
172 |
+
<glyph unicode="" horiz-adv-x="1664" d="M1664 480v-576q0 -13 -9.5 -22.5t-22.5 -9.5h-1600q-13 0 -22.5 9.5t-9.5 22.5v576q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5 -9.5t9.5 -22.5v-352h1152v352q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5 -9.5t9.5 -22.5zM1344 832q0 -26 -19 -45t-45 -19h-256v-448 q0 -26 -19 -45t-45 -19h-256q-26 0 -45 19t-19 45v448h-256q-26 0 -45 19t-19 45t19 45l448 448q19 19 45 19t45 -19l448 -448q19 -19 19 -45z" />
|
173 |
+
<glyph unicode="" d="M1407 710q0 44 -7 113.5t-18 96.5q-12 30 -17 44t-9 36.5t-4 48.5q0 23 5 68.5t5 67.5q0 37 -10 55q-4 1 -13 1q-19 0 -58 -4.5t-59 -4.5q-60 0 -176 24t-175 24q-43 0 -94.5 -11.5t-85 -23.5t-89.5 -34q-137 -54 -202 -103q-96 -73 -159.5 -189.5t-88 -236t-24.5 -248.5 q0 -40 12.5 -120t12.5 -121q0 -23 -11 -66.5t-11 -65.5t12 -36.5t34 -14.5q24 0 72.5 11t73.5 11q57 0 169.5 -15.5t169.5 -15.5q181 0 284 36q129 45 235.5 152.5t166 245.5t59.5 275zM1535 712q0 -165 -70 -327.5t-196 -288t-281 -180.5q-124 -44 -326 -44 q-57 0 -170 14.5t-169 14.5q-24 0 -72.5 -14.5t-73.5 -14.5q-73 0 -123.5 55.5t-50.5 128.5q0 24 11 68t11 67q0 40 -12.5 120.5t-12.5 121.5q0 111 18 217.5t54.5 209.5t100.5 194t150 156q78 59 232 120q194 78 316 78q60 0 175.5 -24t173.5 -24q19 0 57 5t58 5 q81 0 118 -50.5t37 -134.5q0 -23 -5 -68t-5 -68q0 -10 1 -18.5t3 -17t4 -13.5t6.5 -16t6.5 -17q16 -40 25 -118.5t9 -136.5z" />
|
174 |
+
<glyph unicode="" horiz-adv-x="1408" d="M1408 296q0 -27 -10 -70.5t-21 -68.5q-21 -50 -122 -106q-94 -51 -186 -51q-27 0 -52.5 3.5t-57.5 12.5t-47.5 14.5t-55.5 20.5t-49 18q-98 35 -175 83q-128 79 -264.5 215.5t-215.5 264.5q-48 77 -83 175q-3 9 -18 49t-20.5 55.5t-14.5 47.5t-12.5 57.5t-3.5 52.5 q0 92 51 186q56 101 106 122q25 11 68.5 21t70.5 10q14 0 21 -3q18 -6 53 -76q11 -19 30 -54t35 -63.5t31 -53.5q3 -4 17.5 -25t21.5 -35.5t7 -28.5q0 -20 -28.5 -50t-62 -55t-62 -53t-28.5 -46q0 -9 5 -22.5t8.5 -20.5t14 -24t11.5 -19q76 -137 174 -235t235 -174 q2 -1 19 -11.5t24 -14t20.5 -8.5t22.5 -5q18 0 46 28.5t53 62t55 62t50 28.5q14 0 28.5 -7t35.5 -21.5t25 -17.5q25 -15 53.5 -31t63.5 -35t54 -30q70 -35 76 -53q3 -7 3 -21z" />
|
175 |
+
<glyph unicode="" horiz-adv-x="1664" d="M1120 1280h-832q-66 0 -113 -47t-47 -113v-832q0 -66 47 -113t113 -47h832q66 0 113 47t47 113v832q0 66 -47 113t-113 47zM1408 1120v-832q0 -119 -84.5 -203.5t-203.5 -84.5h-832q-119 0 -203.5 84.5t-84.5 203.5v832q0 119 84.5 203.5t203.5 84.5h832 q119 0 203.5 -84.5t84.5 -203.5z" />
|
176 |
+
<glyph unicode="" horiz-adv-x="1280" d="M1152 1280h-1024v-1242l423 406l89 85l89 -85l423 -406v1242zM1164 1408q23 0 44 -9q33 -13 52.5 -41t19.5 -62v-1289q0 -34 -19.5 -62t-52.5 -41q-19 -8 -44 -8q-48 0 -83 32l-441 424l-441 -424q-36 -33 -83 -33q-23 0 -44 9q-33 13 -52.5 41t-19.5 62v1289 q0 34 19.5 62t52.5 41q21 9 44 9h1048z" />
|
177 |
+
<glyph unicode="" d="M1280 343q0 11 -2 16q-3 8 -38.5 29.5t-88.5 49.5l-53 29q-5 3 -19 13t-25 15t-21 5q-18 0 -47 -32.5t-57 -65.5t-44 -33q-7 0 -16.5 3.5t-15.5 6.5t-17 9.5t-14 8.5q-99 55 -170.5 126.5t-126.5 170.5q-2 3 -8.5 14t-9.5 17t-6.5 15.5t-3.5 16.5q0 13 20.5 33.5t45 38.5 t45 39.5t20.5 36.5q0 10 -5 21t-15 25t-13 19q-3 6 -15 28.5t-25 45.5t-26.5 47.5t-25 40.5t-16.5 18t-16 2q-48 0 -101 -22q-46 -21 -80 -94.5t-34 -130.5q0 -16 2.5 -34t5 -30.5t9 -33t10 -29.5t12.5 -33t11 -30q60 -164 216.5 -320.5t320.5 -216.5q6 -2 30 -11t33 -12.5 t29.5 -10t33 -9t30.5 -5t34 -2.5q57 0 130.5 34t94.5 80q22 53 22 101zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
|
178 |
+
<glyph unicode="" horiz-adv-x="1920" d="M1875 1202q0 -10 -5 -18q-64 -104 -179 -190v-33q4 -227 -100 -457q-134 -297 -397.5 -464.5t-591.5 -167.5q-265 0 -500 122q-64 33 -87 50q-15 12 -15 27q0 13 9.5 22.5t22.5 9.5q14 0 44 -2.5t45 -2.5q204 0 375 106q-103 24 -181 96t-111 173q-2 8 -2 11q0 12 9 21.5 t22 9.5q5 0 14 -2t12 -2q-89 55 -142 147t-53 196q0 15 11.5 25.5t27.5 10.5q10 0 35 -11.5t30 -13.5q-92 110 -92 256q0 51 14.5 108t40.5 95q10 16 25 16q16 0 27 -12q76 -84 110 -115q123 -111 276 -177.5t317 -80.5q-4 21 -4 49q0 167 118.5 285.5t285.5 118.5 q163 0 282 -114q95 20 209 82q8 5 16 5q13 0 22.5 -9.5t9.5 -22.5q0 -24 -28 -73t-51 -76q7 2 30 10.5t43 16t24 7.5q13 0 22.5 -9.5t9.5 -22.5z" />
|
179 |
+
<glyph unicode="" horiz-adv-x="768" d="M560 1125q-49 0 -62 -15.5t-13 -66.5v-88h217q16 0 27 -12q11 -13 10 -29l-14 -200q-2 -15 -12.5 -25.5t-25.5 -10.5h-202v-768q0 -16 -11 -27t-26 -11h-250q-16 0 -27 11t-11 27v768h-122q-16 0 -27 11.5t-11 27.5v200q0 16 11 27t27 11h122v103q0 177 88 263.5 t267 86.5q120 0 225 -30q14 -4 22 -16t6 -26l-27 -195q-2 -16 -16 -26q-14 -9 -30 -6q-76 16 -135 16z" />
|
180 |
+
<glyph unicode="" d="M1408 640q0 130 -51 248.5t-136.5 204t-204 136.5t-248.5 51t-248.5 -51t-204 -136.5t-136.5 -204t-51 -248.5q0 -209 124.5 -378.5t323.5 -231.5v169q-54 -7 -69 -7q-110 0 -153 100q-15 38 -36 63q-5 6 -21 19t-28.5 24t-12.5 16q0 12 28 12q29 0 51.5 -14.5t38 -35 t31.5 -41.5t40.5 -35.5t56.5 -14.5q42 0 81 14q16 57 63 89q-166 16 -246 83.5t-80 224.5q0 118 73 198q-14 42 -14 84q0 58 27 109q57 0 101 -19.5t101 -60.5q76 18 169 18q80 0 153 -16q57 40 100.5 59t99.5 19q27 -51 27 -109q0 -43 -14 -83q73 -82 73 -199 q0 -157 -80 -225.5t-245 -83.5q69 -47 69 -131v-226q199 62 323.5 231.5t124.5 378.5zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
|
181 |
+
<glyph unicode="" horiz-adv-x="1664" d="M704 160q0 6 -15 57t-35 115.5t-20 65.5q32 16 51 47t19 67q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5q0 -36 19 -66.5t51 -47.5q0 -2 -20 -66t-35 -115t-15 -57q0 -13 9.5 -22.5t22.5 -9.5h192q13 0 22.5 9.5t9.5 22.5zM1664 960v-256q0 -26 -19 -45t-45 -19 h-64q-26 0 -45 19t-19 45v256q0 106 -75 181t-181 75t-181 -75t-75 -181v-192h96q40 0 68 -28t28 -68v-576q0 -40 -28 -68t-68 -28h-960q-40 0 -68 28t-28 68v576q0 40 28 68t68 28h672v192q0 185 131.5 316.5t316.5 131.5t316.5 -131.5t131.5 -316.5z" />
|
182 |
+
<glyph unicode="" horiz-adv-x="1920" d="M1760 1408q66 0 113 -47t47 -113v-1216q0 -66 -47 -113t-113 -47h-1600q-66 0 -113 47t-47 113v1216q0 66 47 113t113 47h1600zM160 1280q-13 0 -22.5 -9.5t-9.5 -22.5v-224h1664v224q0 13 -9.5 22.5t-22.5 9.5h-1600zM1760 0q13 0 22.5 9.5t9.5 22.5v608h-1664v-608 q0 -13 9.5 -22.5t22.5 -9.5h1600zM256 128v128h256v-128h-256zM640 128v128h384v-128h-384z" />
|
183 |
+
<glyph unicode="" horiz-adv-x="1408" d="M384 192q0 -80 -56 -136t-136 -56t-136 56t-56 136t56 136t136 56t136 -56t56 -136zM896 69q2 -28 -17 -48q-18 -21 -47 -21h-135q-25 0 -43 16.5t-20 41.5q-22 229 -184.5 391.5t-391.5 184.5q-25 2 -41.5 20t-16.5 43v135q0 29 21 47q17 17 43 17h5q160 -13 306 -80.5 t259 -181.5q114 -113 181.5 -259t80.5 -306zM1408 67q2 -27 -18 -47q-18 -20 -46 -20h-143q-26 0 -44.5 17.5t-19.5 42.5q-12 215 -101 408.5t-231.5 336t-336 231.5t-408.5 102q-25 1 -42.5 19.5t-17.5 43.5v143q0 28 20 46q18 18 44 18h3q262 -13 501.5 -120t425.5 -294 q187 -186 294 -425.5t120 -501.5z" />
|
184 |
+
<glyph unicode="" d="M1040 320q0 -33 -23.5 -56.5t-56.5 -23.5t-56.5 23.5t-23.5 56.5t23.5 56.5t56.5 23.5t56.5 -23.5t23.5 -56.5zM1296 320q0 -33 -23.5 -56.5t-56.5 -23.5t-56.5 23.5t-23.5 56.5t23.5 56.5t56.5 23.5t56.5 -23.5t23.5 -56.5zM1408 160v320q0 13 -9.5 22.5t-22.5 9.5 h-1216q-13 0 -22.5 -9.5t-9.5 -22.5v-320q0 -13 9.5 -22.5t22.5 -9.5h1216q13 0 22.5 9.5t9.5 22.5zM178 640h1180l-157 482q-4 13 -16 21.5t-26 8.5h-782q-14 0 -26 -8.5t-16 -21.5zM1536 480v-320q0 -66 -47 -113t-113 -47h-1216q-66 0 -113 47t-47 113v320q0 25 16 75 l197 606q17 53 63 86t101 33h782q55 0 101 -33t63 -86l197 -606q16 -50 16 -75z" />
|
185 |
+
<glyph unicode="" horiz-adv-x="1792" d="M1664 896q53 0 90.5 -37.5t37.5 -90.5t-37.5 -90.5t-90.5 -37.5v-384q0 -52 -38 -90t-90 -38q-417 347 -812 380q-58 -19 -91 -66t-31 -100.5t40 -92.5q-20 -33 -23 -65.5t6 -58t33.5 -55t48 -50t61.5 -50.5q-29 -58 -111.5 -83t-168.5 -11.5t-132 55.5q-7 23 -29.5 87.5 t-32 94.5t-23 89t-15 101t3.5 98.5t22 110.5h-122q-66 0 -113 47t-47 113v192q0 66 47 113t113 47h480q435 0 896 384q52 0 90 -38t38 -90v-384zM1536 292v954q-394 -302 -768 -343v-270q377 -42 768 -341z" />
|
186 |
+
<glyph unicode="" horiz-adv-x="1664" d="M848 -160q0 16 -16 16q-59 0 -101.5 42.5t-42.5 101.5q0 16 -16 16t-16 -16q0 -73 51.5 -124.5t124.5 -51.5q16 0 16 16zM183 128h1298q-164 181 -246.5 411.5t-82.5 484.5q0 256 -320 256t-320 -256q0 -254 -82.5 -484.5t-246.5 -411.5zM1664 128q0 -52 -38 -90t-90 -38 h-448q0 -106 -75 -181t-181 -75t-181 75t-75 181h-448q-52 0 -90 38t-38 90q190 161 287 397.5t97 498.5q0 165 96 262t264 117q-8 18 -8 37q0 40 28 68t68 28t68 -28t28 -68q0 -19 -8 -37q168 -20 264 -117t96 -262q0 -262 97 -498.5t287 -397.5z" />
|
187 |
+
<glyph unicode="" d="M1376 640l138 -135q30 -28 20 -70q-12 -41 -52 -51l-188 -48l53 -186q12 -41 -19 -70q-29 -31 -70 -19l-186 53l-48 -188q-10 -40 -51 -52q-12 -2 -19 -2q-31 0 -51 22l-135 138l-135 -138q-28 -30 -70 -20q-41 11 -51 52l-48 188l-186 -53q-41 -12 -70 19q-31 29 -19 70 l53 186l-188 48q-40 10 -52 51q-10 42 20 70l138 135l-138 135q-30 28 -20 70q12 41 52 51l188 48l-53 186q-12 41 19 70q29 31 70 19l186 -53l48 188q10 41 51 51q41 12 70 -19l135 -139l135 139q29 30 70 19q41 -10 51 -51l48 -188l186 53q41 12 70 -19q31 -29 19 -70 l-53 -186l188 -48q40 -10 52 -51q10 -42 -20 -70z" />
|
188 |
+
<glyph unicode="" horiz-adv-x="1792" d="M256 192q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1664 768q0 51 -39 89.5t-89 38.5h-576q0 20 15 48.5t33 55t33 68t15 84.5q0 67 -44.5 97.5t-115.5 30.5q-24 0 -90 -139q-24 -44 -37 -65q-40 -64 -112 -145q-71 -81 -101 -106 q-69 -57 -140 -57h-32v-640h32q72 0 167 -32t193.5 -64t179.5 -32q189 0 189 167q0 26 -5 56q30 16 47.5 52.5t17.5 73.5t-18 69q53 50 53 119q0 25 -10 55.5t-25 47.5h331q52 0 90 38t38 90zM1792 769q0 -105 -75.5 -181t-180.5 -76h-169q-4 -62 -37 -119q3 -21 3 -43 q0 -101 -60 -178q1 -139 -85 -219.5t-227 -80.5q-133 0 -322 69q-164 59 -223 59h-288q-53 0 -90.5 37.5t-37.5 90.5v640q0 53 37.5 90.5t90.5 37.5h288q10 0 21.5 4.5t23.5 14t22.5 18t24 22.5t20.5 21.5t19 21.5t14 17q65 74 100 129q13 21 33 62t37 72t40.5 63t55 49.5 t69.5 17.5q125 0 206.5 -67t81.5 -189q0 -68 -22 -128h374q104 0 180 -76t76 -179z" />
|
189 |
+
<glyph unicode="" horiz-adv-x="1792" d="M1376 128h32v640h-32q-35 0 -67 11.5t-64 38.5t-48 44t-50 55q-2 3 -3.5 4.5t-4 4.5t-4.5 5q-72 81 -112 145q-14 22 -38 68q-1 3 -10.5 22.5t-18.5 36t-20 35.5t-21.5 30.5t-18.5 11.5q-71 0 -115.5 -30.5t-44.5 -97.5q0 -43 15 -84.5t33 -68t33 -55t15 -48.5h-576 q-50 0 -89 -38.5t-39 -89.5q0 -52 38 -90t90 -38h331q-15 -17 -25 -47.5t-10 -55.5q0 -69 53 -119q-18 -32 -18 -69t17.5 -73.5t47.5 -52.5q-4 -24 -4 -56q0 -85 48.5 -126t135.5 -41q84 0 183 32t194 64t167 32zM1664 192q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45 t45 -19t45 19t19 45zM1792 768v-640q0 -53 -37.5 -90.5t-90.5 -37.5h-288q-59 0 -223 -59q-190 -69 -317 -69q-142 0 -230 77.5t-87 217.5l1 5q-61 76 -61 178q0 22 3 43q-33 57 -37 119h-169q-105 0 -180.5 76t-75.5 181q0 103 76 179t180 76h374q-22 60 -22 128 q0 122 81.5 189t206.5 67q38 0 69.5 -17.5t55 -49.5t40.5 -63t37 -72t33 -62q35 -55 100 -129q2 -3 14 -17t19 -21.5t20.5 -21.5t24 -22.5t22.5 -18t23.5 -14t21.5 -4.5h288q53 0 90.5 -37.5t37.5 -90.5z" />
|
190 |
+
<glyph unicode="" d="M1280 -64q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1408 700q0 189 -167 189q-26 0 -56 -5q-16 30 -52.5 47.5t-73.5 17.5t-69 -18q-50 53 -119 53q-25 0 -55.5 -10t-47.5 -25v331q0 52 -38 90t-90 38q-51 0 -89.5 -39t-38.5 -89v-576 q-20 0 -48.5 15t-55 33t-68 33t-84.5 15q-67 0 -97.5 -44.5t-30.5 -115.5q0 -24 139 -90q44 -24 65 -37q64 -40 145 -112q81 -71 106 -101q57 -69 57 -140v-32h640v32q0 72 32 167t64 193.5t32 179.5zM1536 705q0 -133 -69 -322q-59 -164 -59 -223v-288q0 -53 -37.5 -90.5 t-90.5 -37.5h-640q-53 0 -90.5 37.5t-37.5 90.5v288q0 10 -4.5 21.5t-14 23.5t-18 22.5t-22.5 24t-21.5 20.5t-21.5 19t-17 14q-74 65 -129 100q-21 13 -62 33t-72 37t-63 40.5t-49.5 55t-17.5 69.5q0 125 67 206.5t189 81.5q68 0 128 -22v374q0 104 76 180t179 76 q105 0 181 -75.5t76 -180.5v-169q62 -4 119 -37q21 3 43 3q101 0 178 -60q139 1 219.5 -85t80.5 -227z" />
|
191 |
+
<glyph unicode="" d="M1408 576q0 84 -32 183t-64 194t-32 167v32h-640v-32q0 -46 -25 -91t-52 -72t-72 -66q-9 -8 -14 -12q-81 -72 -145 -112q-22 -14 -68 -38q-3 -1 -22.5 -10.5t-36 -18.5t-35.5 -20t-30.5 -21.5t-11.5 -18.5q0 -71 30.5 -115.5t97.5 -44.5q43 0 84.5 15t68 33t55 33 t48.5 15v-576q0 -50 38.5 -89t89.5 -39q52 0 90 38t38 90v331q46 -35 103 -35q69 0 119 53q32 -18 69 -18t73.5 17.5t52.5 47.5q24 -4 56 -4q85 0 126 48.5t41 135.5zM1280 1344q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1536 580q0 -142 -77.5 -230 t-217.5 -87l-5 1q-76 -61 -178 -61q-22 0 -43 3q-54 -30 -119 -37v-169q0 -105 -76 -180.5t-181 -75.5q-103 0 -179 76t-76 180v374q-54 -22 -128 -22q-121 0 -188.5 81.5t-67.5 206.5q0 38 17.5 69.5t49.5 55t63 40.5t72 37t62 33q55 35 129 100q3 2 17 14t21.5 19 t21.5 20.5t22.5 24t18 22.5t14 23.5t4.5 21.5v288q0 53 37.5 90.5t90.5 37.5h640q53 0 90.5 -37.5t37.5 -90.5v-288q0 -59 59 -223q69 -190 69 -317z" />
|
192 |
+
<glyph unicode="" d="M1280 576v128q0 26 -19 45t-45 19h-502l189 189q19 19 19 45t-19 45l-91 91q-18 18 -45 18t-45 -18l-362 -362l-91 -91q-18 -18 -18 -45t18 -45l91 -91l362 -362q18 -18 45 -18t45 18l91 91q18 18 18 45t-18 45l-189 189h502q26 0 45 19t19 45zM1536 640 q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
|
193 |
+
<glyph unicode="" d="M1285 640q0 27 -18 45l-91 91l-362 362q-18 18 -45 18t-45 -18l-91 -91q-18 -18 -18 -45t18 -45l189 -189h-502q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h502l-189 -189q-19 -19 -19 -45t19 -45l91 -91q18 -18 45 -18t45 18l362 362l91 91q18 18 18 45zM1536 640 q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
|
194 |
+
<glyph unicode="" d="M1284 641q0 27 -18 45l-362 362l-91 91q-18 18 -45 18t-45 -18l-91 -91l-362 -362q-18 -18 -18 -45t18 -45l91 -91q18 -18 45 -18t45 18l189 189v-502q0 -26 19 -45t45 -19h128q26 0 45 19t19 45v502l189 -189q19 -19 45 -19t45 19l91 91q18 18 18 45zM1536 640 q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
|
195 |
+
<glyph unicode="" d="M1284 639q0 27 -18 45l-91 91q-18 18 -45 18t-45 -18l-189 -189v502q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-502l-189 189q-19 19 -45 19t-45 -19l-91 -91q-18 -18 -18 -45t18 -45l362 -362l91 -91q18 -18 45 -18t45 18l91 91l362 362q18 18 18 45zM1536 640 q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
|
196 |
+
<glyph unicode="" d="M1193 993q11 7 25 22v-1q0 -2 -9.5 -10t-11.5 -12q-1 1 -4 1zM1187 992q-1 1 -2.5 3t-1.5 3q3 -2 10 -5q-6 -4 -6 -1zM728 1175q-16 2 -26 5q1 0 6.5 -1t10.5 -2t9 -2zM773 1212q7 4 13.5 2.5t7.5 -7.5q-5 3 -21 5zM765 1206l-3 2q-2 3 -5.5 5t-4.5 2q2 -1 21 -3 q-6 -4 -8 -6zM663 1290v2q1 -2 3 -5.5t3 -5.5zM558 1250q0 -2 -1 -2l-1 2h2zM933 206v-1v1zM768 1408q209 0 385.5 -103t279.5 -279.5t103 -385.5t-103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103zM1240 162 l5 5q-7 10 -29 12q1 12 -14 26.5t-27 15.5q0 4 -10.5 11t-17.5 8q-9 2 -27 -9q-7 -3 -4 -5q-3 3 -12 11t-16 11q-2 1 -7.5 1t-8.5 2q-1 1 -6 4.5t-7 4.5t-6.5 3t-7.5 1.5t-7.5 -2.5t-8.5 -6t-4.5 -15.5t-2.5 -14.5q-8 6 -0.5 20t1.5 20q-7 7 -21 0.5t-21 -15.5 q-1 -1 -9.5 -5.5t-11.5 -7.5q-4 -6 -9 -17.5t-6 -13.5q0 2 -2.5 6.5t-2.5 6.5q-12 -2 -16 3q5 -16 8 -17l-4 2q-1 -6 3 -15t4 -11q1 -5 -1.5 -13t-2.5 -11q0 -2 5 -11q4 -19 -2 -32q0 -1 -3.5 -7t-6.5 -11l-2 -5l-2 1q-1 1 -2 0q-1 -6 -9 -13t-10 -11q-15 -23 -9 -38 q3 -8 10 -10q3 -1 3 2q1 -9 -11 -27q1 -1 4 -3q-17 0 -10 -14q202 36 352 181h-3zM680 347q16 3 30.5 -16t22.5 -23q41 -20 59 -11q0 -9 14 -28q3 -4 6.5 -11.5t5.5 -10.5q5 -7 19 -16t19 -16q6 3 9 9q13 -35 24 -34q5 0 8 8q0 -1 -0.5 -3t-1.5 -3q7 15 5 26l6 4q5 4 5 5 q-6 6 -9 -3q-30 -14 -48 22q-2 3 -4.5 8t-5 12t-1.5 11.5t6 4.5q11 0 12.5 1.5t-2.5 6t-4 7.5q-1 4 -1.5 12.5t-1.5 12.5l-5 6q-5 6 -11.5 13.5t-7.5 9.5q-4 -10 -16.5 -8.5t-18.5 9.5q1 -2 -0.5 -6.5t-1.5 -6.5q-14 0 -17 1q1 6 3 21t4 22q1 5 5.5 13.5t8 15.5t4.5 14 t-4.5 10.5t-18.5 2.5q-20 -1 -29 -22q-1 -3 -3 -11.5t-5 -12.5t-9 -7q-8 -3 -27 -2t-26 5q-14 8 -24 30.5t-11 41.5q0 10 3 27.5t3 27t-6 26.5q3 2 10 10.5t11 11.5q2 2 5 2h5t4 2t3 6q-1 1 -4 3q-3 3 -4 3q4 -3 19 -1t19 2q0 1 22 0q17 -13 24 2q0 1 -2.5 10.5t-0.5 14.5 q5 -29 32 -10q3 -4 16.5 -6t18.5 -5q3 -2 7 -5.5t6 -5t6 -0.5t9 7q11 -17 13 -25q11 -43 20 -48q8 -2 12.5 -2t5 10.5t0 15.5t-1.5 13l-2 37q-16 3 -20 12.5t1.5 20t16.5 19.5q1 1 16.5 8t21.5 12q24 19 17 39q9 -2 11 9l-5 3q-4 3 -8 5.5t-5 1.5q11 7 2 18q5 3 8 11.5 t9 11.5q9 -14 22 -3q8 9 2 18q5 8 22 11.5t20 9.5q5 -1 7 0t2 4.5v7.5t1 8.5t3 7.5q4 6 16 10.5t14 5.5l19 12q4 4 0 4q18 -2 32 11q13 12 -5 23q2 7 -4 10.5t-16 5.5q3 1 12 0.5t12 1.5q15 11 -7 17q-20 5 -47 -13q-3 -2 -13 -12t-17 -11q15 18 5 22q8 -1 22.5 9t15.5 11 q4 2 10.5 2.5t8.5 1.5q71 25 92 -1q8 11 11 15t9.5 9t15.5 8q21 7 23 9l1 23q-12 -1 -18 8t-7 22l-6 -8q0 6 -3.5 7.5t-7.5 0.5t-9.5 -2t-7.5 0q-9 2 -19.5 15.5t-14.5 16.5q9 0 9 5q-2 5 -10 8q1 6 -2 8t-9 0q-2 12 -1 13q-6 1 -11 11t-8 10q-2 0 -4.5 -2t-5 -5.5l-5 -7 t-3.5 -5.5l-2 -2q-12 6 -24 -10q-9 1 -17 -2q15 6 2 13q-11 5 -21 2q12 5 10 14t-12 16q1 0 4 -1t4 -1q-1 5 -9.5 9.5t-19.5 9t-14 6.5q-7 5 -36 10.5t-36 1.5q-5 -3 -6 -6t1.5 -8.5t3.5 -8.5q6 -23 5 -27q-1 -3 -8.5 -8t-5.5 -12q1 -4 11.5 -10t12.5 -12q5 -13 -4 -25 q-4 -5 -15 -11t-14 -10q-5 -5 -3.5 -11.5t0.5 -9.5q1 1 1 2.5t1 2.5q0 -13 11 -22q8 -6 -16 -18q-20 -11 -20 -4q1 8 -7.5 16t-10.5 12t-3.5 19t-9.5 21q-6 4 -19 4t-18 -5q0 10 -49 30q-17 8 -58 4q7 1 0 17q-8 16 -21 12q-8 25 -4 35q2 5 9 14t9 15q1 3 15.5 6t16.5 8 q1 4 -2.5 6.5t-9.5 4.5q53 -6 63 18q5 9 3 14q0 -1 2 -1t2 -1q12 3 7 17q19 8 26 8q5 -1 11 -6t10 -5q17 -3 21.5 10t-9.5 23q7 -4 7 6q-1 13 -7 19q-3 2 -6.5 2.5t-6.5 0t-7 0.5q-1 0 -8 2q-1 -1 -2 -1h-8q-4 -2 -4 -5v-1q-1 -3 4 -6l5 -1l3 -2q-1 0 -2.5 -2.5t-2.5 -2.5 q0 -3 3 -5q-2 -1 -14 -7.5t-17 -10.5q-1 -1 -4 -2.5t-4 -2.5q-2 -1 -4 2t-4 9t-4 11.5t-4.5 10t-5.5 4.5q-12 0 -18 -17q3 10 -13 17.5t-25 7.5q20 15 -9 30l-1 1q-30 -4 -45 -7q-2 -6 3 -12q-1 -7 6 -9q0 -1 0.5 -1t0.5 -1q0 1 -0.5 1t-0.5 1q3 -1 10.5 -1.5t9.5 -1.5 q3 -1 4.5 -2l7.5 -5t5.5 -6t-2.5 -5q-2 -1 -9 -4t-12.5 -5.5t-6.5 -3.5q-3 -5 0 -16t-2 -15q-5 5 -10 18.5t-8 17.5q8 -9 -30 -6l-8 1q-4 0 -15 -2t-16 -1q-7 0 -29 6q7 17 5 25q5 0 7 2l-6 3q-3 -1 -25 -9q2 -3 8 -9.5t9 -11.5q-22 6 -27 -2q0 -1 -9 0q-25 1 -24 -7 q1 -4 9 -12q0 -9 -1 -9q-27 22 -30 23q-172 -83 -276 -248q1 -2 2.5 -11t3.5 -8.5t11 4.5q9 -9 3 -21q2 2 36 -21q56 -40 22 -53v5.5t1 6.5q-9 -1 -19 5q-3 -6 0.5 -20t11.5 -14q-8 0 -10.5 -17t-2.5 -38.5t-1 -25.5l2 -1q-3 -13 6 -37.5t24 -20.5q-4 -18 5 -21q-1 -4 0 -8 t4.5 -8.5t6 -7l7.5 -7.5l6 -6q28 -11 41 -29q4 -6 10.5 -24.5t15.5 -25.5q-2 -6 10 -21.5t11 -25.5q-1 0 -2.5 -0.5t-2.5 -0.5q3 -8 16.5 -16t16.5 -14q2 -3 2.5 -10.5t3 -12t8.5 -2.5q3 24 -26 68q-16 27 -18 31q-3 5 -5.5 16.5t-4.5 15.5q27 -9 26 -13q-5 -10 26 -52 q2 -3 10 -10t11 -12q3 -4 9.5 -14.5t10.5 -15.5q-1 0 -3 -2l-3 -3q4 -2 9 -5t8 -4.5t7.5 -5t7.5 -7.5q16 -18 20 -33q1 -4 0.5 -15.5t1.5 -16.5q2 -6 6 -11t11.5 -10t11.5 -7t14.5 -6.5t11.5 -5.5q2 -1 18 -11t25 -14q10 -4 16.5 -4.5t16 2.5t15.5 4z" />
|
197 |
+
<glyph unicode="" horiz-adv-x="1664" d="M384 64q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1028 484l-682 -682q-37 -37 -90 -37q-52 0 -91 37l-106 108q-38 36 -38 90q0 53 38 91l681 681q39 -98 114.5 -173.5t173.5 -114.5zM1662 919q0 -39 -23 -106q-47 -134 -164.5 -217.5 t-258.5 -83.5q-185 0 -316.5 131.5t-131.5 316.5t131.5 316.5t316.5 131.5q58 0 121.5 -16.5t107.5 -46.5q16 -11 16 -28t-16 -28l-293 -169v-224l193 -107q5 3 79 48.5t135.5 81t70.5 35.5q15 0 23.5 -10t8.5 -25z" />
|
198 |
+
<glyph unicode="" horiz-adv-x="1792" d="M1024 128h640v128h-640v-128zM640 640h1024v128h-1024v-128zM1280 1152h384v128h-384v-128zM1792 320v-256q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v256q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1792 832v-256q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19 t-19 45v256q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1792 1344v-256q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v256q0 26 19 45t45 19h1664q26 0 45 -19t19 -45z" />
|
199 |
+
<glyph unicode="" horiz-adv-x="1408" d="M1403 1241q17 -41 -14 -70l-493 -493v-742q0 -42 -39 -59q-13 -5 -25 -5q-27 0 -45 19l-256 256q-19 19 -19 45v486l-493 493q-31 29 -14 70q17 39 59 39h1280q42 0 59 -39z" />
|
200 |
+
<glyph unicode="" horiz-adv-x="1792" d="M640 1152h512v128h-512v-128zM1792 512v-480q0 -66 -47 -113t-113 -47h-1472q-66 0 -113 47t-47 113v480h672v-160q0 -26 19 -45t45 -19h320q26 0 45 19t19 45v160h672zM1024 512v-128h-256v128h256zM1792 992v-384h-1792v384q0 66 47 113t113 47h352v160q0 40 28 68 t68 28h576q40 0 68 -28t28 -68v-160h352q66 0 113 -47t47 -113z" />
|
201 |
+
<glyph unicode="" d="M1283 995l-355 -355l355 -355l144 144q29 31 70 14q39 -17 39 -59v-448q0 -26 -19 -45t-45 -19h-448q-42 0 -59 40q-17 39 14 69l144 144l-355 355l-355 -355l144 -144q31 -30 14 -69q-17 -40 -59 -40h-448q-26 0 -45 19t-19 45v448q0 42 40 59q39 17 69 -14l144 -144 l355 355l-355 355l-144 -144q-19 -19 -45 -19q-12 0 -24 5q-40 17 -40 59v448q0 26 19 45t45 19h448q42 0 59 -40q17 -39 -14 -69l-144 -144l355 -355l355 355l-144 144q-31 30 -14 69q17 40 59 40h448q26 0 45 -19t19 -45v-448q0 -42 -39 -59q-13 -5 -25 -5q-26 0 -45 19z " />
|
202 |
+
<glyph unicode="" horiz-adv-x="1920" d="M593 640q-162 -5 -265 -128h-134q-82 0 -138 40.5t-56 118.5q0 353 124 353q6 0 43.5 -21t97.5 -42.5t119 -21.5q67 0 133 23q-5 -37 -5 -66q0 -139 81 -256zM1664 3q0 -120 -73 -189.5t-194 -69.5h-874q-121 0 -194 69.5t-73 189.5q0 53 3.5 103.5t14 109t26.5 108.5 t43 97.5t62 81t85.5 53.5t111.5 20q10 0 43 -21.5t73 -48t107 -48t135 -21.5t135 21.5t107 48t73 48t43 21.5q61 0 111.5 -20t85.5 -53.5t62 -81t43 -97.5t26.5 -108.5t14 -109t3.5 -103.5zM640 1280q0 -106 -75 -181t-181 -75t-181 75t-75 181t75 181t181 75t181 -75 t75 -181zM1344 896q0 -159 -112.5 -271.5t-271.5 -112.5t-271.5 112.5t-112.5 271.5t112.5 271.5t271.5 112.5t271.5 -112.5t112.5 -271.5zM1920 671q0 -78 -56 -118.5t-138 -40.5h-134q-103 123 -265 128q81 117 81 256q0 29 -5 66q66 -23 133 -23q59 0 119 21.5t97.5 42.5 t43.5 21q124 0 124 -353zM1792 1280q0 -106 -75 -181t-181 -75t-181 75t-75 181t75 181t181 75t181 -75t75 -181z" />
|
203 |
+
<glyph unicode="" horiz-adv-x="1664" d="M1456 320q0 40 -28 68l-208 208q-28 28 -68 28q-42 0 -72 -32q3 -3 19 -18.5t21.5 -21.5t15 -19t13 -25.5t3.5 -27.5q0 -40 -28 -68t-68 -28q-15 0 -27.5 3.5t-25.5 13t-19 15t-21.5 21.5t-18.5 19q-33 -31 -33 -73q0 -40 28 -68l206 -207q27 -27 68 -27q40 0 68 26 l147 146q28 28 28 67zM753 1025q0 40 -28 68l-206 207q-28 28 -68 28q-39 0 -68 -27l-147 -146q-28 -28 -28 -67q0 -40 28 -68l208 -208q27 -27 68 -27q42 0 72 31q-3 3 -19 18.5t-21.5 21.5t-15 19t-13 25.5t-3.5 27.5q0 40 28 68t68 28q15 0 27.5 -3.5t25.5 -13t19 -15 t21.5 -21.5t18.5 -19q33 31 33 73zM1648 320q0 -120 -85 -203l-147 -146q-83 -83 -203 -83q-121 0 -204 85l-206 207q-83 83 -83 203q0 123 88 209l-88 88q-86 -88 -208 -88q-120 0 -204 84l-208 208q-84 84 -84 204t85 203l147 146q83 83 203 83q121 0 204 -85l206 -207 q83 -83 83 -203q0 -123 -88 -209l88 -88q86 88 208 88q120 0 204 -84l208 -208q84 -84 84 -204z" />
|
204 |
+
<glyph unicode="" horiz-adv-x="1920" d="M1920 384q0 -159 -112.5 -271.5t-271.5 -112.5h-1088q-185 0 -316.5 131.5t-131.5 316.5q0 132 71 241.5t187 163.5q-2 28 -2 43q0 212 150 362t362 150q158 0 286.5 -88t187.5 -230q70 62 166 62q106 0 181 -75t75 -181q0 -75 -41 -138q129 -30 213 -134.5t84 -239.5z " />
|
205 |
+
<glyph unicode="" horiz-adv-x="1664" d="M1527 88q56 -89 21.5 -152.5t-140.5 -63.5h-1152q-106 0 -140.5 63.5t21.5 152.5l503 793v399h-64q-26 0 -45 19t-19 45t19 45t45 19h512q26 0 45 -19t19 -45t-19 -45t-45 -19h-64v-399zM748 813l-272 -429h712l-272 429l-20 31v37v399h-128v-399v-37z" />
|
206 |
+
<glyph unicode="" horiz-adv-x="1792" d="M960 640q26 0 45 -19t19 -45t-19 -45t-45 -19t-45 19t-19 45t19 45t45 19zM1260 576l507 -398q28 -20 25 -56q-5 -35 -35 -51l-128 -64q-13 -7 -29 -7q-17 0 -31 8l-690 387l-110 -66q-8 -4 -12 -5q14 -49 10 -97q-7 -77 -56 -147.5t-132 -123.5q-132 -84 -277 -84 q-136 0 -222 78q-90 84 -79 207q7 76 56 147t131 124q132 84 278 84q83 0 151 -31q9 13 22 22l122 73l-122 73q-13 9 -22 22q-68 -31 -151 -31q-146 0 -278 84q-82 53 -131 124t-56 147q-5 59 15.5 113t63.5 93q85 79 222 79q145 0 277 -84q83 -52 132 -123t56 -148 q4 -48 -10 -97q4 -1 12 -5l110 -66l690 387q14 8 31 8q16 0 29 -7l128 -64q30 -16 35 -51q3 -36 -25 -56zM579 836q46 42 21 108t-106 117q-92 59 -192 59q-74 0 -113 -36q-46 -42 -21 -108t106 -117q92 -59 192 -59q74 0 113 36zM494 91q81 51 106 117t-21 108 q-39 36 -113 36q-100 0 -192 -59q-81 -51 -106 -117t21 -108q39 -36 113 -36q100 0 192 59zM672 704l96 -58v11q0 36 33 56l14 8l-79 47l-26 -26q-3 -3 -10 -11t-12 -12q-2 -2 -4 -3.5t-3 -2.5zM896 480l96 -32l736 576l-128 64l-768 -431v-113l-160 -96l9 -8q2 -2 7 -6 q4 -4 11 -12t11 -12l26 -26zM1600 64l128 64l-520 408l-177 -138q-2 -3 -13 -7z" />
|
207 |
+
<glyph unicode="" horiz-adv-x="1792" d="M1696 1152q40 0 68 -28t28 -68v-1216q0 -40 -28 -68t-68 -28h-960q-40 0 -68 28t-28 68v288h-544q-40 0 -68 28t-28 68v672q0 40 20 88t48 76l408 408q28 28 76 48t88 20h416q40 0 68 -28t28 -68v-328q68 40 128 40h416zM1152 939l-299 -299h299v299zM512 1323l-299 -299 h299v299zM708 676l316 316v416h-384v-416q0 -40 -28 -68t-68 -28h-416v-640h512v256q0 40 20 88t48 76zM1664 -128v1152h-384v-416q0 -40 -28 -68t-68 -28h-416v-640h896z" />
|
208 |
+
<glyph unicode="" horiz-adv-x="1408" d="M1404 151q0 -117 -79 -196t-196 -79q-135 0 -235 100l-777 776q-113 115 -113 271q0 159 110 270t269 111q158 0 273 -113l605 -606q10 -10 10 -22q0 -16 -30.5 -46.5t-46.5 -30.5q-13 0 -23 10l-606 607q-79 77 -181 77q-106 0 -179 -75t-73 -181q0 -105 76 -181 l776 -777q63 -63 145 -63q64 0 106 42t42 106q0 82 -63 145l-581 581q-26 24 -60 24q-29 0 -48 -19t-19 -48q0 -32 25 -59l410 -410q10 -10 10 -22q0 -16 -31 -47t-47 -31q-12 0 -22 10l-410 410q-63 61 -63 149q0 82 57 139t139 57q88 0 149 -63l581 -581q100 -98 100 -235 z" />
|
209 |
+
<glyph unicode="" d="M384 0h768v384h-768v-384zM1280 0h128v896q0 14 -10 38.5t-20 34.5l-281 281q-10 10 -34 20t-39 10v-416q0 -40 -28 -68t-68 -28h-576q-40 0 -68 28t-28 68v416h-128v-1280h128v416q0 40 28 68t68 28h832q40 0 68 -28t28 -68v-416zM896 928v320q0 13 -9.5 22.5t-22.5 9.5 h-192q-13 0 -22.5 -9.5t-9.5 -22.5v-320q0 -13 9.5 -22.5t22.5 -9.5h192q13 0 22.5 9.5t9.5 22.5zM1536 896v-928q0 -40 -28 -68t-68 -28h-1344q-40 0 -68 28t-28 68v1344q0 40 28 68t68 28h928q40 0 88 -20t76 -48l280 -280q28 -28 48 -76t20 -88z" />
|
210 |
+
<glyph unicode="" d="M1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
|
211 |
+
<glyph unicode="" d="M1536 192v-128q0 -26 -19 -45t-45 -19h-1408q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1408q26 0 45 -19t19 -45zM1536 704v-128q0 -26 -19 -45t-45 -19h-1408q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1408q26 0 45 -19t19 -45zM1536 1216v-128q0 -26 -19 -45 t-45 -19h-1408q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1408q26 0 45 -19t19 -45z" />
|
212 |
+
<glyph unicode="" horiz-adv-x="1792" d="M384 128q0 -80 -56 -136t-136 -56t-136 56t-56 136t56 136t136 56t136 -56t56 -136zM384 640q0 -80 -56 -136t-136 -56t-136 56t-56 136t56 136t136 56t136 -56t56 -136zM1792 224v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1216q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5 t22.5 9.5h1216q13 0 22.5 -9.5t9.5 -22.5zM384 1152q0 -80 -56 -136t-136 -56t-136 56t-56 136t56 136t136 56t136 -56t56 -136zM1792 736v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1216q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1216q13 0 22.5 -9.5t9.5 -22.5z M1792 1248v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1216q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1216q13 0 22.5 -9.5t9.5 -22.5z" />
|
213 |
+
<glyph unicode="" horiz-adv-x="1792" d="M381 -84q0 -80 -54.5 -126t-135.5 -46q-106 0 -172 66l57 88q49 -45 106 -45q29 0 50.5 14.5t21.5 42.5q0 64 -105 56l-26 56q8 10 32.5 43.5t42.5 54t37 38.5v1q-16 0 -48.5 -1t-48.5 -1v-53h-106v152h333v-88l-95 -115q51 -12 81 -49t30 -88zM383 543v-159h-362 q-6 36 -6 54q0 51 23.5 93t56.5 68t66 47.5t56.5 43.5t23.5 45q0 25 -14.5 38.5t-39.5 13.5q-46 0 -81 -58l-85 59q24 51 71.5 79.5t105.5 28.5q73 0 123 -41.5t50 -112.5q0 -50 -34 -91.5t-75 -64.5t-75.5 -50.5t-35.5 -52.5h127v60h105zM1792 224v-192q0 -13 -9.5 -22.5 t-22.5 -9.5h-1216q-13 0 -22.5 9.5t-9.5 22.5v192q0 14 9 23t23 9h1216q13 0 22.5 -9.5t9.5 -22.5zM384 1123v-99h-335v99h107q0 41 0.5 122t0.5 121v12h-2q-8 -17 -50 -54l-71 76l136 127h106v-404h108zM1792 736v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1216q-13 0 -22.5 9.5 t-9.5 22.5v192q0 14 9 23t23 9h1216q13 0 22.5 -9.5t9.5 -22.5zM1792 1248v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1216q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1216q13 0 22.5 -9.5t9.5 -22.5z" />
|
214 |
+
<glyph unicode="" horiz-adv-x="1792" d="M1760 640q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-1728q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h1728zM483 704q-28 35 -51 80q-48 97 -48 188q0 181 134 309q133 127 393 127q50 0 167 -19q66 -12 177 -48q10 -38 21 -118q14 -123 14 -183q0 -18 -5 -45l-12 -3l-84 6 l-14 2q-50 149 -103 205q-88 91 -210 91q-114 0 -182 -59q-67 -58 -67 -146q0 -73 66 -140t279 -129q69 -20 173 -66q58 -28 95 -52h-743zM990 448h411q7 -39 7 -92q0 -111 -41 -212q-23 -55 -71 -104q-37 -35 -109 -81q-80 -48 -153 -66q-80 -21 -203 -21q-114 0 -195 23 l-140 40q-57 16 -72 28q-8 8 -8 22v13q0 108 -2 156q-1 30 0 68l2 37v44l102 2q15 -34 30 -71t22.5 -56t12.5 -27q35 -57 80 -94q43 -36 105 -57q59 -22 132 -22q64 0 139 27q77 26 122 86q47 61 47 129q0 84 -81 157q-34 29 -137 71z" />
|
215 |
+
<glyph unicode="" d="M48 1313q-37 2 -45 4l-3 88q13 1 40 1q60 0 112 -4q132 -7 166 -7q86 0 168 3q116 4 146 5q56 0 86 2l-1 -14l2 -64v-9q-60 -9 -124 -9q-60 0 -79 -25q-13 -14 -13 -132q0 -13 0.5 -32.5t0.5 -25.5l1 -229l14 -280q6 -124 51 -202q35 -59 96 -92q88 -47 177 -47 q104 0 191 28q56 18 99 51q48 36 65 64q36 56 53 114q21 73 21 229q0 79 -3.5 128t-11 122.5t-13.5 159.5l-4 59q-5 67 -24 88q-34 35 -77 34l-100 -2l-14 3l2 86h84l205 -10q76 -3 196 10l18 -2q6 -38 6 -51q0 -7 -4 -31q-45 -12 -84 -13q-73 -11 -79 -17q-15 -15 -15 -41 q0 -7 1.5 -27t1.5 -31q8 -19 22 -396q6 -195 -15 -304q-15 -76 -41 -122q-38 -65 -112 -123q-75 -57 -182 -89q-109 -33 -255 -33q-167 0 -284 46q-119 47 -179 122q-61 76 -83 195q-16 80 -16 237v333q0 188 -17 213q-25 36 -147 39zM1536 -96v64q0 14 -9 23t-23 9h-1472 q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h1472q14 0 23 9t9 23z" />
|
216 |
+
<glyph unicode="" horiz-adv-x="1664" d="M512 160v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM512 544v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM1024 160v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23 v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM512 928v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM1024 544v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM1536 160v192 q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM1024 928v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM1536 544v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192 q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM1536 928v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM1664 1248v-1088q0 -66 -47 -113t-113 -47h-1344q-66 0 -113 47t-47 113v1088q0 66 47 113t113 47h1344q66 0 113 -47t47 -113 z" />
|
217 |
+
<glyph unicode="" horiz-adv-x="1664" d="M1190 955l293 293l-107 107l-293 -293zM1637 1248q0 -27 -18 -45l-1286 -1286q-18 -18 -45 -18t-45 18l-198 198q-18 18 -18 45t18 45l1286 1286q18 18 45 18t45 -18l198 -198q18 -18 18 -45zM286 1438l98 -30l-98 -30l-30 -98l-30 98l-98 30l98 30l30 98zM636 1276 l196 -60l-196 -60l-60 -196l-60 196l-196 60l196 60l60 196zM1566 798l98 -30l-98 -30l-30 -98l-30 98l-98 30l98 30l30 98zM926 1438l98 -30l-98 -30l-30 -98l-30 98l-98 30l98 30l30 98z" />
|
218 |
+
<glyph unicode="" horiz-adv-x="1792" d="M640 128q0 52 -38 90t-90 38t-90 -38t-38 -90t38 -90t90 -38t90 38t38 90zM256 640h384v256h-158q-13 0 -22 -9l-195 -195q-9 -9 -9 -22v-30zM1536 128q0 52 -38 90t-90 38t-90 -38t-38 -90t38 -90t90 -38t90 38t38 90zM1792 1216v-1024q0 -15 -4 -26.5t-13.5 -18.5 t-16.5 -11.5t-23.5 -6t-22.5 -2t-25.5 0t-22.5 0.5q0 -106 -75 -181t-181 -75t-181 75t-75 181h-384q0 -106 -75 -181t-181 -75t-181 75t-75 181h-64q-3 0 -22.5 -0.5t-25.5 0t-22.5 2t-23.5 6t-16.5 11.5t-13.5 18.5t-4 26.5q0 26 19 45t45 19v320q0 8 -0.5 35t0 38 t2.5 34.5t6.5 37t14 30.5t22.5 30l198 198q19 19 50.5 32t58.5 13h160v192q0 26 19 45t45 19h1024q26 0 45 -19t19 -45z" />
|
219 |
+
<glyph unicode="" d="M1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103q-111 0 -218 32q59 93 78 164q9 34 54 211q20 -39 73 -67.5t114 -28.5q121 0 216 68.5t147 188.5t52 270q0 114 -59.5 214t-172.5 163t-255 63q-105 0 -196 -29t-154.5 -77t-109 -110.5t-67 -129.5t-21.5 -134 q0 -104 40 -183t117 -111q30 -12 38 20q2 7 8 31t8 30q6 23 -11 43q-51 61 -51 151q0 151 104.5 259.5t273.5 108.5q151 0 235.5 -82t84.5 -213q0 -170 -68.5 -289t-175.5 -119q-61 0 -98 43.5t-23 104.5q8 35 26.5 93.5t30 103t11.5 75.5q0 50 -27 83t-77 33 q-62 0 -105 -57t-43 -142q0 -73 25 -122l-99 -418q-17 -70 -13 -177q-206 91 -333 281t-127 423q0 209 103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
|
220 |
+
<glyph unicode="" d="M1248 1408q119 0 203.5 -84.5t84.5 -203.5v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-725q85 122 108 210q9 34 53 209q21 -39 73.5 -67t112.5 -28q181 0 295.5 147.5t114.5 373.5q0 84 -35 162.5t-96.5 139t-152.5 97t-197 36.5q-104 0 -194.5 -28.5t-153 -76.5 t-107.5 -109.5t-66.5 -128t-21.5 -132.5q0 -102 39.5 -180t116.5 -110q13 -5 23.5 0t14.5 19q10 44 15 61q6 23 -11 42q-50 62 -50 150q0 150 103.5 256.5t270.5 106.5q149 0 232.5 -81t83.5 -210q0 -168 -67.5 -286t-173.5 -118q-60 0 -97 43.5t-23 103.5q8 34 26.5 92.5 t29.5 102t11 74.5q0 49 -26.5 81.5t-75.5 32.5q-61 0 -103.5 -56.5t-42.5 -139.5q0 -72 24 -121l-98 -414q-24 -100 -7 -254h-183q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960z" />
|
221 |
+
<glyph unicode="" d="M678 -57q0 -38 -10 -71h-380q-95 0 -171.5 56.5t-103.5 147.5q24 45 69 77.5t100 49.5t107 24t107 7q32 0 49 -2q6 -4 30.5 -21t33 -23t31 -23t32 -25.5t27.5 -25.5t26.5 -29.5t21 -30.5t17.5 -34.5t9.5 -36t4.5 -40.5zM385 294q-234 -7 -385 -85v433q103 -118 273 -118 q32 0 70 5q-21 -61 -21 -86q0 -67 63 -149zM558 805q0 -100 -43.5 -160.5t-140.5 -60.5q-51 0 -97 26t-78 67.5t-56 93.5t-35.5 104t-11.5 99q0 96 51.5 165t144.5 69q66 0 119 -41t84 -104t47 -130t16 -128zM1536 896v-736q0 -119 -84.5 -203.5t-203.5 -84.5h-468 q39 73 39 157q0 66 -22 122.5t-55.5 93t-72 71t-72 59.5t-55.5 54.5t-22 59.5q0 36 23 68t56 61.5t65.5 64.5t55.5 93t23 131t-26.5 145.5t-75.5 118.5q-6 6 -14 11t-12.5 7.5t-10 9.5t-10.5 17h135l135 64h-437q-138 0 -244.5 -38.5t-182.5 -133.5q0 126 81 213t207 87h960 q119 0 203.5 -84.5t84.5 -203.5v-96h-256v256h-128v-256h-256v-128h256v-256h128v256h256z" />
|
222 |
+
<glyph unicode="" horiz-adv-x="1664" d="M876 71q0 21 -4.5 40.5t-9.5 36t-17.5 34.5t-21 30.5t-26.5 29.5t-27.5 25.5t-32 25.5t-31 23t-33 23t-30.5 21q-17 2 -50 2q-54 0 -106 -7t-108 -25t-98 -46t-69 -75t-27 -107q0 -68 35.5 -121.5t93 -84t120.5 -45.5t127 -15q59 0 112.5 12.5t100.5 39t74.5 73.5 t27.5 110zM756 933q0 60 -16.5 127.5t-47 130.5t-84 104t-119.5 41q-93 0 -144 -69t-51 -165q0 -47 11.5 -99t35.5 -104t56 -93.5t78 -67.5t97 -26q97 0 140.5 60.5t43.5 160.5zM625 1408h437l-135 -79h-135q71 -45 110 -126t39 -169q0 -74 -23 -131.5t-56 -92.5t-66 -64.5 t-56 -61t-23 -67.5q0 -26 16.5 -51t43 -48t58.5 -48t64 -55.5t58.5 -66t43 -85t16.5 -106.5q0 -160 -140 -282q-152 -131 -420 -131q-59 0 -119.5 10t-122 33.5t-108.5 58t-77 89t-30 121.5q0 61 37 135q32 64 96 110.5t145 71t155 36t150 13.5q-64 83 -64 149q0 12 2 23.5 t5 19.5t8 21.5t7 21.5q-40 -5 -70 -5q-149 0 -255.5 98t-106.5 246q0 140 95 250.5t234 141.5q94 20 187 20zM1664 1152v-128h-256v-256h-128v256h-256v128h256v256h128v-256h256z" />
|
223 |
+
<glyph unicode="" horiz-adv-x="1920" d="M768 384h384v96h-128v448h-114l-148 -137l77 -80q42 37 55 57h2v-288h-128v-96zM1280 640q0 -70 -21 -142t-59.5 -134t-101.5 -101t-138 -39t-138 39t-101.5 101t-59.5 134t-21 142t21 142t59.5 134t101.5 101t138 39t138 -39t101.5 -101t59.5 -134t21 -142zM1792 384 v512q-106 0 -181 75t-75 181h-1152q0 -106 -75 -181t-181 -75v-512q106 0 181 -75t75 -181h1152q0 106 75 181t181 75zM1920 1216v-1152q0 -26 -19 -45t-45 -19h-1792q-26 0 -45 19t-19 45v1152q0 26 19 45t45 19h1792q26 0 45 -19t19 -45z" />
|
224 |
+
<glyph unicode="" horiz-adv-x="1024" d="M1024 832q0 -26 -19 -45l-448 -448q-19 -19 -45 -19t-45 19l-448 448q-19 19 -19 45t19 45t45 19h896q26 0 45 -19t19 -45z" />
|
225 |
+
<glyph unicode="" horiz-adv-x="1024" d="M1024 320q0 -26 -19 -45t-45 -19h-896q-26 0 -45 19t-19 45t19 45l448 448q19 19 45 19t45 -19l448 -448q19 -19 19 -45z" />
|
226 |
+
<glyph unicode="" horiz-adv-x="640" d="M640 1088v-896q0 -26 -19 -45t-45 -19t-45 19l-448 448q-19 19 -19 45t19 45l448 448q19 19 45 19t45 -19t19 -45z" />
|
227 |
+
<glyph unicode="" horiz-adv-x="640" d="M576 640q0 -26 -19 -45l-448 -448q-19 -19 -45 -19t-45 19t-19 45v896q0 26 19 45t45 19t45 -19l448 -448q19 -19 19 -45z" />
|
228 |
+
<glyph unicode="" horiz-adv-x="1664" d="M160 0h608v1152h-640v-1120q0 -13 9.5 -22.5t22.5 -9.5zM1536 32v1120h-640v-1152h608q13 0 22.5 9.5t9.5 22.5zM1664 1248v-1216q0 -66 -47 -113t-113 -47h-1344q-66 0 -113 47t-47 113v1216q0 66 47 113t113 47h1344q66 0 113 -47t47 -113z" />
|
229 |
+
<glyph unicode="" horiz-adv-x="1024" d="M1024 448q0 -26 -19 -45l-448 -448q-19 -19 -45 -19t-45 19l-448 448q-19 19 -19 45t19 45t45 19h896q26 0 45 -19t19 -45zM1024 832q0 -26 -19 -45t-45 -19h-896q-26 0 -45 19t-19 45t19 45l448 448q19 19 45 19t45 -19l448 -448q19 -19 19 -45z" />
|
230 |
+
<glyph unicode="" horiz-adv-x="1024" d="M1024 448q0 -26 -19 -45l-448 -448q-19 -19 -45 -19t-45 19l-448 448q-19 19 -19 45t19 45t45 19h896q26 0 45 -19t19 -45z" />
|
231 |
+
<glyph unicode="" horiz-adv-x="1024" d="M1024 832q0 -26 -19 -45t-45 -19h-896q-26 0 -45 19t-19 45t19 45l448 448q19 19 45 19t45 -19l448 -448q19 -19 19 -45z" />
|
232 |
+
<glyph unicode="" horiz-adv-x="1792" d="M1792 826v-794q0 -66 -47 -113t-113 -47h-1472q-66 0 -113 47t-47 113v794q44 -49 101 -87q362 -246 497 -345q57 -42 92.5 -65.5t94.5 -48t110 -24.5h1h1q51 0 110 24.5t94.5 48t92.5 65.5q170 123 498 345q57 39 100 87zM1792 1120q0 -79 -49 -151t-122 -123 q-376 -261 -468 -325q-10 -7 -42.5 -30.5t-54 -38t-52 -32.5t-57.5 -27t-50 -9h-1h-1q-23 0 -50 9t-57.5 27t-52 32.5t-54 38t-42.5 30.5q-91 64 -262 182.5t-205 142.5q-62 42 -117 115.5t-55 136.5q0 78 41.5 130t118.5 52h1472q65 0 112.5 -47t47.5 -113z" />
|
233 |
+
<glyph unicode="" horiz-adv-x="1379" d="M1014 961q171 0 268 -85.5t97 -254.5v-586q0 -14 -10.5 -24.5t-24.5 -10.5h-252q-14 0 -24.5 10.5t-10.5 24.5v529q0 71 -26.5 104t-95.5 33q-88 0 -123.5 -51.5t-35.5 -143.5v-471q0 -14 -10.5 -24.5t-25.5 -10.5h-246q-14 0 -24.5 10.5t-10.5 24.5v868q0 14 10.5 24.5 t24.5 10.5h239q13 0 21 -5t10.5 -18.5t3 -18t0.5 -22.5q93 87 246 87zM290 938q14 0 24.5 -10.5t10.5 -24.5v-868q0 -14 -10.5 -24.5t-24.5 -10.5h-246q-14 0 -24.5 10.5t-10.5 24.5v868q0 14 10.5 24.5t24.5 10.5h246zM167 1371q69 0 118 -49t49 -118t-49 -118t-118 -49 t-118 49t-49 118t49 118t118 49z" />
|
234 |
+
<glyph unicode="" d="M1536 640q0 -156 -61 -298t-164 -245t-245 -164t-298 -61q-179 0 -336.5 76t-266 213t-147.5 312q-3 14 7 27q9 12 25 12h199q23 0 30 -23q50 -162 185 -261.5t304 -99.5q104 0 198.5 40.5t163.5 109.5t109.5 163.5t40.5 198.5t-40.5 198.5t-109.5 163.5t-163.5 109.5 t-198.5 40.5q-98 0 -188 -35.5t-160 -101.5l137 -138q31 -30 14 -69q-17 -40 -59 -40h-448q-26 0 -45 19t-19 45v448q0 42 40 59q39 17 69 -14l130 -129q107 101 244.5 156.5t284.5 55.5q156 0 298 -61t245 -164t164 -245t61 -298z" />
|
235 |
+
<glyph unicode="" horiz-adv-x="1792" d="M1771 0q0 -53 -37 -90l-107 -108q-39 -37 -91 -37q-53 0 -90 37l-363 364q-38 36 -38 90q0 53 43 96l-256 256l-126 -126q-14 -14 -34 -14t-34 14q2 -2 12.5 -12t12.5 -13t10 -11.5t10 -13.5t6 -13.5t5.5 -16.5t1.5 -18q0 -38 -28 -68q-3 -3 -16.5 -18t-19 -20.5 t-18.5 -16.5t-22 -15.5t-22 -9t-26 -4.5q-40 0 -68 28l-408 408q-28 28 -28 68q0 13 4.5 26t9 22t15.5 22t16.5 18.5t20.5 19t18 16.5q30 28 68 28q10 0 18 -1.5t16.5 -5.5t13.5 -6t13.5 -10t11.5 -10t13 -12.5t12 -12.5q-14 14 -14 34t14 34l348 348q14 14 34 14t34 -14 q-2 2 -12.5 12t-12.5 13t-10 11.5t-10 13.5t-6 13.5t-5.5 16.5t-1.5 18q0 38 28 68q3 3 16.5 18t19 20.5t18.5 16.5t22 15.5t22 9t26 4.5q40 0 68 -28l408 -408q28 -28 28 -68q0 -13 -4.5 -26t-9 -22t-15.5 -22t-16.5 -18.5t-20.5 -19t-18 -16.5q-30 -28 -68 -28 q-10 0 -18 1.5t-16.5 5.5t-13.5 6t-13.5 10t-11.5 10t-13 12.5t-12 12.5q14 -14 14 -34t-14 -34l-126 -126l256 -256q43 43 96 43q52 0 91 -37l363 -363q37 -39 37 -91z" />
|
236 |
+
<glyph unicode="" horiz-adv-x="1792" d="M384 384q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM576 832q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1004 351l101 382q6 26 -7.5 48.5t-38.5 29.5 t-48 -6.5t-30 -39.5l-101 -382q-60 -5 -107 -43.5t-63 -98.5q-20 -77 20 -146t117 -89t146 20t89 117q16 60 -6 117t-72 91zM1664 384q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1024 1024q0 53 -37.5 90.5 t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1472 832q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1792 384q0 -261 -141 -483q-19 -29 -54 -29h-1402q-35 0 -54 29 q-141 221 -141 483q0 182 71 348t191 286t286 191t348 71t348 -71t286 -191t191 -286t71 -348z" />
|
237 |
+
<glyph unicode="" horiz-adv-x="1792" d="M896 1152q-204 0 -381.5 -69.5t-282 -187.5t-104.5 -255q0 -112 71.5 -213.5t201.5 -175.5l87 -50l-27 -96q-24 -91 -70 -172q152 63 275 171l43 38l57 -6q69 -8 130 -8q204 0 381.5 69.5t282 187.5t104.5 255t-104.5 255t-282 187.5t-381.5 69.5zM1792 640 q0 -174 -120 -321.5t-326 -233t-450 -85.5q-70 0 -145 8q-198 -175 -460 -242q-49 -14 -114 -22h-5q-15 0 -27 10.5t-16 27.5v1q-3 4 -0.5 12t2 10t4.5 9.5l6 9t7 8.5t8 9q7 8 31 34.5t34.5 38t31 39.5t32.5 51t27 59t26 76q-157 89 -247.5 220t-90.5 281q0 174 120 321.5 t326 233t450 85.5t450 -85.5t326 -233t120 -321.5z" />
|
238 |
+
<glyph unicode="" horiz-adv-x="1792" d="M704 1152q-153 0 -286 -52t-211.5 -141t-78.5 -191q0 -82 53 -158t149 -132l97 -56l-35 -84q34 20 62 39l44 31l53 -10q78 -14 153 -14q153 0 286 52t211.5 141t78.5 191t-78.5 191t-211.5 141t-286 52zM704 1280q191 0 353.5 -68.5t256.5 -186.5t94 -257t-94 -257 t-256.5 -186.5t-353.5 -68.5q-86 0 -176 16q-124 -88 -278 -128q-36 -9 -86 -16h-3q-11 0 -20.5 8t-11.5 21q-1 3 -1 6.5t0.5 6.5t2 6l2.5 5t3.5 5.5t4 5t4.5 5t4 4.5q5 6 23 25t26 29.5t22.5 29t25 38.5t20.5 44q-124 72 -195 177t-71 224q0 139 94 257t256.5 186.5 t353.5 68.5zM1526 111q10 -24 20.5 -44t25 -38.5t22.5 -29t26 -29.5t23 -25q1 -1 4 -4.5t4.5 -5t4 -5t3.5 -5.5l2.5 -5t2 -6t0.5 -6.5t-1 -6.5q-3 -14 -13 -22t-22 -7q-50 7 -86 16q-154 40 -278 128q-90 -16 -176 -16q-271 0 -472 132q58 -4 88 -4q161 0 309 45t264 129 q125 92 192 212t67 254q0 77 -23 152q129 -71 204 -178t75 -230q0 -120 -71 -224.5t-195 -176.5z" />
|
239 |
+
<glyph unicode="" horiz-adv-x="896" d="M885 970q18 -20 7 -44l-540 -1157q-13 -25 -42 -25q-4 0 -14 2q-17 5 -25.5 19t-4.5 30l197 808l-406 -101q-4 -1 -12 -1q-18 0 -31 11q-18 15 -13 39l201 825q4 14 16 23t28 9h328q19 0 32 -12.5t13 -29.5q0 -8 -5 -18l-171 -463l396 98q8 2 12 2q19 0 34 -15z" />
|
240 |
+
<glyph unicode="" horiz-adv-x="1792" d="M1792 288v-320q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v320q0 40 28 68t68 28h96v192h-512v-192h96q40 0 68 -28t28 -68v-320q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v320q0 40 28 68t68 28h96v192h-512v-192h96q40 0 68 -28t28 -68v-320 q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v320q0 40 28 68t68 28h96v192q0 52 38 90t90 38h512v192h-96q-40 0 -68 28t-28 68v320q0 40 28 68t68 28h320q40 0 68 -28t28 -68v-320q0 -40 -28 -68t-68 -28h-96v-192h512q52 0 90 -38t38 -90v-192h96q40 0 68 -28t28 -68 z" />
|
241 |
+
<glyph unicode="" horiz-adv-x="1664" d="M896 708v-580q0 -104 -76 -180t-180 -76t-180 76t-76 180q0 26 19 45t45 19t45 -19t19 -45q0 -50 39 -89t89 -39t89 39t39 89v580q33 11 64 11t64 -11zM1664 681q0 -13 -9.5 -22.5t-22.5 -9.5q-11 0 -23 10q-49 46 -93 69t-102 23q-68 0 -128 -37t-103 -97 q-7 -10 -17.5 -28t-14.5 -24q-11 -17 -28 -17q-18 0 -29 17q-4 6 -14.5 24t-17.5 28q-43 60 -102.5 97t-127.5 37t-127.5 -37t-102.5 -97q-7 -10 -17.5 -28t-14.5 -24q-11 -17 -29 -17q-17 0 -28 17q-4 6 -14.5 24t-17.5 28q-43 60 -103 97t-128 37q-58 0 -102 -23t-93 -69 q-12 -10 -23 -10q-13 0 -22.5 9.5t-9.5 22.5q0 5 1 7q45 183 172.5 319.5t298 204.5t360.5 68q140 0 274.5 -40t246.5 -113.5t194.5 -187t115.5 -251.5q1 -2 1 -7zM896 1408v-98q-42 2 -64 2t-64 -2v98q0 26 19 45t45 19t45 -19t19 -45z" />
|
242 |
+
<glyph unicode="" horiz-adv-x="1792" d="M768 -128h896v640h-416q-40 0 -68 28t-28 68v416h-384v-1152zM1024 1312v64q0 13 -9.5 22.5t-22.5 9.5h-704q-13 0 -22.5 -9.5t-9.5 -22.5v-64q0 -13 9.5 -22.5t22.5 -9.5h704q13 0 22.5 9.5t9.5 22.5zM1280 640h299l-299 299v-299zM1792 512v-672q0 -40 -28 -68t-68 -28 h-960q-40 0 -68 28t-28 68v160h-544q-40 0 -68 28t-28 68v1344q0 40 28 68t68 28h1088q40 0 68 -28t28 -68v-328q21 -13 36 -28l408 -408q28 -28 48 -76t20 -88z" />
|
243 |
+
<glyph unicode="" horiz-adv-x="1024" d="M736 960q0 -13 -9.5 -22.5t-22.5 -9.5t-22.5 9.5t-9.5 22.5q0 46 -54 71t-106 25q-13 0 -22.5 9.5t-9.5 22.5t9.5 22.5t22.5 9.5q50 0 99.5 -16t87 -54t37.5 -90zM896 960q0 72 -34.5 134t-90 101.5t-123 62t-136.5 22.5t-136.5 -22.5t-123 -62t-90 -101.5t-34.5 -134 q0 -101 68 -180q10 -11 30.5 -33t30.5 -33q128 -153 141 -298h228q13 145 141 298q10 11 30.5 33t30.5 33q68 79 68 180zM1024 960q0 -155 -103 -268q-45 -49 -74.5 -87t-59.5 -95.5t-34 -107.5q47 -28 47 -82q0 -37 -25 -64q25 -27 25 -64q0 -52 -45 -81q13 -23 13 -47 q0 -46 -31.5 -71t-77.5 -25q-20 -44 -60 -70t-87 -26t-87 26t-60 70q-46 0 -77.5 25t-31.5 71q0 24 13 47q-45 29 -45 81q0 37 25 64q-25 27 -25 64q0 54 47 82q-4 50 -34 107.5t-59.5 95.5t-74.5 87q-103 113 -103 268q0 99 44.5 184.5t117 142t164 89t186.5 32.5 t186.5 -32.5t164 -89t117 -142t44.5 -184.5z" />
|
244 |
+
<glyph unicode="" horiz-adv-x="1792" d="M1792 352v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1376v-192q0 -13 -9.5 -22.5t-22.5 -9.5q-12 0 -24 10l-319 320q-9 9 -9 22q0 14 9 23l320 320q9 9 23 9q13 0 22.5 -9.5t9.5 -22.5v-192h1376q13 0 22.5 -9.5t9.5 -22.5zM1792 896q0 -14 -9 -23l-320 -320q-9 -9 -23 -9 q-13 0 -22.5 9.5t-9.5 22.5v192h-1376q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1376v192q0 14 9 23t23 9q12 0 24 -10l319 -319q9 -9 9 -23z" />
|
245 |
+
<glyph unicode="" horiz-adv-x="1920" d="M1280 608q0 14 -9 23t-23 9h-224v352q0 13 -9.5 22.5t-22.5 9.5h-192q-13 0 -22.5 -9.5t-9.5 -22.5v-352h-224q-13 0 -22.5 -9.5t-9.5 -22.5q0 -14 9 -23l352 -352q9 -9 23 -9t23 9l351 351q10 12 10 24zM1920 384q0 -159 -112.5 -271.5t-271.5 -112.5h-1088 q-185 0 -316.5 131.5t-131.5 316.5q0 130 70 240t188 165q-2 30 -2 43q0 212 150 362t362 150q156 0 285.5 -87t188.5 -231q71 62 166 62q106 0 181 -75t75 -181q0 -76 -41 -138q130 -31 213.5 -135.5t83.5 -238.5z" />
|
246 |
+
<glyph unicode="" horiz-adv-x="1920" d="M1280 672q0 14 -9 23l-352 352q-9 9 -23 9t-23 -9l-351 -351q-10 -12 -10 -24q0 -14 9 -23t23 -9h224v-352q0 -13 9.5 -22.5t22.5 -9.5h192q13 0 22.5 9.5t9.5 22.5v352h224q13 0 22.5 9.5t9.5 22.5zM1920 384q0 -159 -112.5 -271.5t-271.5 -112.5h-1088 q-185 0 -316.5 131.5t-131.5 316.5q0 130 70 240t188 165q-2 30 -2 43q0 212 150 362t362 150q156 0 285.5 -87t188.5 -231q71 62 166 62q106 0 181 -75t75 -181q0 -76 -41 -138q130 -31 213.5 -135.5t83.5 -238.5z" />
|
247 |
+
<glyph unicode="" horiz-adv-x="1408" d="M384 192q0 -26 -19 -45t-45 -19t-45 19t-19 45t19 45t45 19t45 -19t19 -45zM1408 131q0 -121 -73 -190t-194 -69h-874q-121 0 -194 69t-73 190q0 68 5.5 131t24 138t47.5 132.5t81 103t120 60.5q-22 -52 -22 -120v-203q-58 -20 -93 -70t-35 -111q0 -80 56 -136t136 -56 t136 56t56 136q0 61 -35.5 111t-92.5 70v203q0 62 25 93q132 -104 295 -104t295 104q25 -31 25 -93v-64q-106 0 -181 -75t-75 -181v-89q-32 -29 -32 -71q0 -40 28 -68t68 -28t68 28t28 68q0 42 -32 71v89q0 52 38 90t90 38t90 -38t38 -90v-89q-32 -29 -32 -71q0 -40 28 -68 t68 -28t68 28t28 68q0 42 -32 71v89q0 68 -34.5 127.5t-93.5 93.5q0 10 0.5 42.5t0 48t-2.5 41.5t-7 47t-13 40q68 -15 120 -60.5t81 -103t47.5 -132.5t24 -138t5.5 -131zM1088 1024q0 -159 -112.5 -271.5t-271.5 -112.5t-271.5 112.5t-112.5 271.5t112.5 271.5t271.5 112.5 t271.5 -112.5t112.5 -271.5z" />
|
248 |
+
<glyph unicode="" horiz-adv-x="1408" d="M1280 832q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1408 832q0 -62 -35.5 -111t-92.5 -70v-395q0 -159 -131.5 -271.5t-316.5 -112.5t-316.5 112.5t-131.5 271.5v132q-164 20 -274 128t-110 252v512q0 26 19 45t45 19q6 0 16 -2q17 30 47 48 t65 18q53 0 90.5 -37.5t37.5 -90.5t-37.5 -90.5t-90.5 -37.5q-33 0 -64 18v-402q0 -106 94 -181t226 -75t226 75t94 181v402q-31 -18 -64 -18q-53 0 -90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5q35 0 65 -18t47 -48q10 2 16 2q26 0 45 -19t19 -45v-512q0 -144 -110 -252 t-274 -128v-132q0 -106 94 -181t226 -75t226 75t94 181v395q-57 21 -92.5 70t-35.5 111q0 80 56 136t136 56t136 -56t56 -136z" />
|
249 |
+
<glyph unicode="" horiz-adv-x="1792" d="M640 1152h512v128h-512v-128zM288 1152v-1280h-64q-92 0 -158 66t-66 158v832q0 92 66 158t158 66h64zM1408 1152v-1280h-1024v1280h128v160q0 40 28 68t68 28h576q40 0 68 -28t28 -68v-160h128zM1792 928v-832q0 -92 -66 -158t-158 -66h-64v1280h64q92 0 158 -66 t66 -158z" />
|
250 |
+
<glyph unicode="" horiz-adv-x="1664" d="M848 -160q0 16 -16 16q-59 0 -101.5 42.5t-42.5 101.5q0 16 -16 16t-16 -16q0 -73 51.5 -124.5t124.5 -51.5q16 0 16 16zM1664 128q0 -52 -38 -90t-90 -38h-448q0 -106 -75 -181t-181 -75t-181 75t-75 181h-448q-52 0 -90 38t-38 90q190 161 287 397.5t97 498.5 q0 165 96 262t264 117q-8 18 -8 37q0 40 28 68t68 28t68 -28t28 -68q0 -19 -8 -37q168 -20 264 -117t96 -262q0 -262 97 -498.5t287 -397.5z" />
|
251 |
+
<glyph unicode="" horiz-adv-x="1920" d="M1664 896q0 80 -56 136t-136 56h-64v-384h64q80 0 136 56t56 136zM0 128h1792q0 -106 -75 -181t-181 -75h-1280q-106 0 -181 75t-75 181zM1856 896q0 -159 -112.5 -271.5t-271.5 -112.5h-64v-32q0 -92 -66 -158t-158 -66h-704q-92 0 -158 66t-66 158v736q0 26 19 45 t45 19h1152q159 0 271.5 -112.5t112.5 -271.5z" />
|
252 |
+
<glyph unicode="" horiz-adv-x="1408" d="M640 1472v-640q0 -61 -35.5 -111t-92.5 -70v-779q0 -52 -38 -90t-90 -38h-128q-52 0 -90 38t-38 90v779q-57 20 -92.5 70t-35.5 111v640q0 26 19 45t45 19t45 -19t19 -45v-416q0 -26 19 -45t45 -19t45 19t19 45v416q0 26 19 45t45 19t45 -19t19 -45v-416q0 -26 19 -45 t45 -19t45 19t19 45v416q0 26 19 45t45 19t45 -19t19 -45zM1408 1472v-1600q0 -52 -38 -90t-90 -38h-128q-52 0 -90 38t-38 90v512h-224q-13 0 -22.5 9.5t-9.5 22.5v800q0 132 94 226t226 94h256q26 0 45 -19t19 -45z" />
|
253 |
+
<glyph unicode="" horiz-adv-x="1280" d="M1024 352v-64q0 -14 -9 -23t-23 -9h-704q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h704q14 0 23 -9t9 -23zM1024 608v-64q0 -14 -9 -23t-23 -9h-704q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h704q14 0 23 -9t9 -23zM128 0h1024v768h-416q-40 0 -68 28t-28 68v416h-512v-1280z M768 896h299l-299 299v-299zM1280 768v-800q0 -40 -28 -68t-68 -28h-1088q-40 0 -68 28t-28 68v1344q0 40 28 68t68 28h544q40 0 88 -20t76 -48l408 -408q28 -28 48 -76t20 -88z" />
|
254 |
+
<glyph unicode="" horiz-adv-x="1408" d="M384 224v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM384 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M640 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM384 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M1152 224v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM896 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M640 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM384 992v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M1152 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM896 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M640 992v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM384 1248v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M1152 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM896 992v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M640 1248v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM1152 992v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M896 1248v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM1152 1248v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M896 -128h384v1536h-1152v-1536h384v224q0 13 9.5 22.5t22.5 9.5h320q13 0 22.5 -9.5t9.5 -22.5v-224zM1408 1472v-1664q0 -26 -19 -45t-45 -19h-1280q-26 0 -45 19t-19 45v1664q0 26 19 45t45 19h1280q26 0 45 -19t19 -45z" />
|
255 |
+
<glyph unicode="" horiz-adv-x="1408" d="M384 224v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM384 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M640 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM384 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M1152 224v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM896 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M640 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM1152 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M896 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM1152 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M896 -128h384v1152h-256v-32q0 -40 -28 -68t-68 -28h-448q-40 0 -68 28t-28 68v32h-256v-1152h384v224q0 13 9.5 22.5t22.5 9.5h320q13 0 22.5 -9.5t9.5 -22.5v-224zM896 1056v320q0 13 -9.5 22.5t-22.5 9.5h-64q-13 0 -22.5 -9.5t-9.5 -22.5v-96h-128v96q0 13 -9.5 22.5 t-22.5 9.5h-64q-13 0 -22.5 -9.5t-9.5 -22.5v-320q0 -13 9.5 -22.5t22.5 -9.5h64q13 0 22.5 9.5t9.5 22.5v96h128v-96q0 -13 9.5 -22.5t22.5 -9.5h64q13 0 22.5 9.5t9.5 22.5zM1408 1088v-1280q0 -26 -19 -45t-45 -19h-1280q-26 0 -45 19t-19 45v1280q0 26 19 45t45 19h320 v288q0 40 28 68t68 28h448q40 0 68 -28t28 -68v-288h320q26 0 45 -19t19 -45z" />
|
256 |
+
<glyph unicode="" horiz-adv-x="1920" d="M640 128q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM256 640h384v256h-158q-14 -2 -22 -9l-195 -195q-7 -12 -9 -22v-30zM1536 128q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5 t90.5 37.5t37.5 90.5zM1664 800v192q0 14 -9 23t-23 9h-224v224q0 14 -9 23t-23 9h-192q-14 0 -23 -9t-9 -23v-224h-224q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h224v-224q0 -14 9 -23t23 -9h192q14 0 23 9t9 23v224h224q14 0 23 9t9 23zM1920 1344v-1152 q0 -26 -19 -45t-45 -19h-192q0 -106 -75 -181t-181 -75t-181 75t-75 181h-384q0 -106 -75 -181t-181 -75t-181 75t-75 181h-128q-26 0 -45 19t-19 45t19 45t45 19v416q0 26 13 58t32 51l198 198q19 19 51 32t58 13h160v320q0 26 19 45t45 19h1152q26 0 45 -19t19 -45z" />
|
257 |
+
<glyph unicode="" horiz-adv-x="1792" d="M1280 416v192q0 14 -9 23t-23 9h-224v224q0 14 -9 23t-23 9h-192q-14 0 -23 -9t-9 -23v-224h-224q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h224v-224q0 -14 9 -23t23 -9h192q14 0 23 9t9 23v224h224q14 0 23 9t9 23zM640 1152h512v128h-512v-128zM256 1152v-1280h-32 q-92 0 -158 66t-66 158v832q0 92 66 158t158 66h32zM1440 1152v-1280h-1088v1280h160v160q0 40 28 68t68 28h576q40 0 68 -28t28 -68v-160h160zM1792 928v-832q0 -92 -66 -158t-158 -66h-32v1280h32q92 0 158 -66t66 -158z" />
|
258 |
+
<glyph unicode="" horiz-adv-x="1920" d="M1632 800q261 -58 287 -93l1 -3q-1 -32 -288 -96l-352 -32l-224 -64h-64l-293 -352h69q26 0 45 -4.5t19 -11.5t-19 -11.5t-45 -4.5h-96h-160h-64v32h64v416h-160l-192 -224h-96l-32 32v192h32v32h128v8l-192 24v128l192 24v8h-128v32h-32v192l32 32h96l192 -224h160v416 h-64v32h64h160h96q26 0 45 -4.5t19 -11.5t-19 -11.5t-45 -4.5h-69l293 -352h64l224 -64z" />
|
259 |
+
<glyph unicode="" horiz-adv-x="1664" d="M640 640v384h-256v-160q0 -45 2 -76t7.5 -56.5t14.5 -40t23 -26.5t33.5 -15.5t45 -7.5t58 -2.5t72.5 0.5zM1664 192v-192h-1152v192l128 192h-97q-211 0 -313 102.5t-102 314.5v287l-64 64l32 128h480l32 128h960l32 -192l-64 -32v-800z" />
|
260 |
+
<glyph unicode="" d="M1280 192v896q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-320h-512v320q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-896q0 -26 19 -45t45 -19h128q26 0 45 19t19 45v320h512v-320q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM1536 1120v-960 q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
|
261 |
+
<glyph unicode="" d="M1280 576v128q0 26 -19 45t-45 19h-320v320q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-320h-320q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h320v-320q0 -26 19 -45t45 -19h128q26 0 45 19t19 45v320h320q26 0 45 19t19 45zM1536 1120v-960 q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
|
262 |
+
<glyph unicode="" horiz-adv-x="1024" d="M627 160q0 -13 -10 -23l-50 -50q-10 -10 -23 -10t-23 10l-466 466q-10 10 -10 23t10 23l466 466q10 10 23 10t23 -10l50 -50q10 -10 10 -23t-10 -23l-393 -393l393 -393q10 -10 10 -23zM1011 160q0 -13 -10 -23l-50 -50q-10 -10 -23 -10t-23 10l-466 466q-10 10 -10 23 t10 23l466 466q10 10 23 10t23 -10l50 -50q10 -10 10 -23t-10 -23l-393 -393l393 -393q10 -10 10 -23z" />
|
263 |
+
<glyph unicode="" horiz-adv-x="1024" d="M595 576q0 -13 -10 -23l-466 -466q-10 -10 -23 -10t-23 10l-50 50q-10 10 -10 23t10 23l393 393l-393 393q-10 10 -10 23t10 23l50 50q10 10 23 10t23 -10l466 -466q10 -10 10 -23zM979 576q0 -13 -10 -23l-466 -466q-10 -10 -23 -10t-23 10l-50 50q-10 10 -10 23t10 23 l393 393l-393 393q-10 10 -10 23t10 23l50 50q10 10 23 10t23 -10l466 -466q10 -10 10 -23z" />
|
264 |
+
<glyph unicode="" horiz-adv-x="1152" d="M1075 224q0 -13 -10 -23l-50 -50q-10 -10 -23 -10t-23 10l-393 393l-393 -393q-10 -10 -23 -10t-23 10l-50 50q-10 10 -10 23t10 23l466 466q10 10 23 10t23 -10l466 -466q10 -10 10 -23zM1075 608q0 -13 -10 -23l-50 -50q-10 -10 -23 -10t-23 10l-393 393l-393 -393 q-10 -10 -23 -10t-23 10l-50 50q-10 10 -10 23t10 23l466 466q10 10 23 10t23 -10l466 -466q10 -10 10 -23z" />
|
265 |
+
<glyph unicode="" horiz-adv-x="1152" d="M1075 672q0 -13 -10 -23l-466 -466q-10 -10 -23 -10t-23 10l-466 466q-10 10 -10 23t10 23l50 50q10 10 23 10t23 -10l393 -393l393 393q10 10 23 10t23 -10l50 -50q10 -10 10 -23zM1075 1056q0 -13 -10 -23l-466 -466q-10 -10 -23 -10t-23 10l-466 466q-10 10 -10 23 t10 23l50 50q10 10 23 10t23 -10l393 -393l393 393q10 10 23 10t23 -10l50 -50q10 -10 10 -23z" />
|
266 |
+
<glyph unicode="" horiz-adv-x="640" d="M627 992q0 -13 -10 -23l-393 -393l393 -393q10 -10 10 -23t-10 -23l-50 -50q-10 -10 -23 -10t-23 10l-466 466q-10 10 -10 23t10 23l466 466q10 10 23 10t23 -10l50 -50q10 -10 10 -23z" />
|
267 |
+
<glyph unicode="" horiz-adv-x="640" d="M595 576q0 -13 -10 -23l-466 -466q-10 -10 -23 -10t-23 10l-50 50q-10 10 -10 23t10 23l393 393l-393 393q-10 10 -10 23t10 23l50 50q10 10 23 10t23 -10l466 -466q10 -10 10 -23z" />
|
268 |
+
<glyph unicode="" horiz-adv-x="1152" d="M1075 352q0 -13 -10 -23l-50 -50q-10 -10 -23 -10t-23 10l-393 393l-393 -393q-10 -10 -23 -10t-23 10l-50 50q-10 10 -10 23t10 23l466 466q10 10 23 10t23 -10l466 -466q10 -10 10 -23z" />
|
269 |
+
<glyph unicode="" horiz-adv-x="1152" d="M1075 800q0 -13 -10 -23l-466 -466q-10 -10 -23 -10t-23 10l-466 466q-10 10 -10 23t10 23l50 50q10 10 23 10t23 -10l393 -393l393 393q10 10 23 10t23 -10l50 -50q10 -10 10 -23z" />
|
270 |
+
<glyph unicode="" horiz-adv-x="1920" d="M1792 544v832q0 13 -9.5 22.5t-22.5 9.5h-1600q-13 0 -22.5 -9.5t-9.5 -22.5v-832q0 -13 9.5 -22.5t22.5 -9.5h1600q13 0 22.5 9.5t9.5 22.5zM1920 1376v-1088q0 -66 -47 -113t-113 -47h-544q0 -37 16 -77.5t32 -71t16 -43.5q0 -26 -19 -45t-45 -19h-512q-26 0 -45 19 t-19 45q0 14 16 44t32 70t16 78h-544q-66 0 -113 47t-47 113v1088q0 66 47 113t113 47h1600q66 0 113 -47t47 -113z" />
|
271 |
+
<glyph unicode="" horiz-adv-x="1920" d="M416 256q-66 0 -113 47t-47 113v704q0 66 47 113t113 47h1088q66 0 113 -47t47 -113v-704q0 -66 -47 -113t-113 -47h-1088zM384 1120v-704q0 -13 9.5 -22.5t22.5 -9.5h1088q13 0 22.5 9.5t9.5 22.5v704q0 13 -9.5 22.5t-22.5 9.5h-1088q-13 0 -22.5 -9.5t-9.5 -22.5z M1760 192h160v-96q0 -40 -47 -68t-113 -28h-1600q-66 0 -113 28t-47 68v96h160h1600zM1040 96q16 0 16 16t-16 16h-160q-16 0 -16 -16t16 -16h160z" />
|
272 |
+
<glyph unicode="" horiz-adv-x="1152" d="M640 128q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1024 288v960q0 13 -9.5 22.5t-22.5 9.5h-832q-13 0 -22.5 -9.5t-9.5 -22.5v-960q0 -13 9.5 -22.5t22.5 -9.5h832q13 0 22.5 9.5t9.5 22.5zM1152 1248v-1088q0 -66 -47 -113t-113 -47h-832 q-66 0 -113 47t-47 113v1088q0 66 47 113t113 47h832q66 0 113 -47t47 -113z" />
|
273 |
+
<glyph unicode="" horiz-adv-x="768" d="M464 128q0 33 -23.5 56.5t-56.5 23.5t-56.5 -23.5t-23.5 -56.5t23.5 -56.5t56.5 -23.5t56.5 23.5t23.5 56.5zM672 288v704q0 13 -9.5 22.5t-22.5 9.5h-512q-13 0 -22.5 -9.5t-9.5 -22.5v-704q0 -13 9.5 -22.5t22.5 -9.5h512q13 0 22.5 9.5t9.5 22.5zM480 1136 q0 16 -16 16h-160q-16 0 -16 -16t16 -16h160q16 0 16 16zM768 1152v-1024q0 -52 -38 -90t-90 -38h-512q-52 0 -90 38t-38 90v1024q0 52 38 90t90 38h512q52 0 90 -38t38 -90z" />
|
274 |
+
<glyph unicode="" d="M1280 640q0 104 -40.5 198.5t-109.5 163.5t-163.5 109.5t-198.5 40.5t-198.5 -40.5t-163.5 -109.5t-109.5 -163.5t-40.5 -198.5t40.5 -198.5t109.5 -163.5t163.5 -109.5t198.5 -40.5t198.5 40.5t163.5 109.5t109.5 163.5t40.5 198.5zM1536 640q0 -209 -103 -385.5 t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
|
275 |
+
<glyph unicode="" horiz-adv-x="1664" d="M768 576v-384q0 -80 -56 -136t-136 -56h-384q-80 0 -136 56t-56 136v704q0 104 40.5 198.5t109.5 163.5t163.5 109.5t198.5 40.5h64q26 0 45 -19t19 -45v-128q0 -26 -19 -45t-45 -19h-64q-106 0 -181 -75t-75 -181v-32q0 -40 28 -68t68 -28h224q80 0 136 -56t56 -136z M1664 576v-384q0 -80 -56 -136t-136 -56h-384q-80 0 -136 56t-56 136v704q0 104 40.5 198.5t109.5 163.5t163.5 109.5t198.5 40.5h64q26 0 45 -19t19 -45v-128q0 -26 -19 -45t-45 -19h-64q-106 0 -181 -75t-75 -181v-32q0 -40 28 -68t68 -28h224q80 0 136 -56t56 -136z" />
|
276 |
+
<glyph unicode="" horiz-adv-x="1664" d="M768 1216v-704q0 -104 -40.5 -198.5t-109.5 -163.5t-163.5 -109.5t-198.5 -40.5h-64q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h64q106 0 181 75t75 181v32q0 40 -28 68t-68 28h-224q-80 0 -136 56t-56 136v384q0 80 56 136t136 56h384q80 0 136 -56t56 -136zM1664 1216 v-704q0 -104 -40.5 -198.5t-109.5 -163.5t-163.5 -109.5t-198.5 -40.5h-64q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h64q106 0 181 75t75 181v32q0 40 -28 68t-68 28h-224q-80 0 -136 56t-56 136v384q0 80 56 136t136 56h384q80 0 136 -56t56 -136z" />
|
277 |
+
<glyph unicode="" horiz-adv-x="1568" d="M496 192q0 -60 -42.5 -102t-101.5 -42q-60 0 -102 42t-42 102t42 102t102 42q59 0 101.5 -42t42.5 -102zM928 0q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM320 640q0 -66 -47 -113t-113 -47t-113 47t-47 113 t47 113t113 47t113 -47t47 -113zM1360 192q0 -46 -33 -79t-79 -33t-79 33t-33 79t33 79t79 33t79 -33t33 -79zM528 1088q0 -73 -51.5 -124.5t-124.5 -51.5t-124.5 51.5t-51.5 124.5t51.5 124.5t124.5 51.5t124.5 -51.5t51.5 -124.5zM992 1280q0 -80 -56 -136t-136 -56 t-136 56t-56 136t56 136t136 56t136 -56t56 -136zM1536 640q0 -40 -28 -68t-68 -28t-68 28t-28 68t28 68t68 28t68 -28t28 -68zM1328 1088q0 -33 -23.5 -56.5t-56.5 -23.5t-56.5 23.5t-23.5 56.5t23.5 56.5t56.5 23.5t56.5 -23.5t23.5 -56.5z" />
|
278 |
+
<glyph unicode="" d="M1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
|
279 |
+
<glyph unicode="" horiz-adv-x="1792" d="M1792 416q0 -166 -127 -451q-3 -7 -10.5 -24t-13.5 -30t-13 -22q-12 -17 -28 -17q-15 0 -23.5 10t-8.5 25q0 9 2.5 26.5t2.5 23.5q5 68 5 123q0 101 -17.5 181t-48.5 138.5t-80 101t-105.5 69.5t-133 42.5t-154 21.5t-175.5 6h-224v-256q0 -26 -19 -45t-45 -19t-45 19 l-512 512q-19 19 -19 45t19 45l512 512q19 19 45 19t45 -19t19 -45v-256h224q713 0 875 -403q53 -134 53 -333z" />
|
280 |
+
<glyph unicode="" horiz-adv-x="1664" d="M640 320q0 -40 -12.5 -82t-43 -76t-72.5 -34t-72.5 34t-43 76t-12.5 82t12.5 82t43 76t72.5 34t72.5 -34t43 -76t12.5 -82zM1280 320q0 -40 -12.5 -82t-43 -76t-72.5 -34t-72.5 34t-43 76t-12.5 82t12.5 82t43 76t72.5 34t72.5 -34t43 -76t12.5 -82zM1440 320 q0 120 -69 204t-187 84q-41 0 -195 -21q-71 -11 -157 -11t-157 11q-152 21 -195 21q-118 0 -187 -84t-69 -204q0 -88 32 -153.5t81 -103t122 -60t140 -29.5t149 -7h168q82 0 149 7t140 29.5t122 60t81 103t32 153.5zM1664 496q0 -207 -61 -331q-38 -77 -105.5 -133t-141 -86 t-170 -47.5t-171.5 -22t-167 -4.5q-78 0 -142 3t-147.5 12.5t-152.5 30t-137 51.5t-121 81t-86 115q-62 123 -62 331q0 237 136 396q-27 82 -27 170q0 116 51 218q108 0 190 -39.5t189 -123.5q147 35 309 35q148 0 280 -32q105 82 187 121t189 39q51 -102 51 -218 q0 -87 -27 -168q136 -160 136 -398z" />
|
281 |
+
<glyph unicode="" horiz-adv-x="1664" d="M1536 224v704q0 40 -28 68t-68 28h-704q-40 0 -68 28t-28 68v64q0 40 -28 68t-68 28h-320q-40 0 -68 -28t-28 -68v-960q0 -40 28 -68t68 -28h1216q40 0 68 28t28 68zM1664 928v-704q0 -92 -66 -158t-158 -66h-1216q-92 0 -158 66t-66 158v960q0 92 66 158t158 66h320 q92 0 158 -66t66 -158v-32h672q92 0 158 -66t66 -158z" />
|
282 |
+
<glyph unicode="" horiz-adv-x="1920" d="M1781 605q0 35 -53 35h-1088q-40 0 -85.5 -21.5t-71.5 -52.5l-294 -363q-18 -24 -18 -40q0 -35 53 -35h1088q40 0 86 22t71 53l294 363q18 22 18 39zM640 768h768v160q0 40 -28 68t-68 28h-576q-40 0 -68 28t-28 68v64q0 40 -28 68t-68 28h-320q-40 0 -68 -28t-28 -68 v-853l256 315q44 53 116 87.5t140 34.5zM1909 605q0 -62 -46 -120l-295 -363q-43 -53 -116 -87.5t-140 -34.5h-1088q-92 0 -158 66t-66 158v960q0 92 66 158t158 66h320q92 0 158 -66t66 -158v-32h544q92 0 158 -66t66 -158v-160h192q54 0 99 -24.5t67 -70.5q15 -32 15 -68z " />
|
283 |
+
</font>
|
284 |
+
</defs></svg>
|
shared/inbound-shortcodes/fonts/fontawesome/fontawesome-webfont.ttf
ADDED
Binary file
|
shared/inbound-shortcodes/fonts/fontawesome/fontawesome-webfont.woff
ADDED
Binary file
|
shared/inbound-shortcodes/images/inbound_button_ico.png
ADDED
Binary file
|
shared/inbound-shortcodes/images/inbound_columns_ico.png
ADDED
Binary file
|
shared/inbound-shortcodes/images/inbound_form_ico.png
ADDED
Binary file
|
shared/inbound-shortcodes/images/inbound_form_insert_ico.png
ADDED
Binary file
|
shared/inbound-shortcodes/inbound-shortcodes.php
ADDED
@@ -0,0 +1,198 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
|
4 |
+
//=============================================
|
5 |
+
// Define constants
|
6 |
+
//=============================================
|
7 |
+
if (!defined('INBOUND_FORMS')) {
|
8 |
+
define('INBOUND_FORMS', plugin_dir_url(__FILE__));
|
9 |
+
}
|
10 |
+
if (!defined('INBOUND_FORMS_PATH')) {
|
11 |
+
define('INBOUND_FORMS_PATH', plugin_dir_path(__FILE__));
|
12 |
+
}
|
13 |
+
if (!defined('INBOUND_FORMS_BASENAME')) {
|
14 |
+
define('INBOUND_FORMS_BASENAME', plugin_basename(__FILE__));
|
15 |
+
}
|
16 |
+
if (!defined('INBOUND_FORMS_ADMIN')) {
|
17 |
+
define('INBOUND_FORMS_ADMIN', get_bloginfo('url') . "/wp-admin");
|
18 |
+
}
|
19 |
+
|
20 |
+
if (!defined('INBOUND_LABEL')) {
|
21 |
+
define( 'INBOUND_LABEL', str_replace( ' ', '_', strtolower( 'Inbound Now' ) ) );
|
22 |
+
}
|
23 |
+
|
24 |
+
require_once( 'shortcodes-includes.php' );
|
25 |
+
|
26 |
+
/* InboundNow Shortcodes Class
|
27 |
+
* --------------------------------------------------------- */
|
28 |
+
if (!class_exists('InboundShortcodes')) {
|
29 |
+
class InboundShortcodes {
|
30 |
+
static $add_script;
|
31 |
+
/* Contruct
|
32 |
+
* --------------------------------------------------------- */
|
33 |
+
static function init() {
|
34 |
+
self::$add_script = true;
|
35 |
+
add_action('admin_enqueue_scripts', array( __CLASS__, 'loads' ));
|
36 |
+
add_action('init', array( __CLASS__, 'shortcodes_tinymce' ));
|
37 |
+
add_action( 'wp_enqueue_scripts', array(__CLASS__, 'frontend_loads')); // load styles
|
38 |
+
}
|
39 |
+
|
40 |
+
/* Loads
|
41 |
+
* --------------------------------------------------------- */
|
42 |
+
static function loads($hook) {
|
43 |
+
global $post;
|
44 |
+
if ( $hook == 'post.php' || $hook == 'post-new.php' || $hook == 'page-new.php' || $hook == 'page.php' ) {
|
45 |
+
wp_enqueue_style('inbound-shortcodes', INBOUND_FORMS.'css/shortcodes.css');
|
46 |
+
wp_enqueue_script('jquery-ui-sortable' );
|
47 |
+
wp_enqueue_script('inbound-shortcodes-plugins', INBOUND_FORMS . 'js/shortcodes-plugins.js');
|
48 |
+
wp_enqueue_script('inbound-shortcodes', INBOUND_FORMS . 'js/shortcodes.js');
|
49 |
+
wp_localize_script( 'inbound-shortcodes', 'inbound_shortcodes', array( 'ajaxurl' => admin_url( 'admin-ajax.php' ), 'inbound_shortcode_nonce' => wp_create_nonce('inbound-shortcode-nonce') ) );
|
50 |
+
// Forms CPT only
|
51 |
+
if ( ( isset($post) && 'inbound-forms' == $post->post_type ) || ( isset($_GET['post_type']) && $_GET['post_type']=='inbound-forms' ) ) {
|
52 |
+
wp_enqueue_style('inbound-forms-css', INBOUND_FORMS . 'css/form-cpt.css');
|
53 |
+
wp_enqueue_script('inbound-forms-cpt-js', INBOUND_FORMS . 'js/form-cpt.js');
|
54 |
+
wp_localize_script( 'inbound-forms-cpt-js', 'inbound_forms', array( 'ajaxurl' => admin_url( 'admin-ajax.php' ), 'inbound_shortcode_nonce' => wp_create_nonce('inbound-shortcode-nonce'), 'form_cpt' => 'on' ) );
|
55 |
+
}
|
56 |
+
// Check for active plugins and localize
|
57 |
+
$plugins_loaded = array();
|
58 |
+
if (is_plugin_active('landing-pages/landing-pages.php')) {
|
59 |
+
array_push($plugins_loaded, "landing-pages");
|
60 |
+
}
|
61 |
+
if (is_plugin_active('cta/wordpress-cta.php')) {
|
62 |
+
array_push($plugins_loaded, "cta");
|
63 |
+
}
|
64 |
+
if (is_plugin_active('leads/wordpress-leads.php')) {
|
65 |
+
array_push($plugins_loaded, "leads");
|
66 |
+
}
|
67 |
+
wp_localize_script( 'inbound-shortcodes', 'inbound_load', array( 'image_dir' => INBOUND_FORMS, 'inbound_plugins' => $plugins_loaded, 'pop_title' => 'Insert Shortcode' ));
|
68 |
+
if (isset($post)&&$post->post_type=='inbound-forms')
|
69 |
+
{
|
70 |
+
require_once( 'shortcodes-fields.php' );
|
71 |
+
add_action( 'admin_footer', array(__CLASS__, 'inbound_forms_header_area'));
|
72 |
+
|
73 |
+
}
|
74 |
+
|
75 |
+
//add_action('admin_head', array( __CLASS__, 'shortcodes_admin_head' ));
|
76 |
+
}
|
77 |
+
}
|
78 |
+
|
79 |
+
static function frontend_loads() {
|
80 |
+
wp_enqueue_style('inbound-shortcodes', INBOUND_FORMS.'css/frontend-render.css');
|
81 |
+
}
|
82 |
+
|
83 |
+
// Currently off
|
84 |
+
static function shortcodes_admin_head() { ?>
|
85 |
+
<script type="text/javascript">
|
86 |
+
/* <![CDATA[ */
|
87 |
+
// Load inline scripts var freshthemes_theme_dir = "<?php // echo INBOUND_FORMS; ?>", test = "<?php // _e('Insert Shortcode', INBOUND_LABEL); ?>";
|
88 |
+
/* ]]> */
|
89 |
+
</script>
|
90 |
+
<?php }
|
91 |
+
|
92 |
+
/* TinyMCE
|
93 |
+
* --------------------------------------------------------- */
|
94 |
+
static function shortcodes_tinymce() {
|
95 |
+
if ( ! current_user_can('edit_posts') && ! current_user_can('edit_pages') )
|
96 |
+
return;
|
97 |
+
|
98 |
+
if ( get_user_option('rich_editing') == 'true' ) {
|
99 |
+
add_filter( 'mce_external_plugins', array( __CLASS__, 'add_rich_plugins' ) );
|
100 |
+
add_filter( 'mce_buttons', array( __CLASS__, 'register_rich_buttons' ) );
|
101 |
+
}
|
102 |
+
}
|
103 |
+
|
104 |
+
static function add_rich_plugins( $plugins ) {
|
105 |
+
$plugins['InboundShortcodes'] = INBOUND_FORMS . 'js/tinymce.js';
|
106 |
+
return $plugins;
|
107 |
+
}
|
108 |
+
|
109 |
+
static function register_rich_buttons( $buttons ) {
|
110 |
+
array_push( $buttons, "|", 'InboundShortcodesButton' );
|
111 |
+
return $buttons;
|
112 |
+
}
|
113 |
+
|
114 |
+
static function inbound_forms_header_area()
|
115 |
+
{
|
116 |
+
global $post;
|
117 |
+
$post_id = $post->ID;
|
118 |
+
$post_title = get_the_title( $post_id );
|
119 |
+
$popup = trim(get_post_meta($post->ID, 'inbound_shortcode', true));
|
120 |
+
$form_serialize = get_post_meta($post->ID, 'inbound_form_values', true);
|
121 |
+
$short_shortcode = "";
|
122 |
+
$shortcode = new InboundShortcodesFields( 'forms' );
|
123 |
+
|
124 |
+
if ( empty ( $post ) || 'inbound-forms' !== get_post_type( $GLOBALS['post'] ) )
|
125 |
+
return; ?>
|
126 |
+
<div id="entire-form-area">
|
127 |
+
<div id="cpt-form-shortcode"><?php echo $popup;?></div>
|
128 |
+
<div id="cpt-form-serialize"><?php echo $form_serialize;?></div>
|
129 |
+
<div id="short_shortcode_form">
|
130 |
+
Shortcode: <input type="text" class="regular-text code short-shortcode-input" readonly="readonly" id="shortcode" name="shortcode" value='[inbound_forms id="<?php echo $post_id;?>" name="<?php echo $post_title;?>"]'>
|
131 |
+
</div>
|
132 |
+
<div id="inbound-shortcodes-popup">
|
133 |
+
|
134 |
+
<div id="inbound-shortcodes-wrap">
|
135 |
+
<div id="inbound-shortcodes-form-wrap">
|
136 |
+
<div id="inbound-shortcodes-form-head">
|
137 |
+
<?php echo $shortcode->popup_title; ?>
|
138 |
+
<?php $shortcode_id = strtolower(str_replace(array(' ','-'),'_', $shortcode->popup_title)); ?>
|
139 |
+
</div>
|
140 |
+
<form method="post" id="inbound-shortcodes-form">
|
141 |
+
<input type="hidden" id="inbound_current_shortcode" value="<?php echo $shortcode_id;?>">
|
142 |
+
<table id="inbound-shortcodes-form-table">
|
143 |
+
<?php echo $shortcode->output; ?>
|
144 |
+
<tbody style="display:none;">
|
145 |
+
<tr class="form-row" style="text-align: center;">
|
146 |
+
<?php if( ! $shortcode->has_child ) : ?><td class="label"> </td><?php endif; ?>
|
147 |
+
<td class="field" style="width:500px;"><a href="#" id="inbound_insert_shortcode" class="button-primary inbound-shortcodes-insert"><?php _e('Insert Shortcode', INBOUND_LABEL); ?></a></td>
|
148 |
+
</tr>
|
149 |
+
</tbody>
|
150 |
+
</table>
|
151 |
+
</form>
|
152 |
+
</div>
|
153 |
+
|
154 |
+
<div id="inbound-shortcodes-preview-wrap">
|
155 |
+
<div id="inbound-shortcodes-preview-head">
|
156 |
+
<?php _e('Shortcode Preview', INBOUND_LABEL); ?>
|
157 |
+
</div>
|
158 |
+
<?php if( $shortcode->no_preview ) : ?>
|
159 |
+
<div id="inbound-shortcodes-nopreview"><?php _e('Shortcode has no preview', INBOUND_LABEL); ?></div>
|
160 |
+
<?php else : ?>
|
161 |
+
<iframe src='<?php echo INBOUND_FORMS; ?>preview.php?sc=' width="285" scrollbar='true' frameborder="0" id="inbound-shortcodes-preview"></iframe>
|
162 |
+
<?php endif; ?>
|
163 |
+
</div>
|
164 |
+
<div class="clear"></div>
|
165 |
+
</div>
|
166 |
+
|
167 |
+
</div>
|
168 |
+
<div id="popup-controls">
|
169 |
+
<a href="#" id="inbound_insert_shortcode_two" class="button-primary inbound-shortcodes-insert-two"><?php _e('Insert Shortcode', INBOUND_LABEL); ?></a>
|
170 |
+
<a href="#" id="shortcode_cancel" class="button inbound-shortcodes-insert-cancel">Cancel</a>
|
171 |
+
<a href="#" id="inbound_save_form" style="display:none;" class="button">Save As New Form</a>
|
172 |
+
</div>
|
173 |
+
</div>
|
174 |
+
|
175 |
+
<script type="text/javascript">
|
176 |
+
jQuery(document).ready(function($) {
|
177 |
+
|
178 |
+
jQuery('.child-clone-row').first().attr('id', 'row-1');
|
179 |
+
setTimeout(function() {
|
180 |
+
jQuery('#inbound-shortcodes-form input:visible').first().focus();
|
181 |
+
}, 500);
|
182 |
+
|
183 |
+
//jQuery("body").on('click', '.child-clone-row', function () {
|
184 |
+
// jQuery(".child-clone-row").toggle();
|
185 |
+
// jQuery(this).show();
|
186 |
+
//});
|
187 |
+
});
|
188 |
+
</script>
|
189 |
+
|
190 |
+
<?php
|
191 |
+
}
|
192 |
+
}
|
193 |
+
}
|
194 |
+
/* Initialize InboundNow Shortcodes
|
195 |
+
* --------------------------------------------------------- */
|
196 |
+
InboundShortcodes::init();
|
197 |
+
|
198 |
+
?>
|
shared/inbound-shortcodes/js/form-cpt.js
ADDED
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
jQuery(document).ready(function($) {
|
2 |
+
//var button = '<a href="#" id="inbound_save_this_form" style="" class="button-primary">Save This Form</a>';
|
3 |
+
//jQuery("#inbound_save_form").before(button);
|
4 |
+
var form_move = jQuery("#entire-form-area");
|
5 |
+
jQuery("#titlediv").after(form_move);
|
6 |
+
jQuery("#entire-form-area").fadeIn(1000);
|
7 |
+
jQuery("#inbound_save_form").removeClass('button').addClass('button-primary').text('Save Form');
|
8 |
+
jQuery("#inbound-shortcodes-preview").hide().fadeIn(5000);
|
9 |
+
jQuery("body").on('change keyup', '#title', function () {
|
10 |
+
jQuery("#title-prompt-text").hide();
|
11 |
+
var this_val = jQuery(this).val();
|
12 |
+
jQuery("#inbound_shortcode_form_name").val(this_val);
|
13 |
+
});
|
14 |
+
jQuery("body").on('change keyup', '#inbound_shortcode_form_name', function () {
|
15 |
+
jQuery("#title-prompt-text").hide();
|
16 |
+
var this_val = jQuery(this).val();
|
17 |
+
jQuery("#title").val(this_val);
|
18 |
+
});
|
19 |
+
jQuery("body").on('click', '#inbound_save_this_form', function () {
|
20 |
+
var post_id = jQuery("#post_ID").val();
|
21 |
+
});
|
22 |
+
var post_status = jQuery("#hidden_post_status").val();
|
23 |
+
if (post_status === 'draft') {
|
24 |
+
jQuery("#inbound_save_form").text("Publish Form");
|
25 |
+
}
|
26 |
+
var post_id = jQuery("#post_ID").val();
|
27 |
+
var post_title = jQuery("#title").val();
|
28 |
+
//jQuery("#inbound_shortcode_form_name").val(post_title);
|
29 |
+
var form_toggle = 'form_' + post_id;
|
30 |
+
setTimeout(function() {
|
31 |
+
jQuery("#inbound_shortcode_insert_default").val(form_toggle);
|
32 |
+
InboundShortcodes.update_fields();
|
33 |
+
var SelectionData = jQuery("#cpt-form-serialize").text();
|
34 |
+
if (SelectionData != "") {
|
35 |
+
|
36 |
+
jQuery.each(SelectionData.split('&'), function (index, elem) {
|
37 |
+
var vals = elem.split('=');
|
38 |
+
var $select_val = jQuery('select[name="'+vals[0]+'"]').attr('name');
|
39 |
+
var $select = jQuery('select[name="'+vals[0]+'"]');
|
40 |
+
var $input = jQuery('input[name="'+vals[0]+'"]'); // input vals
|
41 |
+
var $textarea = jQuery('textarea[name="'+vals[0]+'"]'); // input vals
|
42 |
+
var separator = '';
|
43 |
+
/*if ($div.html().length > 0) {
|
44 |
+
separator = ', ';
|
45 |
+
}*/
|
46 |
+
$input.val(decodeURIComponent(vals[1].replace(/\+/g, ' ')));
|
47 |
+
if ($select_val != 'inbound_shortcode_insert_default'){
|
48 |
+
$select.val(decodeURIComponent(vals[1].replace(/\+/g, ' ')));
|
49 |
+
}
|
50 |
+
$textarea.val(decodeURIComponent(vals[1].replace(/\+/g, ' ')));
|
51 |
+
});
|
52 |
+
|
53 |
+
}
|
54 |
+
}, 1000);
|
55 |
+
|
56 |
+
|
57 |
+
if (post_status === 'draft' && post_title != "" || post_status ==='pending' && post_title != "" ) {
|
58 |
+
// run auto publish ajax
|
59 |
+
jQuery.ajax({
|
60 |
+
type: 'POST',
|
61 |
+
url: ajaxurl,
|
62 |
+
context: this,
|
63 |
+
data: {
|
64 |
+
action: 'inbound_form_auto_publish',
|
65 |
+
post_id: post_id,
|
66 |
+
post_title: post_title
|
67 |
+
},
|
68 |
+
|
69 |
+
success: function (data) {
|
70 |
+
console.log("This Form has been auto published");
|
71 |
+
},
|
72 |
+
|
73 |
+
error: function (MLHttpRequest, textStatus, errorThrown) {
|
74 |
+
alert("Ajax not enabled");
|
75 |
+
}
|
76 |
+
});
|
77 |
+
}
|
78 |
+
});
|
shared/inbound-shortcodes/js/shortcodes-plugins.js
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*! Copyright (c) 2010 Brandon Aaron (http://brandonaaron.net)
|
2 |
+
* Dual licensed under the MIT (MIT_LICENSE.txt)
|
3 |
+
* and GPL Version 2 (GPL_LICENSE.txt) licenses.
|
4 |
+
*
|
5 |
+
* Version: 1.1.1
|
6 |
+
* Requires jQuery 1.3+
|
7 |
+
* Docs: http://docs.jquery.com/Plugins/livequery
|
8 |
+
*/
|
9 |
+
|
10 |
+
(function($){$.extend($.fn,{livequery:function(type,fn,fn2){var self=this,q;if($.isFunction(type))fn2=fn,fn=type,type=undefined;$.each($.livequery.queries,function(i,query){if(self.selector==query.selector&&self.context==query.context&&type==query.type&&(!fn||fn.$lqguid==query.fn.$lqguid)&&(!fn2||fn2.$lqguid==query.fn2.$lqguid))return(q=query)&&false});q=q||new $.livequery(this.selector,this.context,type,fn,fn2);q.stopped=false;q.run();return this},expire:function(type,fn,fn2){var self=this;if($.isFunction(type))fn2=fn,fn=type,type=undefined;$.each($.livequery.queries,function(i,query){if(self.selector==query.selector&&self.context==query.context&&(!type||type==query.type)&&(!fn||fn.$lqguid==query.fn.$lqguid)&&(!fn2||fn2.$lqguid==query.fn2.$lqguid)&&!this.stopped)$.livequery.stop(query.id)});return this}});$.livequery=function(selector,context,type,fn,fn2){this.selector=selector;this.context=context;this.type=type;this.fn=fn;this.fn2=fn2;this.elements=[];this.stopped=false;this.id=$.livequery.queries.push(this)-1;fn.$lqguid=fn.$lqguid||$.livequery.guid++;if(fn2)fn2.$lqguid=fn2.$lqguid||$.livequery.guid++;return this};$.livequery.prototype={stop:function(){var query=this;if(this.type)this.elements.unbind(this.type,this.fn);else if(this.fn2)this.elements.each(function(i,el){query.fn2.apply(el)});this.elements=[];this.stopped=true},run:function(){if(this.stopped)return;var query=this;var oEls=this.elements,els=$(this.selector,this.context),nEls=els.not(oEls);this.elements=els;if(this.type){nEls.bind(this.type,this.fn);if(oEls.length>0)$.each(oEls,function(i,el){if($.inArray(el,els)<0)$.event.remove(el,query.type,query.fn)})}else{nEls.each(function(){query.fn.apply(this)});if(this.fn2&&oEls.length>0)$.each(oEls,function(i,el){if($.inArray(el,els)<0)query.fn2.apply(el)})}}};$.extend($.livequery,{guid:0,queries:[],queue:[],running:false,timeout:null,checkQueue:function(){if($.livequery.running&&$.livequery.queue.length){var length=$.livequery.queue.length;while(length--)$.livequery.queries[$.livequery.queue.shift()].run()}},pause:function(){$.livequery.running=false},play:function(){$.livequery.running=true;$.livequery.run()},registerPlugin:function(){$.each(arguments,function(i,n){if(!$.fn[n])return;var old=$.fn[n];$.fn[n]=function(){var r=old.apply(this,arguments);$.livequery.run();return r}})},run:function(id){if(id!=undefined){if($.inArray(id,$.livequery.queue)<0)$.livequery.queue.push(id)}else $.each($.livequery.queries,function(id){if($.inArray(id,$.livequery.queue)<0)$.livequery.queue.push(id)});if($.livequery.timeout)clearTimeout($.livequery.timeout);$.livequery.timeout=setTimeout($.livequery.checkQueue,20)},stop:function(id){if(id!=undefined)$.livequery.queries[id].stop();else $.each($.livequery.queries,function(id){$.livequery.queries[id].stop()})}});$.livequery.registerPlugin('append','prepend','after','before','wrap','attr','removeAttr','addClass','removeClass','toggleClass','empty','remove','html');$(function(){$.livequery.play()})})(jQuery);
|
11 |
+
|
12 |
+
|
13 |
+
/**
|
14 |
+
* Appendo Plugin for jQuery v1.01
|
15 |
+
* Creates interface to create duplicate clones of last table row (usually for forms)
|
16 |
+
* (c) 2008 Kelly Hallman. Free software released under MIT License.
|
17 |
+
* See http://deepliquid.com/content/Appendo.html for more info
|
18 |
+
*/
|
19 |
+
|
20 |
+
jQuery.fn.appendo=function(opt){this.each(function(){jQuery.appendo.init(this,opt)});return this};jQuery.appendo=function(){var myself=this;this.opt={};this.init=function(obj,opt){var options=jQuery.extend({labelAdd:'Add Row',labelDel:'Remove',allowDelete:true,copyHandlers:false,focusFirst:true,onAdd:function(){return true},onDel:function(){return true},maxRows:0,wrapClass:'appendoButtons',wrapStyle:{padding:'.4em .2em .5em'},buttonStyle:{marginRight:'.5em'},subSelect:'tr:last'},myself.opt,opt);var $cpy=jQuery(obj).find(options.subSelect).clone(options.copyHandlers);var rows=1;var $add_btn=jQuery('#form-child-add').click(clicked_add),$del_btn=new_button(options.labelDel).click(clicked_del).hide();function add_row(){var $dup=$cpy.clone(options.copyHandlers);$dup.appendTo(obj);update_buttons(1);if(typeof(options.onAdd)=="function")options.onAdd($dup);if(!!options.focusFirst)$dup.find('input:first').focus()};function del_row(){var $row=jQuery(obj).find(options.subSelect);if((typeof(options.onDel)!="function")||options.onDel($row)){$row.remove();update_buttons(-1)}};function update_buttons(rowdelta){rows=rows+(rowdelta||0);(options.allowDelete&&(rows>1))?$del_btn.show():$del_btn.hide()};function new_button(label){return jQuery('<button />').css(options.buttonStyle).html(label)};function nothing(e){e.stopPropagation();e.preventDefault();return false};function clicked_add(e){if(!options.maxRows||(rows<options.maxRows))add_row();return nothing(e)};function clicked_del(e){if(rows>1)del_row();return nothing(e)};update_buttons()};return this}();
|
21 |
+
|
22 |
+
|
23 |
+
var default_form_1 = '<div class="child-clone-rows ui-sortable"><div id="_inbound_shortcodes_child_newoutput" class="hidden">[inbound_field label="First Name" type="text" description="" required="0" dropdown="" radio="" placeholder="" html="" dynamic=""][inbound_field label="Last Name" type="text" description="" required="0" dropdown="" radio="" placeholder="" html="" dynamic=""][inbound_field label="Email" type="text" description="" required="1" dropdown="" radio="" placeholder="" html="" dynamic=""]</div><div id="_inbound_shortcodes_child_output" class="hidden">[inbound_field label="{{label}}" type="{{field_type}}" description="{{description}}" required="{{required}}" dropdown="{{dropdown_options}}" radio="{{radio_options}}" placeholder="{{placeholder}}" html="{{html_block_options}}" dynamic="{{hidden_input_options}}"]</div><div id="field_instructions">Drag and drop fields to reorder.</div><div class="child-clone-row" id="row-1"><span class="form-field-row-number">1</span><a class="child-clone-row-remove child-options-toggles">Remove</a><a href="#" class="child-clone-row-shrink child-options-toggles ">Expand</a><a href="#" class="child-clone-row-exact child-options-toggles ">Clone</a><ul class="child-clone-row-form"><li class="child-clone-row-form-row "><div class="child-clone-row-label row-class-text"><label>Field Label</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide="" class="inbound-shortcodes-child-input" name="inbound_shortcode_label" id="inbound_shortcode_label" placeholder="Enter the Form Field Label. Example: First Name" value="First Name"><span class="child-clone-row-desc"></span></div></li><li class="child-clone-row-form-row minimize-class tog-hide-it"><div class="child-clone-row-label row-class-select"><label>Field Type</label></div><div class="child-clone-row-field row-class-select row-child-class-select"><select data-field-name="field_type" name="inbound_shortcode_field_type" id="inbound_shortcode_field_type" class="inbound-shortcodes-child-input select inbound-shortcodes-select"><option value="text">Single Line Text</option><option value="textarea">Paragraph Text</option><option value="dropdown">Dropdown Options</option><option value="radio">Radio Select</option><option value="number">Number</option><option value="checkbox">Checkbox</option><option value="date">Date Field</option><option value="time">Time Field</option><option value="hidden">Hidden Field</option></select><span class="child-clone-row-desc">Select an form field type</span></div></li><li class="child-clone-row-form-row minimize-class inbound-hidden-row reveal-dropdown tog-hide-it"><div class="child-clone-row-label row-class-text"><label>Dropdown choices</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide=" reveal-dropdown" class="inbound-shortcodes-child-input" name="inbound_shortcode_dropdown_options" id="inbound_shortcode_dropdown_options" placeholder="Choice 1, Choice 2, Choice 3" value=""><span class="child-clone-row-desc">Enter Your Dropdown Options. Separate by commas.</span></div></li><li class="child-clone-row-form-row minimize-class inbound-hidden-row reveal-radio tog-hide-it"><div class="child-clone-row-label row-class-text"><label>Radio Choices</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide=" reveal-radio" class="inbound-shortcodes-child-input" name="inbound_shortcode_radio_options" id="inbound_shortcode_radio_options" placeholder="Choice 1, Choice 2" value=""><span class="child-clone-row-desc">Enter Your Radio Options. Separate by commas.</span></div></li><li class="child-clone-row-form-row minimize-class inbound-hidden-row reveal-html-block tog-hide-it"><div class="child-clone-row-label row-class-textarea"><label>HTML Block</label></div><div class="child-clone-row-field row-class-textarea row-child-class-textarea"><textarea class="inbound-shortcodes-child-input inbound-shortcodes-textarea" name="inbound_shortcode_html_block_options" id="inbound_shortcode_html_block_options"></textarea><span class="child-clone-row-desc">This is a raw HTML block in the form. Insert text/HTML</span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class- tog-hide-it"><div class="child-clone-row-label row-class-helper-block"><label>Field Description <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-helper-block row-child-class-helper-block"><span class="child-clone-row-desc"><span class="show-advanced-fields">Show advanced fields</span></span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced tog-hide-it"><div class="child-clone-row-label row-class-text"><label>Field Placeholder <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide="" class="inbound-shortcodes-child-input" name="inbound_shortcode_placeholder" id="inbound_shortcode_placeholder" placeholder="" value=""><span class="child-clone-row-desc">Put field placeholder text here. Only works for normal text inputs</span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced tog-hide-it"><div class="child-clone-row-label row-class-textarea"><label>Field Description <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-textarea row-child-class-textarea"><textarea class="inbound-shortcodes-child-input inbound-shortcodes-textarea" name="inbound_shortcode_description" id="inbound_shortcode_description"></textarea><span class="child-clone-row-desc">Put field description here.</span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced tog-hide-it"><div class="child-clone-row-label row-class-checkbox"><label>Required Field? <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-checkbox row-child-class-checkbox"><label for="inbound_shortcode_required"><input type="checkbox" class="inbound-shortcodes-child-input inbound-shortcodes-checkbox" name="inbound_shortcode_required" id="inbound_shortcode_required"></label></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced tog-hide-it"><div class="child-clone-row-label row-class-text"><label>Dynamic Field Filling</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide="" class="inbound-shortcodes-child-input" name="inbound_shortcode_hidden_input_options" id="inbound_shortcode_hidden_input_options" placeholder="enter dynamic url parameter example: utm_campaign " value=""><span class="child-clone-row-desc">Enter Your Dynamic URL parameter</span></div></li></ul></div><div class="child-clone-row" id="row-2"><span class="form-field-row-number">2</span><a class="child-clone-row-remove child-options-toggles">Remove</a><a href="#" class="child-clone-row-shrink child-options-toggles ">Expand</a><a href="#" class="child-clone-row-exact child-options-toggles ">Clone</a><ul class="child-clone-row-form"><li class="child-clone-row-form-row "><div class="child-clone-row-label row-class-text"><label>Field Label</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide="" class="inbound-shortcodes-child-input" name="inbound_shortcode_label" id="inbound_shortcode_label" placeholder="Enter the Form Field Label. Example: First Name" value="Last Name"><span class="child-clone-row-desc"></span></div></li><li class="child-clone-row-form-row minimize-class tog-hide-it"><div class="child-clone-row-label row-class-select"><label>Field Type</label></div><div class="child-clone-row-field row-class-select row-child-class-select"><select data-field-name="field_type" name="inbound_shortcode_field_type" id="inbound_shortcode_field_type" class="inbound-shortcodes-child-input select inbound-shortcodes-select"><option value="text">Single Line Text</option><option value="textarea">Paragraph Text</option><option value="dropdown">Dropdown Options</option><option value="radio">Radio Select</option><option value="number">Number</option><option value="checkbox">Checkbox</option><option value="date">Date Field</option><option value="time">Time Field</option><option value="hidden">Hidden Field</option></select><span class="child-clone-row-desc">Select an form field type</span></div></li><li class="child-clone-row-form-row minimize-class inbound-hidden-row reveal-dropdown tog-hide-it"><div class="child-clone-row-label row-class-text"><label>Dropdown choices</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide=" reveal-dropdown" class="inbound-shortcodes-child-input" name="inbound_shortcode_dropdown_options" id="inbound_shortcode_dropdown_options" placeholder="Choice 1, Choice 2, Choice 3" value=""><span class="child-clone-row-desc">Enter Your Dropdown Options. Separate by commas.</span></div></li><li class="child-clone-row-form-row minimize-class inbound-hidden-row reveal-radio tog-hide-it"><div class="child-clone-row-label row-class-text"><label>Radio Choices</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide=" reveal-radio" class="inbound-shortcodes-child-input" name="inbound_shortcode_radio_options" id="inbound_shortcode_radio_options" placeholder="Choice 1, Choice 2" value=""><span class="child-clone-row-desc">Enter Your Radio Options. Separate by commas.</span></div></li><li class="child-clone-row-form-row minimize-class inbound-hidden-row reveal-html-block tog-hide-it"><div class="child-clone-row-label row-class-textarea"><label>HTML Block</label></div><div class="child-clone-row-field row-class-textarea row-child-class-textarea"><textarea class="inbound-shortcodes-child-input inbound-shortcodes-textarea" name="inbound_shortcode_html_block_options" id="inbound_shortcode_html_block_options"></textarea><span class="child-clone-row-desc">This is a raw HTML block in the form. Insert text/HTML</span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class- tog-hide-it"><div class="child-clone-row-label row-class-helper-block"><label>Field Description <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-helper-block row-child-class-helper-block"><span class="child-clone-row-desc"><span class="show-advanced-fields">Show advanced fields</span></span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced tog-hide-it"><div class="child-clone-row-label row-class-text"><label>Field Placeholder <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide="" class="inbound-shortcodes-child-input" name="inbound_shortcode_placeholder" id="inbound_shortcode_placeholder" placeholder="" value=""><span class="child-clone-row-desc">Put field placeholder text here. Only works for normal text inputs</span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced tog-hide-it"><div class="child-clone-row-label row-class-textarea"><label>Field Description <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-textarea row-child-class-textarea"><textarea class="inbound-shortcodes-child-input inbound-shortcodes-textarea" name="inbound_shortcode_description" id="inbound_shortcode_description"></textarea><span class="child-clone-row-desc">Put field description here.</span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced tog-hide-it"><div class="child-clone-row-label row-class-checkbox"><label>Required Field? <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-checkbox row-child-class-checkbox"><label for="inbound_shortcode_required"><input type="checkbox" class="inbound-shortcodes-child-input inbound-shortcodes-checkbox" name="inbound_shortcode_required" id="inbound_shortcode_required"></label></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced tog-hide-it"><div class="child-clone-row-label row-class-text"><label>Dynamic Field Filling</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide="" class="inbound-shortcodes-child-input" name="inbound_shortcode_hidden_input_options" id="inbound_shortcode_hidden_input_options" placeholder="enter dynamic url parameter example: utm_campaign " value=""><span class="child-clone-row-desc">Enter Your Dynamic URL parameter</span></div></li></ul></div><div class="child-clone-row" id="row-3"><span class="form-field-row-number">3</span><a class="child-clone-row-remove child-options-toggles">Remove</a><a href="#" class="child-clone-row-shrink child-options-toggles ">Minimize</a><a href="#" class="child-clone-row-exact child-options-toggles ">Clone</a><ul class="child-clone-row-form"><li class="child-clone-row-form-row "><div class="child-clone-row-label row-class-text"><label>Field Label</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide="" class="inbound-shortcodes-child-input" name="inbound_shortcode_label" id="inbound_shortcode_label" placeholder="Enter the Form Field Label. Example: First Name" value="Email"><span class="child-clone-row-desc"></span></div></li><li class="child-clone-row-form-row minimize-class"><div class="child-clone-row-label row-class-select"><label>Field Type</label></div><div class="child-clone-row-field row-class-select row-child-class-select"><select data-field-name="field_type" name="inbound_shortcode_field_type" id="inbound_shortcode_field_type" class="inbound-shortcodes-child-input select inbound-shortcodes-select"><option value="text">Single Line Text</option><option value="textarea">Paragraph Text</option><option value="dropdown">Dropdown Options</option><option value="radio">Radio Select</option><option value="number">Number</option><option value="checkbox">Checkbox</option><option value="date">Date Field</option><option value="time">Time Field</option><option value="hidden">Hidden Field</option></select><span class="child-clone-row-desc">Select an form field type</span></div></li><li class="child-clone-row-form-row minimize-class inbound-hidden-row reveal-dropdown"><div class="child-clone-row-label row-class-text"><label>Dropdown choices</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide=" reveal-dropdown" class="inbound-shortcodes-child-input" name="inbound_shortcode_dropdown_options" id="inbound_shortcode_dropdown_options" placeholder="Choice 1, Choice 2, Choice 3" value=""><span class="child-clone-row-desc">Enter Your Dropdown Options. Separate by commas.</span></div></li><li class="child-clone-row-form-row minimize-class inbound-hidden-row reveal-radio"><div class="child-clone-row-label row-class-text"><label>Radio Choices</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide=" reveal-radio" class="inbound-shortcodes-child-input" name="inbound_shortcode_radio_options" id="inbound_shortcode_radio_options" placeholder="Choice 1, Choice 2" value=""><span class="child-clone-row-desc">Enter Your Radio Options. Separate by commas.</span></div></li><li class="child-clone-row-form-row minimize-class inbound-hidden-row reveal-html-block"><div class="child-clone-row-label row-class-textarea"><label>HTML Block</label></div><div class="child-clone-row-field row-class-textarea row-child-class-textarea"><textarea class="inbound-shortcodes-child-input inbound-shortcodes-textarea" name="inbound_shortcode_html_block_options" id="inbound_shortcode_html_block_options"></textarea><span class="child-clone-row-desc">This is a raw HTML block in the form. Insert text/HTML</span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-"><div class="child-clone-row-label row-class-helper-block"><label>Field Description <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-helper-block row-child-class-helper-block"><span class="child-clone-row-desc"><span class="show-advanced-fields hide-advanced-options">Hide advanced options</span></span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced" style="display: list-item;"><div class="child-clone-row-label row-class-text"><label>Field Placeholder <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide="" class="inbound-shortcodes-child-input" name="inbound_shortcode_placeholder" id="inbound_shortcode_placeholder" placeholder="" value="Enter Your Email Address"><span class="child-clone-row-desc">Put field placeholder text here. Only works for normal text inputs</span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced" style="display: list-item;"><div class="child-clone-row-label row-class-textarea"><label>Field Description <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-textarea row-child-class-textarea"><textarea class="inbound-shortcodes-child-input inbound-shortcodes-textarea" name="inbound_shortcode_description" id="inbound_shortcode_description"></textarea><span class="child-clone-row-desc">Put field description here.</span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced" style="display: list-item;"><div class="child-clone-row-label row-class-checkbox"><label>Required Field? <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-checkbox row-child-class-checkbox"><label for="inbound_shortcode_required"><input type="checkbox" class="inbound-shortcodes-child-input inbound-shortcodes-checkbox" name="inbound_shortcode_required" id="inbound_shortcode_required" checked></label></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced" style="display: list-item;"><div class="child-clone-row-label row-class-text"><label>Dynamic Field Filling</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide="" class="inbound-shortcodes-child-input" name="inbound_shortcode_hidden_input_options" id="inbound_shortcode_hidden_input_options" placeholder="enter dynamic url parameter example: utm_campaign " value=""><span class="child-clone-row-desc">Enter Your Dynamic URL parameter</span></div></li></ul></div></div>';
|
24 |
+
|
25 |
+
var default_form_2 = '<div class="child-clone-rows ui-sortable"><div id="_inbound_shortcodes_child_newoutput" class="hidden">[inbound_field label="First Name" type="text" description="" required="0" dropdown="" radio="" placeholder="Enter Your First Name" html="" dynamic=""][inbound_field label="Last Name" type="text" description="" required="0" dropdown="" radio="" placeholder="Enter Your Last Name" html="" dynamic=""][inbound_field label="Email" type="text" description="" required="1" dropdown="" radio="" placeholder="Enter Your Email Address" html="" dynamic=""][inbound_field label="Company Name" type="text" description="" required="0" dropdown="" radio="" placeholder="Enter Your Company Name" html="" dynamic=""][inbound_field label="Job Title" type="text" description="" required="0" dropdown="" radio="" placeholder="Enter Your Job Title" html="" dynamic=""]</div><div id="_inbound_shortcodes_child_output" class="hidden">[inbound_field label="{{label}}" type="{{field_type}}" description="{{description}}" required="{{required}}" dropdown="{{dropdown_options}}" radio="{{radio_options}}" placeholder="{{placeholder}}" html="{{html_block_options}}" dynamic="{{hidden_input_options}}"]</div><div id="field_instructions">Drag and drop fields to reorder.</div><div class="child-clone-row" id="row-1"><span class="form-field-row-number">1</span><a class="child-clone-row-remove child-options-toggles">Remove</a><a href="#" class="child-clone-row-shrink child-options-toggles ">Minimize</a><a href="#" class="child-clone-row-exact child-options-toggles ">Clone</a><ul class="child-clone-row-form"><li class="child-clone-row-form-row "><div class="child-clone-row-label row-class-text"><label>Field Label</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide="" class="inbound-shortcodes-child-input" name="inbound_shortcode_label" id="inbound_shortcode_label" placeholder="Enter the Form Field Label. Example: First Name" value="First Name"><span class="child-clone-row-desc"></span></div></li><li class="child-clone-row-form-row minimize-class tog-hide-it"><div class="child-clone-row-label row-class-select"><label>Field Type</label></div><div class="child-clone-row-field row-class-select row-child-class-select"><select data-field-name="field_type" name="inbound_shortcode_field_type" id="inbound_shortcode_field_type" class="inbound-shortcodes-child-input select inbound-shortcodes-select"><option value="text" selected="selected">Single Line Text</option><option value="textarea">Paragraph Text</option><option value="dropdown">Dropdown Options</option><option value="radio">Radio Select</option><option value="number">Number</option><option value="checkbox">Checkbox</option><option value="date">Date Field</option><option value="time">Time Field</option><option value="hidden">Hidden Field</option></select><span class="child-clone-row-desc">Select an form field type</span></div></li><li class="child-clone-row-form-row minimize-class inbound-hidden-row reveal-dropdown tog-hide-it"><div class="child-clone-row-label row-class-text"><label>Dropdown choices</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide=" reveal-dropdown" class="inbound-shortcodes-child-input" name="inbound_shortcode_dropdown_options" id="inbound_shortcode_dropdown_options" placeholder="Choice 1, Choice 2, Choice 3" value=""><span class="child-clone-row-desc">Enter Your Dropdown Options. Separate by commas.</span></div></li><li class="child-clone-row-form-row minimize-class inbound-hidden-row reveal-radio tog-hide-it"><div class="child-clone-row-label row-class-text"><label>Radio Choices</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide=" reveal-radio" class="inbound-shortcodes-child-input" name="inbound_shortcode_radio_options" id="inbound_shortcode_radio_options" placeholder="Choice 1, Choice 2" value=""><span class="child-clone-row-desc">Enter Your Radio Options. Separate by commas.</span></div></li><li class="child-clone-row-form-row minimize-class inbound-hidden-row reveal-html-block tog-hide-it"><div class="child-clone-row-label row-class-textarea"><label>HTML Block</label></div><div class="child-clone-row-field row-class-textarea row-child-class-textarea"><textarea class="inbound-shortcodes-child-input inbound-shortcodes-textarea" name="inbound_shortcode_html_block_options" id="inbound_shortcode_html_block_options"></textarea><span class="child-clone-row-desc">This is a raw HTML block in the form. Insert text/HTML</span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class- tog-hide-it"><div class="child-clone-row-label row-class-helper-block"><label>Field Description <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-helper-block row-child-class-helper-block"><span class="child-clone-row-desc"><span class="hide-advanced-options">Hide advanced options</span></span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced tog-hide-it" style="display: list-item;"><div class="child-clone-row-label row-class-text"><label>Field Placeholder <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide="" class="inbound-shortcodes-child-input" name="inbound_shortcode_placeholder" id="inbound_shortcode_placeholder" placeholder="" value="Enter Your First Name"><span class="child-clone-row-desc">Put field placeholder text here. Only works for normal text inputs</span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced tog-hide-it" style="display: list-item;"><div class="child-clone-row-label row-class-textarea"><label>Field Description <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-textarea row-child-class-textarea"><textarea class="inbound-shortcodes-child-input inbound-shortcodes-textarea" name="inbound_shortcode_description" id="inbound_shortcode_description"></textarea><span class="child-clone-row-desc">Put field description here.</span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced tog-hide-it" style="display: list-item;"><div class="child-clone-row-label row-class-checkbox"><label>Required Field? <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-checkbox row-child-class-checkbox"><label for="inbound_shortcode_required"><input type="checkbox" class="inbound-shortcodes-child-input inbound-shortcodes-checkbox" name="inbound_shortcode_required" id="inbound_shortcode_required"></label></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced tog-hide-it" style="display: list-item;"><div class="child-clone-row-label row-class-text"><label>Dynamic Field Filling</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide="" class="inbound-shortcodes-child-input" name="inbound_shortcode_hidden_input_options" id="inbound_shortcode_hidden_input_options" placeholder="enter dynamic url parameter example: utm_campaign " value=""><span class="child-clone-row-desc">Enter Your Dynamic URL parameter</span></div></li></ul></div><div class="child-clone-row" id="row-2"><span class="form-field-row-number">2</span><a class="child-clone-row-remove child-options-toggles">Remove</a><a href="#" class="child-clone-row-shrink child-options-toggles ">Minimize</a><a href="#" class="child-clone-row-exact child-options-toggles ">Clone</a><ul class="child-clone-row-form"><li class="child-clone-row-form-row "><div class="child-clone-row-label row-class-text"><label>Field Label</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide="" class="inbound-shortcodes-child-input" name="inbound_shortcode_label" id="inbound_shortcode_label" placeholder="Enter the Form Field Label. Example: First Name" value="Last Name"><span class="child-clone-row-desc"></span></div></li><li class="child-clone-row-form-row minimize-class tog-hide-it"><div class="child-clone-row-label row-class-select"><label>Field Type</label></div><div class="child-clone-row-field row-class-select row-child-class-select"><select data-field-name="field_type" name="inbound_shortcode_field_type" id="inbound_shortcode_field_type" class="inbound-shortcodes-child-input select inbound-shortcodes-select"><option value="text" selected="selected">Single Line Text</option><option value="textarea">Paragraph Text</option><option value="dropdown">Dropdown Options</option><option value="radio">Radio Select</option><option value="number">Number</option><option value="checkbox">Checkbox</option><option value="date">Date Field</option><option value="time">Time Field</option><option value="hidden">Hidden Field</option></select><span class="child-clone-row-desc">Select an form field type</span></div></li><li class="child-clone-row-form-row minimize-class inbound-hidden-row reveal-dropdown tog-hide-it"><div class="child-clone-row-label row-class-text"><label>Dropdown choices</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide=" reveal-dropdown" class="inbound-shortcodes-child-input" name="inbound_shortcode_dropdown_options" id="inbound_shortcode_dropdown_options" placeholder="Choice 1, Choice 2, Choice 3" value=""><span class="child-clone-row-desc">Enter Your Dropdown Options. Separate by commas.</span></div></li><li class="child-clone-row-form-row minimize-class inbound-hidden-row reveal-radio tog-hide-it"><div class="child-clone-row-label row-class-text"><label>Radio Choices</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide=" reveal-radio" class="inbound-shortcodes-child-input" name="inbound_shortcode_radio_options" id="inbound_shortcode_radio_options" placeholder="Choice 1, Choice 2" value=""><span class="child-clone-row-desc">Enter Your Radio Options. Separate by commas.</span></div></li><li class="child-clone-row-form-row minimize-class inbound-hidden-row reveal-html-block tog-hide-it"><div class="child-clone-row-label row-class-textarea"><label>HTML Block</label></div><div class="child-clone-row-field row-class-textarea row-child-class-textarea"><textarea class="inbound-shortcodes-child-input inbound-shortcodes-textarea" name="inbound_shortcode_html_block_options" id="inbound_shortcode_html_block_options"></textarea><span class="child-clone-row-desc">This is a raw HTML block in the form. Insert text/HTML</span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class- tog-hide-it"><div class="child-clone-row-label row-class-helper-block"><label>Field Description <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-helper-block row-child-class-helper-block"><span class="child-clone-row-desc"><span class="hide-advanced-options">Hide advanced options</span></span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced tog-hide-it" style="display: list-item;"><div class="child-clone-row-label row-class-text"><label>Field Placeholder <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide="" class="inbound-shortcodes-child-input" name="inbound_shortcode_placeholder" id="inbound_shortcode_placeholder" placeholder="" value="Enter Your Last Name"><span class="child-clone-row-desc">Put field placeholder text here. Only works for normal text inputs</span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced tog-hide-it" style="display: list-item;"><div class="child-clone-row-label row-class-textarea"><label>Field Description <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-textarea row-child-class-textarea"><textarea class="inbound-shortcodes-child-input inbound-shortcodes-textarea" name="inbound_shortcode_description" id="inbound_shortcode_description"></textarea><span class="child-clone-row-desc">Put field description here.</span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced tog-hide-it" style="display: list-item;"><div class="child-clone-row-label row-class-checkbox"><label>Required Field? <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-checkbox row-child-class-checkbox"><label for="inbound_shortcode_required"><input type="checkbox" class="inbound-shortcodes-child-input inbound-shortcodes-checkbox" name="inbound_shortcode_required" id="inbound_shortcode_required"></label></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced tog-hide-it" style="display: list-item;"><div class="child-clone-row-label row-class-text"><label>Dynamic Field Filling</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide="" class="inbound-shortcodes-child-input" name="inbound_shortcode_hidden_input_options" id="inbound_shortcode_hidden_input_options" placeholder="enter dynamic url parameter example: utm_campaign " value=""><span class="child-clone-row-desc">Enter Your Dynamic URL parameter</span></div></li></ul></div><div class="child-clone-row" id="row-3"><span class="form-field-row-number">3</span><a class="child-clone-row-remove child-options-toggles">Remove</a><a href="#" class="child-clone-row-shrink child-options-toggles ">Minimize</a><a href="#" class="child-clone-row-exact child-options-toggles ">Clone</a><ul class="child-clone-row-form"><li class="child-clone-row-form-row "><div class="child-clone-row-label row-class-text"><label>Field Label</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide="" class="inbound-shortcodes-child-input" name="inbound_shortcode_label" id="inbound_shortcode_label" placeholder="Enter the Form Field Label. Example: First Name" value="Email"><span class="child-clone-row-desc"></span></div></li><li class="child-clone-row-form-row minimize-class tog-hide-it"><div class="child-clone-row-label row-class-select"><label>Field Type</label></div><div class="child-clone-row-field row-class-select row-child-class-select"><select data-field-name="field_type" name="inbound_shortcode_field_type" id="inbound_shortcode_field_type" class="inbound-shortcodes-child-input select inbound-shortcodes-select"><option value="text" selected="selected">Single Line Text</option><option value="textarea">Paragraph Text</option><option value="dropdown">Dropdown Options</option><option value="radio">Radio Select</option><option value="number">Number</option><option value="checkbox">Checkbox</option><option value="date">Date Field</option><option value="time">Time Field</option><option value="hidden">Hidden Field</option></select><span class="child-clone-row-desc">Select an form field type</span></div></li><li class="child-clone-row-form-row minimize-class inbound-hidden-row reveal-dropdown tog-hide-it"><div class="child-clone-row-label row-class-text"><label>Dropdown choices</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide=" reveal-dropdown" class="inbound-shortcodes-child-input" name="inbound_shortcode_dropdown_options" id="inbound_shortcode_dropdown_options" placeholder="Choice 1, Choice 2, Choice 3" value=""><span class="child-clone-row-desc">Enter Your Dropdown Options. Separate by commas.</span></div></li><li class="child-clone-row-form-row minimize-class inbound-hidden-row reveal-radio tog-hide-it"><div class="child-clone-row-label row-class-text"><label>Radio Choices</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide=" reveal-radio" class="inbound-shortcodes-child-input" name="inbound_shortcode_radio_options" id="inbound_shortcode_radio_options" placeholder="Choice 1, Choice 2" value=""><span class="child-clone-row-desc">Enter Your Radio Options. Separate by commas.</span></div></li><li class="child-clone-row-form-row minimize-class inbound-hidden-row reveal-html-block tog-hide-it"><div class="child-clone-row-label row-class-textarea"><label>HTML Block</label></div><div class="child-clone-row-field row-class-textarea row-child-class-textarea"><textarea class="inbound-shortcodes-child-input inbound-shortcodes-textarea" name="inbound_shortcode_html_block_options" id="inbound_shortcode_html_block_options"></textarea><span class="child-clone-row-desc">This is a raw HTML block in the form. Insert text/HTML</span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class- tog-hide-it"><div class="child-clone-row-label row-class-helper-block"><label>Field Description <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-helper-block row-child-class-helper-block"><span class="child-clone-row-desc"><span class="show-advanced-fields hide-advanced-options">Hide advanced options</span></span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced tog-hide-it" style="display: list-item;"><div class="child-clone-row-label row-class-text"><label>Field Placeholder <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide="" class="inbound-shortcodes-child-input" name="inbound_shortcode_placeholder" id="inbound_shortcode_placeholder" placeholder="" value="Enter Your Email Address"><span class="child-clone-row-desc">Put field placeholder text here. Only works for normal text inputs</span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced tog-hide-it" style="display: list-item;"><div class="child-clone-row-label row-class-textarea"><label>Field Description <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-textarea row-child-class-textarea"><textarea class="inbound-shortcodes-child-input inbound-shortcodes-textarea" name="inbound_shortcode_description" id="inbound_shortcode_description"></textarea><span class="child-clone-row-desc">Put field description here.</span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced tog-hide-it" style="display: list-item;"><div class="child-clone-row-label row-class-checkbox"><label>Required Field? <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-checkbox row-child-class-checkbox"><label for="inbound_shortcode_required"><input type="checkbox" class="inbound-shortcodes-child-input inbound-shortcodes-checkbox" name="inbound_shortcode_required" id="inbound_shortcode_required" checked=""></label></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced tog-hide-it" style="display: list-item;"><div class="child-clone-row-label row-class-text"><label>Dynamic Field Filling</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide="" class="inbound-shortcodes-child-input" name="inbound_shortcode_hidden_input_options" id="inbound_shortcode_hidden_input_options" placeholder="enter dynamic url parameter example: utm_campaign " value=""><span class="child-clone-row-desc">Enter Your Dynamic URL parameter</span></div></li></ul></div><div class="child-clone-row" id="row-4"><span class="form-field-row-number">4</span><a class="child-clone-row-remove child-options-toggles">Remove</a><a href="#" class="child-clone-row-shrink child-options-toggles ">Minimize</a><a href="#" class="child-clone-row-exact child-options-toggles ">Clone</a><ul class="child-clone-row-form"><li class="child-clone-row-form-row "><div class="child-clone-row-label row-class-text"><label>Field Label</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide="" class="inbound-shortcodes-child-input" name="inbound_shortcode_label" id="inbound_shortcode_label" placeholder="Enter the Form Field Label. Example: First Name" value="Company Name"><span class="child-clone-row-desc"></span></div></li><li class="child-clone-row-form-row minimize-class tog-hide-it"><div class="child-clone-row-label row-class-select"><label>Field Type</label></div><div class="child-clone-row-field row-class-select row-child-class-select"><select data-field-name="field_type" name="inbound_shortcode_field_type" id="inbound_shortcode_field_type" class="inbound-shortcodes-child-input select inbound-shortcodes-select"><option value="text" selected="selected">Single Line Text</option><option value="textarea">Paragraph Text</option><option value="dropdown">Dropdown Options</option><option value="radio">Radio Select</option><option value="number">Number</option><option value="checkbox">Checkbox</option><option value="date">Date Field</option><option value="time">Time Field</option><option value="hidden">Hidden Field</option></select><span class="child-clone-row-desc">Select an form field type</span></div></li><li class="child-clone-row-form-row minimize-class inbound-hidden-row reveal-dropdown tog-hide-it"><div class="child-clone-row-label row-class-text"><label>Dropdown choices</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide=" reveal-dropdown" class="inbound-shortcodes-child-input" name="inbound_shortcode_dropdown_options" id="inbound_shortcode_dropdown_options" placeholder="Choice 1, Choice 2, Choice 3" value=""><span class="child-clone-row-desc">Enter Your Dropdown Options. Separate by commas.</span></div></li><li class="child-clone-row-form-row minimize-class inbound-hidden-row reveal-radio tog-hide-it"><div class="child-clone-row-label row-class-text"><label>Radio Choices</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide=" reveal-radio" class="inbound-shortcodes-child-input" name="inbound_shortcode_radio_options" id="inbound_shortcode_radio_options" placeholder="Choice 1, Choice 2" value=""><span class="child-clone-row-desc">Enter Your Radio Options. Separate by commas.</span></div></li><li class="child-clone-row-form-row minimize-class inbound-hidden-row reveal-html-block tog-hide-it"><div class="child-clone-row-label row-class-textarea"><label>HTML Block</label></div><div class="child-clone-row-field row-class-textarea row-child-class-textarea"><textarea class="inbound-shortcodes-child-input inbound-shortcodes-textarea" name="inbound_shortcode_html_block_options" id="inbound_shortcode_html_block_options"></textarea><span class="child-clone-row-desc">This is a raw HTML block in the form. Insert text/HTML</span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class- tog-hide-it"><div class="child-clone-row-label row-class-helper-block"><label>Field Description <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-helper-block row-child-class-helper-block"><span class="child-clone-row-desc"><span class="show-advanced-fields hide-advanced-options">Hide advanced options</span></span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced tog-hide-it" style="display: list-item;"><div class="child-clone-row-label row-class-text"><label>Field Placeholder <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide="" class="inbound-shortcodes-child-input" name="inbound_shortcode_placeholder" id="inbound_shortcode_placeholder" placeholder="" value="Enter Your Company Name"><span class="child-clone-row-desc">Put field placeholder text here. Only works for normal text inputs</span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced tog-hide-it" style="display: list-item;"><div class="child-clone-row-label row-class-textarea"><label>Field Description <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-textarea row-child-class-textarea"><textarea class="inbound-shortcodes-child-input inbound-shortcodes-textarea" name="inbound_shortcode_description" id="inbound_shortcode_description"></textarea><span class="child-clone-row-desc">Put field description here.</span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced tog-hide-it" style="display: list-item;"><div class="child-clone-row-label row-class-checkbox"><label>Required Field? <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-checkbox row-child-class-checkbox"><label for="inbound_shortcode_required"><input type="checkbox" class="inbound-shortcodes-child-input inbound-shortcodes-checkbox" name="inbound_shortcode_required" id="inbound_shortcode_required"></label></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced tog-hide-it" style="display: list-item;"><div class="child-clone-row-label row-class-text"><label>Dynamic Field Filling</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide="" class="inbound-shortcodes-child-input" name="inbound_shortcode_hidden_input_options" id="inbound_shortcode_hidden_input_options" placeholder="enter dynamic url parameter example: utm_campaign " value=""><span class="child-clone-row-desc">Enter Your Dynamic URL parameter</span></div></li></ul></div><div class="child-clone-row" id="row-5"><span class="form-field-row-number">5</span><a class="child-clone-row-remove child-options-toggles">Remove</a><a href="#" class="child-clone-row-shrink child-options-toggles ">Minimize</a><a href="#" class="child-clone-row-exact child-options-toggles ">Clone</a><ul class="child-clone-row-form"><li class="child-clone-row-form-row "><div class="child-clone-row-label row-class-text"><label>Field Label</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide="" class="inbound-shortcodes-child-input" name="inbound_shortcode_label" id="inbound_shortcode_label" placeholder="Enter the Form Field Label. Example: First Name" value="Job Title"><span class="child-clone-row-desc"></span></div></li><li class="child-clone-row-form-row minimize-class"><div class="child-clone-row-label row-class-select"><label>Field Type</label></div><div class="child-clone-row-field row-class-select row-child-class-select"><select data-field-name="field_type" name="inbound_shortcode_field_type" id="inbound_shortcode_field_type" class="inbound-shortcodes-child-input select inbound-shortcodes-select"><option value="text">Single Line Text</option><option value="textarea">Paragraph Text</option><option value="dropdown">Dropdown Options</option><option value="radio">Radio Select</option><option value="number">Number</option><option value="checkbox">Checkbox</option><option value="date">Date Field</option><option value="time">Time Field</option><option value="hidden">Hidden Field</option></select><span class="child-clone-row-desc">Select an form field type</span></div></li><li class="child-clone-row-form-row minimize-class inbound-hidden-row reveal-dropdown"><div class="child-clone-row-label row-class-text"><label>Dropdown choices</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide=" reveal-dropdown" class="inbound-shortcodes-child-input" name="inbound_shortcode_dropdown_options" id="inbound_shortcode_dropdown_options" placeholder="Choice 1, Choice 2, Choice 3" value=""><span class="child-clone-row-desc">Enter Your Dropdown Options. Separate by commas.</span></div></li><li class="child-clone-row-form-row minimize-class inbound-hidden-row reveal-radio"><div class="child-clone-row-label row-class-text"><label>Radio Choices</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide=" reveal-radio" class="inbound-shortcodes-child-input" name="inbound_shortcode_radio_options" id="inbound_shortcode_radio_options" placeholder="Choice 1, Choice 2" value=""><span class="child-clone-row-desc">Enter Your Radio Options. Separate by commas.</span></div></li><li class="child-clone-row-form-row minimize-class inbound-hidden-row reveal-html-block"><div class="child-clone-row-label row-class-textarea"><label>HTML Block</label></div><div class="child-clone-row-field row-class-textarea row-child-class-textarea"><textarea class="inbound-shortcodes-child-input inbound-shortcodes-textarea" name="inbound_shortcode_html_block_options" id="inbound_shortcode_html_block_options"></textarea><span class="child-clone-row-desc">This is a raw HTML block in the form. Insert text/HTML</span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-"><div class="child-clone-row-label row-class-helper-block"><label>Field Description <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-helper-block row-child-class-helper-block"><span class="child-clone-row-desc"><span class="show-advanced-fields hide-advanced-options">Hide advanced options</span></span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced" style="display: list-item;"><div class="child-clone-row-label row-class-text"><label>Field Placeholder <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide="" class="inbound-shortcodes-child-input" name="inbound_shortcode_placeholder" id="inbound_shortcode_placeholder" placeholder="" value="Enter Your Job Title"><span class="child-clone-row-desc">Put field placeholder text here. Only works for normal text inputs</span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced" style="display: list-item;"><div class="child-clone-row-label row-class-textarea"><label>Field Description <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-textarea row-child-class-textarea"><textarea class="inbound-shortcodes-child-input inbound-shortcodes-textarea" name="inbound_shortcode_description" id="inbound_shortcode_description"></textarea><span class="child-clone-row-desc">Put field description here.</span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced" style="display: list-item;"><div class="child-clone-row-label row-class-checkbox"><label>Required Field? <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-checkbox row-child-class-checkbox"><label for="inbound_shortcode_required"><input type="checkbox" class="inbound-shortcodes-child-input inbound-shortcodes-checkbox" name="inbound_shortcode_required" id="inbound_shortcode_required"></label></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced" style="display: list-item;"><div class="child-clone-row-label row-class-text"><label>Dynamic Field Filling</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide="" class="inbound-shortcodes-child-input" name="inbound_shortcode_hidden_input_options" id="inbound_shortcode_hidden_input_options" placeholder="enter dynamic url parameter example: utm_campaign " value=""><span class="child-clone-row-desc">Enter Your Dynamic URL parameter</span></div></li></ul></div></div>';
|
26 |
+
|
27 |
+
var default_form_3 = '<div class="child-clone-rows ui-sortable"><div id="_inbound_shortcodes_child_newoutput" class="hidden">[inbound_field label="Email" type="text" description="" required="1" dropdown="" radio="" placeholder="" html="" dynamic=""]</div><div id="_inbound_shortcodes_child_output" class="hidden">[inbound_field label="{{label}}" type="{{field_type}}" description="{{description}}" required="{{required}}" dropdown="{{dropdown_options}}" radio="{{radio_options}}" placeholder="{{placeholder}}" html="{{html_block_options}}" dynamic="{{hidden_input_options}}"]</div><div id="field_instructions">Drag and drop fields to reorder.</div><div class="child-clone-row" id="row-1"><span class="form-field-row-number">1</span><a class="child-clone-row-remove child-options-toggles">Remove</a><a href="#" class="child-clone-row-shrink child-options-toggles ">Minimize</a><a href="#" class="child-clone-row-exact child-options-toggles ">Clone</a><ul class="child-clone-row-form"><li class="child-clone-row-form-row "><div class="child-clone-row-label row-class-text"><label>Field Label</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide="" class="inbound-shortcodes-child-input" name="inbound_shortcode_label" id="inbound_shortcode_label" placeholder="Enter the Form Field Label. Example: First Name" value="Email"><span class="child-clone-row-desc"></span></div></li><li class="child-clone-row-form-row minimize-class"><div class="child-clone-row-label row-class-select"><label>Field Type</label></div><div class="child-clone-row-field row-class-select row-child-class-select"><select data-field-name="field_type" name="inbound_shortcode_field_type" id="inbound_shortcode_field_type" class="inbound-shortcodes-child-input select inbound-shortcodes-select"><option value="text">Single Line Text</option><option value="textarea">Paragraph Text</option><option value="dropdown">Dropdown Options</option><option value="radio">Radio Select</option><option value="number">Number</option><option value="checkbox">Checkbox</option><option value="date">Date Field</option><option value="time">Time Field</option><option value="hidden">Hidden Field</option></select><span class="child-clone-row-desc">Select an form field type</span></div></li><li class="child-clone-row-form-row minimize-class inbound-hidden-row reveal-dropdown"><div class="child-clone-row-label row-class-text"><label>Dropdown choices</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide=" reveal-dropdown" class="inbound-shortcodes-child-input" name="inbound_shortcode_dropdown_options" id="inbound_shortcode_dropdown_options" placeholder="Choice 1, Choice 2, Choice 3" value=""><span class="child-clone-row-desc">Enter Your Dropdown Options. Separate by commas.</span></div></li><li class="child-clone-row-form-row minimize-class inbound-hidden-row reveal-radio"><div class="child-clone-row-label row-class-text"><label>Radio Choices</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide=" reveal-radio" class="inbound-shortcodes-child-input" name="inbound_shortcode_radio_options" id="inbound_shortcode_radio_options" placeholder="Choice 1, Choice 2" value=""><span class="child-clone-row-desc">Enter Your Radio Options. Separate by commas.</span></div></li><li class="child-clone-row-form-row minimize-class inbound-hidden-row reveal-html-block"><div class="child-clone-row-label row-class-textarea"><label>HTML Block</label></div><div class="child-clone-row-field row-class-textarea row-child-class-textarea"><textarea class="inbound-shortcodes-child-input inbound-shortcodes-textarea" name="inbound_shortcode_html_block_options" id="inbound_shortcode_html_block_options"></textarea><span class="child-clone-row-desc">This is a raw HTML block in the form. Insert text/HTML</span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-"><div class="child-clone-row-label row-class-helper-block"><label>Field Description <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-helper-block row-child-class-helper-block"><span class="child-clone-row-desc"><span class="hide-advanced-options">Hide advanced options</span></span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced" style="display: list-item;"><div class="child-clone-row-label row-class-checkbox"><label>Required Field? <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-checkbox row-child-class-checkbox"><label for="inbound_shortcode_required"><input type="checkbox" class="inbound-shortcodes-child-input inbound-shortcodes-checkbox" name="inbound_shortcode_required" id="inbound_shortcode_required" checked="checked"></label></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced" style="display: list-item;"><div class="child-clone-row-label row-class-text"><label>Field Placeholder <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide="" class="inbound-shortcodes-child-input" name="inbound_shortcode_placeholder" id="inbound_shortcode_placeholder" placeholder="" value=""><span class="child-clone-row-desc">Put field placeholder text here. Only works for normal text inputs</span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced" style="display: list-item;"><div class="child-clone-row-label row-class-textarea"><label>Field Description <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-textarea row-child-class-textarea"><textarea class="inbound-shortcodes-child-input inbound-shortcodes-textarea" name="inbound_shortcode_description" id="inbound_shortcode_description"></textarea><span class="child-clone-row-desc">Put field description here.</span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced" style="display: list-item;"><div class="child-clone-row-label row-class-text"><label>Dynamic Field Filling</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide="" class="inbound-shortcodes-child-input" name="inbound_shortcode_hidden_input_options" id="inbound_shortcode_hidden_input_options" placeholder="enter dynamic url parameter example: utm_campaign " value=""><span class="child-clone-row-desc">Enter Your Dynamic URL parameter</span></div></li></ul></div></div>';
|
shared/inbound-shortcodes/js/shortcodes.js
ADDED
@@ -0,0 +1,598 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
|
3 |
+
// Row add function
|
4 |
+
function row_add_callback()
|
5 |
+
{
|
6 |
+
var length = jQuery('.child-clone-row').length;
|
7 |
+
//jQuery('.child-clone-row').last().attr('id', 'row-'+length);
|
8 |
+
|
9 |
+
jQuery('.form-field-row-number').each(function(i){
|
10 |
+
var addition = i + 1;
|
11 |
+
jQuery(this).text(addition);
|
12 |
+
jQuery(this).parent().attr('id', 'row-'+addition);
|
13 |
+
});
|
14 |
+
jQuery('.child-clone-row').each(function(i){
|
15 |
+
var number = i + 1;
|
16 |
+
var the_id = jQuery(this).attr('id');
|
17 |
+
jQuery(this).find('input, select, textarea').each(function(i){
|
18 |
+
var this_id = the_id.replace('row-', '');
|
19 |
+
var current_name = jQuery(this).attr('name');
|
20 |
+
var clean_name = current_name.replace(/_[a-zA-Z0-9]*$/g, "");
|
21 |
+
jQuery(this).attr('name', clean_name + '_' + this_id);
|
22 |
+
});
|
23 |
+
});
|
24 |
+
|
25 |
+
jQuery('.child-clone-row .minimize-class').not( "#row-" + length + " .minimize-class").addClass('tog-hide-it');
|
26 |
+
jQuery('.child-clone-row-shrink').not( "#row-" + length + " .child-clone-row-shrink").text("Expand");
|
27 |
+
InboundShortcodes.generate(); // runs refresh
|
28 |
+
InboundShortcodes.generateChild();
|
29 |
+
jQuery('.child-clone-row').last().find('input').first().focus(); // focus on new input
|
30 |
+
//InboundShortcodes.updatePreview();
|
31 |
+
}
|
32 |
+
|
33 |
+
var InboundShortcodes = {
|
34 |
+
|
35 |
+
generate: function() {
|
36 |
+
|
37 |
+
var output = jQuery('#_inbound_shortcodes_output').text(),
|
38 |
+
newoutput = output;
|
39 |
+
|
40 |
+
jQuery('.inbound-shortcodes-input').each(function() {
|
41 |
+
var input = jQuery(this),
|
42 |
+
theid = input.attr('id'),
|
43 |
+
id = theid.replace('inbound_shortcode_', ''),
|
44 |
+
re = new RegExp('{{'+id+'}}', 'g');
|
45 |
+
|
46 |
+
if( input.is(':checkbox') ) {
|
47 |
+
var val = ( jQuery(this).is(':checked') ) ? '1' : '0';
|
48 |
+
newoutput = newoutput.replace(re, val);
|
49 |
+
|
50 |
+
}
|
51 |
+
else {
|
52 |
+
newoutput = newoutput.replace(re, input.val());
|
53 |
+
}
|
54 |
+
// Add fix to remove empty params. maybe
|
55 |
+
//console.log(newoutput);
|
56 |
+
|
57 |
+
});
|
58 |
+
|
59 |
+
jQuery('#_inbound_shortcodes_newoutput').remove();
|
60 |
+
jQuery('#inbound-shortcodes-form-table').prepend('<div id="_inbound_shortcodes_newoutput" class="hidden">' + newoutput + '</div>');
|
61 |
+
|
62 |
+
InboundShortcodes.updatePreview();
|
63 |
+
|
64 |
+
},
|
65 |
+
|
66 |
+
generateChild : function() {
|
67 |
+
|
68 |
+
var output = jQuery('#_inbound_shortcodes_child_output').text(),
|
69 |
+
parent_output = '',
|
70 |
+
outputs = '';
|
71 |
+
|
72 |
+
jQuery('.child-clone-row').each(function() {
|
73 |
+
|
74 |
+
var row = jQuery(this),
|
75 |
+
row_output = output;
|
76 |
+
|
77 |
+
jQuery('.inbound-shortcodes-child-input', this).each(function() {
|
78 |
+
var input = jQuery(this),
|
79 |
+
theid = input.attr('id'),
|
80 |
+
id = theid.replace('inbound_shortcode_', ''),
|
81 |
+
re = new RegExp('{{'+id+'}}', 'g');
|
82 |
+
|
83 |
+
if( input.is(':checkbox') ) {
|
84 |
+
var val = ( jQuery(this).is(':checked') ) ? '1' : '0';
|
85 |
+
row_output = row_output.replace(re, val);
|
86 |
+
}
|
87 |
+
else {
|
88 |
+
row_output = row_output.replace(re, input.val());
|
89 |
+
}
|
90 |
+
//console.log(newoutput);
|
91 |
+
});
|
92 |
+
|
93 |
+
outputs = outputs + row_output + "\n";
|
94 |
+
});
|
95 |
+
|
96 |
+
jQuery('#_inbound_shortcodes_child_newoutput').remove();
|
97 |
+
jQuery('.child-clone-rows').prepend('<div id="_inbound_shortcodes_child_newoutput" class="hidden">' + outputs + '</div>');
|
98 |
+
|
99 |
+
this.generate();
|
100 |
+
parent_output = jQuery('#_inbound_shortcodes_newoutput').text().replace('{{child}}', outputs);
|
101 |
+
|
102 |
+
jQuery('#_inbound_shortcodes_newoutput').remove();
|
103 |
+
jQuery('#inbound-shortcodes-form-table').prepend('<div id="_inbound_shortcodes_newoutput" class="hidden">' + parent_output + '</div>');
|
104 |
+
|
105 |
+
InboundShortcodes.updatePreview();
|
106 |
+
|
107 |
+
},
|
108 |
+
|
109 |
+
|
110 |
+
children : function() {
|
111 |
+
|
112 |
+
jQuery('.child-clone-rows').appendo({
|
113 |
+
subSelect: '> div.child-clone-row:last-child',
|
114 |
+
allowDelete: false,
|
115 |
+
focusFirst: false,
|
116 |
+
onAdd: row_add_callback
|
117 |
+
});
|
118 |
+
jQuery("body").on('click', '.child-clone-row', function () {
|
119 |
+
var exlcude_id = jQuery(this).attr('id');
|
120 |
+
console.log(exlcude_id);
|
121 |
+
jQuery('.child-clone-row .minimize-class').not( "#" + exlcude_id + " .minimize-class").addClass('tog-hide-it');
|
122 |
+
jQuery(this).find(".minimize-class").removeClass('tog-hide-it');
|
123 |
+
jQuery(this).find('.child-clone-row-shrink').text("Minimize");
|
124 |
+
});
|
125 |
+
// Clone Field values
|
126 |
+
jQuery("body").on('click', '.child-clone-row-exact', function () {
|
127 |
+
var btn = jQuery(this),
|
128 |
+
clone_box = btn.parent();
|
129 |
+
var new_clone = clone_box.clone();
|
130 |
+
jQuery(clone_box).after(new_clone);
|
131 |
+
row_add_callback();
|
132 |
+
});
|
133 |
+
// Shrink Rows
|
134 |
+
jQuery("body").on('click', '.child-clone-row-shrink', function () {
|
135 |
+
var btn = jQuery(this),
|
136 |
+
btn_class = btn.hasClass('shrunken'),
|
137 |
+
row = btn.parent();
|
138 |
+
console.log('clicked');
|
139 |
+
if (btn_class === false ){
|
140 |
+
console.log('nope.');
|
141 |
+
btn.addClass('shrunken');
|
142 |
+
row.find(".minimize-class").addClass('tog-hide-it');
|
143 |
+
btn.text("Expand");
|
144 |
+
} else {
|
145 |
+
console.log('yep');
|
146 |
+
btn.removeClass('shrunken');
|
147 |
+
row.find(".minimize-class").removeClass('tog-hide-it');
|
148 |
+
btn.text("minimize");
|
149 |
+
}
|
150 |
+
|
151 |
+
return false;
|
152 |
+
});
|
153 |
+
|
154 |
+
jQuery('.child-clone-row-remove').live('click', function() {
|
155 |
+
var btn = jQuery(this),
|
156 |
+
row = btn.parent();
|
157 |
+
|
158 |
+
|
159 |
+
if( jQuery('.child-clone-row').size() > 1 ){
|
160 |
+
row.remove();
|
161 |
+
row_add_callback();
|
162 |
+
}
|
163 |
+
else {
|
164 |
+
alert('You need a minimum of one row');
|
165 |
+
}
|
166 |
+
return false;
|
167 |
+
});
|
168 |
+
|
169 |
+
|
170 |
+
jQuery('.child-clone-rows').sortable({
|
171 |
+
placeholder: 'sortable-placeholder',
|
172 |
+
items: '.child-clone-row',
|
173 |
+
stop: row_add_callback
|
174 |
+
});
|
175 |
+
|
176 |
+
},
|
177 |
+
|
178 |
+
updatePreview : function() {
|
179 |
+
|
180 |
+
if( jQuery('#inbound-shortcodes-preview').size() > 0 ) {
|
181 |
+
|
182 |
+
var shortcode = jQuery('#_inbound_shortcodes_newoutput').html(),
|
183 |
+
iframe = jQuery('#inbound-shortcodes-preview'),
|
184 |
+
theiframeSrc = iframe.attr('src'),
|
185 |
+
thesiframeSrc = theiframeSrc.split('preview.php'),
|
186 |
+
iframeSrc = thesiframeSrc[0] + 'preview.php';
|
187 |
+
|
188 |
+
// updates the src value
|
189 |
+
iframe.attr( 'src', iframeSrc + '?sc=' + InboundShortcodes.htmlEncode(shortcode) );
|
190 |
+
|
191 |
+
//console.log('updated iframe');
|
192 |
+
// update the height
|
193 |
+
//jQuery('#inbound-shortcodes-preview').height( jQuery('#inbound-shortcodes-popup').outerHeight()-72 );
|
194 |
+
|
195 |
+
|
196 |
+
}
|
197 |
+
|
198 |
+
},
|
199 |
+
|
200 |
+
resizeTB : function() {
|
201 |
+
|
202 |
+
var ajaxCont = jQuery('#TB_ajaxContent'),
|
203 |
+
tbWindow = jQuery('#TB_window'),
|
204 |
+
freshthemesPopup = jQuery('#inbound-shortcodes-popup'),
|
205 |
+
no_preview = (jQuery('#_inbound_shortcodes_preview').text() == 'false') ? true : false;
|
206 |
+
var width = jQuery(window).width();
|
207 |
+
var H = jQuery(window).height();
|
208 |
+
var W = ( 1720 < width ) ? 1720 : width;
|
209 |
+
var this_height = ajaxCont.height();
|
210 |
+
console.log(this_height);
|
211 |
+
if( no_preview ) {
|
212 |
+
ajaxCont.css({
|
213 |
+
paddingTop: 0,
|
214 |
+
paddingLeft: 0,
|
215 |
+
height: (tbWindow.outerHeight()-47),
|
216 |
+
overflow: 'scroll',
|
217 |
+
width: 562
|
218 |
+
});
|
219 |
+
|
220 |
+
tbWindow.css({
|
221 |
+
width: ajaxCont.outerWidth(),
|
222 |
+
marginLeft: -(ajaxCont.outerWidth()/2)
|
223 |
+
});
|
224 |
+
|
225 |
+
jQuery('#inbound-shortcodes-popup').addClass('no_preview');
|
226 |
+
}
|
227 |
+
|
228 |
+
else {
|
229 |
+
ajaxCont.css({
|
230 |
+
padding: 0,
|
231 |
+
// height: (tbWindow.outerHeight()-47),
|
232 |
+
height: freshthemesPopup.outerHeight()-15,
|
233 |
+
overflow: 'scroll' // IMPORTANT
|
234 |
+
});
|
235 |
+
// full screen fix
|
236 |
+
if ( tbWindow.size() ) {
|
237 |
+
tbWindow.width( W - 150 ).height( H - 75 );
|
238 |
+
ajaxCont.width( W - 150 ).height( H - 95 );
|
239 |
+
tbWindow.css({'margin-left': '-' + parseInt((( W - 150 ) / 2),10) + 'px'});
|
240 |
+
|
241 |
+
if ( typeof document.body.style.maxWidth != 'undefined' )
|
242 |
+
tbWindow.css({'top':'40px','margin-top':'0'});
|
243 |
+
//jQuery('#TB_title').css({'background-color':'#fff','color':'#cfcfcf'});
|
244 |
+
};
|
245 |
+
// Old css
|
246 |
+
/*tbWindow.css({
|
247 |
+
width: ajaxCont.outerWidth(),
|
248 |
+
height: (ajaxCont.outerHeight() + 30),
|
249 |
+
marginLeft: -(ajaxCont.outerWidth()/2),
|
250 |
+
marginTop: -((ajaxCont.outerHeight() + 47)/2),
|
251 |
+
top: '50%'
|
252 |
+
}); */
|
253 |
+
}
|
254 |
+
|
255 |
+
},
|
256 |
+
update_fields : function () {
|
257 |
+
var insert_form = jQuery("#inbound_shortcode_insert_default").val();
|
258 |
+
var current_code = jQuery("#inbound_current_shortcode").val();
|
259 |
+
if ( current_code === "quick_insert_inbound_form_shortcode") {
|
260 |
+
return false;
|
261 |
+
}
|
262 |
+
var patt = /^form_/gi;
|
263 |
+
var result = patt.test(insert_form);
|
264 |
+
if (result === false){
|
265 |
+
var form_insert = window[insert_form];
|
266 |
+
if (jQuery('.child-clone-row').length != "1") {
|
267 |
+
if (confirm('Are you sure you want to overwrite the current form you are building? Selecting another form template will clear your current fields/settings')) {
|
268 |
+
jQuery(".child-clone-rows.ui-sortable").html(form_insert);
|
269 |
+
} else {
|
270 |
+
jQuery("#inbound_shortcode_insert_default").val($.data(this, 'current')); // added parenthesis (edit)
|
271 |
+
return false;
|
272 |
+
}
|
273 |
+
} else {
|
274 |
+
jQuery(".child-clone-rows.ui-sortable").html(form_insert);
|
275 |
+
}
|
276 |
+
//jQuery.data("#inbound_shortcode_insert_default", 'current', jQuery("#inbound_shortcode_insert_default").val());
|
277 |
+
|
278 |
+
} else {
|
279 |
+
var form_insert = 'custom';
|
280 |
+
var form_id = insert_form.replace('form_', '');
|
281 |
+
|
282 |
+
//run ajax
|
283 |
+
jQuery.ajax({
|
284 |
+
type: 'POST',
|
285 |
+
url: ajaxurl,
|
286 |
+
context: this,
|
287 |
+
data: {
|
288 |
+
action: 'inbound_form_get_data',
|
289 |
+
form_id: form_id
|
290 |
+
},
|
291 |
+
|
292 |
+
success: function (data) {
|
293 |
+
var self = this;
|
294 |
+
var str = data;
|
295 |
+
|
296 |
+
// If form name already exists
|
297 |
+
var obj = JSON.parse(str);
|
298 |
+
console.log(obj);
|
299 |
+
|
300 |
+
|
301 |
+
var field_count = obj.field_count;
|
302 |
+
var form_insert = obj.form_settings_data;
|
303 |
+
// Stop form overwrites from happening
|
304 |
+
if (jQuery('.child-clone-row').length != "1") {
|
305 |
+
if (confirm('Are you sure you want to overwrite the current form you are building? Selecting another form template will clear your current fields/settings')) {
|
306 |
+
jQuery(".child-clone-rows.ui-sortable").html(form_insert);
|
307 |
+
jQuery("#_inbound_shortcodes_newoutput").text(obj.inbound_shortcode);
|
308 |
+
InboundShortcodes.generate();
|
309 |
+
InboundShortcodes.generateChild();
|
310 |
+
} else {
|
311 |
+
jQuery(this).val($.data(this, 'current')); // added parenthesis (edit)
|
312 |
+
return false;
|
313 |
+
}
|
314 |
+
|
315 |
+
} else {
|
316 |
+
jQuery(".child-clone-rows.ui-sortable").html(form_insert);
|
317 |
+
jQuery("#_inbound_shortcodes_newoutput").text(obj.inbound_shortcode);
|
318 |
+
InboundShortcodes.generate();
|
319 |
+
InboundShortcodes.generateChild();
|
320 |
+
}
|
321 |
+
|
322 |
+
$.data(this, 'current', jQuery(this).val());
|
323 |
+
/*var worked = '<span class="lp-success-message">Form Changed</span>';
|
324 |
+
var s_message = jQuery(self).parent();
|
325 |
+
jQuery(worked).appendTo(s_message); */
|
326 |
+
// runs refresh
|
327 |
+
|
328 |
+
|
329 |
+
},
|
330 |
+
|
331 |
+
error: function (MLHttpRequest, textStatus, errorThrown) {
|
332 |
+
alert("Ajax not enabled");
|
333 |
+
}
|
334 |
+
|
335 |
+
});
|
336 |
+
|
337 |
+
return form_insert;
|
338 |
+
}
|
339 |
+
|
340 |
+
},
|
341 |
+
load : function() {
|
342 |
+
|
343 |
+
var InboundShortcodes = this,
|
344 |
+
popup = jQuery('#inbound-shortcodes-popup'),
|
345 |
+
form = jQuery('#inbound-shortcodes-form', popup),
|
346 |
+
output = jQuery('#_inbound_shortcodes_output', form).text(),
|
347 |
+
popupType = jQuery('#_inbound_shortcodes_popup', form).text(),
|
348 |
+
shortcode_name = jQuery("#inbound_current_shortcode").val(),
|
349 |
+
newoutput = '';
|
350 |
+
|
351 |
+
InboundShortcodes.resizeTB();
|
352 |
+
jQuery(window).resize(function() {
|
353 |
+
InboundShortcodes.resizeTB();
|
354 |
+
});
|
355 |
+
|
356 |
+
InboundShortcodes.generate();
|
357 |
+
InboundShortcodes.children();
|
358 |
+
InboundShortcodes.generateChild();
|
359 |
+
jQuery("#inbound-shortcodes-popup").addClass('shortcode-' + shortcode_name);
|
360 |
+
// Conditional Form Only extras
|
361 |
+
if ( shortcode_name === "insert_inbound_form_shortcode") {
|
362 |
+
jQuery("#inbound_insert_shortcode_two, .inbound_shortcode_child_tbody, .main-design-settings").hide();
|
363 |
+
jQuery("#inbound_save_form").show();
|
364 |
+
jQuery("#inbound_insert_shortcode_two").removeClass('button-primary').addClass('button').text('Insert Full Shortcode')
|
365 |
+
jQuery('.step-item').on('click', function() {
|
366 |
+
jQuery(this).addClass('active').siblings().removeClass('active');
|
367 |
+
var show = jQuery(this).attr('data-display-options');
|
368 |
+
jQuery('.inbound_tbody').hide();
|
369 |
+
jQuery(show).show();
|
370 |
+
});
|
371 |
+
// Insert default forms
|
372 |
+
jQuery('body').on('change', '#inbound_shortcode_insert_default', function () {
|
373 |
+
|
374 |
+
InboundShortcodes.update_fields();
|
375 |
+
});
|
376 |
+
jQuery("body").on('click', '.switch-to-form-insert', function () {
|
377 |
+
tb_show( inbound_load.pop_title, inbound_load.image_dir + 'popup.php?popup=quick-forms&width=' + 900);
|
378 |
+
});
|
379 |
+
}
|
380 |
+
|
381 |
+
if ( shortcode_name === "quick_insert_inbound_form_shortcode") {
|
382 |
+
jQuery("#inbound_insert_shortcode_two").addClass('quick-forms');
|
383 |
+
|
384 |
+
jQuery("body").on('click', '.switch-to-form-builder', function () {
|
385 |
+
tb_show( inbound_load.pop_title, inbound_load.image_dir + 'popup.php?popup=forms&width=' + 900);
|
386 |
+
});
|
387 |
+
|
388 |
+
jQuery('#inbound_shortcode_insert_default option').each(function(){
|
389 |
+
var option_name = jQuery(this).val();
|
390 |
+
var option_fix = option_name.replace('form_', '');
|
391 |
+
jQuery(this).val(option_fix);
|
392 |
+
if (option_name === "none") {
|
393 |
+
jQuery(this).text('Choose Form');
|
394 |
+
}
|
395 |
+
});
|
396 |
+
// Insert default forms
|
397 |
+
jQuery('body').on('change', '#inbound_shortcode_insert_default', function () {
|
398 |
+
var val = jQuery(this).val();
|
399 |
+
var option = jQuery(this).find("option[value='"+val+"']").text();
|
400 |
+
jQuery('#inbound_shortcode_form_name').val(option);
|
401 |
+
InboundShortcodes.update_fields();
|
402 |
+
});
|
403 |
+
}
|
404 |
+
|
405 |
+
|
406 |
+
|
407 |
+
// Save Shortcode Function
|
408 |
+
var shortcode_nonce_val = inbound_shortcodes.inbound_shortcode_nonce; // NEED CORRECT NONCE
|
409 |
+
jQuery("body").on('mousedown', '#inbound_save_form', function () {
|
410 |
+
|
411 |
+
var post_id = jQuery("#post_ID").val();
|
412 |
+
var form_settings = jQuery(".child-clone-rows.ui-sortable").html();
|
413 |
+
var shortcode_name = jQuery("#inbound_current_shortcode").val();
|
414 |
+
var shortcode_value = jQuery('#_inbound_shortcodes_newoutput').html();
|
415 |
+
var form_name = jQuery("#inbound_shortcode_form_name").val();
|
416 |
+
var form_values = jQuery("#inbound-shortcodes-form").serialize();
|
417 |
+
var field_count = jQuery('.child-clone-row').length;
|
418 |
+
var redirect_value = jQuery('#inbound_shortcode_redirect').val();
|
419 |
+
if (typeof (inbound_forms) != "undefined" && inbound_forms !== null) {
|
420 |
+
var post_type = 'inbound-forms';
|
421 |
+
} else {
|
422 |
+
var post_type = 'normal';
|
423 |
+
}
|
424 |
+
if ( shortcode_name === "insert_inbound_form_shortcode" && form_name == "") {
|
425 |
+
jQuery(".step-item.first").click();
|
426 |
+
alert("Please Insert a Form Name!");
|
427 |
+
jQuery("#inbound_shortcode_form_name").addClass('need-value').focus();
|
428 |
+
} else {
|
429 |
+
jQuery.ajax({
|
430 |
+
type: 'POST',
|
431 |
+
url: ajaxurl,
|
432 |
+
context: this,
|
433 |
+
data: {
|
434 |
+
action: 'inbound_form_save',
|
435 |
+
name: form_name,
|
436 |
+
shortcode: shortcode_value,
|
437 |
+
field_count: field_count,
|
438 |
+
form_values: form_values,
|
439 |
+
form_settings: form_settings,
|
440 |
+
post_id: post_id,
|
441 |
+
post_type: post_type,
|
442 |
+
redirect_value: redirect_value,
|
443 |
+
nonce: shortcode_nonce_val
|
444 |
+
},
|
445 |
+
|
446 |
+
success: function (data) {
|
447 |
+
var self = this;
|
448 |
+
|
449 |
+
console.log(data);
|
450 |
+
var str = data;
|
451 |
+
// If form name already exists
|
452 |
+
if (str === "\"Found\"") {
|
453 |
+
alert("A Form by this name already exists. Please choose another name or select your existing form from the dropdown");
|
454 |
+
return false;
|
455 |
+
}
|
456 |
+
// If form name already exists
|
457 |
+
var obj = JSON.parse(str);
|
458 |
+
console.log(obj);
|
459 |
+
|
460 |
+
|
461 |
+
var form_id = obj.post_id;
|
462 |
+
var final_form_name = obj.form_name;
|
463 |
+
|
464 |
+
//var post_id_final = new_post.replace('"', '');
|
465 |
+
var site_base = window.location.origin + '/wp-admin/post.php?post=' + form_id + '&action=edit';
|
466 |
+
// jQuery('.lp-form').unbind('submit').submit();
|
467 |
+
//var worked = '<span class="success-message-map">Success! ' + this_meta_id + ' set to ' + meta_to_save + '</span>';
|
468 |
+
var worked = '<span class="lp-success-message">Form Created & Saved</span><a style="padding-left:10px;" target="_blank" href="' + site_base +'" class="event-view-post">View/Edit Form</a>';
|
469 |
+
|
470 |
+
var final_short_form = '[inbound_forms id="' + form_id + '" name="'+final_form_name+'"]';
|
471 |
+
if (typeof (inbound_forms) != "undefined" && inbound_forms !== null) {
|
472 |
+
jQuery(self).text('Form Updated').css('font-size', '25px');
|
473 |
+
setTimeout(function() {
|
474 |
+
jQuery(self).text('Save Form').css('font-size', '17px');
|
475 |
+
}, 5000);
|
476 |
+
} else {
|
477 |
+
window.tinyMCE.execInstanceCommand('content', 'mceInsertContent', false, final_short_form);
|
478 |
+
tb_remove();
|
479 |
+
}
|
480 |
+
|
481 |
+
//jQuery(worked).appendTo(s_message);
|
482 |
+
//jQuery(self).hide();
|
483 |
+
//alert("Event Created");
|
484 |
+
},
|
485 |
+
|
486 |
+
error: function (MLHttpRequest, textStatus, errorThrown) {
|
487 |
+
alert("Ajax not enabled");
|
488 |
+
}
|
489 |
+
});
|
490 |
+
}
|
491 |
+
return false;
|
492 |
+
});
|
493 |
+
|
494 |
+
jQuery('body').on('change, keyup', '.inbound-shortcodes-child-input', function() {
|
495 |
+
InboundShortcodes.generateChild(); // runs refresh for children
|
496 |
+
var update_dom = jQuery(this).val();
|
497 |
+
jQuery(this).attr('value', update_dom);
|
498 |
+
});
|
499 |
+
|
500 |
+
jQuery('.inbound-shortcodes-input', form).on('change, keyup', function () {
|
501 |
+
InboundShortcodes.generate(); // runs refresh
|
502 |
+
InboundShortcodes.generateChild();
|
503 |
+
var update_dom = jQuery(this).val();
|
504 |
+
jQuery(this).attr('value', update_dom);
|
505 |
+
});
|
506 |
+
|
507 |
+
jQuery('body').on('change', 'input[type="checkbox"], input[type="radio"], select', function () {
|
508 |
+
InboundShortcodes.generateChild(); // runs refresh for fields
|
509 |
+
var input_type = jQuery(this).attr('type');
|
510 |
+
var update_dom = jQuery(this).val();
|
511 |
+
if (input_type === "checkbox") {
|
512 |
+
var checked = jQuery(this).is(":checked");
|
513 |
+
if (checked === true){
|
514 |
+
jQuery(this).attr('checked',true);
|
515 |
+
} else {
|
516 |
+
jQuery(this).removeAttr( "checked" );
|
517 |
+
}
|
518 |
+
|
519 |
+
} else if (input_type === "radio") {
|
520 |
+
|
521 |
+
} else {
|
522 |
+
jQuery(this).find("option").removeAttr( "selected" );
|
523 |
+
jQuery(this).find("option[value='"+update_dom+"']").attr('selected', update_dom);
|
524 |
+
|
525 |
+
}
|
526 |
+
|
527 |
+
});
|
528 |
+
|
529 |
+
jQuery("body").on('click', '.show-advanced-fields', function () {
|
530 |
+
|
531 |
+
jQuery(this).parent().parent().parent().parent().find(".inbound-tab-class-advanced").show();
|
532 |
+
jQuery(this).removeClass("show-advanced-fields");
|
533 |
+
jQuery(this).addClass("hide-advanced-options");
|
534 |
+
jQuery(this).text("Hide advanced options");
|
535 |
+
|
536 |
+
});
|
537 |
+
jQuery("body").on('click', '.hide-advanced-options', function () {
|
538 |
+
|
539 |
+
jQuery(this).parent().parent().parent().parent().find(".inbound-tab-class-advanced").hide();
|
540 |
+
jQuery(this).removeClass("hide-advanced-options");
|
541 |
+
jQuery(this).text("Show advanced options");
|
542 |
+
jQuery(this).addClass("show-advanced-fields");
|
543 |
+
|
544 |
+
});
|
545 |
+
|
546 |
+
jQuery('body').on('change', 'select', function () {
|
547 |
+
var find_this = jQuery(this).attr('data-field-name'),
|
548 |
+
this_val = jQuery(this).val();
|
549 |
+
jQuery(".dynamic-visable-on").hide();
|
550 |
+
jQuery('.reveal-' + this_val).removeClass('inbound-hidden-row').show().addClass('dynamic-visable-on');
|
551 |
+
});
|
552 |
+
|
553 |
+
jQuery("body").on('click', '.inbound-shortcodes-insert-cancel', function () {
|
554 |
+
window.tb_remove();
|
555 |
+
});
|
556 |
+
|
557 |
+
},
|
558 |
+
insert_shortcode: function() {
|
559 |
+
var shortcode_name = jQuery("#inbound_current_shortcode").val();
|
560 |
+
var form_name = jQuery("#inbound_shortcode_form_name").val();
|
561 |
+
if ( shortcode_name === "insert_inbound_form_shortcode" && form_name == "") {
|
562 |
+
jQuery(".step-item.first").click();
|
563 |
+
alert("Please Insert a Form Name!");
|
564 |
+
jQuery("#inbound_shortcode_form_name").addClass('need-value').focus();
|
565 |
+
} else {
|
566 |
+
if(window.tinyMCE) {
|
567 |
+
var insert_val = jQuery('#_inbound_shortcodes_newoutput').html();
|
568 |
+
|
569 |
+
if ( shortcode_name === "insert_inbound_form_shortcode") {
|
570 |
+
//var fixed_insert_val = insert_val.replace(/\[.*?(.*?)\]/g, "[$1]<br class='inbr'/>"); // for linebreaks in editor
|
571 |
+
var fixed_insert_val = insert_val.replace(/\[.*?(.*?)\]/g, "<p>[$1]</p>"); // cleans output in editor
|
572 |
+
output_cleaned = fixed_insert_val.replace(/[a-zA-Z0-9_]*=""/g, ""); // remove empty shortcode fields
|
573 |
+
//output_cleaned = "<!-- Beginning of Form Embed -->" + output_cleaned + "<!-- End of Form Embed -->";
|
574 |
+
} else {
|
575 |
+
var fixed_insert_val = insert_val;
|
576 |
+
output_cleaned = fixed_insert_val.replace(/[a-zA-Z0-9_]*=""/g, ""); // remove empty shortcode fields
|
577 |
+
}
|
578 |
+
window.tinyMCE.execInstanceCommand('content', 'mceInsertContent', false, output_cleaned);
|
579 |
+
tb_remove();
|
580 |
+
}
|
581 |
+
}
|
582 |
+
},
|
583 |
+
|
584 |
+
htmlEncode: function(html) {
|
585 |
+
return jQuery('<div/>').text(html).html();
|
586 |
+
}
|
587 |
+
|
588 |
+
};
|
589 |
+
|
590 |
+
jQuery(document).ready( function() {
|
591 |
+
jQuery('#inbound-shortcodes-popup').livequery( function() {
|
592 |
+
InboundShortcodes.load();
|
593 |
+
});
|
594 |
+
jQuery("body").on('click', '.inbound-shortcodes-insert-two', function () {
|
595 |
+
InboundShortcodes.insert_shortcode();
|
596 |
+
});
|
597 |
+
});
|
598 |
+
|
shared/inbound-shortcodes/js/tinymce.js
ADDED
@@ -0,0 +1,145 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
(function() {
|
2 |
+
|
3 |
+
// Check Inbound Active Plugins
|
4 |
+
var indexOf = function(needle) {
|
5 |
+
if(typeof Array.prototype.indexOf === 'function') {
|
6 |
+
indexOf = Array.prototype.indexOf;
|
7 |
+
} else {
|
8 |
+
indexOf = function(needle) {
|
9 |
+
var i = -1, index = -1;
|
10 |
+
|
11 |
+
for(i = 0; i < this.length; i++) {
|
12 |
+
if(this[i] === needle) {
|
13 |
+
index = i;
|
14 |
+
break;
|
15 |
+
}
|
16 |
+
}
|
17 |
+
|
18 |
+
return index;
|
19 |
+
};
|
20 |
+
}
|
21 |
+
|
22 |
+
return indexOf.call(this, needle);
|
23 |
+
};
|
24 |
+
var active_plugins = inbound_load.inbound_plugins,
|
25 |
+
cta_check = 'cta',
|
26 |
+
cta_status = indexOf.call(active_plugins, cta_check),
|
27 |
+
lp_check = 'landing-pages',
|
28 |
+
lp_status = indexOf.call(active_plugins, lp_check),
|
29 |
+
leads_check = 'leads',
|
30 |
+
leads_status = indexOf.call(active_plugins, leads_check);
|
31 |
+
// End Check Active Plugins
|
32 |
+
if (leads_status > -1) {
|
33 |
+
console.log("leads on");
|
34 |
+
}
|
35 |
+
if (lp_status > -1) {
|
36 |
+
console.log("lp on");
|
37 |
+
}
|
38 |
+
if (cta_status > -1) {
|
39 |
+
console.log("cta on");
|
40 |
+
}
|
41 |
+
|
42 |
+
tinymce.create('tinymce.plugins.InboundShortcodes', {
|
43 |
+
|
44 |
+
init: function(ed, url) {
|
45 |
+
ed.addCommand('InboundShortcodesPopup', function(a, params) {
|
46 |
+
var popup = params.identifier;
|
47 |
+
tb_show( inbound_load.pop_title, inbound_load.image_dir + 'popup.php?popup=' + popup + '&width=' + 900);
|
48 |
+
});
|
49 |
+
},
|
50 |
+
createControl: function(btn, e) {
|
51 |
+
if (btn == 'InboundShortcodesButton') {
|
52 |
+
var a = this;
|
53 |
+
|
54 |
+
// adds the tinymce button
|
55 |
+
btn = e.createSplitButton('InboundShortcodesButton', {
|
56 |
+
title: 'Insert Shortcode',
|
57 |
+
image: inbound_load.image_dir + 'shortcodes-blue.png',
|
58 |
+
icons: true
|
59 |
+
});
|
60 |
+
|
61 |
+
// adds the dropdown to the button
|
62 |
+
btn.onRenderMenu.add(function(c, b) {
|
63 |
+
b.add({title : 'Inbound Form Shortcodes', 'class' : 'mceMenuItemTitle'}).setDisabled(1);
|
64 |
+
a.addWithPopup( b, 'Inbound Form Builder', 'forms' );
|
65 |
+
a.addWithPopup( b, 'Quick Form Insert', 'quick-forms' );
|
66 |
+
|
67 |
+
if (cta_status > -1) {
|
68 |
+
//b.add({title : 'Call to Action Shortcodes', 'class' : 'mceMenuItemTitle'}).setDisabled(1);
|
69 |
+
//a.addWithPopup( b, 'Insert Call to Action', 'call-to-action' ); // to to CTA
|
70 |
+
//a.addWithPopup( b, 'Insert Call to Action', 'button' ); // to to CTA
|
71 |
+
}
|
72 |
+
if (lp_status > -1) {
|
73 |
+
//b.add({title : 'Landing Page Shortcodes', 'class' : 'mceMenuItemTitle'}).setDisabled(1);
|
74 |
+
//a.addWithPopup( b, 'Insert Landing Page Lists', 'landing_pages' );
|
75 |
+
}
|
76 |
+
//a.addWithPopup( b, 'Insert Button Shortcode', 'button' );
|
77 |
+
//a.addWithPopup( b, 'Alert', 'alert' );
|
78 |
+
//a.addWithPopup( b, 'Call Out', 'callout' );
|
79 |
+
//b.add({title : 'Layout Shortcodes', 'class' : 'mceMenuItemTitle'}).setDisabled(1);
|
80 |
+
//a.addWithPopup( b, 'Insert Columns', 'columns' );
|
81 |
+
//a.addWithPopup( b, 'Content Box', 'content_box' );
|
82 |
+
//a.addWithPopup( b, 'Divider', 'divider' );
|
83 |
+
//a.addWithPopup( b, 'Tabs', 'tabs' );
|
84 |
+
|
85 |
+
// Need forking
|
86 |
+
//a.addWithPopup( b, 'Heading', 'heading' );
|
87 |
+
//a.addWithPopup( b, 'Icon', 'icon' );
|
88 |
+
//a.addWithPopup( b, 'Intro', 'intro' );
|
89 |
+
//a.addWithPopup( b, 'Lead Paragraph', 'leadp' );
|
90 |
+
//a.addWithPopup( b, 'List Icons', 'list_icons' );
|
91 |
+
//a.addWithPopup( b, 'Map', 'gmap' );
|
92 |
+
|
93 |
+
//a.addWithPopup( b, 'Pricing', 'pricing' );
|
94 |
+
//a.addWithPopup( b, 'Profile', 'profile' );
|
95 |
+
//a.addWithPopup( b, 'Social Links', 'social_links' );
|
96 |
+
|
97 |
+
//a.addWithPopup( b, 'Teaser', 'teaser' );
|
98 |
+
|
99 |
+
//a.addWithPopup( b, 'Video', 'video' );
|
100 |
+
});
|
101 |
+
|
102 |
+
return btn;
|
103 |
+
}
|
104 |
+
|
105 |
+
return null;
|
106 |
+
},
|
107 |
+
|
108 |
+
addWithPopup: function(ed, title, id) {
|
109 |
+
ed.add({
|
110 |
+
title: title,
|
111 |
+
icon: 'editor-icon-' + id,
|
112 |
+
onclick: function() {
|
113 |
+
tinyMCE.activeEditor.execCommand('InboundShortcodesPopup', false, {
|
114 |
+
title: title,
|
115 |
+
identifier: id
|
116 |
+
});
|
117 |
+
}
|
118 |
+
});
|
119 |
+
},
|
120 |
+
|
121 |
+
addImmediate: function(ed, title, sc) {
|
122 |
+
ed.add({
|
123 |
+
title: title,
|
124 |
+
|
125 |
+
onclick: function() {
|
126 |
+
tinyMCE.activeEditor.execCommand('mceInsertContent', false, sc);
|
127 |
+
}
|
128 |
+
});
|
129 |
+
},
|
130 |
+
|
131 |
+
getInfo: function() {
|
132 |
+
return {
|
133 |
+
longname: 'Inbound Shortcodes',
|
134 |
+
author: 'David Wells',
|
135 |
+
authorurl: 'http://www.inboundnow.com/',
|
136 |
+
infourl: 'http://www.inboundnow.com/',
|
137 |
+
version: '1.0'
|
138 |
+
};
|
139 |
+
}
|
140 |
+
|
141 |
+
});
|
142 |
+
|
143 |
+
tinymce.PluginManager.add('InboundShortcodes', tinymce.plugins.InboundShortcodes);
|
144 |
+
|
145 |
+
})();
|
shared/inbound-shortcodes/popup.php
ADDED
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
include( 'shortcodes-fields.php' );
|
3 |
+
$popup = trim( $_GET['popup'] );
|
4 |
+
$shortcode = new InboundShortcodesFields( $popup );
|
5 |
+
?>
|
6 |
+
|
7 |
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
8 |
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
9 |
+
<head></head>
|
10 |
+
<body>
|
11 |
+
<div id="inbound-shortcodes-popup">
|
12 |
+
|
13 |
+
<div id="inbound-shortcodes-wrap">
|
14 |
+
<div id="inbound-shortcodes-form-wrap">
|
15 |
+
<div id="inbound-shortcodes-form-head">
|
16 |
+
<?php echo $shortcode->popup_title; ?>
|
17 |
+
<?php $shortcode_id = strtolower(str_replace(array(' ','-'),'_', $shortcode->popup_title)); ?>
|
18 |
+
</div>
|
19 |
+
<form method="post" id="inbound-shortcodes-form">
|
20 |
+
<input type="hidden" id="inbound_current_shortcode" value="<?php echo $shortcode_id;?>">
|
21 |
+
<table id="inbound-shortcodes-form-table">
|
22 |
+
<?php echo $shortcode->output; ?>
|
23 |
+
<tbody style="display:none;">
|
24 |
+
<tr class="form-row" style="text-align: center;">
|
25 |
+
<?php if( ! $shortcode->has_child ) : ?><td class="label"> </td><?php endif; ?>
|
26 |
+
<td class="field" style="width:500px;"><a href="#" id="inbound_insert_shortcode" class="button-primary inbound-shortcodes-insert"><?php _e('Insert Shortcode', INBOUND_LABEL); ?></a></td>
|
27 |
+
</tr>
|
28 |
+
</tbody>
|
29 |
+
</table>
|
30 |
+
</form>
|
31 |
+
</div>
|
32 |
+
|
33 |
+
<div id="inbound-shortcodes-preview-wrap">
|
34 |
+
<div id="inbound-shortcodes-preview-head">
|
35 |
+
<?php _e('Shortcode Preview', INBOUND_LABEL); ?>
|
36 |
+
</div>
|
37 |
+
<?php if( $shortcode->no_preview ) : ?>
|
38 |
+
<div id="inbound-shortcodes-nopreview"><?php _e('Shortcode has no preview', INBOUND_LABEL); ?></div>
|
39 |
+
<?php else : ?>
|
40 |
+
<iframe src="<?php echo INBOUND_FORMS; ?>preview.php?sc=" width="285" scrollbar='true' frameborder="0" id="inbound-shortcodes-preview"></iframe>
|
41 |
+
<?php endif; ?>
|
42 |
+
</div>
|
43 |
+
<div class="clear"></div>
|
44 |
+
</div>
|
45 |
+
|
46 |
+
</div>
|
47 |
+
<div id="popup-controls">
|
48 |
+
<a href="#" id="inbound_save_form" style="display:none;" class="button-primary">Save Form & Insert</a>
|
49 |
+
<a href="#" id="inbound_insert_shortcode_two" class="button-primary inbound-shortcodes-insert-two"><?php _e('Insert Shortcode', INBOUND_LABEL); ?></a>
|
50 |
+
<a href="#" id="shortcode_cancel" class="button inbound-shortcodes-insert-cancel">Cancel</a>
|
51 |
+
|
52 |
+
</div>
|
53 |
+
<script type="text/javascript">
|
54 |
+
jQuery(document).ready(function($) {
|
55 |
+
|
56 |
+
jQuery('.child-clone-row').first().attr('id', 'row-1');
|
57 |
+
setTimeout(function() {
|
58 |
+
jQuery('#inbound-shortcodes-form input:visible').first().focus();
|
59 |
+
}, 500);
|
60 |
+
|
61 |
+
//jQuery("body").on('click', '.child-clone-row', function () {
|
62 |
+
// jQuery(".child-clone-row").toggle();
|
63 |
+
// jQuery(this).show();
|
64 |
+
//});
|
65 |
+
});
|
66 |
+
</script>
|
67 |
+
</body>
|
68 |
+
</html>
|
shared/inbound-shortcodes/preview.php
ADDED
@@ -0,0 +1,139 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/* Include Wordpress
|
4 |
+
* --------------------------------------------------------------------------- */
|
5 |
+
$absolute_path = __FILE__;
|
6 |
+
$path_to_file = explode( 'wp-content', $absolute_path );
|
7 |
+
$path_to_wp = $path_to_file[0];
|
8 |
+
|
9 |
+
require_once( $path_to_wp . '/wp-load.php' );
|
10 |
+
|
11 |
+
/* Get Shortcodes
|
12 |
+
* --------------------------------------------------------------------------- */
|
13 |
+
|
14 |
+
$test = "http://local.dev/wp-content/plugins/inbound-forms/preview.php?sc=[inbound_form_test%20name=%22test%22][inbound_field%20label=%22%22%20type=%22html-block%22%20description=%22%22%20required=%220%22%20dropdown=%22%22%20radio=%22%22%20html=%22test%20<span%20class=%22foot%22>%20%22][/inbound_form_test]</span>";
|
15 |
+
|
16 |
+
|
17 |
+
$shortcode = html_entity_decode( trim( $_GET['sc'] ) );
|
18 |
+
|
19 |
+
/* HTML MATCHES */
|
20 |
+
// $test = 'html="<span%20class="test">tes</span>"';
|
21 |
+
// preg_match_all('%\[inbound_form_test\s*(?:(layout)\s*=\s*(.*?))?\](.*?)\[/inbound_form_test\]%', $shortcode, $matches);
|
22 |
+
|
23 |
+
//preg_match_all('/'.$varname.'\s*?=\s*?(.*)\s*?(;|$)/msU',$shortcode,$matches);
|
24 |
+
|
25 |
+
|
26 |
+
$horiz = "";
|
27 |
+
if (preg_match("/horizontal/i", $shortcode)) {
|
28 |
+
$horiz = "<h2 title='Open preview in new tab' class='open_new_tab'>Click to Preview Horizontal Form in new tab</h2>";
|
29 |
+
}
|
30 |
+
|
31 |
+
$shortcode = str_replace('\"', '"', $shortcode);
|
32 |
+
$shortcode = str_replace('<', '<', $shortcode);
|
33 |
+
$shortcode = str_replace('>', '>', $shortcode);
|
34 |
+
$shortcode = str_replace('{{child}}', '', $shortcode);
|
35 |
+
$shortcode = str_replace('label=""', 'label="Default"', $shortcode);
|
36 |
+
//$field_name_fallback = ($field_name === "") ? 'fallback_name' : '0';
|
37 |
+
?>
|
38 |
+
<!DOCTYPE HTML>
|
39 |
+
<html lang="en">
|
40 |
+
<head>
|
41 |
+
<link rel="stylesheet" type="text/css" href="<?php echo INBOUND_FORMS; ?>/css/frontend-render.css" media="all" />
|
42 |
+
|
43 |
+
<?php wp_head(); ?>
|
44 |
+
<style type="text/css">
|
45 |
+
html {margin: 0 !important;}
|
46 |
+
body {padding: 30px 15px;
|
47 |
+
background:#fff;
|
48 |
+
padding-top: 5px;}
|
49 |
+
.bottom-insert-button {
|
50 |
+
position: fixed;
|
51 |
+
bottom: 5px;
|
52 |
+
left: 10%;
|
53 |
+
text-align: center;
|
54 |
+
margin: auto;
|
55 |
+
width: 80%;
|
56 |
+
display: inline-block;
|
57 |
+
text-decoration: none;
|
58 |
+
font-size: 17px;
|
59 |
+
line-height: 23px;
|
60 |
+
height: 24px;
|
61 |
+
margin: 0;
|
62 |
+
padding: 0 10px 1px;
|
63 |
+
cursor: pointer;
|
64 |
+
border-width: 1px;
|
65 |
+
border-style: solid;
|
66 |
+
-webkit-border-radius: 3px;
|
67 |
+
-webkit-appearance: none;
|
68 |
+
border-radius: 3px;
|
69 |
+
white-space: nowrap;
|
70 |
+
-webkit-box-sizing: border-box;
|
71 |
+
-moz-box-sizing: border-box;
|
72 |
+
box-sizing: border-box;
|
73 |
+
|
74 |
+
background-color: #21759B;
|
75 |
+
background-image: -webkit-gradient(linear,left top,left bottom,from(#2A95C5),to(#21759B));
|
76 |
+
background-image: -webkit-linear-gradient(top,#2A95C5,#21759B);
|
77 |
+
background-image: -moz-linear-gradient(top,#2a95c5,#21759b);
|
78 |
+
background-image: -ms-linear-gradient(top,#2a95c5,#21759b);
|
79 |
+
background-image: -o-linear-gradient(top,#2a95c5,#21759b);
|
80 |
+
background-image: linear-gradient(to bottom,#2A95C5,#21759B);
|
81 |
+
border-color: #21759B;
|
82 |
+
border-bottom-color: #1E6A8D;
|
83 |
+
-webkit-box-shadow: inset 0 1px 0 rgba(120, 200, 230, 0.5);
|
84 |
+
box-shadow: inset 0 1px 0 rgba(120, 200, 230, 0.5);
|
85 |
+
color: #FFF;
|
86 |
+
text-decoration: none;
|
87 |
+
text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
|
88 |
+
|
89 |
+
}
|
90 |
+
.disclaimer {
|
91 |
+
top: 0px;
|
92 |
+
display: inline-block;
|
93 |
+
margin-bottom: 20px;
|
94 |
+
font-size: 11px;
|
95 |
+
}
|
96 |
+
.open_new_tab {
|
97 |
+
color: #2465D8;
|
98 |
+
margin-bottom: 15px;
|
99 |
+
cursor: pointer;
|
100 |
+
font-size: 12px;
|
101 |
+
text-align: center;
|
102 |
+
}
|
103 |
+
</style>
|
104 |
+
</head>
|
105 |
+
<body>
|
106 |
+
<span class="disclaimer"><strong>Note:</strong> Previews aren't always exactly what they will look like on your page. Sometimes other styles can interfere</span>
|
107 |
+
<?php echo $horiz;
|
108 |
+
if ($horiz != ""){ ?>
|
109 |
+
<script type="text/javascript">
|
110 |
+
function OpenInNewTab(url) {
|
111 |
+
var win=window.open(url, '_blank');
|
112 |
+
win.focus();
|
113 |
+
}
|
114 |
+
|
115 |
+
jQuery(document).ready(function($) {
|
116 |
+
var this_link = window.location.href;
|
117 |
+
jQuery("body").on('click', '.open_new_tab', function () {
|
118 |
+
OpenInNewTab(this_link);
|
119 |
+
});
|
120 |
+
if ( window.self === window.top ) {
|
121 |
+
jQuery(".open_new_tab").hide();
|
122 |
+
jQuery(".disclaimer").hide();
|
123 |
+
} else {
|
124 |
+
|
125 |
+
}
|
126 |
+
});
|
127 |
+
</script>
|
128 |
+
|
129 |
+
<?php }
|
130 |
+
?>
|
131 |
+
|
132 |
+
|
133 |
+
<?php echo do_shortcode( $shortcode ); ?>
|
134 |
+
|
135 |
+
<?php // echo "<br>". $shortcode; ?>
|
136 |
+
|
137 |
+
<?php wp_footer();?>
|
138 |
+
</body>
|
139 |
+
</html>
|
shared/inbound-shortcodes/readme.txt
ADDED
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
=== Facebook Like to Download ===
|
2 |
+
Contributors: DavidWells
|
3 |
+
Donate link: http://www.inboundnow.com/donate/
|
4 |
+
Tags: Facebook, like to download, like gate, like gating, Facebook like gate, Facebook fan gate, increase likes, social media, fb like to download, fb fan gate, fb marketing, Facebook marketing, Facebook fan page, content offers, conversion tools, get likes
|
5 |
+
Requires at least: 2.7
|
6 |
+
Tested up to: 3.4.1
|
7 |
+
Stable tag: 1.0
|
8 |
+
|
9 |
+
Provides an easy way to entice website visitors to like a page on your site or your Facebook fan page in return for a content download.
|
10 |
+
|
11 |
+
== Description ==
|
12 |
+
|
13 |
+
The Facebook Like to Download plugin is an easy way for you to increase likes to your Facebook fan page or any web page on your site by enticing the visitor to like a page in order to receive a content download (like a whitepaper, mp3, video, etc.)
|
14 |
+
|
15 |
+
With this plugin you can:
|
16 |
+
|
17 |
+
1. Grow Your Facebook Fan Base
|
18 |
+
1. Drive More Social Media Traffic to Your Site
|
19 |
+
1. Increase likes to any URL on your site
|
20 |
+
|
21 |
+
The plugin was designed to make it easy for you to grow your current Facebook fan page and increase social traffic to your website from Facebook.
|
22 |
+
|
23 |
+
== Installation ==
|
24 |
+
|
25 |
+
1. Upload the 'facebook-like-to-download' folder to the '/wp-content/plugins/' directory
|
26 |
+
1. Activate the plugin through the 'Plugins' menu in WordPress
|
27 |
+
1. Go into the page/post you would like to insert the like to download short code and click on the newly added fb icon in your editor
|
28 |
+
|
29 |
+
|
30 |
+
== Frequently Asked Questions ==
|
31 |
+
|
32 |
+
= Can I change the like to download image? =
|
33 |
+
|
34 |
+
This is not currently available but we are considering this for future releases
|
35 |
+
|
36 |
+
= What if someone has already liked the page? What do they do? =
|
37 |
+
|
38 |
+
If someone has already liked the page, they can hover over the like button, click on the X to unlike, and relike the page to activate the download link.
|
39 |
+
|
40 |
+
|
41 |
+
== Screenshots ==
|
42 |
+
|
43 |
+
1. You can embed this like gate into any post or page on your site
|
44 |
+
2. After the visitor likes your url, they receive the download link
|
45 |
+
3. Easily insert the new like gate functionality with the new button in your visual editor
|
46 |
+
|
47 |
+
|
48 |
+
== Changelog ==
|
49 |
+
|
50 |
+
The current version is 1.0
|
51 |
+
|
52 |
+
= 1.0 (2012.08.12) =
|
53 |
+
* Plugin released
|
shared/inbound-shortcodes/shortcodes-blue.png
ADDED
Binary file
|
shared/inbound-shortcodes/shortcodes-fields.php
ADDED
@@ -0,0 +1,279 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* FreshThemes Shortcodes Field Class
|
4 |
+
* ---------------------------------------------------------------------------
|
5 |
+
* @author : Rifki A.G
|
6 |
+
* @version : 1.3
|
7 |
+
* @copyright : Copyright (c) 2013, FreshThemes
|
8 |
+
* http://www.freshthemes.net
|
9 |
+
* http://www.rifki.net
|
10 |
+
* --------------------------------------------------------------------------- */
|
11 |
+
|
12 |
+
/* Include wp-load
|
13 |
+
* ----------------------------------------------------- */
|
14 |
+
$path_to_file = explode( 'wp-content', __FILE__ );
|
15 |
+
$path_to_wp = $path_to_file[0];
|
16 |
+
|
17 |
+
require_once( $path_to_wp . '/wp-load.php' );
|
18 |
+
|
19 |
+
/* The Class
|
20 |
+
* ----------------------------------------------------- */
|
21 |
+
class InboundShortcodesFields {
|
22 |
+
|
23 |
+
/* Variables
|
24 |
+
* ----------------------------------------------------- */
|
25 |
+
var $popup,
|
26 |
+
$options,
|
27 |
+
$shortcode,
|
28 |
+
$child_options,
|
29 |
+
$child_shortcode,
|
30 |
+
$popup_title,
|
31 |
+
$no_preview,
|
32 |
+
$has_child,
|
33 |
+
$output,
|
34 |
+
$errors;
|
35 |
+
|
36 |
+
/* Constuctor
|
37 |
+
* ----------------------------------------------------- */
|
38 |
+
function __construct( $popup ) {
|
39 |
+
$this->popup = $popup;
|
40 |
+
$this->show();
|
41 |
+
}
|
42 |
+
|
43 |
+
/* Show Fields
|
44 |
+
* ----------------------------------------------------- */
|
45 |
+
function show() {
|
46 |
+
global $shortcodes_config;
|
47 |
+
|
48 |
+
$fields = $shortcodes_config;
|
49 |
+
|
50 |
+
if( isset( $fields[$this->popup]['child'] ) )
|
51 |
+
$this->has_child = true;
|
52 |
+
|
53 |
+
if( isset( $fields ) && is_array( $fields ) ) {
|
54 |
+
|
55 |
+
$this->options = $fields[$this->popup]['options'];
|
56 |
+
$this->shortcode = $fields[$this->popup]['shortcode'];
|
57 |
+
$this->popup_title = $fields[$this->popup]['popup_title'];
|
58 |
+
|
59 |
+
$this->append_output('<div id="_inbound_shortcodes_output" class="hidden">'.$this->shortcode.'</div>');
|
60 |
+
$this->append_output('<div id="_inbound_shortcodes_popup" class="hidden">'.$this->popup.'</div>');
|
61 |
+
|
62 |
+
if( isset( $fields[$this->popup]['no_preview'] ) && $fields[$this->popup]['no_preview'] ) {
|
63 |
+
$this->append_output( "\n" . '<div id="_inbound_shortcodes_preview" class="hidden">false</div>' );
|
64 |
+
$this->no_preview = true;
|
65 |
+
}
|
66 |
+
$count = 0;
|
67 |
+
foreach( $this->options as $key => $option ) {
|
68 |
+
$first = $key;
|
69 |
+
$key = 'inbound_shortcode_' . $key;
|
70 |
+
$uniquekey = 'inbound_shortcode_' . $first . "_" . $count;
|
71 |
+
$name = ( isset($option['name'])) ? $option['name'] : '';
|
72 |
+
$desc = ( isset($option['desc'])) ? $option['desc'] : '';
|
73 |
+
$std = ( isset($option['std']) ) ? $option['std'] : '';
|
74 |
+
$placeholder = (isset($option['placeholder'])) ? $option['placeholder'] : '';
|
75 |
+
$parent_class = (isset($option['class'])) ? $option['class'] : '';
|
76 |
+
|
77 |
+
$row_start = '<tbody class="inbound_tbody inbound_shortcode_parent_tbody parent-'.$key.' '.$parent_class.'">';
|
78 |
+
if ($key === "inbound_shortcode_form_name") {
|
79 |
+
$row_start .= '<ol class="steps">
|
80 |
+
<li class="step-item first active" data-display-options=".main-form-settings"><a href="#inbound_shortcode_parent_tbody" class="step-link">Main Form Settings</a></li>
|
81 |
+
<li class="step-item" data-display-options=".inbound_shortcode_child_tbody"><a href="#inbound_shortcode_child_tbody" class="step-link">Edit/Add Fields</a></li>
|
82 |
+
<li class="step-item last" data-display-options=".main-design-settings"><a href="#" class="step-link">Design & Layout</a></li>
|
83 |
+
</ol>';
|
84 |
+
}
|
85 |
+
$row_start .= '<tr class="form-row">';
|
86 |
+
$row_start .= '<td class="label">' . $name . '</td>';
|
87 |
+
$row_start .= '<td class="field">';
|
88 |
+
|
89 |
+
if( $option['type'] != 'checkbox' ) {
|
90 |
+
$row_end = '<span class="inbound-shortcodes-form-desc">' . $desc . '</span>';
|
91 |
+
}
|
92 |
+
else {
|
93 |
+
$row_end = '';
|
94 |
+
}
|
95 |
+
$row_end .= '</td>';
|
96 |
+
$row_end .= '</tr>';
|
97 |
+
$row_end .= '</tbody>';
|
98 |
+
|
99 |
+
switch( $option['type'] ) {
|
100 |
+
|
101 |
+
case 'text':
|
102 |
+
$output = $row_start;
|
103 |
+
$output .= '<input type="text" class="inbound-shortcodes-input '.$key.'" name="'. $uniquekey .'" id="'. $key .'" value="'. $std .'" size="40" placeholder="'.$placeholder.'" />';
|
104 |
+
$output .= $row_end;
|
105 |
+
$this->append_output($output);
|
106 |
+
break;
|
107 |
+
|
108 |
+
case 'textarea' :
|
109 |
+
$output = $row_start;
|
110 |
+
$output .= '<textarea class="inbound-shortcodes-input inbound-shortcodes-textarea" name="'. $key .'" id="'. $key .'" rows="5" cols="50">'. $std .'</textarea>';
|
111 |
+
$output .= $row_end;
|
112 |
+
$this->append_output($output);
|
113 |
+
break;
|
114 |
+
|
115 |
+
case 'select' :
|
116 |
+
$output = $row_start;
|
117 |
+
$output .= '<select name="'. $key .'" id="'.$key.'" class="inbound-shortcodes-input select inbound-shortcodes-select">';
|
118 |
+
foreach( $option['options'] as $val => $opt ) {
|
119 |
+
$selected = ($std == $val) ? ' selected="selected"' : '';
|
120 |
+
$output .= '<option'. $selected .' value="'. $val .'">'. $opt .'</option>';
|
121 |
+
}
|
122 |
+
$output .= '</select>';
|
123 |
+
$output .= $row_end;
|
124 |
+
$this->append_output($output);
|
125 |
+
break;
|
126 |
+
|
127 |
+
case 'checkbox' :
|
128 |
+
$output = $row_start;
|
129 |
+
$output .= '<label for="'.$key.'">';
|
130 |
+
$output .= '<input type="checkbox" class="inbound-shortcodes-input inbound-shortcodes-checkbox" name="'.$key.'" id="'.$key.'"'. checked( $std, 1, false) .' />';
|
131 |
+
$output .= $desc .'</label>';
|
132 |
+
$output .= $row_end;
|
133 |
+
$this->append_output($output);
|
134 |
+
break;
|
135 |
+
case 'helper-block' :
|
136 |
+
$output = $row_start;
|
137 |
+
$output .= $row_end;
|
138 |
+
$this->append_output($output);
|
139 |
+
break;
|
140 |
+
case 'cta' :
|
141 |
+
$args = array('post_type' => 'wp-call-to-action', 'numberposts' => -1);
|
142 |
+
$cta_post_type = get_posts($args);
|
143 |
+
$output = $row_start;
|
144 |
+
|
145 |
+
foreach ($cta_post_type as $cta) {
|
146 |
+
//setup_postdata($cta);
|
147 |
+
$this_id = $cta->ID;
|
148 |
+
$post_title = $cta->post_title;
|
149 |
+
$this_link = get_permalink( $this_id );
|
150 |
+
$this_link = preg_replace('/\?.*/', '', $this_link);
|
151 |
+
$output .= '<input class="checkbox" type="checkbox" value="" name="" id="" />' . $post_title . '<span id="view-cta-in-new-window">'.$this_link.'</span><br>';
|
152 |
+
}
|
153 |
+
$output .= '</div></div>';
|
154 |
+
$output .= $row_end;
|
155 |
+
$this->append_output($output);
|
156 |
+
break;
|
157 |
+
}
|
158 |
+
$count++;
|
159 |
+
}
|
160 |
+
|
161 |
+
if( isset( $fields[$this->popup]['child'] ) ) {
|
162 |
+
|
163 |
+
$this->child_options = $fields[$this->popup]['child']['options'];
|
164 |
+
$this->child_shortcode = $fields[$this->popup]['child']['shortcode'];
|
165 |
+
|
166 |
+
$parent_row_start = '<tbody class="inbound_tbody inbound_shortcode_child_tbody">';
|
167 |
+
$parent_row_start .= '<tr class="form-row has-child">';
|
168 |
+
$parent_row_start .= '<td><a href="#" id="form-child-add" class="button button-secondary">'.$fields[$this->popup]['child']['clone'].'</a>';
|
169 |
+
$parent_row_start .= '<div class="child-clone-rows">';
|
170 |
+
$parent_row_start .= '<div id="_inbound_shortcodes_child_output" class="hidden">'.$this->child_shortcode.'</div>';
|
171 |
+
$parent_row_start .= '<div id="field_instructions">Drag and drop fields to reorder.</div>';
|
172 |
+
$parent_row_start .= '<div class="child-clone-row"><span class="form-field-row-number">1</span><a class="child-clone-row-remove child-options-toggles">Remove</a><a href="#" class="child-clone-row-shrink child-options-toggles ">Minimize</a><a href="#" class="child-clone-row-exact child-options-toggles ">Clone</a>';
|
173 |
+
$parent_row_start .= '<ul class="child-clone-row-form">';
|
174 |
+
|
175 |
+
$this->append_output( $parent_row_start );
|
176 |
+
$count = 0;
|
177 |
+
foreach( $this->child_options as $key => $option ) {
|
178 |
+
$first = $key;
|
179 |
+
$uniquekey = 'inbound_shortcode_' . $first . "_" . $count;
|
180 |
+
$hide_class = ($count > 0) ? 'minimize-class' : '';
|
181 |
+
$original_key = $key;
|
182 |
+
$key = 'inbound_shortcode_' . $key;
|
183 |
+
$name = ( isset($option['name'])) ? $option['name'] : '';
|
184 |
+
$desc = ( isset($option['desc'])) ? $option['desc'] : '';
|
185 |
+
$std = ( isset($option['std']) ) ? $option['std'] : '';
|
186 |
+
$type = ( isset($option['type']) ) ? $option['type'] : '';
|
187 |
+
$tab_class = (isset($option['class'])) ? " inbound-tab-class-".$option['class'] : '';
|
188 |
+
$placeholder = (isset($option['placeholder'])) ? $option['placeholder'] : '';
|
189 |
+
$field_class = (isset($option['class'])) ? ' ' . $option['class'] : '';
|
190 |
+
$dynamic_hide = (isset($option['reveal_on'])) ? ' inbound-hidden-row' : '';
|
191 |
+
$reveal_on = (isset($option['reveal_on'])) ? ' reveal-' . $option['reveal_on'] : '';
|
192 |
+
|
193 |
+
$child_row_start = '<li class="child-clone-row-form-row '.$hide_class . $dynamic_hide . $reveal_on. $tab_class.'">';
|
194 |
+
$child_row_start .= '<div class="child-clone-row-label row-class-'.$type.'">';
|
195 |
+
$child_row_start .= '<label>' . $option['name'] . '</label>';
|
196 |
+
$child_row_start .= '</div>';
|
197 |
+
$child_row_start .= '<div class="child-clone-row-field row-class-'.$type.' row-child-class-'.$type.'">';
|
198 |
+
|
199 |
+
if( $option['type'] != 'checkbox' ) {
|
200 |
+
$child_row_end = '<span class="child-clone-row-desc">'.$desc.'</span>';
|
201 |
+
}
|
202 |
+
else {
|
203 |
+
$child_row_end = '';
|
204 |
+
}
|
205 |
+
$child_row_end .= '</div>';
|
206 |
+
$child_row_end .= '</li>';
|
207 |
+
|
208 |
+
switch( $option['type'] ) {
|
209 |
+
|
210 |
+
case 'helper-block' :
|
211 |
+
$child_output = $child_row_start;
|
212 |
+
|
213 |
+
$child_output .= $child_row_end;
|
214 |
+
$this->append_output($child_output);
|
215 |
+
break;
|
216 |
+
|
217 |
+
case 'text' :
|
218 |
+
$child_output = $child_row_start;
|
219 |
+
$child_output .= '<input type="text" data-conditional-hide="'.$reveal_on.'" class="inbound-shortcodes-child-input" name="'. $uniquekey .'" id="'. $key .'" placeholder="'.$placeholder.'" value="'. $std .'" />';
|
220 |
+
$child_output .= $child_row_end;
|
221 |
+
$this->append_output($child_output);
|
222 |
+
break;
|
223 |
+
|
224 |
+
case 'textarea' :
|
225 |
+
$child_output = $child_row_start;
|
226 |
+
$child_output .= '<textarea class="inbound-shortcodes-child-input inbound-shortcodes-textarea" name="'. $uniquekey .'" id="'. $key .'">'. $std .'</textarea>';
|
227 |
+
$child_output .= $child_row_end;
|
228 |
+
$this->append_output($child_output);
|
229 |
+
break;
|
230 |
+
|
231 |
+
case 'select' :
|
232 |
+
$child_output = $child_row_start;
|
233 |
+
$child_output .= '<select data-field-name="'.$original_key.'" name="'. $uniquekey .'" id="'. $key .'" class="inbound-shortcodes-child-input select inbound-shortcodes-select">';
|
234 |
+
foreach( $option['options'] as $value => $option ) {
|
235 |
+
$selected = ( $std == $value ) ? ' selected="selected"' : '';
|
236 |
+
$child_output .= '<option'. $selected .' value="'. $value .'">'. $option .'</option>';
|
237 |
+
}
|
238 |
+
$child_output .= '</select>';
|
239 |
+
$child_output .= $child_row_end;
|
240 |
+
$this->append_output($child_output);
|
241 |
+
break;
|
242 |
+
|
243 |
+
case 'checkbox' :
|
244 |
+
$child_output = $child_row_start;
|
245 |
+
$child_output .= '<label for="'.$key.'">';
|
246 |
+
$child_output .= '<input type="checkbox" class="inbound-shortcodes-child-input inbound-shortcodes-checkbox" name="'. $uniquekey .'" id="'. $key .'" '. checked( $std, 1, false) .' />';
|
247 |
+
$child_output .= $desc.'</label>';
|
248 |
+
$child_output .= $child_row_end;
|
249 |
+
$this->append_output($child_output);
|
250 |
+
break;
|
251 |
+
}
|
252 |
+
$count++;
|
253 |
+
}
|
254 |
+
|
255 |
+
$parent_row_end = '</ul>';
|
256 |
+
$parent_row_end .= '</div>';
|
257 |
+
$parent_row_end .= '</div>';
|
258 |
+
$parent_row_end .= '</td>';
|
259 |
+
$parent_row_end .= '</tr>';
|
260 |
+
$parent_row_end .= '</tbody>';
|
261 |
+
|
262 |
+
$this->append_output( $parent_row_end );
|
263 |
+
}
|
264 |
+
}
|
265 |
+
}
|
266 |
+
|
267 |
+
function append_output( $output ) {
|
268 |
+
$this->output = $this->output . $output;
|
269 |
+
}
|
270 |
+
|
271 |
+
function reset_output( $output ) {
|
272 |
+
$this->output = '';
|
273 |
+
}
|
274 |
+
|
275 |
+
function append_error( $error ) {
|
276 |
+
$this->errors = $this->errors . $error;
|
277 |
+
}
|
278 |
+
|
279 |
+
}
|
shared/inbound-shortcodes/shortcodes-includes.php
ADDED
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/* Include & Variables
|
4 |
+
* ----------------------------------------------------- */
|
5 |
+
$fontawesome = array(
|
6 |
+
"" => "None", "adjust" => "Adjust","align-center" => "Align Center","align-justify" => "Align Justify","align-left" => "Align Left","align-right" => "Align Right","ambulance" => "Ambulance","angle-down" => "Angle Down","angle-left" => "Angle Left","angle-right" => "Angle Right","angle-up" => "Angle Up","arrow-down" => "Arrow Down","arrow-left" => "Arrow Left","arrow-right" => "Arrow Right","arrow-up" => "Arrow Up","asterisk" => "Asterisk","backward" => "Backward","ban-circle" => "Ban Circle","bar-chart" => "Bar Chart","barcode" => "Barcode","beaker" => "Beaker","beer" => "Beer","bell" => "Bell","bell-alt" => "Bell Alt","bold" => "Bold","bolt" => "Bolt","book" => "Book","bookmark" => "Bookmark","bookmark-empty" => "Bookmark Empty","briefcase" => "Briefcase","building" => "Building","bullhorn" => "Bullhorn","calendar" => "Calendar","camera" => "Camera","camera-retro" => "Camera Retro","caret-down" => "Caret Down","caret-left" => "Caret Left","caret-right" => "Caret Right","caret-up" => "Caret Up","certificate" => "Certificate","check" => "Check","check-empty" => "Check Empty","chevron-down" => "Chevron Down","chevron-left" => "Chevron Left","chevron-right" => "Chevron Right","chevron-up" => "Chevron Up","circle" => "Circle","circle-arrow-down" => "Circle Arrow Down","circle-arrow-left" => "Circle Arrow Left","circle-arrow-right" => "Circle Arrow Right","circle-arrow-up" => "Circle Arrow Up","circle-blank" => "Circle Blank","cloud" => "Cloud","cloud-download" => "Cloud Download","cloud-upload" => "Cloud Upload","coffee" => "Coffee","cog" => "Cog","cogs" => "Cogs","columns" => "Columns","comment" => "Comment","comment-alt" => "Comment Alt","comments" => "Comments","comments-alt" => "Comments Alt","copy" => "Copy","credit-card" => "Credit Card","cut" => "Cut","dashboard" => "Dashboard","desktop" => "Desktop","double-angle-down" => "Double Angle Down","double-angle-left" => "Double Angle Left","double-angle-right" => "Double Angle Right","double-angle-up" => "Double Angle Up","download" => "Download","download-alt" => "Download Alt","edit" => "Edit","eject" => "Eject","envelope" => "Envelope","envelope-alt" => "Envelope Alt","exchange" => "Exchange","exclamation-sign" => "Exclamation Sign","external-link" => "External Link","eye-close" => "Eye Close","eye-open" => "Eye Open","facebook" => "Facebook","facebook-sign" => "Facebook Sign","facetime-video" => "Facetime Video","fast-backward" => "Fast Backward","fast-forward" => "Fast Forward","fighter-jet" => "Fighter Jet","file" => "File","file-alt" => "File Alt","film" => "Film","filter" => "Filter","fire" => "Fire","flag" => "Flag","folder-close" => "Folder Close","folder-close-alt" => "Folder Close Alt","folder-open" => "Folder Open","folder-open-alt" => "Folder Open Alt","font" => "Font","food" => "Food","forward" => "Forward","fullscreen" => "Fullscreen","gift" => "Gift","github" => "Github","github-alt" => "Github Alt","github-sign" => "Github Sign","glass" => "Glass","globe" => "Globe","google-plus" => "Google Plus","google-plus-sign" => "Google Plus Sign","group" => "Group","h-sign" => "H Sign","hand-down" => "Hand Down","hand-left" => "Hand Left","hand-right" => "Hand Right","hand-up" => "Hand Up","hdd" => "HDD","headphones" => "Headphones","heart" => "Heart","heart-empty" => "Heart Empty","home" => "Home","hospital" => "Hospital","inbox" => "Inbox","indent-left" => "Indent Left","indent-right" => "Indent Right","info-sign" => "Info Sign","italic" => "Italic","key" => "Key","laptop" => "Laptop","leaf" => "Leaf","legal" => "Legal","lemon" => "Lemon","lightbulb" => "Lightbulb","link" => "Link","linkedin" => "Linkedin","linkedin-sign" => "Linkedin Sign","list" => "List","list-alt" => "List Alt","list-ol" => "List ol","list-ul" => "List ul","lock" => "Lock","magic" => "Magic","magnet" => "Magnet","map-marker" => "Map Marker","medkit" => "Medkit","minus" => "Minus","minus-sign" => "Minus Sign","mobile-phone" => "Mobile Phone","money" => "Money","move" => "Move","music" => "Music","off" => "Off","ok" => "Ok","ok-circle" => "Ok Circle","ok-sign" => "Ok Sign","paper-clip" => "Paper Clip","paste" => "Paste","pause" => "Pause","pencil" => "Pencil","phone" => "Phone","phone-sign" => "Phone Sign","picture" => "Picture","pinterest" => "Pinterest","pinterest-sign" => "Pinterest Sign","plane" => "Plane","play" => "Play","play-circle" => "Play Circle","plus" => "Plus","plus-sign" => "Plus Sign","plus-sign-alt" => "Plus Sign Alt","print" => "Print","pushpin" => "Pushpin","qrcode" => "QR Code","question-sign" => "Question Sign","quote-left" => "Quote Left","quote-right" => "Quote Right","random" => "Random","refresh" => "Refresh","remove" => "Remove","remove-circle" => "Remove Circle","remove-sign" => "Remove Sign","reorder" => "Reorder","repeat" => "Repeat","reply" => "Reply","resize-full" => "Resize Full","resize-horizontal" => "Resize Horizontal","resize-small" => "Resize Small","resize-vertical" => "Resize Vertical","retweet" => "Retweet","road" => "Road","rss" => "RSS","save" => "Save","screenshot" => "Screenshot","search" => "Search","share" => "Share","share-alt" => "Share Alt","shopping-cart" => "Shopping Cart","sign-blank" => "Sign Blank","signal" => "Signal","signin" => "Signin","signout" => "Signout","sitemap" => "Sitemap","sort" => "Sort","sort-down" => "Sort Down","sort-up" => "Sort Up","spinner" => "Spinner","star" => "Star","star-empty" => "Star Empty","star-half" => "Star Half","step-backward" => "Step Backward","step-forward" => "Step Forward","stethoscope" => "Stethoscope","stop" => "Stop","strikethrough" => "Strikethrough","suitcase" => "Suitcase","table" => "Table","tablet" => "Tablet","tag" => "Tag","tags" => "Tags","tasks" => "Tasks","text-height" => "Text Height","text-width" => "Text Width","th" => "th","th-large" => "th Large","th-list" => "th List","thumbs-down" => "Thumbs Down","thumbs-up" => "Thumbs Up","time" => "Time","tint" => "Tint","trash" => "Trash","trophy" => "Trophy","truck" => "Truck","twitter" => "Twitter","twitter-sign" => "Twitter Sign","umbrella" => "Umbrella","underline" => "Underline","undo" => "Undo","unlock" => "Unlock","upload" => "Upload","upload-alt" => "Upload Alt","user" => "User","user-md" => "User md","volume-down" => "Volume Down","volume-off" => "Volume Off","volume-up" => "Volume Up","warning-sign" => "Warning Sign","wrench" => "Wrench","zoom-in" => "Zoom In","zoom-out" => "Zoom Out"
|
7 |
+
);
|
8 |
+
/* Include global fontawesome */
|
9 |
+
global $fontawesome;
|
10 |
+
|
11 |
+
if (!function_exists('inbound_excerpt_length')) {
|
12 |
+
function inbound_excerpt_length( $length ) {
|
13 |
+
$custom = '';
|
14 |
+
return ( $custom != '' ? $custom : 40 );
|
15 |
+
}
|
16 |
+
}
|
17 |
+
add_filter( 'excerpt_length', 'inbound_excerpt_length' );
|
18 |
+
|
19 |
+
|
20 |
+
$lp_cats = get_transient( 'landing-page-cats' ); // array of landing page categories
|
21 |
+
$form_names = get_transient( 'inbound-form-names' ); // array of landing page categories
|
22 |
+
/* Portfolio catgories options */
|
23 |
+
// $portfolio_cats = array();
|
24 |
+
// $portfolio_cats_obj = get_terms('portfolio_category', false);
|
25 |
+
// $portfolio_cats[''] = __('Select a category:', INBOUND_LABEL);
|
26 |
+
// foreach ($portfolio_cats_obj as $term) {
|
27 |
+
// $portfolio_cats[$term->term_id] = $term->name;
|
28 |
+
// }
|
29 |
+
|
30 |
+
// print_r($portfolio_cats);
|
31 |
+
|
32 |
+
/* Global Inbound Now Shortcodes */
|
33 |
+
require_once ('shortcodes/forms.php'); // Form Builder
|
34 |
+
require_once ('shortcodes/quick-forms.php'); // Form Builder
|
35 |
+
require_once ('shortcodes/column.php'); // Columned Layouts
|
36 |
+
|
37 |
+
require_once ('shortcodes/call-to-action.php');
|
38 |
+
require_once ('shortcodes/alert.php');
|
39 |
+
|
40 |
+
require_once ('shortcodes/button.php');
|
41 |
+
// Leads only Shortcodes
|
42 |
+
|
43 |
+
// Landing Page Only Shortcodes
|
44 |
+
|
45 |
+
require_once ('shortcodes/landing_pages.php'); // Cat specific landign pages
|
46 |
+
|
47 |
+
// Call to Action Only Shortcodes
|
48 |
+
|
49 |
+
// Landing Pages and CTA Shared Shortcodes
|
50 |
+
|
51 |
+
/* Temporary need Forks */
|
52 |
+
/*
|
53 |
+
require_once ('shortcodes/callout.php');
|
54 |
+
//require_once ('shortcodes/landing-page-list.php'); // ALL Landing page list
|
55 |
+
|
56 |
+
require_once ('shortcodes/content-box.php');
|
57 |
+
require_once ('shortcodes/divider.php');
|
58 |
+
|
59 |
+
|
60 |
+
require_once ('shortcodes/gmap.php');
|
61 |
+
|
62 |
+
require_once ('shortcodes/icon.php');
|
63 |
+
require_once ('shortcodes/intro.php');
|
64 |
+
require_once ('shortcodes/leadp.php');
|
65 |
+
require_once ('shortcodes/list-icon.php');
|
66 |
+
|
67 |
+
require_once ('shortcodes/pricing.php');
|
68 |
+
require_once ('shortcodes/profile.php');
|
69 |
+
require_once ('shortcodes/social.php');
|
70 |
+
require_once ('shortcodes/tabs.php');
|
71 |
+
require_once ('shortcodes/teaser.php');
|
72 |
+
//require_once ('shortcodes/testimonial.php'); // add custom testimonials
|
73 |
+
//require_once ('shortcodes/video.php'); // Add trackable video
|
74 |
+
*/
|
75 |
+
/*
|
76 |
+
* Fix issues when shortcodes are embedded in a block of content that is filtered by wpautop.
|
77 |
+
* http://www.johannheyne.de
|
78 |
+
* ----------------------------------------------------- */
|
79 |
+
if (!function_exists('inbound_shortcode_empty_paragraph_fix')) {
|
80 |
+
function inbound_shortcode_empty_paragraph_fix($content){
|
81 |
+
$array = array (
|
82 |
+
'<p>[' => '[',
|
83 |
+
']</p>' => ']',
|
84 |
+
']<br />' => ']'
|
85 |
+
);
|
86 |
+
|
87 |
+
$content = strtr($content, $array);
|
88 |
+
|
89 |
+
return $content;
|
90 |
+
}
|
91 |
+
}
|
92 |
+
|
93 |
+
add_filter('the_content', 'inbound_shortcode_empty_paragraph_fix');
|
94 |
+
add_filter( 'widget_text', 'do_shortcode', 11);
|
shared/inbound-shortcodes/shortcodes.png
ADDED
Binary file
|
shared/inbound-shortcodes/shortcodes/alert.php
ADDED
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Alert Shortcode
|
4 |
+
* ---------------------------------------------------------------------------
|
5 |
+
* @author : Rifki A.G
|
6 |
+
* @copyright : Copyright (c) 2013, FreshThemes
|
7 |
+
* http://www.freshthemes.net
|
8 |
+
* http://www.rifki.net
|
9 |
+
* --------------------------------------------------------------------------- */
|
10 |
+
|
11 |
+
/* Shortcode generator config
|
12 |
+
* ----------------------------------------------------- */
|
13 |
+
$shortcodes_config['alert'] = array(
|
14 |
+
'no_preview' => true,
|
15 |
+
'options' => array(
|
16 |
+
'color' => array(
|
17 |
+
'name' => __('Color Style', INBOUND_LABEL),
|
18 |
+
'desc' => __('Select the style.', INBOUND_LABEL),
|
19 |
+
'type' => 'select',
|
20 |
+
'options' => array(
|
21 |
+
'default' => __('Default', INBOUND_LABEL),
|
22 |
+
'blue' => __('Blue', INBOUND_LABEL),
|
23 |
+
'green' => __('Green', INBOUND_LABEL),
|
24 |
+
'red' => __('Red', INBOUND_LABEL),
|
25 |
+
'yellow' => __('Yellow', INBOUND_LABEL)
|
26 |
+
),
|
27 |
+
'std' => ''
|
28 |
+
),
|
29 |
+
'content' => array(
|
30 |
+
'name' => __('Message', INBOUND_LABEL),
|
31 |
+
'desc' => __('Your message here.', INBOUND_LABEL),
|
32 |
+
'type' => 'textarea',
|
33 |
+
'std' => ''
|
34 |
+
)
|
35 |
+
),
|
36 |
+
'shortcode' => '[alert color="{{color}}"]{{content}}[/alert]',
|
37 |
+
'popup_title' => __('Insert Alert Message Shortcode', INBOUND_LABEL)
|
38 |
+
);
|
39 |
+
|
40 |
+
/* Add shortcode
|
41 |
+
* ----------------------------------------------------- */
|
42 |
+
add_shortcode('alert', 'inbound_shortcode_alert');
|
43 |
+
if (!function_exists('inbound_shortcode_alert')) {
|
44 |
+
function inbound_shortcode_alert( $atts, $content = null ) {
|
45 |
+
extract(shortcode_atts(array(
|
46 |
+
'color' => ''
|
47 |
+
), $atts));
|
48 |
+
|
49 |
+
return '<div class="alert-message '.$color.'">'.do_shortcode($content).'</div>';
|
50 |
+
}
|
51 |
+
}
|
shared/inbound-shortcodes/shortcodes/button.php
ADDED
@@ -0,0 +1,143 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Button Shortcode
|
4 |
+
* ---------------------------------------------------------------------------
|
5 |
+
* @author : Rifki A.G
|
6 |
+
* @copyright : Copyright (c) 2013, FreshThemes
|
7 |
+
* http://www.freshthemes.net
|
8 |
+
* http://www.rifki.net
|
9 |
+
* --------------------------------------------------------------------------- */
|
10 |
+
|
11 |
+
/* Shortcode generator config
|
12 |
+
* ----------------------------------------------------- */
|
13 |
+
$shortcodes_config['button'] = array(
|
14 |
+
'no_preview' => false,
|
15 |
+
|
16 |
+
'options' => array(
|
17 |
+
'style' => array(
|
18 |
+
'name' => __('Button Style', INBOUND_LABEL),
|
19 |
+
'desc' => __('Select the button style.', INBOUND_LABEL),
|
20 |
+
'type' => 'select',
|
21 |
+
'options' => array(
|
22 |
+
'default' => 'Default',
|
23 |
+
'flat' => 'flat',
|
24 |
+
'sunk' => 'sunk'
|
25 |
+
),
|
26 |
+
'std' => 'default'
|
27 |
+
),
|
28 |
+
'content' => array(
|
29 |
+
'name' => __('Label', INBOUND_LABEL),
|
30 |
+
'desc' => __('Enter the button text label.', INBOUND_LABEL),
|
31 |
+
'type' => 'text',
|
32 |
+
'std' => 'Button Text'
|
33 |
+
),
|
34 |
+
'size' => array(
|
35 |
+
'name' => __('Button Size', INBOUND_LABEL),
|
36 |
+
'desc' => __('Select the button size.', INBOUND_LABEL),
|
37 |
+
'type' => 'select',
|
38 |
+
'options' => array(
|
39 |
+
'small' => 'Small',
|
40 |
+
'normal' => 'Normal',
|
41 |
+
'large' => 'Large'
|
42 |
+
),
|
43 |
+
'std' => 'normal'
|
44 |
+
),
|
45 |
+
'width' => array(
|
46 |
+
'name' => __('Custom Width', INBOUND_LABEL),
|
47 |
+
'desc' => __('Enter in pixel width or % width. Example: 200 <u>or</u> 100%', INBOUND_LABEL),
|
48 |
+
'type' => 'text',
|
49 |
+
'std' => '',
|
50 |
+
'class' => 'main-design-settings',
|
51 |
+
),
|
52 |
+
'color' => array(
|
53 |
+
'name' => __('Button Color', INBOUND_LABEL),
|
54 |
+
'desc' => __('Select the button color.', INBOUND_LABEL),
|
55 |
+
'type' => 'select',
|
56 |
+
'options' => array(
|
57 |
+
'default' => 'Default',
|
58 |
+
'black' => 'Black',
|
59 |
+
'blue' => 'Blue',
|
60 |
+
'brown' => 'Brown',
|
61 |
+
'green' => 'Green',
|
62 |
+
'orange' => 'Orange',
|
63 |
+
'pink' => 'Pink',
|
64 |
+
'purple' => 'Purple',
|
65 |
+
'red' => 'Red',
|
66 |
+
'silver' => 'Silver',
|
67 |
+
'yellow' => 'Yellow',
|
68 |
+
'white' => 'White'
|
69 |
+
),
|
70 |
+
'std' => 'default'
|
71 |
+
),
|
72 |
+
'icon' => array(
|
73 |
+
'name' => __('Icon', INBOUND_LABEL),
|
74 |
+
'desc' => __('Select an icon.', INBOUND_LABEL),
|
75 |
+
'type' => 'select',
|
76 |
+
'options' => $fontawesome,
|
77 |
+
'std' => ''
|
78 |
+
),
|
79 |
+
'url' => array(
|
80 |
+
'name' => __('Link Destination', INBOUND_LABEL),
|
81 |
+
'desc' => __('Enter the destination URL.', INBOUND_LABEL),
|
82 |
+
'type' => 'text',
|
83 |
+
'std' => ''
|
84 |
+
),
|
85 |
+
'blank' => array(
|
86 |
+
'name' => __('Open Link in New Tab?', INBOUND_LABEL),
|
87 |
+
'checkbox_text' => __('Check to open the link in the new tab.', INBOUND_LABEL),
|
88 |
+
'desc' => '',
|
89 |
+
'type' => 'checkbox',
|
90 |
+
'std' => '1'
|
91 |
+
),
|
92 |
+
),
|
93 |
+
'shortcode' => '[button style="{{style}}" size="{{size}}" color="{{color}}" icon="{{icon}}" url="{{url}}" blank="{{blank}}"]{{content}}[/button]',
|
94 |
+
'popup_title' => __('Insert Button Shortcode', INBOUND_LABEL)
|
95 |
+
);
|
96 |
+
|
97 |
+
/* Add shortcode
|
98 |
+
* ----------------------------------------------------- */
|
99 |
+
add_shortcode('button', 'inbound_shortcode_button');
|
100 |
+
if (!function_exists('inbound_shortcode_button')) {
|
101 |
+
function inbound_shortcode_button( $atts, $content = null ) {
|
102 |
+
extract(shortcode_atts(array(
|
103 |
+
'style'=> '',
|
104 |
+
'size' => '',
|
105 |
+
'color' => '',
|
106 |
+
'icon' => '',
|
107 |
+
'url' => '',
|
108 |
+
'blank' => ''
|
109 |
+
), $atts));
|
110 |
+
|
111 |
+
$class = "button $color $size";
|
112 |
+
$icon_raw = 'icon-'. $icon;
|
113 |
+
$target = ($blank) ? ' target="_blank"' : '';
|
114 |
+
$button_start = "";
|
115 |
+
|
116 |
+
switch( $style ) {
|
117 |
+
|
118 |
+
case 'default':
|
119 |
+
$button = $button_start;
|
120 |
+
$button .= '<a class="'. $class .'" href="'. $url .'"'. $target .'><i class="'.$icon_raw.'"></i> ' . $content .'</a>';
|
121 |
+
$button .= $button_start;
|
122 |
+
break;
|
123 |
+
|
124 |
+
case 'flat' :
|
125 |
+
$button = $button_start;
|
126 |
+
$button .= '<a href="'. $url .'"'. $target .' class="inbound-flat-btn facebook"><span class="'.$icon_raw.' icon"></span><span>'.$content.'</span></a>';
|
127 |
+
|
128 |
+
$button .= $button_start;
|
129 |
+
break;
|
130 |
+
case 'sunk' :
|
131 |
+
$button = $button_start;
|
132 |
+
$button .= '<div class="inbound-sunk-button-wrapper">
|
133 |
+
<a href="'. $url .'"'. $target .' class="inbound-sunk-button inbound-sunk-light"><span class="'.$icon_raw.' icon"></span>'.$content.'</a>
|
134 |
+
</div>';
|
135 |
+
|
136 |
+
$button .= $button_start;
|
137 |
+
break;
|
138 |
+
}
|
139 |
+
|
140 |
+
|
141 |
+
return $button;
|
142 |
+
}
|
143 |
+
}
|
shared/inbound-shortcodes/shortcodes/call-to-action.php
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Inbound Forms Shortcode Options
|
4 |
+
* Forms code found in /shared/classes/form.class.php
|
5 |
+
*/
|
6 |
+
|
7 |
+
$shortcodes_config['call-to-action'] = array(
|
8 |
+
'no_preview' => false,
|
9 |
+
'options' => array(
|
10 |
+
'insert_default' => array(
|
11 |
+
'name' => __('Insert cta', INBOUND_LABEL),
|
12 |
+
'desc' => __('Choose CTA', INBOUND_LABEL),
|
13 |
+
'type' => 'cta',
|
14 |
+
'std' => '',
|
15 |
+
'class' => 'main-form-settings',
|
16 |
+
),
|
17 |
+
|
18 |
+
),
|
19 |
+
'shortcode' => '[inbound_forms id="{{insert_default}}" name="{{form_name}}"]',
|
20 |
+
'popup_title' => __('Quick Insert Inbound Form Shortcode', INBOUND_LABEL)
|
21 |
+
);
|
shared/inbound-shortcodes/shortcodes/callout.php
ADDED
@@ -0,0 +1,172 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Call Out Shortcode
|
4 |
+
* ---------------------------------------------------------------------------
|
5 |
+
* @author : Rifki A.G
|
6 |
+
* @copyright : Copyright (c) 2013, FreshThemes
|
7 |
+
* http://www.freshthemes.net
|
8 |
+
* http://www.rifki.net
|
9 |
+
* --------------------------------------------------------------------------- */
|
10 |
+
|
11 |
+
/* Shortcode generator config
|
12 |
+
* ----------------------------------------------------- */
|
13 |
+
$shortcodes_config['callout'] = array(
|
14 |
+
'no_preview' => true,
|
15 |
+
'options' => array(
|
16 |
+
'title' => array(
|
17 |
+
'name' => __('Title', INBOUND_LABEL),
|
18 |
+
'desc' => __('Enter the heading text.', INBOUND_LABEL),
|
19 |
+
'type' => 'text',
|
20 |
+
'std' => ''
|
21 |
+
),
|
22 |
+
'subtitle' => array(
|
23 |
+
'name' => __('Sub Title', INBOUND_LABEL),
|
24 |
+
'desc' => __('Enter the sub title.', INBOUND_LABEL),
|
25 |
+
'type' => 'textarea',
|
26 |
+
'std' => ''
|
27 |
+
),
|
28 |
+
'button_color' => array(
|
29 |
+
'name' => __('Button Color', INBOUND_LABEL),
|
30 |
+
'desc' => __('Select the button color.', INBOUND_LABEL),
|
31 |
+
'type' => 'select',
|
32 |
+
'options' => array(
|
33 |
+
'default' => 'Default',
|
34 |
+
'black' => 'Black',
|
35 |
+
'blue' => 'Blue',
|
36 |
+
'brown' => 'Brown',
|
37 |
+
'green' => 'Green',
|
38 |
+
'orange' => 'Orange',
|
39 |
+
'pink' => 'Pink',
|
40 |
+
'purple' => 'Purple',
|
41 |
+
'red' => 'Red',
|
42 |
+
'silver' => 'Silver',
|
43 |
+
'yellow' => 'Yellow',
|
44 |
+
'white' => 'White'
|
45 |
+
),
|
46 |
+
'std' => 'default'
|
47 |
+
),
|
48 |
+
'button_label' => array(
|
49 |
+
'name' => __('Button Text Label', INBOUND_LABEL),
|
50 |
+
'desc' => __('Enter the button text label.', INBOUND_LABEL),
|
51 |
+
'type' => 'text',
|
52 |
+
'std' => ''
|
53 |
+
),
|
54 |
+
'button_icon' => array(
|
55 |
+
'name' => __('Button Icon', INBOUND_LABEL),
|
56 |
+
'desc' => __('Select an icon.', INBOUND_LABEL),
|
57 |
+
'type' => 'select',
|
58 |
+
'options' => $fontawesome,
|
59 |
+
'std' => 'none'
|
60 |
+
),
|
61 |
+
'link' => array(
|
62 |
+
'name' => __('Link', INBOUND_LABEL),
|
63 |
+
'desc' => __('Enter the button link destination URL.', INBOUND_LABEL),
|
64 |
+
'type' => 'text',
|
65 |
+
'std' => ''
|
66 |
+
)
|
67 |
+
),
|
68 |
+
'shortcode' => '[callout title="{{title}}" subtitle="{{subtitle}}" button_label="{{button_label}}" button_icon="{{button_icon}}" link="{{link}}"]',
|
69 |
+
'popup_title' => __('Insert Call Out Shortcode', INBOUND_LABEL)
|
70 |
+
);
|
71 |
+
|
72 |
+
/* Page builder module config
|
73 |
+
* ----------------------------------------------------- */
|
74 |
+
$freshbuilder_modules['callout'] = array(
|
75 |
+
'name' => __('Call Out', INBOUND_LABEL),
|
76 |
+
'size' => 'one_full',
|
77 |
+
'options' => array(
|
78 |
+
'title' => array(
|
79 |
+
'name' => __('Title', INBOUND_LABEL),
|
80 |
+
'desc' => __('Enter the heading text.', INBOUND_LABEL),
|
81 |
+
'type' => 'text',
|
82 |
+
'class' => '',
|
83 |
+
'is_content' => '0'
|
84 |
+
),
|
85 |
+
'subtitle' => array(
|
86 |
+
'name' => __('Sub Title', INBOUND_LABEL),
|
87 |
+
'desc' => __('Enter the sub title.', INBOUND_LABEL),
|
88 |
+
'type' => 'textarea',
|
89 |
+
'class' => '',
|
90 |
+
'is_content' => '0'
|
91 |
+
),
|
92 |
+
'button_color' => array(
|
93 |
+
'name' => __('Button Color', INBOUND_LABEL),
|
94 |
+
'desc' => __('Select the button color.', INBOUND_LABEL),
|
95 |
+
'type' => 'select',
|
96 |
+
'options' => array(
|
97 |
+
'default' => 'Default',
|
98 |
+
'black' => 'Black',
|
99 |
+
'blue' => 'Blue',
|
100 |
+
'brown' => 'Brown',
|
101 |
+
'green' => 'Green',
|
102 |
+
'orange' => 'Orange',
|
103 |
+
'pink' => 'Pink',
|
104 |
+
'purple' => 'Purple',
|
105 |
+
'red' => 'Red',
|
106 |
+
'silver' => 'Silver',
|
107 |
+
'yellow' => 'Yellow',
|
108 |
+
'white' => 'White'
|
109 |
+
),
|
110 |
+
'std' => 'default',
|
111 |
+
'class' => '',
|
112 |
+
'is_content' => '0'
|
113 |
+
),
|
114 |
+
'button_label' => array(
|
115 |
+
'name' => __('Button Text Label', INBOUND_LABEL),
|
116 |
+
'desc' => __('Enter the button text label.', INBOUND_LABEL),
|
117 |
+
'type' => 'text',
|
118 |
+
'class' => '',
|
119 |
+
'is_content' => '0'
|
120 |
+
),
|
121 |
+
'button_icon' => array(
|
122 |
+
'name' => __('Button Icon', INBOUND_LABEL),
|
123 |
+
'desc' => __('Select an icon.', INBOUND_LABEL),
|
124 |
+
'type' => 'select',
|
125 |
+
'options' => $fontawesome,
|
126 |
+
'std' => 'none',
|
127 |
+
'class' => '',
|
128 |
+
'is_content' => '0'
|
129 |
+
),
|
130 |
+
'link' => array(
|
131 |
+
'name' => __('Link', INBOUND_LABEL),
|
132 |
+
'desc' => __('Enter the button link destination URL.', INBOUND_LABEL),
|
133 |
+
'type' => 'text',
|
134 |
+
'class' => '',
|
135 |
+
'is_content' => '0'
|
136 |
+
)
|
137 |
+
)
|
138 |
+
);
|
139 |
+
|
140 |
+
/* Add shortcode
|
141 |
+
* ----------------------------------------------------- */
|
142 |
+
add_shortcode('callout', 'inbound_shortcode_callout');
|
143 |
+
if (!function_exists('inbound_shortcode_callout')) {
|
144 |
+
function inbound_shortcode_callout( $atts, $content = null ) {
|
145 |
+
extract(shortcode_atts(array(
|
146 |
+
'title' => '',
|
147 |
+
'subtitle' => '',
|
148 |
+
'button_color' => '',
|
149 |
+
'button_label' => '',
|
150 |
+
'button_icon' => '',
|
151 |
+
'link' => ''
|
152 |
+
), $atts));
|
153 |
+
|
154 |
+
$icon = ($button_icon) ? '<i class="icon-'. $button_icon .'"></i> ' : '';
|
155 |
+
|
156 |
+
$out = '';
|
157 |
+
$out .= '<div class="callout clearfix">';
|
158 |
+
$out .= '<div class="left">';
|
159 |
+
$out .= '<h2>'. $title .'</h2>';
|
160 |
+
$out .= '<div class="subtitle">'. $subtitle .'</div>';
|
161 |
+
$out .= '</div>';
|
162 |
+
|
163 |
+
if ($link ) :
|
164 |
+
$out .= '<div class="right">';
|
165 |
+
$out .= '<a class="button '. $button_color .'" href="'. $link .'">'. $icon . $button_label .'</a>';
|
166 |
+
$out .= '</div>';
|
167 |
+
endif;
|
168 |
+
$out .= '</div>';
|
169 |
+
|
170 |
+
return $out;
|
171 |
+
}
|
172 |
+
}
|
shared/inbound-shortcodes/shortcodes/column.php
ADDED
@@ -0,0 +1,175 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Columns Shortcode
|
4 |
+
* ---------------------------------------------------------------------------
|
5 |
+
* @author : Rifki A.G
|
6 |
+
* @copyright : Copyright (c) 2013, FreshThemes
|
7 |
+
* http://www.freshthemes.net
|
8 |
+
* http://www.rifki.net
|
9 |
+
* --------------------------------------------------------------------------- */
|
10 |
+
|
11 |
+
/* Shortcode generator config
|
12 |
+
* ----------------------------------------------------- */
|
13 |
+
$shortcodes_config['columns'] = array(
|
14 |
+
'no_preview' => true,
|
15 |
+
'options' => array(
|
16 |
+
'gutter' => array(
|
17 |
+
'name' => __('Gutter Width', INBOUND_LABEL),
|
18 |
+
'desc' => __('A space between the columns.', INBOUND_LABEL),
|
19 |
+
'type' => 'select',
|
20 |
+
'options' => array(
|
21 |
+
'20' => '20px',
|
22 |
+
'30' => '30px'
|
23 |
+
),
|
24 |
+
'std' => ''
|
25 |
+
),
|
26 |
+
'set' => array(
|
27 |
+
'name' => __('Column Set', INBOUND_LABEL),
|
28 |
+
'desc' => __('Select the set.', INBOUND_LABEL),
|
29 |
+
'type' => 'select',
|
30 |
+
'options' => array(
|
31 |
+
'[one_full]Content goes here[/one_full]' => '1/1',
|
32 |
+
'[one_half]Content goes here[/one_half][one_half]Content goes here[/one_half]' => '1/2 + 1/2',
|
33 |
+
'[one_third]Content goes here[/one_third][one_third]Content goes here[/one_third][one_third]Content goes here[/one_third]' => '1/3 + 1/3 + 1/3',
|
34 |
+
'[two_third]Content goes here[/two_third][one_third]Content goes here[/one_third]' => '2/3 + 1/3',
|
35 |
+
'[one_fourth]Content goes here[/one_fourth][one_fourth]Content goes here[/one_fourth][one_fourth]Content goes here[/one_fourth][one_fourth]Content goes here[/one_fourth]' => '1/4 + 1/4 + 1/4 + 1/4',
|
36 |
+
'[one_half]Content goes here[/one_half][one_fourth]Content goes here[/one_fourth][one_fourth]Content goes here[/one_fourth]' => '1/2 + 1/4 + 1/4',
|
37 |
+
'[three_fourth]Content goes here[/three_fourth][one_fourth]Content goes here[/one_fourth]' => '3/4 + 1/4',
|
38 |
+
'[one_fifth]Content goes here[/one_fifth][one_fifth]Content goes here[/one_fifth][one_fifth]Content goes here[/one_fifth][one_fifth]Content goes here[/one_fifth][one_fifth]Content goes here[/one_fifth]' => '1/5 + 1/5 + 1/5 + 1/5 + 1/5',
|
39 |
+
'[two_fifth]Content goes here[/two_fifth][one_fifth]Content goes here[/one_fifth][one_fifth]Content goes here[/one_fifth][one_fifth]Content goes here[/one_fifth]' => '2/5 + 1/5 + 1/5 + 1/5',
|
40 |
+
'[three_fifth]Content goes here[/three_fifth][one_fifth]Content goes here[/one_fifth][one_fifth]Content goes here[/one_fifth]' => '3/5 + 1/5 + 1/5',
|
41 |
+
'[four_fifth]Content goes here[/four_fifth][one_fifth]Content goes here[/one_fifth]' => '4/5 + 1/5',
|
42 |
+
),
|
43 |
+
'std' => ''
|
44 |
+
)
|
45 |
+
),
|
46 |
+
'shortcode' => '[columns gutter="{{gutter}}"]{{set}}[/columns]',
|
47 |
+
'popup_title' => __('Insert Column Shortcode', INBOUND_LABEL)
|
48 |
+
);
|
49 |
+
|
50 |
+
/* Page builder module config
|
51 |
+
* ----------------------------------------------------- */
|
52 |
+
$freshbuilder_modules['column'] = array(
|
53 |
+
'name' => __('Column', INBOUND_LABEL),
|
54 |
+
'size' => 'one_fifth',
|
55 |
+
'options' => array(
|
56 |
+
'content' => array(
|
57 |
+
'name' => __('Column Content', INBOUND_LABEL),
|
58 |
+
'desc' => __('Enter the column content', INBOUND_LABEL),
|
59 |
+
'type' => 'textarea',
|
60 |
+
'std' => '',
|
61 |
+
'class' => 'wide',
|
62 |
+
'is_content' => '1'
|
63 |
+
)
|
64 |
+
)
|
65 |
+
);
|
66 |
+
|
67 |
+
/* Add shortcode
|
68 |
+
* ----------------------------------------------------- */
|
69 |
+
/* Columns Wrap */
|
70 |
+
if (!function_exists('inbound_shortcode_columns')) {
|
71 |
+
function inbound_shortcode_columns( $atts, $content = null ) {
|
72 |
+
extract(shortcode_atts(array(
|
73 |
+
'gutter' => '20'
|
74 |
+
), $atts));
|
75 |
+
|
76 |
+
if( $gutter == '30') {
|
77 |
+
$gutter = 'row_30';
|
78 |
+
} else {
|
79 |
+
$gutter = 'row';
|
80 |
+
}
|
81 |
+
$content = preg_replace('/<br class="inbr".\/>/', '', $content); // remove editor br tags
|
82 |
+
return '<div class="'. $gutter .'">' . do_shortcode($content) . '</div>';
|
83 |
+
}
|
84 |
+
}
|
85 |
+
add_shortcode('columns', 'inbound_shortcode_columns');
|
86 |
+
|
87 |
+
/* Full column */
|
88 |
+
if (!function_exists('inbound_shortcode_full_columns')) {
|
89 |
+
function inbound_shortcode_full_columns( $atts, $content = null ) {
|
90 |
+
$content = preg_replace('/<br class="inbr".\/>/', '', $content); // remove editor br tags
|
91 |
+
return '<div class="inbound-grid full">' . do_shortcode($content) . '</div>';
|
92 |
+
}
|
93 |
+
}
|
94 |
+
add_shortcode('one_full', 'inbound_shortcode_full_columns');
|
95 |
+
|
96 |
+
/* One Half */
|
97 |
+
if (!function_exists('inbound_shortcode_one_half_columns')) {
|
98 |
+
function inbound_shortcode_one_half_columns( $atts, $content = null ) {
|
99 |
+
$content = preg_replace('/<br class="inbr".\/>/', '', $content); // remove editor br tags
|
100 |
+
return '<div class="inbound-grid one-half">' . do_shortcode($content) . '</div>';
|
101 |
+
}
|
102 |
+
}
|
103 |
+
add_shortcode('one_half', 'inbound_shortcode_one_half_columns');
|
104 |
+
|
105 |
+
/* One Third */
|
106 |
+
if (!function_exists('inbound_shortcode_one_third_columns')) {
|
107 |
+
function inbound_shortcode_one_third_columns( $atts, $content = null ) {
|
108 |
+
$content = preg_replace('/<br class="inbr".\/>/', '', $content); // remove editor br tags
|
109 |
+
return '<div class="inbound-grid one-third">' . do_shortcode($content) . '</div>';
|
110 |
+
}
|
111 |
+
}
|
112 |
+
add_shortcode('one_third', 'inbound_shortcode_one_third_columns');
|
113 |
+
|
114 |
+
/* Two Third */
|
115 |
+
if (!function_exists('inbound_shortcode_two_third_columns')) {
|
116 |
+
function inbound_shortcode_two_third_columns( $atts, $content = null ) {
|
117 |
+
$content = preg_replace('/<br class="inbr".\/>/', '', $content); // remove editor br tags
|
118 |
+
return '<div class="inbound-grid two-third">' . do_shortcode($content) . '</div>';
|
119 |
+
}
|
120 |
+
}
|
121 |
+
add_shortcode('two_third', 'inbound_shortcode_two_third_columns');
|
122 |
+
|
123 |
+
/* One Fourth */
|
124 |
+
if (!function_exists('inbound_shortcode_one_fourth_columns')) {
|
125 |
+
function inbound_shortcode_one_fourth_columns( $atts, $content = null ) {
|
126 |
+
$content = preg_replace('/<br class="inbr".\/>/', '', $content); // remove editor br tags
|
127 |
+
return '<div class="inbound-grid one-fourth">' . do_shortcode($content) . '</div>';
|
128 |
+
}
|
129 |
+
}
|
130 |
+
add_shortcode('one_fourth', 'inbound_shortcode_one_fourth_columns');
|
131 |
+
|
132 |
+
/* Three Fourth */
|
133 |
+
if (!function_exists('inbound_shortcode_three_fourth_columns')) {
|
134 |
+
function inbound_shortcode_three_fourth_columns( $atts, $content = null ) {
|
135 |
+
$content = preg_replace('/<br class="inbr".\/>/', '', $content); // remove editor br tags
|
136 |
+
return '<div class="inbound-grid three-fourth">' . do_shortcode($content) . '</div>';
|
137 |
+
}
|
138 |
+
}
|
139 |
+
add_shortcode('three_fourth', 'inbound_shortcode_three_fourth_columns');
|
140 |
+
|
141 |
+
/* One Fifth */
|
142 |
+
if (!function_exists('inbound_shortcode_one_fifth_columns')) {
|
143 |
+
function inbound_shortcode_one_fifth_columns( $atts, $content = null ) {
|
144 |
+
$content = preg_replace('/<br class="inbr".\/>/', '', $content); // remove editor br tags
|
145 |
+
return '<div class="inbound-grid one-fifth">' . do_shortcode($content) . '</div>';
|
146 |
+
}
|
147 |
+
}
|
148 |
+
add_shortcode('one_fifth', 'inbound_shortcode_one_fifth_columns');
|
149 |
+
|
150 |
+
/* Two Fifth */
|
151 |
+
if (!function_exists('inbound_shortcode_two_fifth_columns')) {
|
152 |
+
function inbound_shortcode_two_fifth_columns( $atts, $content = null ) {
|
153 |
+
$content = preg_replace('/<br class="inbr".\/>/', '', $content); // remove editor br tags
|
154 |
+
return '<div class="inbound-inbound-grid two-fifth">' . do_shortcode($content) . '</div>';
|
155 |
+
}
|
156 |
+
}
|
157 |
+
add_shortcode('two_fifth', 'inbound_shortcode_two_fifth_columns');
|
158 |
+
|
159 |
+
/* Three Fifth */
|
160 |
+
if (!function_exists('inbound_shortcode_three_fifth_columns')) {
|
161 |
+
function inbound_shortcode_three_fifth_columns( $atts, $content = null ) {
|
162 |
+
$content = preg_replace('/<br class="inbr".\/>/', '', $content); // remove editor br tags
|
163 |
+
return '<div class="inbound-inbound-grid three-fifth">' . do_shortcode($content) . '</div>';
|
164 |
+
}
|
165 |
+
}
|
166 |
+
add_shortcode('three_fifth', 'inbound_shortcode_three_fifth_columns');
|
167 |
+
|
168 |
+
/* Four Fifth */
|
169 |
+
if (!function_exists('inbound_shortcode_four_fifth_columns')) {
|
170 |
+
function inbound_shortcode_four_fifth_columns( $atts, $content = null ) {
|
171 |
+
$content = preg_replace('/<br class="inbr".\/>/', '', $content); // remove editor br tags
|
172 |
+
return '<div class="inbound-inbound-grid three-four">' . do_shortcode($content) . '</div>';
|
173 |
+
}
|
174 |
+
}
|
175 |
+
add_shortcode('three_four', 'inbound_shortcode_four_fifth_columns');
|
shared/inbound-shortcodes/shortcodes/content-box.php
ADDED
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Content Box Shortcode
|
4 |
+
* ---------------------------------------------------------------------------
|
5 |
+
* @author : Rifki A.G
|
6 |
+
* @copyright : Copyright (c) 2013, FreshThemes
|
7 |
+
* http://www.freshthemes.net
|
8 |
+
* http://www.rifki.net
|
9 |
+
* --------------------------------------------------------------------------- */
|
10 |
+
|
11 |
+
/* Shortcode generator config
|
12 |
+
* ----------------------------------------------------- */
|
13 |
+
$shortcodes_config['content_box'] = array(
|
14 |
+
'no_preview' => true,
|
15 |
+
'options' => array(
|
16 |
+
'color' => array(
|
17 |
+
'name' => __('Box Color', INBOUND_LABEL),
|
18 |
+
'desc' => __('Select the color.', INBOUND_LABEL),
|
19 |
+
'type' => 'select',
|
20 |
+
'options' => array(
|
21 |
+
'default' => __('Default', INBOUND_LABEL),
|
22 |
+
'blue' => __('Blue', INBOUND_LABEL),
|
23 |
+
'green' => __('Green', INBOUND_LABEL),
|
24 |
+
'red' => __('Red', INBOUND_LABEL),
|
25 |
+
'yellow' => __('Yellow', INBOUND_LABEL)
|
26 |
+
),
|
27 |
+
'std' => ''
|
28 |
+
),
|
29 |
+
'content' => array(
|
30 |
+
'name' => __('Content', INBOUND_LABEL),
|
31 |
+
'desc' => __('Enter the content.', INBOUND_LABEL),
|
32 |
+
'type' => 'textarea',
|
33 |
+
'std' => ''
|
34 |
+
)
|
35 |
+
),
|
36 |
+
'shortcode' => '[content_box color="{{color}}"]{{content}}[/content_box]',
|
37 |
+
'popup_title' => __('Insert Content Box Shortcode', INBOUND_LABEL)
|
38 |
+
);
|
39 |
+
|
40 |
+
/* Page builder module config
|
41 |
+
* ----------------------------------------------------- */
|
42 |
+
$freshbuilder_modules['content_box'] = array(
|
43 |
+
'name' => __('Content Box', INBOUND_LABEL),
|
44 |
+
'size' => 'one_third',
|
45 |
+
'options' => array(
|
46 |
+
'color' => array(
|
47 |
+
'name' => __('Box Color', INBOUND_LABEL),
|
48 |
+
'desc' => __('Select the color.', INBOUND_LABEL),
|
49 |
+
'type' => 'select',
|
50 |
+
'options' => array(
|
51 |
+
'default' => __('Default', INBOUND_LABEL),
|
52 |
+
'blue' => __('Blue', INBOUND_LABEL),
|
53 |
+
'green' => __('Green', INBOUND_LABEL),
|
54 |
+
'red' => __('Red', INBOUND_LABEL),
|
55 |
+
'yellow' => __('Yellow', INBOUND_LABEL)
|
56 |
+
),
|
57 |
+
'std' => '',
|
58 |
+
'class' => '',
|
59 |
+
'is_content' => 0
|
60 |
+
),
|
61 |
+
'content' => array(
|
62 |
+
'name' => __('Content', INBOUND_LABEL),
|
63 |
+
'desc' => __('Enter the content', INBOUND_LABEL),
|
64 |
+
'type' => 'textarea',
|
65 |
+
'std' => '',
|
66 |
+
'class' => '',
|
67 |
+
'is_content' => 1
|
68 |
+
)
|
69 |
+
)
|
70 |
+
);
|
71 |
+
|
72 |
+
/* Add shortcode
|
73 |
+
* ----------------------------------------------------- */
|
74 |
+
add_shortcode('content_box', 'inbound_shortcode_content_box');
|
75 |
+
if (!function_exists('inbound_shortcode_content_box')) {
|
76 |
+
function inbound_shortcode_content_box( $atts, $content = null ) {
|
77 |
+
extract(shortcode_atts(array(
|
78 |
+
'color' => 'default'
|
79 |
+
), $atts));
|
80 |
+
|
81 |
+
return '<div class="content-box '.$color.'">'.do_shortcode($content).'</div>';
|
82 |
+
}
|
83 |
+
}
|
shared/inbound-shortcodes/shortcodes/divider.php
ADDED
@@ -0,0 +1,119 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Divider Shortcode
|
4 |
+
* ---------------------------------------------------------------------------
|
5 |
+
* @author : Rifki A.G
|
6 |
+
* @copyright : Copyright (c) 2013, FreshThemes
|
7 |
+
* http://www.freshthemes.net
|
8 |
+
* http://www.rifki.net
|
9 |
+
* --------------------------------------------------------------------------- */
|
10 |
+
|
11 |
+
/* Shortcode generator config
|
12 |
+
* ----------------------------------------------------- */
|
13 |
+
$shortcodes_config['divider'] = array(
|
14 |
+
'no_preview' => true,
|
15 |
+
'options' => array(
|
16 |
+
'style' => array(
|
17 |
+
'name' => __('Border Style', INBOUND_LABEL),
|
18 |
+
'desc' => __('Select the style.', INBOUND_LABEL),
|
19 |
+
'type' => 'select',
|
20 |
+
'options' => array(
|
21 |
+
'none' => __('No Border', INBOUND_LABEL),
|
22 |
+
'dashed' => __('Dashed', INBOUND_LABEL),
|
23 |
+
'dotted' => __('Dotted', INBOUND_LABEL),
|
24 |
+
'double' => __('Double', INBOUND_LABEL),
|
25 |
+
'solid' => __('Solid', INBOUND_LABEL)
|
26 |
+
),
|
27 |
+
'std' => 'none'
|
28 |
+
),
|
29 |
+
'color' => array(
|
30 |
+
'name' => __('Border Color', INBOUND_LABEL),
|
31 |
+
'desc' => __('Enter a hex color code.', INBOUND_LABEL),
|
32 |
+
'type' => 'text',
|
33 |
+
'std' => '#ebebea'
|
34 |
+
),
|
35 |
+
'margin_top' => array(
|
36 |
+
'name' => __('Top Margin', INBOUND_LABEL),
|
37 |
+
'desc' => __('Enter the top margin value.', INBOUND_LABEL),
|
38 |
+
'type' => 'text',
|
39 |
+
'std' => '0px'
|
40 |
+
),
|
41 |
+
'margin_bottom' => array(
|
42 |
+
'name' => __('Bottom Margin', INBOUND_LABEL),
|
43 |
+
'desc' => __('Enter the bottom margin value.', INBOUND_LABEL),
|
44 |
+
'type' => 'text',
|
45 |
+
'std' => '0px'
|
46 |
+
)
|
47 |
+
),
|
48 |
+
'shortcode' => '[divider style="{{style}}" color="{{color}}" margin_top="{{margin_top}}" margin_bottom="{{margin_bottom}}"]',
|
49 |
+
'popup_title' => __('Insert Divider Shortcode', INBOUND_LABEL)
|
50 |
+
);
|
51 |
+
|
52 |
+
/* Page builder module config
|
53 |
+
* ----------------------------------------------------- */
|
54 |
+
$freshbuilder_modules['divider'] = array(
|
55 |
+
'name' => __('Divider', INBOUND_LABEL),
|
56 |
+
'size' => 'one_full',
|
57 |
+
'options' => array(
|
58 |
+
'style' => array(
|
59 |
+
'name' => __('Border Style', INBOUND_LABEL),
|
60 |
+
'desc' => __('Select the style.', INBOUND_LABEL),'type' => 'select',
|
61 |
+
'options' => array(
|
62 |
+
'none' => __('No Border', INBOUND_LABEL),
|
63 |
+
'dashed' => __('Dashed', INBOUND_LABEL),
|
64 |
+
'dotted' => __('Dotted', INBOUND_LABEL),
|
65 |
+
'double' => __('Double', INBOUND_LABEL),
|
66 |
+
'solid' => __('Solid', INBOUND_LABEL)
|
67 |
+
),
|
68 |
+
'std' => 'none',
|
69 |
+
'class' => '',
|
70 |
+
'is_content' => '0'
|
71 |
+
),
|
72 |
+
'color' => array(
|
73 |
+
'name' => __('Border Color', INBOUND_LABEL),
|
74 |
+
'desc' => __('Enter a hex color code.', INBOUND_LABEL),
|
75 |
+
'type' => 'text',
|
76 |
+
'std' => '#ebebea',
|
77 |
+
'class' => '',
|
78 |
+
'is_content' => '0'
|
79 |
+
),
|
80 |
+
'margin_top' => array(
|
81 |
+
'name' => __('Margin Top', INBOUND_LABEL),
|
82 |
+
'desc' => __('Enter the top margin value.', INBOUND_LABEL),
|
83 |
+
'type' => 'text',
|
84 |
+
'std' => '0px',
|
85 |
+
'class' => '',
|
86 |
+
'is_content' => '0'
|
87 |
+
),
|
88 |
+
'margin_bottom' => array(
|
89 |
+
'name' => __('Margin Bottom', INBOUND_LABEL),
|
90 |
+
'desc' => __('Enter the bottom margin value.', INBOUND_LABEL),
|
91 |
+
'type' => 'text',
|
92 |
+
'std' => '0px',
|
93 |
+
'class' => '',
|
94 |
+
'is_content' => '0'
|
95 |
+
)
|
96 |
+
)
|
97 |
+
);
|
98 |
+
|
99 |
+
/* Add shortcode
|
100 |
+
* ----------------------------------------------------- */
|
101 |
+
add_shortcode('divider', 'inbound_shortcode_divider');
|
102 |
+
if (!function_exists('inbound_shortcode_divider')) {
|
103 |
+
function inbound_shortcode_divider( $atts, $content = null ) {
|
104 |
+
extract(shortcode_atts(array(
|
105 |
+
'style' => '',
|
106 |
+
'margin_top' => '',
|
107 |
+
'margin_bottom' => '',
|
108 |
+
'color' => '',
|
109 |
+
'class' => ''
|
110 |
+
), $atts));
|
111 |
+
|
112 |
+
$margin_top = ($margin_top) ? $margin_top : 0;
|
113 |
+
$margin_bottom = ($margin_bottom) ? $margin_bottom : 0;
|
114 |
+
$color = ($color) ? $color : '#eaeaea';
|
115 |
+
$class = ($class) ? " $class" : '';
|
116 |
+
|
117 |
+
return '<div class="divider '. $style . $class .'" style="margin-top:'. $margin_top .';margin-bottom:'. $margin_bottom .';border-color:'. $color .'"></div>';
|
118 |
+
}
|
119 |
+
}
|
shared/inbound-shortcodes/shortcodes/forms.php
ADDED
@@ -0,0 +1,551 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Inbound Forms Shortcode Options
|
4 |
+
* Forms code found in /shared/classes/form.class.php
|
5 |
+
*/
|
6 |
+
|
7 |
+
$shortcodes_config['forms'] = array(
|
8 |
+
'no_preview' => false,
|
9 |
+
'options' => array(
|
10 |
+
'insert_default' => array(
|
11 |
+
'name' => __('Choose Starting Template', INBOUND_LABEL),
|
12 |
+
'desc' => __('Start Building Your Form from premade templates', INBOUND_LABEL),
|
13 |
+
'type' => 'select',
|
14 |
+
'options' => $form_names,
|
15 |
+
'std' => 'none',
|
16 |
+
'class' => 'main-form-settings',
|
17 |
+
),
|
18 |
+
'form_name' => array(
|
19 |
+
'name' => __('Form Name<span class="small-required-text">*</span>', INBOUND_LABEL),
|
20 |
+
'desc' => __('This is not shown to visitors', INBOUND_LABEL),
|
21 |
+
'type' => 'text',
|
22 |
+
'placeholder' => "Example: XYZ Whitepaper Download",
|
23 |
+
'std' => '',
|
24 |
+
'class' => 'main-form-settings',
|
25 |
+
),
|
26 |
+
/*'confirmation' => array(
|
27 |
+
'name' => __('Form Layout', INBOUND_LABEL),
|
28 |
+
'desc' => __('Choose Your Form Layout', INBOUND_LABEL),
|
29 |
+
'type' => 'select',
|
30 |
+
'options' => array(
|
31 |
+
"redirect" => "Redirect After Form Completion",
|
32 |
+
"text" => "Display Text on Same Page",
|
33 |
+
),
|
34 |
+
'std' => 'redirect'
|
35 |
+
),*/
|
36 |
+
'redirect' => array(
|
37 |
+
'name' => __('Redirect URL<span class="small-required-text">*</span>', INBOUND_LABEL),
|
38 |
+
'desc' => __('Where do you want to send people after they fill out the form?', INBOUND_LABEL),
|
39 |
+
'type' => 'text',
|
40 |
+
'placeholder' => "http://www.yoursite.com/thank-you",
|
41 |
+
'std' => '',
|
42 |
+
'reveal_on' => 'redirect',
|
43 |
+
'class' => 'main-form-settings',
|
44 |
+
),
|
45 |
+
/*'thank_you_text' => array(
|
46 |
+
'name' => __('Field Description <span class="small-optional-text">(optional)</span>', INBOUND_LABEL),
|
47 |
+
'desc' => __('Put field description here.', INBOUND_LABEL),
|
48 |
+
'type' => 'textarea',
|
49 |
+
'std' => '',
|
50 |
+
'class' => 'advanced',
|
51 |
+
'reveal_on' => 'text'
|
52 |
+
), */
|
53 |
+
'notify' => array(
|
54 |
+
'name' => __('Notify on Form Completions<span class="small-required-text">*</span>', INBOUND_LABEL),
|
55 |
+
'desc' => __('Who should get admin notifications on this form?', INBOUND_LABEL),
|
56 |
+
'type' => 'text',
|
57 |
+
'placeholder' => "youremail@email.com",
|
58 |
+
'std' => '',
|
59 |
+
'class' => 'main-form-settings',
|
60 |
+
),
|
61 |
+
'helper-block-one' => array(
|
62 |
+
'name' => __('Name Name Name', INBOUND_LABEL),
|
63 |
+
'desc' => __('<span class="switch-to-form-insert button">Cancel Form Creation & Insert Existing Form</span>', INBOUND_LABEL),
|
64 |
+
'type' => 'helper-block',
|
65 |
+
'std' => '',
|
66 |
+
'class' => 'main-form-settings',
|
67 |
+
),
|
68 |
+
'heading_design' => array(
|
69 |
+
'name' => __('Name Name Name', INBOUND_LABEL),
|
70 |
+
'desc' => __('Layout Options', INBOUND_LABEL),
|
71 |
+
'type' => 'helper-block',
|
72 |
+
'std' => '',
|
73 |
+
'class' => 'main-design-settings',
|
74 |
+
),
|
75 |
+
'layout' => array(
|
76 |
+
'name' => __('Form Layout', INBOUND_LABEL),
|
77 |
+
'desc' => __('Choose Your Form Layout', INBOUND_LABEL),
|
78 |
+
'type' => 'select',
|
79 |
+
'options' => array(
|
80 |
+
"vertical" => "Vertical",
|
81 |
+
"horizontal" => "Horizontal",
|
82 |
+
),
|
83 |
+
'std' => 'inline',
|
84 |
+
'class' => 'main-design-settings',
|
85 |
+
),
|
86 |
+
'labels' => array(
|
87 |
+
'name' => __('Label Alignment', INBOUND_LABEL),
|
88 |
+
'desc' => __('Choose Label Layout', INBOUND_LABEL),
|
89 |
+
'type' => 'select',
|
90 |
+
'options' => array(
|
91 |
+
"top" => "Labels on Top",
|
92 |
+
"bottom" => "Labels on Bottom",
|
93 |
+
"inline" => "Inline",
|
94 |
+
"placeholder" => "Use HTML5 Placeholder text only"
|
95 |
+
),
|
96 |
+
'std' => 'top',
|
97 |
+
'class' => 'main-design-settings',
|
98 |
+
),
|
99 |
+
'submit' => array(
|
100 |
+
'name' => __('Submit Button Text', INBOUND_LABEL),
|
101 |
+
'desc' => __('Enter the text you want to show on the submit button. (or a link to a custom submit button image)', INBOUND_LABEL),
|
102 |
+
'type' => 'text',
|
103 |
+
'std' => 'Submit',
|
104 |
+
'class' => 'main-design-settings',
|
105 |
+
),
|
106 |
+
'width' => array(
|
107 |
+
'name' => __('Custom Width', INBOUND_LABEL),
|
108 |
+
'desc' => __('Enter in pixel width or % width. Example: 400 <u>or</u> 100%', INBOUND_LABEL),
|
109 |
+
'type' => 'text',
|
110 |
+
'std' => '',
|
111 |
+
'class' => 'main-design-settings',
|
112 |
+
),
|
113 |
+
),
|
114 |
+
'child' => array(
|
115 |
+
'options' => array(
|
116 |
+
'label' => array(
|
117 |
+
'name' => __('Field Label', INBOUND_LABEL),
|
118 |
+
'desc' => '',
|
119 |
+
'type' => 'text',
|
120 |
+
'std' => '',
|
121 |
+
'placeholder' => "Enter the Form Field Label. Example: First Name"
|
122 |
+
),
|
123 |
+
'field_type' => array(
|
124 |
+
'name' => __('Field Type', INBOUND_LABEL),
|
125 |
+
'desc' => __('Select an form field type', INBOUND_LABEL),
|
126 |
+
'type' => 'select',
|
127 |
+
'options' => array(
|
128 |
+
"text" => "Single Line Text",
|
129 |
+
"textarea" => "Paragraph Text",
|
130 |
+
'dropdown' => "Dropdown Options",
|
131 |
+
"radio" => "Radio Select",
|
132 |
+
"number" => "Number",
|
133 |
+
"checkbox" => "Checkbox",
|
134 |
+
//"html-block" => "HTML Block",
|
135 |
+
"date" => "Date Field",
|
136 |
+
"time" => "Time Field",
|
137 |
+
'hidden' => "Hidden Field",
|
138 |
+
//'file_upload' => "File Upload",
|
139 |
+
//'editor' => "HTML Editor"
|
140 |
+
//"multi-select" => "multi-select"
|
141 |
+
),
|
142 |
+
'std' => ''
|
143 |
+
),
|
144 |
+
|
145 |
+
'dropdown_options' => array(
|
146 |
+
'name' => __('Dropdown choices', INBOUND_LABEL),
|
147 |
+
'desc' => __('Enter Your Dropdown Options. Separate by commas.', INBOUND_LABEL),
|
148 |
+
'type' => 'text',
|
149 |
+
'std' => '',
|
150 |
+
'placeholder' => 'Choice 1, Choice 2, Choice 3',
|
151 |
+
'reveal_on' => 'dropdown' // on select choice show this
|
152 |
+
),
|
153 |
+
'radio_options' => array(
|
154 |
+
'name' => __('Radio Choices', INBOUND_LABEL),
|
155 |
+
'desc' => __('Enter Your Radio Options. Separate by commas.', INBOUND_LABEL),
|
156 |
+
'type' => 'text',
|
157 |
+
'std' => '',
|
158 |
+
'placeholder' => 'Choice 1, Choice 2',
|
159 |
+
'reveal_on' => 'radio' // on select choice show this
|
160 |
+
),
|
161 |
+
'checkbox_options' => array(
|
162 |
+
'name' => __('Checkbox choices', INBOUND_LABEL),
|
163 |
+
'desc' => __('Enter Your Checkbox Options. Separate by commas.', INBOUND_LABEL),
|
164 |
+
'type' => 'text',
|
165 |
+
'std' => '',
|
166 |
+
'placeholder' => 'Choice 1, Choice 2, Choice 3',
|
167 |
+
'reveal_on' => 'checkbox' // on select choice show this
|
168 |
+
),
|
169 |
+
'html_block_options' => array(
|
170 |
+
'name' => __('HTML Block', INBOUND_LABEL),
|
171 |
+
'desc' => __('This is a raw HTML block in the form. Insert text/HTML', INBOUND_LABEL),
|
172 |
+
'type' => 'textarea',
|
173 |
+
'std' => '',
|
174 |
+
'reveal_on' => 'html-block' // on select choice show this
|
175 |
+
),
|
176 |
+
'helper' => array(
|
177 |
+
'name' => __('Field Description <span class="small-optional-text">(optional)</span>', INBOUND_LABEL),
|
178 |
+
'desc' => __('<span class="show-advanced-fields">Show advanced fields</span>', INBOUND_LABEL),
|
179 |
+
'type' => 'helper-block',
|
180 |
+
'std' => '',
|
181 |
+
'class' => '',
|
182 |
+
),
|
183 |
+
'required' => array(
|
184 |
+
'name' => __('Required Field? <span class="small-optional-text">(optional)</span>', INBOUND_LABEL),
|
185 |
+
'checkbox_text' => __('Check to make field required', INBOUND_LABEL),
|
186 |
+
'desc' => '',
|
187 |
+
'type' => 'checkbox',
|
188 |
+
'std' => '0',
|
189 |
+
'class' => 'advanced',
|
190 |
+
),
|
191 |
+
'placeholder' => array(
|
192 |
+
'name' => __('Field Placeholder <span class="small-optional-text">(optional)</span>', INBOUND_LABEL),
|
193 |
+
'desc' => __('Put field placeholder text here. Only works for normal text inputs', INBOUND_LABEL),
|
194 |
+
'type' => 'text',
|
195 |
+
'std' => '',
|
196 |
+
'class' => 'advanced',
|
197 |
+
),
|
198 |
+
'description' => array(
|
199 |
+
'name' => __('Field Description <span class="small-optional-text">(optional)</span>', INBOUND_LABEL),
|
200 |
+
'desc' => __('Put field description here.', INBOUND_LABEL),
|
201 |
+
'type' => 'textarea',
|
202 |
+
'std' => '',
|
203 |
+
'class' => 'advanced',
|
204 |
+
),
|
205 |
+
|
206 |
+
'hidden_input_options' => array(
|
207 |
+
'name' => __('Dynamic Field Filling', INBOUND_LABEL),
|
208 |
+
'desc' => __('Enter Your Dynamic URL parameter', INBOUND_LABEL),
|
209 |
+
'type' => 'text',
|
210 |
+
'std' => '',
|
211 |
+
'placeholder' => 'enter dynamic url parameter example: utm_campaign ',
|
212 |
+
'class' => 'advanced',
|
213 |
+
//'reveal_on' => 'hidden' // on select choice show this
|
214 |
+
),
|
215 |
+
),
|
216 |
+
'shortcode' => '[inbound_field label="{{label}}" type="{{field_type}}" description="{{description}}" required="{{required}}" dropdown="{{dropdown_options}}" radio="{{radio_options}}" checkbox="{{checkbox_options}}" placeholder="{{placeholder}}" html="{{html_block_options}}" dynamic="{{hidden_input_options}}"]',
|
217 |
+
'clone' => __('Add Another Field', INBOUND_LABEL )
|
218 |
+
),
|
219 |
+
'shortcode' => '[inbound_form name="{{form_name}}" redirect="{{redirect}}" notify="{{notify}}" layout="{{layout}}" labels="{{labels}}" submit="{{submit}}" width="{{width}}"]{{child}}[/inbound_form]',
|
220 |
+
'popup_title' => __('Insert Inbound Form Shortcode', INBOUND_LABEL)
|
221 |
+
);
|
222 |
+
|
223 |
+
/* CPT Lead Lists */
|
224 |
+
add_action('init', 'inbound_forms_cpt',11);
|
225 |
+
if (!function_exists('inbound_forms_cpt')) {
|
226 |
+
function inbound_forms_cpt() {
|
227 |
+
//echo $slug;exit;
|
228 |
+
$labels = array(
|
229 |
+
'name' => _x('Forms', 'post type general name'),
|
230 |
+
'singular_name' => _x('Form', 'post type singular name'),
|
231 |
+
'add_new' => _x('Add New', 'Form'),
|
232 |
+
'add_new_item' => __('Create New Form'),
|
233 |
+
'edit_item' => __('Edit Form'),
|
234 |
+
'new_item' => __('New Form'),
|
235 |
+
'view_item' => __('View Lists'),
|
236 |
+
'search_items' => __('Search Lists'),
|
237 |
+
'not_found' => __('Nothing found'),
|
238 |
+
'not_found_in_trash' => __('Nothing found in Trash'),
|
239 |
+
'parent_item_colon' => ''
|
240 |
+
);
|
241 |
+
|
242 |
+
$args = array(
|
243 |
+
'labels' => $labels,
|
244 |
+
'public' => false,
|
245 |
+
'publicly_queryable' => false,
|
246 |
+
'show_ui' => true,
|
247 |
+
'query_var' => true,
|
248 |
+
'show_in_menu' => false,
|
249 |
+
'capability_type' => 'post',
|
250 |
+
'hierarchical' => false,
|
251 |
+
'menu_position' => null,
|
252 |
+
'supports' => array('title','custom-fields')
|
253 |
+
);
|
254 |
+
|
255 |
+
register_post_type( 'inbound-forms' , $args );
|
256 |
+
//flush_rewrite_rules( false );
|
257 |
+
|
258 |
+
/*
|
259 |
+
add_action('admin_menu', 'remove_list_cat_menu');
|
260 |
+
function remove_list_cat_menu() {
|
261 |
+
global $submenu;
|
262 |
+
unset($submenu['edit.php?post_type=wp-lead'][15]);
|
263 |
+
//print_r($submenu); exit;
|
264 |
+
} */
|
265 |
+
}
|
266 |
+
}
|
267 |
+
|
268 |
+
|
269 |
+
if (is_admin())
|
270 |
+
{
|
271 |
+
// Change the columns for the edit CPT screen
|
272 |
+
add_filter( "manage_inbound-forms_posts_columns", "inbound_forms_change_columns" );
|
273 |
+
if (!function_exists('inbound_forms_change_columns')) {
|
274 |
+
function inbound_forms_change_columns( $cols ) {
|
275 |
+
$cols = array(
|
276 |
+
"cb" => "<input type=\"checkbox\" />",
|
277 |
+
'title' => "Form Name",
|
278 |
+
"inbound-form-shortcode" => "Shortcode",
|
279 |
+
"inbound-form-converions" => "Submissions",
|
280 |
+
"date" => "Date"
|
281 |
+
);
|
282 |
+
return $cols;
|
283 |
+
}
|
284 |
+
}
|
285 |
+
|
286 |
+
add_action( "manage_posts_custom_column", "inbound_forms_custom_columns", 10, 2 );
|
287 |
+
if (!function_exists('inbound_forms_custom_columns')) {
|
288 |
+
function inbound_forms_custom_columns( $column, $post_id )
|
289 |
+
{
|
290 |
+
switch ( $column ) {
|
291 |
+
|
292 |
+
case "inbound-form-shortcode":
|
293 |
+
$shortcode = get_post_meta( $post_id , 'inbound_shortcode', true );
|
294 |
+
$form_name = get_the_title( $post_id );
|
295 |
+
if ($shortcode == "") {
|
296 |
+
$shortcode = 'N/A';
|
297 |
+
}
|
298 |
+
|
299 |
+
echo '<input type="text" class="regular-text code short-shortcode-input" readonly="readonly" id="shortcode" name="shortcode" value=\'[inbound_forms id="'.$post_id.'" name="'.$form_name.'"]\'>';
|
300 |
+
break;
|
301 |
+
/*case "last-name":
|
302 |
+
$last_name = get_post_meta( $post_id, 'wpleads_last_name', true);
|
303 |
+
if (get_post_meta( $post_id, 'wpleads_last_name', true) == "") {
|
304 |
+
$last_name = 'N/A';
|
305 |
+
}
|
306 |
+
echo $last_name;
|
307 |
+
break; */
|
308 |
+
}
|
309 |
+
}
|
310 |
+
}
|
311 |
+
}
|
312 |
+
|
313 |
+
|
314 |
+
if (!function_exists('inbound_forms_redirect')) {
|
315 |
+
function inbound_forms_redirect($value){
|
316 |
+
global $pagenow;
|
317 |
+
$page = (isset($_REQUEST['page']) ? $_REQUEST['page'] : false);
|
318 |
+
if($pagenow=='edit.php' && $page=='inbound-forms-redirect'){
|
319 |
+
wp_redirect('/wp-admin/edit.php?post_type=inbound-forms');
|
320 |
+
exit;
|
321 |
+
}
|
322 |
+
}
|
323 |
+
}
|
324 |
+
add_action('admin_init', 'inbound_forms_redirect');
|
325 |
+
|
326 |
+
add_action('admin_head', 'inbound_get_form_names',16);
|
327 |
+
if (!function_exists('inbound_get_form_names')) {
|
328 |
+
function inbound_get_form_names() {
|
329 |
+
global $post;
|
330 |
+
|
331 |
+
$loop = get_transient( 'inbound-form-names-off' );
|
332 |
+
if ( false === $loop ) {
|
333 |
+
$args = array(
|
334 |
+
'posts_per_page' => -1,
|
335 |
+
'post_type'=> 'inbound-forms');
|
336 |
+
$form_list = get_posts($args);
|
337 |
+
//print_r($cta_list);
|
338 |
+
$form_array = array();
|
339 |
+
$default_array = array(
|
340 |
+
"none" => "None (Build Your Own)",
|
341 |
+
"default_form_3" => "Simple Email Form",
|
342 |
+
"default_form_1" => "First, Last, Email Form",
|
343 |
+
"default_form_2" => "Standard Company Form",
|
344 |
+
// Add in other forms made here
|
345 |
+
);
|
346 |
+
foreach ( $form_list as $form )
|
347 |
+
{
|
348 |
+
$this_id = $form->ID;
|
349 |
+
$this_link = get_permalink( $this_id );
|
350 |
+
$title = $form->post_title;
|
351 |
+
|
352 |
+
|
353 |
+
$form_array['form_' . $this_id] = $title;
|
354 |
+
|
355 |
+
|
356 |
+
}
|
357 |
+
$result = array_merge( $default_array, $form_array);
|
358 |
+
|
359 |
+
set_transient('inbound-form-names', $result, 24 * HOUR_IN_SECONDS);
|
360 |
+
}
|
361 |
+
|
362 |
+
}
|
363 |
+
}
|
364 |
+
/* Shortcode moved to shared form class */
|
365 |
+
add_action('wp_ajax_inbound_form_save', 'inbound_form_save');
|
366 |
+
add_action('wp_ajax_nopriv_inbound_form_save', 'inbound_form_save');
|
367 |
+
if (!function_exists('inbound_form_save')) {
|
368 |
+
function inbound_form_save()
|
369 |
+
{
|
370 |
+
global $user_ID, $wpdb;
|
371 |
+
// Post Values
|
372 |
+
$form_name = (isset( $_POST['name'] )) ? $_POST['name'] : "";
|
373 |
+
$shortcode = (isset( $_POST['shortcode'] )) ? $_POST['shortcode'] : "";
|
374 |
+
$form_settings = (isset( $_POST['form_settings'] )) ? $_POST['form_settings'] : "";
|
375 |
+
$form_values = (isset( $_POST['form_values'] )) ? $_POST['form_values'] : "";
|
376 |
+
$field_count = (isset( $_POST['field_count'] )) ? $_POST['field_count'] : "";
|
377 |
+
$page_id = (isset( $_POST['post_id'] )) ? $_POST['post_id'] : "";
|
378 |
+
$post_type = (isset( $_POST['post_type'] )) ? $_POST['post_type'] : "";
|
379 |
+
$redirect_value = (isset( $_POST['redirect_value'] )) ? $_POST['redirect_value'] : "";
|
380 |
+
|
381 |
+
if ($post_type === 'inbound-forms'){
|
382 |
+
$post_ID = $page_id;
|
383 |
+
$update_post = array(
|
384 |
+
'ID' => $post_ID,
|
385 |
+
'post_title' => $form_name,
|
386 |
+
'post_status' => 'publish',
|
387 |
+
);
|
388 |
+
wp_update_post( $update_post );
|
389 |
+
$form_settings_data = get_post_meta( $post_ID, 'form_settings', TRUE );
|
390 |
+
update_post_meta( $post_ID, 'inbound_form_settings', $form_settings );
|
391 |
+
update_post_meta( $post_ID, 'inbound_form_created_on', $page_id );
|
392 |
+
update_post_meta( $post_ID, 'inbound_shortcode', $shortcode );
|
393 |
+
update_post_meta( $post_ID, 'inbound_form_values', $form_values );
|
394 |
+
update_post_meta( $post_ID, 'inbound_form_field_count', $field_count );
|
395 |
+
update_post_meta( $post_ID, 'inbound_redirect_value', $redirect_value );
|
396 |
+
} else {
|
397 |
+
// If from popup run this
|
398 |
+
$query = $wpdb->prepare(
|
399 |
+
'SELECT ID FROM ' . $wpdb->posts . '
|
400 |
+
WHERE post_title = %s
|
401 |
+
AND post_type = \'inbound-forms\'',
|
402 |
+
$form_name
|
403 |
+
);
|
404 |
+
$wpdb->query( $query );
|
405 |
+
// If form exists
|
406 |
+
if ( $wpdb->num_rows ) {
|
407 |
+
$post_ID = $wpdb->get_var( $query );
|
408 |
+
|
409 |
+
if ($post_ID != $page_id) {
|
410 |
+
// if form name exists already in popup mode
|
411 |
+
echo json_encode("Found");
|
412 |
+
exit;
|
413 |
+
} else {
|
414 |
+
update_post_meta( $post_ID, 'inbound_form_settings', $form_settings );
|
415 |
+
update_post_meta( $post_ID, 'inbound_form_created_on', $page_id );
|
416 |
+
update_post_meta( $post_ID, 'inbound_shortcode', $shortcode );
|
417 |
+
update_post_meta( $post_ID, 'inbound_form_values', $form_values );
|
418 |
+
update_post_meta( $post_ID, 'inbound_form_field_count', $field_count );
|
419 |
+
update_post_meta( $post_ID, 'inbound_redirect_value', $redirect_value );
|
420 |
+
}
|
421 |
+
|
422 |
+
} else {
|
423 |
+
// If form doesn't exist create it
|
424 |
+
$post = array(
|
425 |
+
'post_title' => $form_name,
|
426 |
+
'post_content' => $shortcode,
|
427 |
+
'post_status' => 'publish',
|
428 |
+
'post_type' => 'inbound-forms',
|
429 |
+
'post_author' => 1
|
430 |
+
);
|
431 |
+
|
432 |
+
$post_ID = wp_insert_post($post);
|
433 |
+
update_post_meta( $post_ID, 'inbound_form_settings', $form_settings );
|
434 |
+
update_post_meta( $post_ID, 'inbound_form_created_on', $page_id );
|
435 |
+
update_post_meta( $post_ID, 'inbound_shortcode', $shortcode );
|
436 |
+
update_post_meta( $post_ID, 'inbound_form_values', $form_values );
|
437 |
+
update_post_meta( $post_ID, 'inbound_form_field_count', $field_count );
|
438 |
+
update_post_meta( $post_ID, 'inbound_redirect_value', $redirect_value );
|
439 |
+
}
|
440 |
+
$shortcode = str_replace("[inbound_form", "[inbound_form id=\"" . $post_ID . "\"", $shortcode);
|
441 |
+
update_post_meta( $post_ID, 'inbound_shortcode', $shortcode );
|
442 |
+
|
443 |
+
$output = array('post_id'=> $post_ID,
|
444 |
+
'form_name'=>$form_name,
|
445 |
+
'redirect' => $redirect_value);
|
446 |
+
|
447 |
+
echo json_encode($output,JSON_FORCE_OBJECT);
|
448 |
+
wp_die();
|
449 |
+
}
|
450 |
+
}
|
451 |
+
}
|
452 |
+
/* Shortcode moved to shared form class */
|
453 |
+
add_action('wp_ajax_inbound_form_get_data', 'inbound_form_get_data');
|
454 |
+
add_action('wp_ajax_nopriv_inbound_form_get_data', 'inbound_form_get_data');
|
455 |
+
if (!function_exists('inbound_form_get_data')) {
|
456 |
+
function inbound_form_get_data()
|
457 |
+
{
|
458 |
+
// Post Values
|
459 |
+
$post_ID = (isset( $_POST['form_id'] )) ? $_POST['form_id'] : "";
|
460 |
+
|
461 |
+
if (isset( $_POST['form_id'])&&!empty( $_POST['form_id']))
|
462 |
+
{
|
463 |
+
|
464 |
+
$form_settings_data = get_post_meta( $post_ID, 'inbound_form_settings', TRUE );
|
465 |
+
$field_count = get_post_meta( $post_ID, 'inbound_form_field_count', TRUE );
|
466 |
+
$shortcode = get_post_meta( $post_ID, 'inbound_shortcode', TRUE );
|
467 |
+
$inbound_form_values = get_post_meta( $post_ID, 'inbound_form_values', TRUE );
|
468 |
+
/* update_post_meta( $post_ID, 'inbound_form_created_on', $page_id );
|
469 |
+
update_post_meta( $post_ID, 'inbound_shortcode', $shortcode );
|
470 |
+
update_post_meta( $post_ID, 'inbound_form_values', $form_values );
|
471 |
+
update_post_meta( $post_ID, 'inbound_form_field_count', $field_count );
|
472 |
+
*/
|
473 |
+
$output = array('inbound_shortcode'=> $shortcode,
|
474 |
+
'field_count'=>$field_count,
|
475 |
+
'form_settings_data' => $form_settings_data,
|
476 |
+
'field_values'=>$inbound_form_values);
|
477 |
+
|
478 |
+
echo json_encode($output,JSON_FORCE_OBJECT);
|
479 |
+
|
480 |
+
}
|
481 |
+
wp_die();
|
482 |
+
}
|
483 |
+
}
|
484 |
+
/* Shortcode moved to shared form class */
|
485 |
+
add_action('wp_ajax_inbound_form_auto_publish', 'inbound_form_auto_publish');
|
486 |
+
add_action('wp_ajax_nopriv_inbound_form_auto_publish', 'inbound_form_auto_publish');
|
487 |
+
if (!function_exists('inbound_form_auto_publish')) {
|
488 |
+
function inbound_form_auto_publish()
|
489 |
+
{
|
490 |
+
// Post Values
|
491 |
+
$post_ID = (isset( $_POST['post_id'] )) ? $_POST['post_id'] : "";
|
492 |
+
$post_title = (isset( $_POST['post_title'] )) ? $_POST['post_title'] : "";
|
493 |
+
|
494 |
+
if (isset( $_POST['post_id'])&&!empty( $_POST['post_id']))
|
495 |
+
{
|
496 |
+
// Update Post status to published immediately
|
497 |
+
// Update post 37
|
498 |
+
$my_post = array(
|
499 |
+
'ID' => $post_ID,
|
500 |
+
'post_title' => $post_title,
|
501 |
+
'post_status' => 'publish'
|
502 |
+
);
|
503 |
+
|
504 |
+
// Update the post into the database
|
505 |
+
wp_update_post( $my_post );
|
506 |
+
}
|
507 |
+
wp_die();
|
508 |
+
}
|
509 |
+
}
|
510 |
+
|
511 |
+
if (!function_exists('inbound_short_form_create')) {
|
512 |
+
function inbound_short_form_create( $atts, $content = null ) {
|
513 |
+
extract(shortcode_atts(array(
|
514 |
+
'id' => '',
|
515 |
+
), $atts));
|
516 |
+
|
517 |
+
$shortcode = get_post_meta( $id, 'inbound_shortcode', TRUE );
|
518 |
+
// Pass in form ID with preg match
|
519 |
+
// $shortcode = str_replace("[inbound_form", "[inbound_form id=\"" . $id . "\"", $shortcode);
|
520 |
+
if ($id === 'default_3'){
|
521 |
+
$shortcode = '[inbound_form name="Form Name" layout="vertical" labels="top" submit="Submit" ][inbound_field label="Email" type="text" required="1" ][/inbound_form]';
|
522 |
+
}
|
523 |
+
if ($id === 'default_1'){
|
524 |
+
$shortcode = '[inbound_form name="3 Field Form" layout="vertical" labels="top" submit="Submit" ][inbound_field label="First Name" type="text" required="0" ][inbound_field label="Last Name" type="text" required="0" ][inbound_field label="Email" type="text" required="1" placeholder="Enter Your Email Address" ][/inbound_form]';
|
525 |
+
}
|
526 |
+
if ($id === 'default_2'){
|
527 |
+
$shortcode = '[inbound_form name="Standard Company Form" layout="vertical" labels="top" submit="Submit" ]
|
528 |
+
|
529 |
+
[inbound_field label="First Name" type="text" required="0" placeholder="Enter Your First Name" ]
|
530 |
+
|
531 |
+
[inbound_field label="Last Name" type="text" required="0" placeholder="Enter Your Last Name" ]
|
532 |
+
|
533 |
+
[inbound_field label="Email" type="text" required="1" placeholder="Enter Your Email Address" ]
|
534 |
+
|
535 |
+
[inbound_field label="Company Name" type="text" required="0" placeholder="Enter Your Company Name" ]
|
536 |
+
|
537 |
+
[inbound_field label="Job Title" type="text" required="0" placeholder="Enter Your Job Title" ]
|
538 |
+
|
539 |
+
[/inbound_form]';
|
540 |
+
}
|
541 |
+
if (empty($shortcode)) {
|
542 |
+
$shortcode = "Form ID: " . $id . " Not Found";
|
543 |
+
}
|
544 |
+
if ($id === 'none'){
|
545 |
+
$shortcode = "";
|
546 |
+
}
|
547 |
+
|
548 |
+
return do_shortcode( $shortcode );
|
549 |
+
}
|
550 |
+
add_shortcode('inbound_forms', 'inbound_short_form_create');
|
551 |
+
}
|
shared/inbound-shortcodes/shortcodes/gmap.php
ADDED
@@ -0,0 +1,160 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Google Map Shortcode
|
4 |
+
* ---------------------------------------------------------------------------
|
5 |
+
* @author : Rifki A.G
|
6 |
+
* @copyright : Copyright (c) 2013, FreshThemes
|
7 |
+
* http://www.freshthemes.net
|
8 |
+
* http://www.rifki.net
|
9 |
+
* --------------------------------------------------------------------------- */
|
10 |
+
|
11 |
+
/* Shortcode generator config
|
12 |
+
* ----------------------------------------------------- */
|
13 |
+
$shortcodes_config['gmap'] = array(
|
14 |
+
'no_preview' => true,
|
15 |
+
'options' => array(
|
16 |
+
'type' => array(
|
17 |
+
'name' => __('Map Type', INBOUND_LABEL),
|
18 |
+
'desc' => __('Select a map type', INBOUND_LABEL),
|
19 |
+
'type' => 'select',
|
20 |
+
'options' => array('HYBRID' => 'Hybrid', 'ROADMAP' => 'Road Map', 'SATELLITE' => 'Satellite', 'TERRAIN' => 'Terrain'),
|
21 |
+
'std' => ''
|
22 |
+
),
|
23 |
+
'width' => array(
|
24 |
+
'name' => __('Map Width', INBOUND_LABEL),
|
25 |
+
'desc' => '',
|
26 |
+
'type' => 'text',
|
27 |
+
'std' => ''
|
28 |
+
),
|
29 |
+
'height' => array(
|
30 |
+
'name' => __('Map Height', INBOUND_LABEL),
|
31 |
+
'desc' => '',
|
32 |
+
'type' => 'text',
|
33 |
+
'std' => ''
|
34 |
+
),
|
35 |
+
'address' => array(
|
36 |
+
'name' => __('Address', INBOUND_LABEL),
|
37 |
+
'desc' => __('Enter your address here. ex: "New York" or "New York, USA" If you want a accurate position please fill the Latitude and Longitude fields', INBOUND_LABEL),
|
38 |
+
'type' => 'text',
|
39 |
+
'std' => ''
|
40 |
+
),
|
41 |
+
'latitude' => array(
|
42 |
+
'name' => __('Latitude', INBOUND_LABEL),
|
43 |
+
'desc' => __('Latitude is specified in degrees within the range [-90, 90]', INBOUND_LABEL),
|
44 |
+
'type' => 'text',
|
45 |
+
'std' => ''
|
46 |
+
),
|
47 |
+
'longitude' => array(
|
48 |
+
'name' => __('Longitude', INBOUND_LABEL),
|
49 |
+
'desc' => __('Longitude is specified in degrees within the range [-180, 180]', INBOUND_LABEL),
|
50 |
+
'type' => 'text',
|
51 |
+
'std' => ''
|
52 |
+
),
|
53 |
+
'zoom' => array(
|
54 |
+
'name' => __('Zoom', INBOUND_LABEL),
|
55 |
+
'desc' => __('Set the zoom level, numeric value from 1 to 19', INBOUND_LABEL),
|
56 |
+
'type' => 'text',
|
57 |
+
'std' => '8'
|
58 |
+
),
|
59 |
+
'pancontrol' => array(
|
60 |
+
'name' => __('Pan Control', INBOUND_LABEL),
|
61 |
+
'desc' => __('Enable pan control?', INBOUND_LABEL),
|
62 |
+
'type' => 'select',
|
63 |
+
'options' => array('true' => 'Enable', 'false' => 'Disable'),
|
64 |
+
'std' => ''
|
65 |
+
),
|
66 |
+
'zoomcontrol' => array(
|
67 |
+
'name' => __('Zoom Control', INBOUND_LABEL),
|
68 |
+
'desc' => __('Enable zoom control?', INBOUND_LABEL),
|
69 |
+
'type' => 'select',
|
70 |
+
'options' => array('true' => 'Enable', 'false' => 'Disable'),
|
71 |
+
'std' => ''
|
72 |
+
),
|
73 |
+
'maptypecontrol' => array(
|
74 |
+
'name' => __('Map Type Control', INBOUND_LABEL),
|
75 |
+
'desc' => __('Enable map type control?', INBOUND_LABEL),
|
76 |
+
'type' => 'select',
|
77 |
+
'options' => array('true' => 'Enable', 'false' => 'Disable'),
|
78 |
+
'std' => ''
|
79 |
+
),
|
80 |
+
'content' => array(
|
81 |
+
'name' => __('Popup Content', INBOUND_LABEL),
|
82 |
+
'desc' => __('A descriptive text for the Google Map marker popup, ex: "My Office"', INBOUND_LABEL),
|
83 |
+
'type' => 'textarea',
|
84 |
+
'std' => ''
|
85 |
+
)
|
86 |
+
),
|
87 |
+
'shortcode' => '[gmap type="{{type}}" address="{{address}}" lat="{{latitude}}" lng="{{longitude}}" zoom="{{zoom}}" pancontrol="{{pancontrol}}" zoomcontrol="{{zoomcontrol}}" maptypecontrol="{{maptypecontrol}}" width="{{width}}" height="{{height}}"]{{content}}[/gmap]',
|
88 |
+
'popup_title' => __('Insert Google Map Shortcode', INBOUND_LABEL)
|
89 |
+
);
|
90 |
+
|
91 |
+
/* Add shortcode
|
92 |
+
* ----------------------------------------------------- */
|
93 |
+
add_shortcode('gmap', 'inbound_shortcode_gmap');
|
94 |
+
|
95 |
+
function inbound_shortcode_gmap( $atts, $content = null ) {
|
96 |
+
|
97 |
+
extract(shortcode_atts(array(
|
98 |
+
'type' => 'ROADMAP',
|
99 |
+
'address' => '',
|
100 |
+
'lat' => '',
|
101 |
+
'lng' => '',
|
102 |
+
'width' => '',
|
103 |
+
'height' => 400,
|
104 |
+
'zoom' => 8,
|
105 |
+
'scroll' => 'true',
|
106 |
+
'pancontrol' => 'true',
|
107 |
+
'zoomcontrol' => 'true',
|
108 |
+
'maptypecontrol' => 'true'
|
109 |
+
), $atts));
|
110 |
+
$out = '';
|
111 |
+
if ( !$lat == '' && !$lng == '') :
|
112 |
+
$out .= '<div id="google_map_'.preg_replace('![^a-z0-9]+!i', '', $lat) . preg_replace('![^a-z0-9]+!i', '', $lng) . $type .'" class="google_map" style="width:'.$width.'px;height:'.$height.'px"></div>' . "\n";
|
113 |
+
$out .= '
|
114 |
+
<script type="text/javascript">
|
115 |
+
(function($) {
|
116 |
+
$("#google_map_'.preg_replace('![^a-z0-9]+!i', '', $lat) . preg_replace('![^a-z0-9]+!i', '', $lng) . $type .'").gMap({
|
117 |
+
latitude:'.$lat.',
|
118 |
+
longitude:'.$lng.',
|
119 |
+
maptype:"'.$type.'",
|
120 |
+
scrollwheel: '.$scroll.',
|
121 |
+
zoom:'.$zoom.',
|
122 |
+
controls: {
|
123 |
+
panControl:'.$pancontrol.',
|
124 |
+
zoomControl:'.$zoomcontrol.',
|
125 |
+
mapTypeControl:'.$maptypecontrol.'
|
126 |
+
},
|
127 |
+
markers: [{
|
128 |
+
latitude:'.$lat.',
|
129 |
+
longitude:'.$lng.',
|
130 |
+
html: "'.$content.'"
|
131 |
+
}]
|
132 |
+
});
|
133 |
+
})(jQuery);
|
134 |
+
</script>';
|
135 |
+
else :
|
136 |
+
$out .= '<div id="google_map_'.preg_replace('![^a-z0-9]+!i', '',$address) . $type .'" class="google_map" style="width:'.$width.'px;height:'.$height.'px"></div>' . "\n";
|
137 |
+
$out .= '
|
138 |
+
<script type="text/javascript">
|
139 |
+
(function($) {
|
140 |
+
$("#google_map_'.preg_replace('![^a-z0-9]+!i', '',$address) . $type .'").gMap({
|
141 |
+
address:"'.$address.'",
|
142 |
+
maptype:"'.$type.'",
|
143 |
+
scrollwheel: '.$scroll.',
|
144 |
+
zoom:'.$zoom.',
|
145 |
+
controls: {
|
146 |
+
panControl:'.$pancontrol.',
|
147 |
+
zoomControl:'.$zoomcontrol.',
|
148 |
+
mapTypeControl:'.$maptypecontrol.'
|
149 |
+
},
|
150 |
+
markers: [{
|
151 |
+
address:"'.$address.'",
|
152 |
+
html: "'.$content.'"
|
153 |
+
}]
|
154 |
+
});
|
155 |
+
})(jQuery);
|
156 |
+
</script>';
|
157 |
+
endif;
|
158 |
+
|
159 |
+
return $out;
|
160 |
+
}
|
shared/inbound-shortcodes/shortcodes/icon.php
ADDED
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Icon Shortcode
|
4 |
+
* ---------------------------------------------------------------------------
|
5 |
+
* @author : Rifki A.G
|
6 |
+
* @copyright : Copyright (c) 2013, FreshThemes
|
7 |
+
* http://www.freshthemes.net
|
8 |
+
* http://www.rifki.net
|
9 |
+
* --------------------------------------------------------------------------- */
|
10 |
+
|
11 |
+
/* Shortcode generator config
|
12 |
+
* ----------------------------------------------------- */
|
13 |
+
$shortcodes_config['icon'] = array(
|
14 |
+
'options' => array(
|
15 |
+
'icon' => array(
|
16 |
+
'name' => __('Icon', INBOUND_LABEL),
|
17 |
+
'desc' => __('Select the icon.', INBOUND_LABEL),
|
18 |
+
'type' => 'select',
|
19 |
+
'options' => $fontawesome,
|
20 |
+
'std' => 'none'
|
21 |
+
),
|
22 |
+
'size' => array(
|
23 |
+
'name' => __('Size', INBOUND_LABEL),
|
24 |
+
'desc' => __('Select the icon size.', INBOUND_LABEL),
|
25 |
+
'type' => 'select',
|
26 |
+
'options' => array(
|
27 |
+
'normal' => __('Normal Size', INBOUND_LABEL),
|
28 |
+
'large' => __('Large Size', INBOUND_LABEL),
|
29 |
+
'2x' => __('2x Size', INBOUND_LABEL),
|
30 |
+
'3x' => __('3x Size', INBOUND_LABEL),
|
31 |
+
'4x' => __('4x Size', INBOUND_LABEL)
|
32 |
+
),
|
33 |
+
'std' => 'normal'
|
34 |
+
),
|
35 |
+
'style' => array(
|
36 |
+
'name' => __('Style', INBOUND_LABEL),
|
37 |
+
'desc' => __('Select the icon style.', INBOUND_LABEL),
|
38 |
+
'type' => 'select',
|
39 |
+
'options' => array(
|
40 |
+
'normal' => __('Normal', INBOUND_LABEL),
|
41 |
+
'muted' => __('Muted', INBOUND_LABEL),
|
42 |
+
'border' => __('Border', INBOUND_LABEL),
|
43 |
+
'spin' => __('Spin', INBOUND_LABEL)
|
44 |
+
),
|
45 |
+
'std' => 'normal'
|
46 |
+
),
|
47 |
+
),
|
48 |
+
'shortcode' => '[icon icon="{{icon}}" size="{{size}}" style="{{style}}"]',
|
49 |
+
'popup_title' => __('Insert Icon Shortcode', INBOUND_LABEL)
|
50 |
+
);
|
51 |
+
|
52 |
+
/* Add shortcode
|
53 |
+
* ----------------------------------------------------- */
|
54 |
+
add_shortcode('icon', 'inbound_shortcode_icon');
|
55 |
+
|
56 |
+
function inbound_shortcode_icon( $atts, $content = null ) {
|
57 |
+
extract(shortcode_atts(array(
|
58 |
+
'icon' => '',
|
59 |
+
'size' => '',
|
60 |
+
'style' => ''
|
61 |
+
), $atts));
|
62 |
+
|
63 |
+
return '<i class="icon-'. $icon .' icon-'. $size .' icon-'. $style .'"></i>';
|
64 |
+
}
|
shared/inbound-shortcodes/shortcodes/intro.php
ADDED
@@ -0,0 +1,98 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Intro Shortcode
|
4 |
+
* ---------------------------------------------------------------------------
|
5 |
+
* @author : Rifki A.G
|
6 |
+
* @copyright : Copyright (c) 2013, FreshThemes
|
7 |
+
* http://www.freshthemes.net
|
8 |
+
* http://www.rifki.net
|
9 |
+
* --------------------------------------------------------------------------- */
|
10 |
+
|
11 |
+
/* Shortcode generator config
|
12 |
+
* ----------------------------------------------------- */
|
13 |
+
$shortcodes_config['intro'] = array(
|
14 |
+
'no_preview' => true,
|
15 |
+
'options' => array(
|
16 |
+
'title' => array(
|
17 |
+
'name' => __('Title', INBOUND_LABEL),
|
18 |
+
'desc' => __('Enter the heading text.', INBOUND_LABEL),
|
19 |
+
'type' => 'text',
|
20 |
+
'std' => ''
|
21 |
+
),
|
22 |
+
'alignment' => array(
|
23 |
+
'name' => __('Text Alignment', INBOUND_LABEL),
|
24 |
+
'desc' => __('Enter text alignment.', INBOUND_LABEL),
|
25 |
+
'type' => 'select',
|
26 |
+
'options' => array(
|
27 |
+
'align-center' => __('Align Center', INBOUND_LABEL),
|
28 |
+
'align-left' => __('Align Left', INBOUND_LABEL),
|
29 |
+
'align-right' => __('Align Right', INBOUND_LABEL)
|
30 |
+
),
|
31 |
+
'std' => 'align-left',
|
32 |
+
),
|
33 |
+
'content' => array(
|
34 |
+
'name' => __('Content', INBOUND_LABEL),
|
35 |
+
'desc' => __('Enter the content', INBOUND_LABEL),
|
36 |
+
'type' => 'textarea',
|
37 |
+
'std' => ''
|
38 |
+
)
|
39 |
+
),
|
40 |
+
'shortcode' => '[intro title="{{title}}" alignment="{{alignment}}"]{{content}}[/intro]',
|
41 |
+
'popup_title' => __('Insert Intro Shortcode', INBOUND_LABEL)
|
42 |
+
);
|
43 |
+
|
44 |
+
/* Page builder module config
|
45 |
+
* ----------------------------------------------------- */
|
46 |
+
$freshbuilder_modules['intro'] = array(
|
47 |
+
'name' => __('Intro', INBOUND_LABEL),
|
48 |
+
'size' => 'one_full',
|
49 |
+
'options' => array(
|
50 |
+
'title' => array(
|
51 |
+
'name' => __('Title', INBOUND_LABEL),
|
52 |
+
'desc' => __('Enter the heading text.', INBOUND_LABEL),
|
53 |
+
'type' => 'text',
|
54 |
+
'class' => '',
|
55 |
+
'is_content' => 0
|
56 |
+
),
|
57 |
+
'alignment' => array(
|
58 |
+
'name' => __('Text Alignment', INBOUND_LABEL),
|
59 |
+
'desc' => __('The text alignment', INBOUND_LABEL),
|
60 |
+
'type' => 'select',
|
61 |
+
'options' => array(
|
62 |
+
'align-center' => __('Align Center', INBOUND_LABEL),
|
63 |
+
'align-left' => __('Align Left', INBOUND_LABEL),
|
64 |
+
'align-right' => __('Align Right', INBOUND_LABEL)
|
65 |
+
),
|
66 |
+
'std' => 'align-left',
|
67 |
+
'class' => '',
|
68 |
+
'is_content' => 0
|
69 |
+
),
|
70 |
+
'content' => array(
|
71 |
+
'name' => __('Content', INBOUND_LABEL),
|
72 |
+
'desc' => __('Enter the content', INBOUND_LABEL),
|
73 |
+
'type' => 'textarea',
|
74 |
+
'std' => '',
|
75 |
+
'class' => '',
|
76 |
+
'is_content' => 1
|
77 |
+
)
|
78 |
+
)
|
79 |
+
);
|
80 |
+
|
81 |
+
/* Add shortcode
|
82 |
+
* ----------------------------------------------------- */
|
83 |
+
add_shortcode('intro', 'inbound_shortcode_intro');
|
84 |
+
|
85 |
+
function inbound_shortcode_intro( $atts, $content = null ) {
|
86 |
+
extract(shortcode_atts(array(
|
87 |
+
'title' => '',
|
88 |
+
'alignment' => ''
|
89 |
+
), $atts));
|
90 |
+
|
91 |
+
$out = '';
|
92 |
+
$out .= '<div class="intro clearfix '. $alignment .'">';
|
93 |
+
$out .= '<h1>'. $title .'</h1>';
|
94 |
+
$out .= '<div class="intro-content">'. do_shortcode($content) .'</div>';
|
95 |
+
$out .= '</div>';
|
96 |
+
|
97 |
+
return $out;
|
98 |
+
}
|
shared/inbound-shortcodes/shortcodes/landing-page-list.php
ADDED
@@ -0,0 +1,142 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Portfolio Shortcode
|
4 |
+
* ---------------------------------------------------------------------------
|
5 |
+
* @author : Rifki A.G
|
6 |
+
* @copyright : Copyright (c) 2013, FreshThemes
|
7 |
+
* http://www.freshthemes.net
|
8 |
+
* http://www.rifki.net
|
9 |
+
* --------------------------------------------------------------------------- */
|
10 |
+
|
11 |
+
// Landing Page List
|
12 |
+
|
13 |
+
/* Shortcode generator config
|
14 |
+
* ----------------------------------------------------- */
|
15 |
+
$shortcodes_config['landing-page-list'] = array(
|
16 |
+
'no_preview' => true,
|
17 |
+
'options' => array(
|
18 |
+
'heading' => array(
|
19 |
+
'name' => __('Heading Text', INBOUND_LABEL),
|
20 |
+
'desc' => __('Enter the heading text.', INBOUND_LABEL),
|
21 |
+
'type' => 'text',
|
22 |
+
'std' => 'Recent Content Offers'
|
23 |
+
),
|
24 |
+
'column' => array(
|
25 |
+
'name' => __('Column', INBOUND_LABEL),
|
26 |
+
'desc' => __('Select the number of column.', INBOUND_LABEL),
|
27 |
+
'type' => 'select',
|
28 |
+
'options' => array(
|
29 |
+
'2' => __('2 Columns', INBOUND_LABEL),
|
30 |
+
'3' => __('3 Columns', INBOUND_LABEL),
|
31 |
+
'4' => __('4 Columns', INBOUND_LABEL)
|
32 |
+
),
|
33 |
+
'std' => '4'
|
34 |
+
),
|
35 |
+
'number' => array(
|
36 |
+
'name' => __('Post Number', INBOUND_LABEL),
|
37 |
+
'desc' => __('Enter the number of post to show.', INBOUND_LABEL),
|
38 |
+
'type' => 'text',
|
39 |
+
'std' => '4'
|
40 |
+
)
|
41 |
+
),
|
42 |
+
'shortcode' => '[landing-page-list heading="{{heading}}" column="{{column}}" number="{{number}}"]',
|
43 |
+
'popup_title' => __('Insert Landing Page List Shortcode', INBOUND_LABEL)
|
44 |
+
);
|
45 |
+
|
46 |
+
/* Page builder module config
|
47 |
+
* ----------------------------------------------------- */
|
48 |
+
$freshbuilder_modules['landing-page-list'] = array(
|
49 |
+
'name' => __('Portfolio', INBOUND_LABEL),
|
50 |
+
'size' => 'one_full',
|
51 |
+
'options' => array(
|
52 |
+
'heading' => array(
|
53 |
+
'name' => __('Heading', INBOUND_LABEL),
|
54 |
+
'desc' => __('Enter the heading text.', INBOUND_LABEL),
|
55 |
+
'type' => 'text',
|
56 |
+
'std' => 'Recent Project',
|
57 |
+
'class' => '',
|
58 |
+
'is_content' => 0
|
59 |
+
),
|
60 |
+
'column' => array(
|
61 |
+
'name' => __('Column', INBOUND_LABEL),
|
62 |
+
'desc' => __('Select the number of column.', INBOUND_LABEL),
|
63 |
+
'type' => 'select',
|
64 |
+
'options' => array(
|
65 |
+
'2' => __('2 Columns', INBOUND_LABEL),
|
66 |
+
'3' => __('3 Columns', INBOUND_LABEL),
|
67 |
+
'4' => __('4 Columns', INBOUND_LABEL)
|
68 |
+
),
|
69 |
+
'std' => '4',
|
70 |
+
'class' => '',
|
71 |
+
'is_content' => 0
|
72 |
+
),
|
73 |
+
'number' => array(
|
74 |
+
'name' => __('Post Number', INBOUND_LABEL),
|
75 |
+
'desc' => __('Enter the number of post to show.', INBOUND_LABEL),
|
76 |
+
'type' => 'text',
|
77 |
+
'std' => '4',
|
78 |
+
'class' => '',
|
79 |
+
'is_content' => 0
|
80 |
+
)
|
81 |
+
)
|
82 |
+
);
|
83 |
+
|
84 |
+
/* Add shortcode
|
85 |
+
* ----------------------------------------------------- */
|
86 |
+
add_shortcode('landing-page-list', 'inbound_shortcode_portfolio');
|
87 |
+
if (!function_exists('inbound_shortcode_portfolio')) {
|
88 |
+
function inbound_shortcode_portfolio( $atts, $content = null ) {
|
89 |
+
extract(shortcode_atts(array(
|
90 |
+
'heading' => 'Recent Project',
|
91 |
+
'column' => 4,
|
92 |
+
'number' => 4
|
93 |
+
), $atts));
|
94 |
+
|
95 |
+
global $post;
|
96 |
+
|
97 |
+
$grid = ' grid one-half';
|
98 |
+
if ($column == '3') $grid = ' grid one-third';
|
99 |
+
if ($column == '4') $grid = ' grid one-fourth';
|
100 |
+
|
101 |
+
$out = '';
|
102 |
+
$i = 0;
|
103 |
+
|
104 |
+
$out .= '<div class="portfolio-items row">';
|
105 |
+
if ($heading != '') $out .= '<div class="grid full"><div class="heading"><h3>'.$heading.'</h3><div class="sep"></div></div></div>';
|
106 |
+
|
107 |
+
$number = ($number) ? "&posts_per_page=$number" : '';
|
108 |
+
|
109 |
+
$args = "post_type=portfolio$number";
|
110 |
+
$loop = new WP_Query( $args);
|
111 |
+
|
112 |
+
if ( $loop->have_posts() ) :
|
113 |
+
while ( $loop->have_posts() ) : $loop->the_post(); $i++;
|
114 |
+
|
115 |
+
$meta = get_post_meta( $post->ID, 'ft_portfolio_subtitle', true) ? get_post_meta( $post->ID, 'ft_portfolio_subtitle', true) : freshthemes_get_portfolio_categories();
|
116 |
+
|
117 |
+
$out .= '<div class="'.$grid.'">';
|
118 |
+
$out .= '<article class="item clearfix">
|
119 |
+
<figure class="item-thumb">
|
120 |
+
'.get_the_post_thumbnail($post->ID, '500x360').'
|
121 |
+
<div class="overlay">
|
122 |
+
<a class="view-link" href="'.get_permalink().'" rel="bookmark">'.__('View Project', INBOUND_LABEL) .'</a>
|
123 |
+
</div>
|
124 |
+
</figure>
|
125 |
+
|
126 |
+
<header class="item-header">
|
127 |
+
<h4 class="item-title"><a class="reserve" href="'.get_permalink().'" title="" rel="bookmark">'.get_the_title().'</a></h4>
|
128 |
+
<div class="item-meta">'. $meta .'</div>
|
129 |
+
</header>';
|
130 |
+
$out .= '</article>';
|
131 |
+
$out .= '</div>';
|
132 |
+
|
133 |
+
if( $i == $column ) $out .= '<div class="clear"></div>';
|
134 |
+
|
135 |
+
endwhile;
|
136 |
+
endif;
|
137 |
+
wp_reset_postdata();
|
138 |
+
$out .= '</div>';
|
139 |
+
|
140 |
+
return $out;
|
141 |
+
}
|
142 |
+
}
|
shared/inbound-shortcodes/shortcodes/landing_pages.php
ADDED
@@ -0,0 +1,211 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Entries Shortcode
|
4 |
+
* ---------------------------------------------------------------------------
|
5 |
+
* @author : Rifki A.G
|
6 |
+
* @copyright : Copyright (c) 2013, FreshThemes
|
7 |
+
* http://www.freshthemes.net
|
8 |
+
* http://www.rifki.net
|
9 |
+
* --------------------------------------------------------------------------- */
|
10 |
+
|
11 |
+
/* Shortcode generator config
|
12 |
+
* ----------------------------------------------------- */
|
13 |
+
$shortcodes_config['landing_pages'] = array(
|
14 |
+
'no_preview' => true,
|
15 |
+
'options' => array(
|
16 |
+
'heading' => array(
|
17 |
+
'name' => __('Heading Text', INBOUND_LABEL),
|
18 |
+
'desc' => __('Enter the heading text.', INBOUND_LABEL),
|
19 |
+
'type' => 'text',
|
20 |
+
'std' => 'Recent Landing Pages'
|
21 |
+
),
|
22 |
+
'column' => array(
|
23 |
+
'name' => __('Column', INBOUND_LABEL),
|
24 |
+
'desc' => __('Select the number of column.', INBOUND_LABEL),
|
25 |
+
'type' => 'select',
|
26 |
+
'options' => array(
|
27 |
+
'1' => __('1 Column', INBOUND_LABEL),
|
28 |
+
'2' => __('2 Columns', INBOUND_LABEL),
|
29 |
+
'3' => __('3 Columns', INBOUND_LABEL),
|
30 |
+
'4' => __('4 Columns', INBOUND_LABEL),
|
31 |
+
'5' => __('5 Columns', INBOUND_LABEL)
|
32 |
+
),
|
33 |
+
'std' => '4'
|
34 |
+
),
|
35 |
+
'number' => array(
|
36 |
+
'name' => __('Post Number', INBOUND_LABEL),
|
37 |
+
'desc' => __('Enter the number of post to show. (enter -1 for all posts)', INBOUND_LABEL),
|
38 |
+
'type' => 'text',
|
39 |
+
'std' => '4'
|
40 |
+
),
|
41 |
+
'cat' => array(
|
42 |
+
'name' => __('Category', INBOUND_LABEL),
|
43 |
+
'desc' => __('Optional you can sort by a category.', INBOUND_LABEL),
|
44 |
+
'type' => 'select',
|
45 |
+
'options' => $lp_cats,
|
46 |
+
'std' => ''
|
47 |
+
),
|
48 |
+
'excerpt_lenght' => array(
|
49 |
+
'name' => __('Excerpt Lenght', INBOUND_LABEL),
|
50 |
+
'desc' => __('The post excerpt word lenght.', INBOUND_LABEL),
|
51 |
+
'type' => 'text',
|
52 |
+
'std' => '30'
|
53 |
+
),
|
54 |
+
'thumbs' => array(
|
55 |
+
'name' => __('Show Featured Thumbnails', INBOUND_LABEL),
|
56 |
+
'checkbox_text' => __('Uncheck to hide featured thumbnails', INBOUND_LABEL),
|
57 |
+
'desc' => '',
|
58 |
+
'type' => 'checkbox',
|
59 |
+
'std' => '1'
|
60 |
+
),
|
61 |
+
),
|
62 |
+
'shortcode' => '[landing_pages heading="{{heading}}" column="{{column}}" number="{{number}}" cat="{{cat}}" excerpt_lenght="{{excerpt_lenght}}" thumbs="{{thumbs}}"]',
|
63 |
+
'popup_title' => __('Insert Landing Page List Shortcode', INBOUND_LABEL)
|
64 |
+
);
|
65 |
+
|
66 |
+
/* Page builder module config
|
67 |
+
* ----------------------------------------------------- */
|
68 |
+
$freshbuilder_modules['landing_pages'] = array(
|
69 |
+
'name' => __('Entries', INBOUND_LABEL),
|
70 |
+
'size' => 'one_full',
|
71 |
+
'options' => array(
|
72 |
+
'heading' => array(
|
73 |
+
'name' => __('Heading', INBOUND_LABEL),
|
74 |
+
'desc' => __('Enter the heading text.', INBOUND_LABEL),
|
75 |
+
'type' => 'text',
|
76 |
+
'std' => 'Recent Posts',
|
77 |
+
'class' => '',
|
78 |
+
'is_content' => '0'
|
79 |
+
),
|
80 |
+
'column' => array(
|
81 |
+
'name' => __('Column', INBOUND_LABEL),
|
82 |
+
'desc' => __('Select the number of column.', INBOUND_LABEL),
|
83 |
+
'type' => 'select',
|
84 |
+
'options' => array(
|
85 |
+
'1' => __('1 Column', INBOUND_LABEL),
|
86 |
+
'2' => __('2 Columns', INBOUND_LABEL),
|
87 |
+
'3' => __('3 Columns', INBOUND_LABEL),
|
88 |
+
'4' => __('4 Columns', INBOUND_LABEL),
|
89 |
+
'5' => __('5 Columns', INBOUND_LABEL)
|
90 |
+
),
|
91 |
+
'std' => '4',
|
92 |
+
'class' => '',
|
93 |
+
'is_content' => '0'
|
94 |
+
),
|
95 |
+
'number' => array(
|
96 |
+
'name' => __('Post Number', INBOUND_LABEL),
|
97 |
+
'desc' => __('Enter the number of post to show.', INBOUND_LABEL),
|
98 |
+
'type' => 'text',
|
99 |
+
'std' => '4',
|
100 |
+
'class' => '',
|
101 |
+
'is_content' => '0'
|
102 |
+
),
|
103 |
+
'cat' => array(
|
104 |
+
'name' => __('Category', INBOUND_LABEL),
|
105 |
+
'desc' => __('Optional you can sort by a category.', INBOUND_LABEL),
|
106 |
+
'type' => 'select',
|
107 |
+
'options' => $lp_cats,
|
108 |
+
'std' => '',
|
109 |
+
'class' => '',
|
110 |
+
'is_content' => '0'
|
111 |
+
),
|
112 |
+
'excerpt_lenght' => array(
|
113 |
+
'name' => __('Excerpt Lenght', INBOUND_LABEL),
|
114 |
+
'desc' => __('The post excerpt word lenght.', INBOUND_LABEL),
|
115 |
+
'type' => 'text',
|
116 |
+
'std' => '30',
|
117 |
+
'class' => '',
|
118 |
+
'is_content' => '0'
|
119 |
+
)
|
120 |
+
)
|
121 |
+
);
|
122 |
+
|
123 |
+
/* Add shortcode
|
124 |
+
* ----------------------------------------------------- */
|
125 |
+
add_shortcode('landing_pages', 'inbound_shortcode_landing_pages');
|
126 |
+
if (!function_exists('inbound_shortcode_landing_pages')) {
|
127 |
+
function inbound_shortcode_landing_pages( $atts, $content = null ) {
|
128 |
+
extract(shortcode_atts(array(
|
129 |
+
'heading' => 'Recent Posts',
|
130 |
+
'column' => '4',
|
131 |
+
'number' => '4',
|
132 |
+
'cat' => '',
|
133 |
+
'excerpt_lenght' => '30',
|
134 |
+
'thumbs' => '1'
|
135 |
+
), $atts));
|
136 |
+
|
137 |
+
$grid = ' inbound-grid full';
|
138 |
+
if ($column == '2') $grid = ' inbound-grid one-half';
|
139 |
+
if ($column == '3') $grid = ' inbound-grid one-third';
|
140 |
+
if ($column == '4') $grid = ' inbound-grid one-fourth';
|
141 |
+
if ($column == '5') $grid = ' inbound-grid one-fifth';
|
142 |
+
|
143 |
+
$out = '';
|
144 |
+
$i = 0;
|
145 |
+
|
146 |
+
$out .= '<div class="inbound-row">';
|
147 |
+
if ($heading != '') $out .= '<div class="inbound-grid full"><div class="heading"><h3>'.$heading.'</h3><div class="sep"></div></div></div>';
|
148 |
+
|
149 |
+
$number = ($number) ? $num = $number : $num = -1;
|
150 |
+
|
151 |
+
$cat = ($cat) ? "$cat" : '';
|
152 |
+
|
153 |
+
//$args = "post_type=landing-page$number$cat"; // &post_type=landing-page
|
154 |
+
if ($cat === 'all' || $cat === '') {
|
155 |
+
$args = array(
|
156 |
+
'post_type' => 'landing-page',
|
157 |
+
'posts_per_page' => $number,
|
158 |
+
);
|
159 |
+
} else {
|
160 |
+
$args = array(
|
161 |
+
'post_type' => 'landing-page',
|
162 |
+
'posts_per_page' => $number,
|
163 |
+
'tax_query' => array(
|
164 |
+
array(
|
165 |
+
'taxonomy' => 'landing_page_category',
|
166 |
+
'field' => 'id',
|
167 |
+
'terms' => $cat
|
168 |
+
))
|
169 |
+
);
|
170 |
+
}
|
171 |
+
|
172 |
+
$loop = new WP_Query( $args);
|
173 |
+
|
174 |
+
if ( $loop->have_posts() ) :
|
175 |
+
while ( $loop->have_posts() ) : $loop->the_post(); $i++;
|
176 |
+
$id = $loop->post->ID;
|
177 |
+
$thumbnail = '';
|
178 |
+
$title = get_the_title($id);
|
179 |
+
|
180 |
+
if(empty($title)){
|
181 |
+
$title = get_post_meta( $id , 'lp-main-headline',true );
|
182 |
+
}
|
183 |
+
|
184 |
+
if ($thumbs != 0){
|
185 |
+
$thumbnail = get_the_post_thumbnail($post->ID, '500x360');
|
186 |
+
}
|
187 |
+
|
188 |
+
|
189 |
+
//print_r($loop);
|
190 |
+
$out .= '<div class="'.$grid.'">';
|
191 |
+
$out .= '<div class="recent-entry inbound-clearfix">'.$thumbnail.'';
|
192 |
+
$out .= '<header class="recent-entry-header">';
|
193 |
+
$out .= '<h3 class="recent-entry-title"><a class="reserve" href="'.get_permalink().'" title="" rel="bookmark">'.$title.'</a></h3>';
|
194 |
+
$out .= '</header>';
|
195 |
+
|
196 |
+
$out .= '<div class="recent-entry-summary">';
|
197 |
+
//$out .= the_excerpt($id);
|
198 |
+
$out .= '</div>';
|
199 |
+
$out .= '</div>';
|
200 |
+
$out .= '</div>';
|
201 |
+
|
202 |
+
if( $i == $column ) $out .= '<div class="inbound-clear"></div>';
|
203 |
+
|
204 |
+
endwhile;
|
205 |
+
endif;
|
206 |
+
wp_reset_postdata();
|
207 |
+
$out .= '</div>';
|
208 |
+
|
209 |
+
return $out;
|
210 |
+
}
|
211 |
+
}
|
shared/inbound-shortcodes/shortcodes/leadp.php
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Lead Paragraph Shortcode
|
4 |
+
* ---------------------------------------------------------------------------
|
5 |
+
* @author : Rifki A.G
|
6 |
+
* @copyright : Copyright (c) 2013, FreshThemes
|
7 |
+
* http://www.freshthemes.net
|
8 |
+
* http://www.rifki.net
|
9 |
+
* --------------------------------------------------------------------------- */
|
10 |
+
|
11 |
+
/* Shortcode generator config
|
12 |
+
* ----------------------------------------------------- */
|
13 |
+
$shortcodes_config['leadp'] = array(
|
14 |
+
'no_preview' => true,
|
15 |
+
'options' => array(
|
16 |
+
'align' => array(
|
17 |
+
'name' => __('Alignment', INBOUND_LABEL),
|
18 |
+
'desc' => __('Add the pharagraph alignment', INBOUND_LABEL),
|
19 |
+
'type' => 'select',
|
20 |
+
'options' => array(
|
21 |
+
'left' => 'Align Left',
|
22 |
+
'right' => 'Align Right',
|
23 |
+
'center' => 'Align Center'
|
24 |
+
),
|
25 |
+
'std' => ''
|
26 |
+
),
|
27 |
+
'content' => array(
|
28 |
+
'name' => __('Paragraph Text', INBOUND_LABEL),
|
29 |
+
'desc' => __('Add the pharagraph text', INBOUND_LABEL),
|
30 |
+
'type' => 'textarea',
|
31 |
+
'std' => ''
|
32 |
+
)
|
33 |
+
),
|
34 |
+
'shortcode' => '[leadp align="{{align}}"]{{content}}[/leadp]',
|
35 |
+
'popup_title' => __('Insert Lead Paragraph Shortcode', INBOUND_LABEL)
|
36 |
+
);
|
37 |
+
|
38 |
+
/* Add shortcode
|
39 |
+
* ----------------------------------------------------- */
|
40 |
+
add_shortcode('leadp', 'inbound_shortcode_leadp');
|
41 |
+
if (!function_exists('inbound_shortcode_leadp')) {
|
42 |
+
function inbound_shortcode_leadp( $atts, $content = null ) {
|
43 |
+
extract(shortcode_atts(array(
|
44 |
+
'align' => ''
|
45 |
+
), $atts));
|
46 |
+
|
47 |
+
return '<p class="lead" style="text-align:'.$align.'">' . do_shortcode($content) . '</p>';
|
48 |
+
}
|
49 |
+
}
|
shared/inbound-shortcodes/shortcodes/list-icon.php
ADDED
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* List Icon Shortcode
|
4 |
+
* ---------------------------------------------------------------------------
|
5 |
+
* @author : Rifki A.G
|
6 |
+
* @copyright : Copyright (c) 2013, FreshThemes
|
7 |
+
* http://www.freshthemes.net
|
8 |
+
* http://www.rifki.net
|
9 |
+
* --------------------------------------------------------------------------- */
|
10 |
+
|
11 |
+
/* Shortcode generator config
|
12 |
+
* ----------------------------------------------------- */
|
13 |
+
$shortcodes_config['list_icons'] = array(
|
14 |
+
'no_preview' => true,
|
15 |
+
'options' => array(),
|
16 |
+
'child' => array(
|
17 |
+
'options' => array(
|
18 |
+
'icon' => array(
|
19 |
+
'name' => __('Icon', INBOUND_LABEL),
|
20 |
+
'desc' => __('Select the icon.', INBOUND_LABEL),
|
21 |
+
'type' => 'select',
|
22 |
+
'options' => $fontawesome,
|
23 |
+
'std' => 'none'
|
24 |
+
),
|
25 |
+
'content' => array(
|
26 |
+
'name' => __('List Content', INBOUND_LABEL),
|
27 |
+
'desc' => __('Put the content here.', INBOUND_LABEL),
|
28 |
+
'type' => 'textarea',
|
29 |
+
'std' => ''
|
30 |
+
)
|
31 |
+
),
|
32 |
+
'shortcode' => '[list icon="{{icon}}"]{{content}}[/list]',
|
33 |
+
'clone' => __('Add More List', INBOUND_LABEL )
|
34 |
+
),
|
35 |
+
'shortcode' => '[list_icons]{{child}}[/list_icons]',
|
36 |
+
'popup_title' => __('Insert List Icons Shortcode', INBOUND_LABEL)
|
37 |
+
);
|
38 |
+
|
39 |
+
/* Add shortcode
|
40 |
+
* ----------------------------------------------------- */
|
41 |
+
add_shortcode('list_icons', 'inbound_shortcode_list_icons');
|
42 |
+
|
43 |
+
function inbound_shortcode_list_icons( $atts, $content = null ) {
|
44 |
+
extract(shortcode_atts(array(), $atts));
|
45 |
+
|
46 |
+
$out = '';
|
47 |
+
|
48 |
+
if (!preg_match_all("/(.?)\[(list)\b(.*?)(?:(\/))?\](?:(.+?)\[\/list\])?(.?)/s", $content, $matches)) {
|
49 |
+
|
50 |
+
return do_shortcode($content);
|
51 |
+
|
52 |
+
} else {
|
53 |
+
|
54 |
+
for($i = 0; $i < count($matches[0]); $i++) {
|
55 |
+
$matches[3][$i] = shortcode_parse_atts($matches[3][$i]);
|
56 |
+
}
|
57 |
+
|
58 |
+
$out .= '<ul class="icons">';
|
59 |
+
|
60 |
+
for($i = 0; $i < count($matches[0]); $i++) {
|
61 |
+
$icon = ( $matches[3][$i]['icon'] ) ? '<i class="icon-'. $matches[3][$i]['icon'] .'"></i>' : '';
|
62 |
+
|
63 |
+
$out .= '<li>'. $icon . do_shortcode(trim($matches[5][$i])) .'</li>';
|
64 |
+
}
|
65 |
+
|
66 |
+
$out .= '</ul>';
|
67 |
+
}
|
68 |
+
|
69 |
+
return $out;
|
70 |
+
}
|
shared/inbound-shortcodes/shortcodes/pricing.php
ADDED
@@ -0,0 +1,217 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Pricing Tables Shortcode
|
4 |
+
* ---------------------------------------------------------------------------
|
5 |
+
* @author : Rifki A.G
|
6 |
+
* @copyright : Copyright (c) 2013, FreshThemes
|
7 |
+
* http://www.freshthemes.net
|
8 |
+
* http://www.rifki.net
|
9 |
+
* --------------------------------------------------------------------------- */
|
10 |
+
|
11 |
+
/* Shortcode generator config
|
12 |
+
* ----------------------------------------------------- */
|
13 |
+
$shortcodes_config['pricing'] = array(
|
14 |
+
'no_preview' => true,
|
15 |
+
'options' => array(
|
16 |
+
'column' => array(
|
17 |
+
'name' => __('Column', INBOUND_LABEL),
|
18 |
+
'desc' => __('Select the column.', INBOUND_LABEL),
|
19 |
+
'type' => 'select',
|
20 |
+
'options' => array(
|
21 |
+
'2' => __('2 Columns', INBOUND_LABEL),
|
22 |
+
'3' => __('3 Columns', INBOUND_LABEL),
|
23 |
+
'4' => __('4 Columns', INBOUND_LABEL),
|
24 |
+
'5' => __('5 Columns', INBOUND_LABEL)
|
25 |
+
),
|
26 |
+
'std' => '4',
|
27 |
+
)
|
28 |
+
),
|
29 |
+
'child' => array(
|
30 |
+
'options' => array(
|
31 |
+
'featured' => array(
|
32 |
+
'name' => __('Featured Plan', INBOUND_LABEL),
|
33 |
+
'desc' => __('Check to set this plan as featured', INBOUND_LABEL),
|
34 |
+
'type' => 'checkbox',
|
35 |
+
'std' => '0',
|
36 |
+
),
|
37 |
+
'title' => array(
|
38 |
+
'name' => __('Plan Title', INBOUND_LABEL),
|
39 |
+
'desc' => __('Enter the plan title.', INBOUND_LABEL),
|
40 |
+
'type' => 'text',
|
41 |
+
'std' => ''
|
42 |
+
),
|
43 |
+
'price' => array(
|
44 |
+
'name' => __('Plan Price', INBOUND_LABEL),
|
45 |
+
'desc' => __('Enter the plan price.', INBOUND_LABEL),
|
46 |
+
'type' => 'text',
|
47 |
+
'std' => ''
|
48 |
+
),
|
49 |
+
'term' => array(
|
50 |
+
'name' => __('Plan Term', INBOUND_LABEL),
|
51 |
+
'desc' => __('Enter the plan term. e.g : "per month", "per year" etc.', INBOUND_LABEL),
|
52 |
+
'type' => 'text',
|
53 |
+
'std' => ''
|
54 |
+
),
|
55 |
+
'button_text' => array(
|
56 |
+
'name' => __('Plan Button Text', INBOUND_LABEL),
|
57 |
+
'desc' => __('Enter the button text label.', INBOUND_LABEL),
|
58 |
+
'type' => 'text',
|
59 |
+
'std' => ''
|
60 |
+
),
|
61 |
+
'button_link' => array(
|
62 |
+
'name' => __('Plan Button Link', INBOUND_LABEL),
|
63 |
+
'desc' => __('Enter the button link destination URL.', INBOUND_LABEL),
|
64 |
+
'type' => 'text',
|
65 |
+
'std' => ''
|
66 |
+
),
|
67 |
+
'content' => array(
|
68 |
+
'name' => __('Plan Content', INBOUND_LABEL),
|
69 |
+
'desc' => __('Put the content here.', INBOUND_LABEL),
|
70 |
+
'type' => 'textarea',
|
71 |
+
'std' => ''
|
72 |
+
)
|
73 |
+
),
|
74 |
+
'shortcode' => '[plan featured="{{featured}}" title="{{title}}" price="{{price}}" term="{{term}}" button_text="{{button_text}}" button_link="{{button_link}}"]{{content}}[/plan]',
|
75 |
+
'clone' => __('Add More Testimony', INBOUND_LABEL )
|
76 |
+
),
|
77 |
+
'shortcode' => '[pricing column="{{column}}"]{{child}}[/pricing]',
|
78 |
+
'popup_title' => __('Insert Pricing Shortcode', INBOUND_LABEL)
|
79 |
+
);
|
80 |
+
|
81 |
+
/* Page builder module config
|
82 |
+
* ----------------------------------------------------- */
|
83 |
+
$freshbuilder_modules['pricing'] = array(
|
84 |
+
'name' => __('Pricing Table', INBOUND_LABEL),
|
85 |
+
'size' => 'one_full',
|
86 |
+
'options' => array(
|
87 |
+
'column' => array(
|
88 |
+
'name' => __('Column', INBOUND_LABEL),
|
89 |
+
'desc' => __('Select the column.', INBOUND_LABEL),
|
90 |
+
'type' => 'select',
|
91 |
+
'options' => array(
|
92 |
+
'2' => __('2 Columns', INBOUND_LABEL),
|
93 |
+
'3' => __('3 Columns', INBOUND_LABEL),
|
94 |
+
'4' => __('4 Columns', INBOUND_LABEL),
|
95 |
+
'5' => __('5 Columns', INBOUND_LABEL)
|
96 |
+
),
|
97 |
+
'std' => '4',
|
98 |
+
'class' => '',
|
99 |
+
'is_content' => 0
|
100 |
+
)
|
101 |
+
),
|
102 |
+
'child' => array(
|
103 |
+
'featured' => array(
|
104 |
+
'name' => __('Featured Plan', INBOUND_LABEL),
|
105 |
+
'desc' => __('Check to set this plan as featured', INBOUND_LABEL),
|
106 |
+
'type' => 'checkbox',
|
107 |
+
'std' => '0',
|
108 |
+
'class' => '',
|
109 |
+
'is_content' => 0
|
110 |
+
),
|
111 |
+
'title' => array(
|
112 |
+
'name' => __('Plan Title', INBOUND_LABEL),
|
113 |
+
'desc' => __('Enter the plan title.', INBOUND_LABEL),
|
114 |
+
'type' => 'text',
|
115 |
+
'std' => '',
|
116 |
+
'class' => '',
|
117 |
+
'is_content' => 0
|
118 |
+
),
|
119 |
+
'price' => array(
|
120 |
+
'name' => __('Plan Price', INBOUND_LABEL),
|
121 |
+
'desc' => __('Enter the plan price.', INBOUND_LABEL),
|
122 |
+
'type' => 'text',
|
123 |
+
'std' => '',
|
124 |
+
'class' => '',
|
125 |
+
'is_content' => 0
|
126 |
+
),
|
127 |
+
'term' => array(
|
128 |
+
'name' => __('Plan Term', INBOUND_LABEL),
|
129 |
+
'desc' => __('Enter the plan term. e.g : "per month", "per year" etc.', INBOUND_LABEL),
|
130 |
+
'type' => 'text',
|
131 |
+
'std' => '',
|
132 |
+
'class' => '',
|
133 |
+
'is_content' => 0
|
134 |
+
),
|
135 |
+
'button_text' => array(
|
136 |
+
'name' => __('Plan Button Text', INBOUND_LABEL),
|
137 |
+
'desc' => __('Enter the button text label.', INBOUND_LABEL),
|
138 |
+
'type' => 'text',
|
139 |
+
'std' => '',
|
140 |
+
'class' => '',
|
141 |
+
'is_content' => 0
|
142 |
+
),
|
143 |
+
'button_link' => array(
|
144 |
+
'name' => __('Plan Button Link', INBOUND_LABEL),
|
145 |
+
'desc' => __('Enter the button link destination URL.', INBOUND_LABEL),
|
146 |
+
'type' => 'text',
|
147 |
+
'std' => '',
|
148 |
+
'class' => '',
|
149 |
+
'is_content' => 0
|
150 |
+
),
|
151 |
+
'content' => array(
|
152 |
+
'name' => __('Plan Content', INBOUND_LABEL),
|
153 |
+
'desc' => __('Put the content here.', INBOUND_LABEL),
|
154 |
+
'type' => 'textarea',
|
155 |
+
'class' => '',
|
156 |
+
'is_content' => 1
|
157 |
+
)
|
158 |
+
),
|
159 |
+
'child_code' => 'plan'
|
160 |
+
);
|
161 |
+
|
162 |
+
/* Add shortcode
|
163 |
+
* ----------------------------------------------------- */
|
164 |
+
add_shortcode('pricing', 'inbound_shortcode_pricing');
|
165 |
+
|
166 |
+
function inbound_shortcode_pricing( $atts, $content = null ) {
|
167 |
+
extract(shortcode_atts(array(
|
168 |
+
'column' => '3'
|
169 |
+
), $atts));
|
170 |
+
|
171 |
+
$grid = ' grid full';
|
172 |
+
if ($column == '2') $grid = ' grid one-half';
|
173 |
+
if ($column == '3') $grid = ' grid one-third';
|
174 |
+
if ($column == '4') $grid = ' grid one-fourth';
|
175 |
+
if ($column == '5') $grid = ' grid one-fifth';
|
176 |
+
$out = '';
|
177 |
+
|
178 |
+
if (!preg_match_all("/(.?)\[(plan)\b(.*?)(?:(\/))?\](?:(.+?)\[\/plan\])?(.?)/s", $content, $matches)) {
|
179 |
+
|
180 |
+
return do_shortcode($content);
|
181 |
+
|
182 |
+
} else {
|
183 |
+
|
184 |
+
for($i = 0; $i < count($matches[0]); $i++) {
|
185 |
+
$matches[3][$i] = shortcode_parse_atts($matches[3][$i]);
|
186 |
+
}
|
187 |
+
|
188 |
+
$out .= '<div class="pricing clearfix">';
|
189 |
+
|
190 |
+
for($i = 0; $i < count($matches[0]); $i++) {
|
191 |
+
$featured = ( $matches[3][$i]['featured'] == '1') ? ' featured' : '';
|
192 |
+
|
193 |
+
$out .= '<div class="plan '. $grid . $featured .'">';
|
194 |
+
$out .= '<div class="plan-header">';
|
195 |
+
$out .= '<h2>' . $matches[3][$i]['title'] . '</h2>';
|
196 |
+
$out .= '</div>';
|
197 |
+
|
198 |
+
$out .= '<div class="plan-price">';
|
199 |
+
$out .= '<strong>'. $matches[3][$i]['price'] .'</strong>';
|
200 |
+
$out .= '<span>'. $matches[3][$i]['term'] .'</span>';
|
201 |
+
$out .= '</div>';
|
202 |
+
|
203 |
+
$out .= '<div class="plan-content">';
|
204 |
+
$out .= do_shortcode(trim($matches[5][$i]));
|
205 |
+
$out .= '</div>';
|
206 |
+
|
207 |
+
$out .= '<div class="plan-footer">';
|
208 |
+
$out .= '<a class="button" href="'. $matches[3][$i]['button_link'] .'">'. $matches[3][$i]['button_text'] .'</a>';
|
209 |
+
$out .= '</div>';
|
210 |
+
$out .= '</div>';
|
211 |
+
}
|
212 |
+
|
213 |
+
$out .= '</div>';
|
214 |
+
}
|
215 |
+
|
216 |
+
return $out;
|
217 |
+
}
|
shared/inbound-shortcodes/shortcodes/profile.php
ADDED
@@ -0,0 +1,189 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Profile Shortcode
|
4 |
+
* ---------------------------------------------------------------------------
|
5 |
+
* @author : Rifki A.G
|
6 |
+
* @copyright : Copyright (c) 2013, FreshThemes
|
7 |
+
* http://www.freshthemes.net
|
8 |
+
* http://www.rifki.net
|
9 |
+
* --------------------------------------------------------------------------- */
|
10 |
+
|
11 |
+
/* Shortcode generator config
|
12 |
+
* ----------------------------------------------------- */
|
13 |
+
$shortcodes_config['profile'] = array(
|
14 |
+
'no_preview' => true,
|
15 |
+
'options' => array(
|
16 |
+
'name' => array(
|
17 |
+
'name' => __('Profile Name', INBOUND_LABEL),
|
18 |
+
'desc' => __('Enter the name.', INBOUND_LABEL),
|
19 |
+
'type' => 'text',
|
20 |
+
'std' => ''
|
21 |
+
),
|
22 |
+
'meta' => array(
|
23 |
+
'name' => __('Profile Meta', INBOUND_LABEL),
|
24 |
+
'desc' => __('Enter the profile meta. e.g job position etc.', INBOUND_LABEL),
|
25 |
+
'type' => 'text',
|
26 |
+
'std' => ''
|
27 |
+
),
|
28 |
+
'image' => array(
|
29 |
+
'name' => __('Profile Image', INBOUND_LABEL),
|
30 |
+
'desc' => __('Paste your profile image URL here.', INBOUND_LABEL),
|
31 |
+
'type' => 'text',
|
32 |
+
'std' => ''
|
33 |
+
),
|
34 |
+
'link' => array(
|
35 |
+
'name' => __('Profile Link', INBOUND_LABEL),
|
36 |
+
'desc' => __('Paste your profile link URL here.', INBOUND_LABEL),
|
37 |
+
'type' => 'text',
|
38 |
+
'std' => ''
|
39 |
+
),
|
40 |
+
'facebook' => array(
|
41 |
+
'name' => __('Profile Facebook', INBOUND_LABEL),
|
42 |
+
'desc' => __('Paste your facebook URL here.', INBOUND_LABEL),
|
43 |
+
'type' => 'text',
|
44 |
+
'std' => ''
|
45 |
+
),
|
46 |
+
'twitter' => array(
|
47 |
+
'name' => __('Profile Twitter', INBOUND_LABEL),
|
48 |
+
'desc' => __('Paste your twitter URL here.', INBOUND_LABEL),
|
49 |
+
'type' => 'text',
|
50 |
+
'std' => ''
|
51 |
+
),
|
52 |
+
'email' => array(
|
53 |
+
'name' => __('Profile Email Address', INBOUND_LABEL),
|
54 |
+
'desc' => __('Paste your email address here.', INBOUND_LABEL),
|
55 |
+
'type' => 'text',
|
56 |
+
'std' => ''
|
57 |
+
),
|
58 |
+
'content' => array(
|
59 |
+
'name' => __('Profile Description', INBOUND_LABEL),
|
60 |
+
'desc' => __('Enter the profile description text.', INBOUND_LABEL),
|
61 |
+
'type' => 'textarea',
|
62 |
+
'std' => ''
|
63 |
+
)
|
64 |
+
),
|
65 |
+
'shortcode' => '[profile name="{{name}}" meta="{{meta}}" image="{{image}}"]{{content}}[/profile]',
|
66 |
+
'popup_title' => __('Insert Profile Shortcode', INBOUND_LABEL)
|
67 |
+
);
|
68 |
+
|
69 |
+
/* Page builder module config
|
70 |
+
* ----------------------------------------------------- */
|
71 |
+
$freshbuilder_modules['profile'] = array(
|
72 |
+
'name' => __('Profile', INBOUND_LABEL),
|
73 |
+
'size' => 'one_fourth',
|
74 |
+
'options' => array(
|
75 |
+
'name' => array(
|
76 |
+
'name' => __('Profile Name', INBOUND_LABEL),
|
77 |
+
'desc' => __('Enter the name.', INBOUND_LABEL),
|
78 |
+
'type' => 'text',
|
79 |
+
'std' => '',
|
80 |
+
'class' => '',
|
81 |
+
'is_content' => 0
|
82 |
+
),
|
83 |
+
'meta' => array(
|
84 |
+
'name' => __('Profile Meta', INBOUND_LABEL),
|
85 |
+
'desc' => __('Enter the profile meta. e.g job position etc.', INBOUND_LABEL),
|
86 |
+
'type' => 'text',
|
87 |
+
'std' => '',
|
88 |
+
'class' => '',
|
89 |
+
'is_content' => 0
|
90 |
+
),
|
91 |
+
'image' => array(
|
92 |
+
'name' => __('Profile Image', INBOUND_LABEL),
|
93 |
+
'desc' => __('Paste your profile image URL here.', INBOUND_LABEL),
|
94 |
+
'type' => 'text',
|
95 |
+
'std' => '',
|
96 |
+
'class' => '',
|
97 |
+
'is_content' => 0
|
98 |
+
),
|
99 |
+
'link' => array(
|
100 |
+
'name' => __('Profile Link', INBOUND_LABEL),
|
101 |
+
'desc' => __('Paste your profile URL here.', INBOUND_LABEL),
|
102 |
+
'type' => 'text',
|
103 |
+
'std' => '',
|
104 |
+
'class' => '',
|
105 |
+
'is_content' => 0
|
106 |
+
),
|
107 |
+
'facebook' => array(
|
108 |
+
'name' => __('Profile Facebook', INBOUND_LABEL),
|
109 |
+
'desc' => __('Paste your facebook URL here.', INBOUND_LABEL),
|
110 |
+
'type' => 'text',
|
111 |
+
'std' => '',
|
112 |
+
'class' => '',
|
113 |
+
'is_content' => 0
|
114 |
+
),
|
115 |
+
'twitter' => array(
|
116 |
+
'name' => __('Profile Twitter', INBOUND_LABEL),
|
117 |
+
'desc' => __('Paste your twitter URL here.', INBOUND_LABEL),
|
118 |
+
'type' => 'text',
|
119 |
+
'std' => '',
|
120 |
+
'class' => '',
|
121 |
+
'is_content' => 0
|
122 |
+
),
|
123 |
+
'email' => array(
|
124 |
+
'name' => __('Profile Email Address', INBOUND_LABEL),
|
125 |
+
'desc' => __('Paste your email address here.', INBOUND_LABEL),
|
126 |
+
'type' => 'text',
|
127 |
+
'std' => '',
|
128 |
+
'class' => '',
|
129 |
+
'is_content' => 0
|
130 |
+
),
|
131 |
+
'content' => array(
|
132 |
+
'name' => __('Profile Description', INBOUND_LABEL),
|
133 |
+
'desc' => __('Enter the profile description text.', INBOUND_LABEL),
|
134 |
+
'type' => 'textarea',
|
135 |
+
'std' => '',
|
136 |
+
'class' => '',
|
137 |
+
'is_content' => 1
|
138 |
+
)
|
139 |
+
)
|
140 |
+
);
|
141 |
+
|
142 |
+
/* Add shortcode
|
143 |
+
* ----------------------------------------------------- */
|
144 |
+
add_shortcode('profile', 'inbound_shortcode_profile');
|
145 |
+
|
146 |
+
function inbound_shortcode_profile( $atts, $content = null ) {
|
147 |
+
extract(shortcode_atts(array(
|
148 |
+
'name' => '',
|
149 |
+
'meta' => '',
|
150 |
+
'image' => '',
|
151 |
+
'link' => '',
|
152 |
+
'facebook' => '',
|
153 |
+
'twitter' => '',
|
154 |
+
'email' => ''
|
155 |
+
), $atts));
|
156 |
+
|
157 |
+
$out = '';
|
158 |
+
$out .= '<div class="profile-box clearfix">';
|
159 |
+
|
160 |
+
if($link != '') :
|
161 |
+
$out .= '<figure class="profile-img"><a href="'. $link .'"><img src="'. $image .'" alt="'. $name .'"/></a></figure>';
|
162 |
+
else :
|
163 |
+
$out .= '<figure class="profile-img"><img src="'. $image .'" alt="'. $name .'"/></figure>';
|
164 |
+
endif;
|
165 |
+
|
166 |
+
if($name != '')
|
167 |
+
$out .= '<h3 class="profile-name">'. $name .'</h3>';
|
168 |
+
|
169 |
+
if($meta != '')
|
170 |
+
$out .= '<div class="profile-meta">'. $meta .'</div>';
|
171 |
+
|
172 |
+
$out .= '<div class="profile-desc">'. do_shortcode($content) .'</div>';
|
173 |
+
|
174 |
+
if($facebook || $twitter || $email ) {
|
175 |
+
$out .= '<div class="profile-footer">';
|
176 |
+
if($facebook != '')
|
177 |
+
$out .= '<a href="'. $facebook .'"><i class="icon-facebook-sign"></i> Facebook</a>';
|
178 |
+
|
179 |
+
if($twitter != '')
|
180 |
+
$out .= '<a href="'. $twitter .'"><i class="icon-twitter"></i> Twitter</a>';
|
181 |
+
|
182 |
+
if($email != '' && is_email($email) )
|
183 |
+
$out .= '<a href="mailto:'. $email .'"><i class="icon-envelope-alt"></i> Email</a>';
|
184 |
+
$out .= '</div>';
|
185 |
+
}
|
186 |
+
$out .= '</div>';
|
187 |
+
|
188 |
+
return $out;
|
189 |
+
}
|
shared/inbound-shortcodes/shortcodes/quick-forms.php
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Inbound Forms Shortcode Options
|
4 |
+
* Forms code found in /shared/classes/form.class.php
|
5 |
+
*/
|
6 |
+
|
7 |
+
$shortcodes_config['quick-forms'] = array(
|
8 |
+
'no_preview' => false,
|
9 |
+
'options' => array(
|
10 |
+
'insert_default' => array(
|
11 |
+
'name' => __('Insert Saved Form', INBOUND_LABEL),
|
12 |
+
'desc' => __('Insert a Saved Form', INBOUND_LABEL),
|
13 |
+
'type' => 'select',
|
14 |
+
'options' => $form_names,
|
15 |
+
'std' => 'none',
|
16 |
+
'class' => 'main-form-settings',
|
17 |
+
),
|
18 |
+
'helper-block-one' => array(
|
19 |
+
'name' => __('Name Name Name', INBOUND_LABEL),
|
20 |
+
'desc' => __('<span class="switch-to-form-builder button">Build a New Form</span>', INBOUND_LABEL),
|
21 |
+
'type' => 'helper-block',
|
22 |
+
'std' => '',
|
23 |
+
'class' => 'helper-div',
|
24 |
+
),
|
25 |
+
'form_name' => array(
|
26 |
+
'name' => __('Form Name<span class="small-required-text">*</span>', INBOUND_LABEL),
|
27 |
+
'desc' => __('This is not shown to visitors', INBOUND_LABEL),
|
28 |
+
'type' => 'text',
|
29 |
+
'placeholder' => "Example: XYZ Whitepaper Download",
|
30 |
+
'std' => '',
|
31 |
+
'class' => 'hidden-form-settings',
|
32 |
+
),
|
33 |
+
),
|
34 |
+
'shortcode' => '[inbound_forms id="{{insert_default}}" name="{{form_name}}"]',
|
35 |
+
'popup_title' => __('Quick Insert Inbound Form Shortcode', INBOUND_LABEL)
|
36 |
+
);
|
shared/inbound-shortcodes/shortcodes/social.php
ADDED
@@ -0,0 +1,99 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Social Links Shortcode
|
4 |
+
* ---------------------------------------------------------------------------
|
5 |
+
* @author : Rifki A.G
|
6 |
+
* @copyright : Copyright (c) 2013, FreshThemes
|
7 |
+
* http://www.freshthemes.net
|
8 |
+
* http://www.rifki.net
|
9 |
+
* --------------------------------------------------------------------------- */
|
10 |
+
|
11 |
+
/* Shortcode generator config
|
12 |
+
* ----------------------------------------------------- */
|
13 |
+
$shortcodes_config['social_links'] = array(
|
14 |
+
'no_preview' => true,
|
15 |
+
'options' => array(
|
16 |
+
'facebook' => array(
|
17 |
+
'name' => __('Facebook', INBOUND_LABEL),
|
18 |
+
'desc' => __('Enter your facebook profile URL', INBOUND_LABEL),
|
19 |
+
'type' => 'text',
|
20 |
+
'std' => ''
|
21 |
+
),
|
22 |
+
'twitter' => array(
|
23 |
+
'name' => __('Twitter', INBOUND_LABEL),
|
24 |
+
'desc' => __('Enter your twitter profile URL', INBOUND_LABEL),
|
25 |
+
'type' => 'text',
|
26 |
+
'std' => ''
|
27 |
+
),
|
28 |
+
'google_plus' => array(
|
29 |
+
'name' => __('Google+', INBOUND_LABEL),
|
30 |
+
'desc' => __('Enter your google plus profile URL', INBOUND_LABEL),
|
31 |
+
'type' => 'text',
|
32 |
+
'std' => ''
|
33 |
+
),
|
34 |
+
'linkedin' => array(
|
35 |
+
'name' => __('Linkedin', INBOUND_LABEL),
|
36 |
+
'desc' => __('Enter your linkedin profile URL', INBOUND_LABEL),
|
37 |
+
'type' => 'text',
|
38 |
+
'std' => ''
|
39 |
+
),
|
40 |
+
'github' => array(
|
41 |
+
'name' => __('Github', INBOUND_LABEL),
|
42 |
+
'desc' => __('Enter your github profile URL', INBOUND_LABEL),
|
43 |
+
'type' => 'text',
|
44 |
+
'std' => ''
|
45 |
+
),
|
46 |
+
'pinterest' => array(
|
47 |
+
'name' => __('Instagram', INBOUND_LABEL),
|
48 |
+
'desc' => __('Enter your instagram profile URL', INBOUND_LABEL),
|
49 |
+
'type' => 'text',
|
50 |
+
'std' => ''
|
51 |
+
),
|
52 |
+
'pinterest' => array(
|
53 |
+
'name' => __('Pinterest', INBOUND_LABEL),
|
54 |
+
'desc' => __('Enter your pinterest profile URL', INBOUND_LABEL),
|
55 |
+
'type' => 'text',
|
56 |
+
'std' => ''
|
57 |
+
),
|
58 |
+
'rss' => array(
|
59 |
+
'name' => __('RSS', INBOUND_LABEL),
|
60 |
+
'desc' => __('Enter your RSS feeds URL', INBOUND_LABEL),
|
61 |
+
'type' => 'text',
|
62 |
+
'std' => ''
|
63 |
+
)
|
64 |
+
),
|
65 |
+
'shortcode' => '[social_links facebook="{{facebook}}" twitter="{{twitter}}" google_plus="{{google_plus}}" linkedin="{{linkedin}}" github="{{github}}" pinterest="{{pinterest}}" /]',
|
66 |
+
'popup_title' => __('Insert Social Link Shortcode', INBOUND_LABEL)
|
67 |
+
);
|
68 |
+
|
69 |
+
/* Add shortcode
|
70 |
+
* ----------------------------------------------------- */
|
71 |
+
add_shortcode('social_links', 'inbound_shortcode_social_links');
|
72 |
+
|
73 |
+
function inbound_shortcode_social_links( $atts, $content = null ) {
|
74 |
+
extract(shortcode_atts(array(
|
75 |
+
'facebook' => '',
|
76 |
+
'twitter' => '',
|
77 |
+
'google_plus' => '',
|
78 |
+
'linkedin' => '',
|
79 |
+
'github' => '',
|
80 |
+
'instagram' => '',
|
81 |
+
'pinterest' => '',
|
82 |
+
'rss' => ''
|
83 |
+
), $atts));
|
84 |
+
|
85 |
+
$out = '';
|
86 |
+
|
87 |
+
$out .= '<ul class="social-links">';
|
88 |
+
if( $facebook ) { $out .= '<li class="facebook"><a href="'. $facebook .'"><i class="icon-facebook icon-large"></i></a></li>'; }
|
89 |
+
if( $twitter ) { $out .= '<li class="twitter"><a href="'. $twitter .'"><i class="icon-twitter icon-large"></i></a></li>'; }
|
90 |
+
if( $google_plus ) { $out .= '<li class="google-plus"><a href="'. $google_plus .'"><i class="icon-google-plus icon-large"></i></a></li>'; }
|
91 |
+
if( $linkedin ) { $out .= '<li class="linkedin"><a href="'. $linkedin .'"><i class="icon-linkedin icon-large"></i></a></li>'; }
|
92 |
+
if( $github ) { $out .= '<li class="github"><a href="'. $github .'"><i class="icon-github icon-large"></i></a></li>'; }
|
93 |
+
if( $instagram ) { $out .= '<li class="instagram"><a href="'. $instagram .'"><i class="icon-camera-retro icon-large"></i></a></li>'; }
|
94 |
+
if( $pinterest ) { $out .= '<li class="pinterest"><a href="'. $pinterest .'"><i class="icon-pinterest icon-large"></i></a></li>'; }
|
95 |
+
if( $rss ) { $out .= '<li class="rss"><a href="'. $rss .'"><i class="icon-rss icon-large"></i></a></li>'; }
|
96 |
+
$out .= '</ul>';
|
97 |
+
|
98 |
+
return $out;
|
99 |
+
}
|
shared/inbound-shortcodes/shortcodes/tabs.php
ADDED
@@ -0,0 +1,136 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Tabs Shortcode
|
4 |
+
* ---------------------------------------------------------------------------
|
5 |
+
* @author : Rifki A.G
|
6 |
+
* @copyright : Copyright (c) 2013, FreshThemes
|
7 |
+
* http://www.freshthemes.net
|
8 |
+
* http://www.rifki.net
|
9 |
+
* --------------------------------------------------------------------------- */
|
10 |
+
|
11 |
+
/* Shortcode generator config
|
12 |
+
* ----------------------------------------------------- */
|
13 |
+
$shortcodes_config['tabs'] = array(
|
14 |
+
'no_preview' => true,
|
15 |
+
'options' => array(
|
16 |
+
'heading' => array(
|
17 |
+
'name' => __('Heading', INBOUND_LABEL),
|
18 |
+
'desc' => __('Enter the heading text', INBOUND_LABEL),
|
19 |
+
'type' => 'text',
|
20 |
+
'std' => ''
|
21 |
+
)
|
22 |
+
),
|
23 |
+
'child' => array(
|
24 |
+
'options' => array(
|
25 |
+
'title' => array(
|
26 |
+
'name' => __('Tab Title', INBOUND_LABEL),
|
27 |
+
'desc' => __('Enter the tab title.', INBOUND_LABEL),
|
28 |
+
'type' => 'text',
|
29 |
+
'std' => ''
|
30 |
+
),
|
31 |
+
'icon' => array(
|
32 |
+
'name' => __('Icon', INBOUND_LABEL),
|
33 |
+
'desc' => __('Select an icon.', INBOUND_LABEL),
|
34 |
+
'type' => 'select',
|
35 |
+
'options' => $fontawesome,
|
36 |
+
'std' => ''
|
37 |
+
),
|
38 |
+
'content' => array(
|
39 |
+
'name' => __('Tab Content', INBOUND_LABEL),
|
40 |
+
'desc' => __('Put the content here.', INBOUND_LABEL),
|
41 |
+
'type' => 'textarea',
|
42 |
+
'std' => ''
|
43 |
+
)
|
44 |
+
),
|
45 |
+
'shortcode' => '[tab title="{{title}}" icon="{{icon}}"]{{content}}[/tab]',
|
46 |
+
'clone' => __('Add More Tab', INBOUND_LABEL )
|
47 |
+
),
|
48 |
+
'shortcode' => '[tabs]{{child}}[/tabs]',
|
49 |
+
'popup_title' => __('Insert Tabs Shortcode', INBOUND_LABEL)
|
50 |
+
);
|
51 |
+
|
52 |
+
/* Page builder module config
|
53 |
+
* ----------------------------------------------------- */
|
54 |
+
$freshbuilder_modules['tabs'] = array(
|
55 |
+
'name' => __('Tabs', INBOUND_LABEL),
|
56 |
+
'size' => 'one_half',
|
57 |
+
'options' => array(
|
58 |
+
'heading' => array(
|
59 |
+
'name' => __('Heading', INBOUND_LABEL),
|
60 |
+
'desc' => __('Enter the heading text', INBOUND_LABEL),
|
61 |
+
'type' => 'text',
|
62 |
+
'std' => '',
|
63 |
+
'class' => '',
|
64 |
+
'is_content' => 0
|
65 |
+
)
|
66 |
+
),
|
67 |
+
'child' => array(
|
68 |
+
'title' => array(
|
69 |
+
'name' => __('Title', INBOUND_LABEL),
|
70 |
+
'desc' => __('Enter the tab title', INBOUND_LABEL),
|
71 |
+
'type' => 'text',
|
72 |
+
'std' => '',
|
73 |
+
'class' => '',
|
74 |
+
'is_content' => 0
|
75 |
+
),
|
76 |
+
'icon' => array(
|
77 |
+
'name' => __('Icon', INBOUND_LABEL),
|
78 |
+
'desc' => __('Select an icon.', INBOUND_LABEL),
|
79 |
+
'type' => 'select',
|
80 |
+
'options' => $fontawesome,
|
81 |
+
'std' => 'none',
|
82 |
+
'class' => '',
|
83 |
+
'is_content' => 0
|
84 |
+
),
|
85 |
+
'content' => array(
|
86 |
+
'name' => __('Content', INBOUND_LABEL),
|
87 |
+
'desc' => __('Enter the tab content', INBOUND_LABEL),
|
88 |
+
'type' => 'textarea',
|
89 |
+
'class' => '',
|
90 |
+
'is_content' => 1
|
91 |
+
)
|
92 |
+
),
|
93 |
+
'child_code' => 'tab'
|
94 |
+
);
|
95 |
+
|
96 |
+
/* Add shortcode
|
97 |
+
* ----------------------------------------------------- */
|
98 |
+
add_shortcode('tabs', 'inbound_shortcode_tabs');
|
99 |
+
|
100 |
+
function inbound_shortcode_tabs( $atts, $content = null ) {
|
101 |
+
extract(shortcode_atts(array(
|
102 |
+
'heading' => ''
|
103 |
+
), $atts));
|
104 |
+
|
105 |
+
$out = '';
|
106 |
+
|
107 |
+
if (!preg_match_all("/(.?)\[(tab)\b(.*?)(?:(\/))?\](?:(.+?)\[\/tab\])?(.?)/s", $content, $matches)) {
|
108 |
+
return do_shortcode($content);
|
109 |
+
}
|
110 |
+
else {
|
111 |
+
|
112 |
+
for($i = 0; $i < count($matches[0]); $i++) {
|
113 |
+
$matches[3][$i] = shortcode_parse_atts($matches[3][$i]);
|
114 |
+
}
|
115 |
+
|
116 |
+
if( $heading != '' ) $out .= '<div class="heading"><h3>'.$heading.'</h3><div class="sep"></div></div>';
|
117 |
+
$out .= '<div class="tabs-content">';
|
118 |
+
$out .= '<ul class="tabs-nav clearfix">';
|
119 |
+
for($i = 0; $i < count($matches[0]); $i++) {
|
120 |
+
$icon = ($matches[3][$i]['icon'] != '') ? '<i class="tab-icon icon-'.$matches[3][$i]['icon'].'"></i>' : '';
|
121 |
+
|
122 |
+
|
123 |
+
$out .= '<li><a id="tab_'.$i.'_nav" title="'.$matches[3][$i]['title'].'" href="#tab_'.$i.'">'.$icon.'<span>'.$matches[3][$i]['title'].'<span></a></li>';
|
124 |
+
}
|
125 |
+
$out .= '</ul>';
|
126 |
+
|
127 |
+
$out .= '<div class="tabs">';
|
128 |
+
for($i = 0; $i < count($matches[0]); $i++) {
|
129 |
+
$out .= '<div id="tab_'.$i.'">' . do_shortcode(trim($matches[5][$i])) .'</div>';
|
130 |
+
}
|
131 |
+
$out .= '</div>';
|
132 |
+
$out .= '</div>';
|
133 |
+
|
134 |
+
return $out;
|
135 |
+
}
|
136 |
+
}
|
shared/inbound-shortcodes/shortcodes/teaser.php
ADDED
@@ -0,0 +1,260 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Teaser Shortcode
|
4 |
+
* ---------------------------------------------------------------------------
|
5 |
+
* @author : Rifki A.G
|
6 |
+
* @copyright : Copyright (c) 2013, FreshThemes
|
7 |
+
* http://www.freshthemes.net
|
8 |
+
* http://www.rifki.net
|
9 |
+
* --------------------------------------------------------------------------- */
|
10 |
+
|
11 |
+
/* Shortcode generator config
|
12 |
+
* ----------------------------------------------------- */
|
13 |
+
$shortcodes_config['teaser'] = array(
|
14 |
+
'no_preview' => true,
|
15 |
+
'options' => array(
|
16 |
+
'heading' => array(
|
17 |
+
'name' => __('Heading', INBOUND_LABEL),
|
18 |
+
'desc' => __('Enter the heading text', INBOUND_LABEL),
|
19 |
+
'type' => 'text',
|
20 |
+
'std' => ''
|
21 |
+
),
|
22 |
+
'style' => array(
|
23 |
+
'name' => __('Style', INBOUND_LABEL),
|
24 |
+
'desc' => __('Select the style.', INBOUND_LABEL),
|
25 |
+
'type' => 'select',
|
26 |
+
'options' => array(
|
27 |
+
'' => __('Default', INBOUND_LABEL),
|
28 |
+
'nested' => __('Nested', INBOUND_LABEL),
|
29 |
+
'centered' => __('Centered', INBOUND_LABEL)
|
30 |
+
),
|
31 |
+
'std' => ''
|
32 |
+
),
|
33 |
+
'column' => array(
|
34 |
+
'name' => __('Column', INBOUND_LABEL),
|
35 |
+
'desc' => __('Select the number of column.', INBOUND_LABEL),
|
36 |
+
'type' => 'select',
|
37 |
+
'options' => array(
|
38 |
+
'1' => __('1 Column', INBOUND_LABEL),
|
39 |
+
'2' => __('2 Columns', INBOUND_LABEL),
|
40 |
+
'3' => __('3 Columns', INBOUND_LABEL),
|
41 |
+
'4' => __('4 Columns', INBOUND_LABEL),
|
42 |
+
'5' => __('5 Columns', INBOUND_LABEL)
|
43 |
+
),
|
44 |
+
'std' => '3'
|
45 |
+
)
|
46 |
+
),
|
47 |
+
'child' => array(
|
48 |
+
'options' => array(
|
49 |
+
'title' => array(
|
50 |
+
'name' => __('Title', INBOUND_LABEL),
|
51 |
+
'desc' => __('Enter the title.', INBOUND_LABEL),
|
52 |
+
'type' => 'text',
|
53 |
+
'std' => ''
|
54 |
+
),
|
55 |
+
'subtitle' => array(
|
56 |
+
'name' => __('Sub Title', INBOUND_LABEL),
|
57 |
+
'desc' => __('Enter the sub title.', INBOUND_LABEL),
|
58 |
+
'type' => 'text',
|
59 |
+
'std' => ''
|
60 |
+
),
|
61 |
+
'icon' => array(
|
62 |
+
'name' => __('Icon', INBOUND_LABEL),
|
63 |
+
'desc' => __('Select an icon.', INBOUND_LABEL),
|
64 |
+
'type' => 'select',
|
65 |
+
'options' => $fontawesome,
|
66 |
+
'std' => ''
|
67 |
+
),
|
68 |
+
'image' => array(
|
69 |
+
'name' => __('Image URL', INBOUND_LABEL),
|
70 |
+
'desc' => __('Enter your image url, it will override the icon above', INBOUND_LABEL),
|
71 |
+
'type' => 'text',
|
72 |
+
'std' => '',
|
73 |
+
'class' => ''
|
74 |
+
),
|
75 |
+
'link' => array(
|
76 |
+
'name' => __('Link', INBOUND_LABEL),
|
77 |
+
'desc' => __('The title link destination URL.', INBOUND_LABEL),
|
78 |
+
'type' => 'text',
|
79 |
+
'std' => ''
|
80 |
+
),
|
81 |
+
'content' => array(
|
82 |
+
'name' => __('Teaser Content', INBOUND_LABEL),
|
83 |
+
'desc' => __('Enter the content.', INBOUND_LABEL),
|
84 |
+
'type' => 'textarea',
|
85 |
+
'std' => ''
|
86 |
+
)
|
87 |
+
),
|
88 |
+
'shortcode' => '[block title="{{title}}" subtitle="{{subtitle}}" icon="{{icon}}" link="{{link}}" ]{{content}}[/block]',
|
89 |
+
'clone' => __('Add More Block', INBOUND_LABEL )
|
90 |
+
),
|
91 |
+
'shortcode' => '[teaser heading="{{heading}}" style="{{style}}" column="{{column}}"]{{child}}[/teaser]',
|
92 |
+
'popup_title' => __('Insert Teaser Shortcode', INBOUND_LABEL)
|
93 |
+
);
|
94 |
+
|
95 |
+
/* Page builder module config
|
96 |
+
* ----------------------------------------------------- */
|
97 |
+
$freshbuilder_modules['teaser'] = array(
|
98 |
+
'name' => __('Teaser', INBOUND_LABEL),
|
99 |
+
'size' => 'one_full',
|
100 |
+
'options' => array(
|
101 |
+
'heading' => array(
|
102 |
+
'name' => __('Heading', INBOUND_LABEL),
|
103 |
+
'desc' => __('Enter the heading text.', INBOUND_LABEL),
|
104 |
+
'type' => 'text',
|
105 |
+
'std' => '',
|
106 |
+
'class' => '',
|
107 |
+
'is_content' => 0
|
108 |
+
),
|
109 |
+
'style' => array(
|
110 |
+
'name' => __('Style', INBOUND_LABEL),
|
111 |
+
'desc' => __('Select the style.', INBOUND_LABEL),
|
112 |
+
'type' => 'select',
|
113 |
+
'options' => array(
|
114 |
+
'' => __('Default', INBOUND_LABEL),
|
115 |
+
'nested' => __('Nested', INBOUND_LABEL),
|
116 |
+
'centered' => __('Centered', INBOUND_LABEL)
|
117 |
+
),
|
118 |
+
'std' => '',
|
119 |
+
'class' => '',
|
120 |
+
'is_content' => 0
|
121 |
+
),
|
122 |
+
'column' => array(
|
123 |
+
'name' => __('Column', INBOUND_LABEL),
|
124 |
+
'desc' => __('Select the column.', INBOUND_LABEL),
|
125 |
+
'type' => 'select',
|
126 |
+
'options' => array(
|
127 |
+
'1' => __('1 Column', INBOUND_LABEL),
|
128 |
+
'2' => __('2 Columns', INBOUND_LABEL),
|
129 |
+
'3' => __('3 Columns', INBOUND_LABEL),
|
130 |
+
'4' => __('4 Columns', INBOUND_LABEL),
|
131 |
+
'5' => __('5 Columns', INBOUND_LABEL)
|
132 |
+
),
|
133 |
+
'std' => '3',
|
134 |
+
'class' => '',
|
135 |
+
'is_content' => 0
|
136 |
+
)
|
137 |
+
),
|
138 |
+
'child' => array(
|
139 |
+
'icon' => array(
|
140 |
+
'name' => __('Icon', INBOUND_LABEL),
|
141 |
+
'desc' => __('Select an icon.', INBOUND_LABEL),
|
142 |
+
'type' => 'select',
|
143 |
+
'options' => $fontawesome,
|
144 |
+
'std' => 'none',
|
145 |
+
'class' => '',
|
146 |
+
'is_content' => 0
|
147 |
+
),
|
148 |
+
'image' => array(
|
149 |
+
'name' => __('Image URL', INBOUND_LABEL),
|
150 |
+
'desc' => __('Enter your image url, it will override the icon above', INBOUND_LABEL),
|
151 |
+
'type' => 'text',
|
152 |
+
'std' => '',
|
153 |
+
'class' => '',
|
154 |
+
'is_content' => 0
|
155 |
+
),
|
156 |
+
'title' => array(
|
157 |
+
'name' => __('Title', INBOUND_LABEL),
|
158 |
+
'desc' => __('Enter the heading text.', INBOUND_LABEL),
|
159 |
+
'type' => 'text',
|
160 |
+
'class' => '',
|
161 |
+
'is_content' => 0
|
162 |
+
),
|
163 |
+
'subtitle' => array(
|
164 |
+
'name' => __('Sub Title', INBOUND_LABEL),
|
165 |
+
'desc' => __('Enter the sub title.', INBOUND_LABEL),
|
166 |
+
'type' => 'text',
|
167 |
+
'class' => '',
|
168 |
+
'is_content' => 0
|
169 |
+
),
|
170 |
+
'link' => array(
|
171 |
+
'name' => __('Link', INBOUND_LABEL),
|
172 |
+
'desc' => __('The title link destination URL.', INBOUND_LABEL),
|
173 |
+
'type' => 'text',
|
174 |
+
'class' => '',
|
175 |
+
'is_content' => 0
|
176 |
+
),
|
177 |
+
'content' => array(
|
178 |
+
'name' => __('Content', INBOUND_LABEL),
|
179 |
+
'desc' => __('Enter the content.', INBOUND_LABEL),
|
180 |
+
'type' => 'textarea',
|
181 |
+
'std' => '',
|
182 |
+
'class' => '',
|
183 |
+
'is_content' => 1
|
184 |
+
)
|
185 |
+
),
|
186 |
+
'child_code' => 'block'
|
187 |
+
);
|
188 |
+
|
189 |
+
/* Add shortcode
|
190 |
+
* ----------------------------------------------------- */
|
191 |
+
add_shortcode('teaser', 'inbound_shortcode_teaser');
|
192 |
+
|
193 |
+
function inbound_shortcode_teaser( $atts, $content = null ) {
|
194 |
+
extract(shortcode_atts(array(
|
195 |
+
'heading' => '',
|
196 |
+
'style' => '',
|
197 |
+
'column' => '4'
|
198 |
+
), $atts));
|
199 |
+
|
200 |
+
$out = '';
|
201 |
+
|
202 |
+
$grid = ' grid full';
|
203 |
+
if ($column == '2') $grid = ' grid one-half';
|
204 |
+
if ($column == '3') $grid = ' grid one-third';
|
205 |
+
if ($column == '4') $grid = ' grid one-fourth';
|
206 |
+
if ($column == '5') $grid = ' grid one-fifth';
|
207 |
+
|
208 |
+
$style = ($style != '') ? ' '. $style : '';
|
209 |
+
|
210 |
+
if (!preg_match_all("/(.?)\[(block)\b(.*?)(?:(\/))?\](?:(.+?)\[\/block\])?(.?)/s", $content, $matches)) {
|
211 |
+
return do_shortcode($content);
|
212 |
+
}
|
213 |
+
else {
|
214 |
+
|
215 |
+
for($i = 0; $i < count($matches[0]); $i++) {
|
216 |
+
$matches[3][$i] = shortcode_parse_atts($matches[3][$i]);
|
217 |
+
}
|
218 |
+
|
219 |
+
$out .= '<div class="row">';
|
220 |
+
|
221 |
+
if ($heading != '') {
|
222 |
+
$out .= '<div class="grid full"><div class="heading"><h3>'.$heading.'</h3><div class="sep"></div></div></div>';
|
223 |
+
}
|
224 |
+
|
225 |
+
for($i = 0; $i < count($matches[0]); $i++) {
|
226 |
+
$title = ( $matches[3][$i]['link'] ) ? '<a class="reserve" href="'. $matches[3][$i]['link'] .'">'. $matches[3][$i]['title'] .'</a>' : $matches[3][$i]['title'];
|
227 |
+
|
228 |
+
$out .= '<aside class="teaser'. $grid . $style .'">';
|
229 |
+
|
230 |
+
if( $matches[3][$i]['image'] ) {
|
231 |
+
$out .= '<div class="teaser-image"><img src="'. $matches[3][$i]['image'] .'" alt="" /></div>';
|
232 |
+
}
|
233 |
+
elseif ( $matches[3][$i]['icon'] ) {
|
234 |
+
$out .= '<div class="teaser-icon"><i class="icon-'. $matches[3][$i]['icon'] .'"></i></div>';
|
235 |
+
}
|
236 |
+
|
237 |
+
$out .= '<header class="teaser-header">';
|
238 |
+
|
239 |
+
$out .= '<h3 class="teaser-title">'.$title.'</h3>';
|
240 |
+
|
241 |
+
if( $matches[3][$i]['subtitle'] ) {
|
242 |
+
$out .= '<div class="teaser-subtitle">'. $matches[3][$i]['subtitle'] .'</div>';
|
243 |
+
}
|
244 |
+
$out .= '</header>';
|
245 |
+
|
246 |
+
if( $matches[5][$i] ) {
|
247 |
+
$out .= '<div class="teaser-content">'.do_shortcode( trim($matches[5][$i]) ).'</div>';
|
248 |
+
}
|
249 |
+
$out .= '</aside>';
|
250 |
+
}
|
251 |
+
|
252 |
+
if( $i == $column - 1 ) {
|
253 |
+
$out .= '<div class="clear"></div>';
|
254 |
+
}
|
255 |
+
|
256 |
+
$out .= '</div>';
|
257 |
+
}
|
258 |
+
|
259 |
+
return $out;
|
260 |
+
}
|
shared/inbound-shortcodes/shortcodes/testimonial.php
ADDED
@@ -0,0 +1,184 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Testimonial Shortcode
|
4 |
+
* ---------------------------------------------------------------------------
|
5 |
+
* @author : Rifki A.G
|
6 |
+
* @copyright : Copyright (c) 2013, FreshThemes
|
7 |
+
* http://www.freshthemes.net
|
8 |
+
* http://www.rifki.net
|
9 |
+
* --------------------------------------------------------------------------- */
|
10 |
+
|
11 |
+
/* Shortcode generator config
|
12 |
+
* ----------------------------------------------------- */
|
13 |
+
$shortcodes_config['testimonial'] = array(
|
14 |
+
'no_preview' => true,
|
15 |
+
'options' => array(
|
16 |
+
'heading' => array(
|
17 |
+
'name' => __('Heading Text', INBOUND_LABEL),
|
18 |
+
'desc' => __('Enter the heading text.', INBOUND_LABEL),
|
19 |
+
'type' => 'text',
|
20 |
+
'std' => 'Testimonial'
|
21 |
+
),
|
22 |
+
'column' => array(
|
23 |
+
'name' => __('Column', INBOUND_LABEL),
|
24 |
+
'desc' => __('Select the number of column.', INBOUND_LABEL),
|
25 |
+
'type' => 'select',
|
26 |
+
'options' => array(
|
27 |
+
'1' => __('1 Column', INBOUND_LABEL),
|
28 |
+
'2' => __('2 Columns', INBOUND_LABEL),
|
29 |
+
'3' => __('3 Columns', INBOUND_LABEL),
|
30 |
+
'4' => __('4 Columns', INBOUND_LABEL),
|
31 |
+
'5' => __('5 Columns', INBOUND_LABEL)
|
32 |
+
),
|
33 |
+
'std' => '1'
|
34 |
+
)
|
35 |
+
),
|
36 |
+
'child' => array(
|
37 |
+
'options' => array(
|
38 |
+
'author' => array(
|
39 |
+
'name' => __('Testimony Author', INBOUND_LABEL),
|
40 |
+
'desc' => __('Enter the testimony author name.', INBOUND_LABEL),
|
41 |
+
'type' => 'text',
|
42 |
+
'std' => ''
|
43 |
+
),
|
44 |
+
'meta' => array(
|
45 |
+
'name' => __('Testimony Author Meta', INBOUND_LABEL),
|
46 |
+
'desc' => __('The author job, company or website name.', INBOUND_LABEL),
|
47 |
+
'type' => 'text',
|
48 |
+
'std' => ''
|
49 |
+
),
|
50 |
+
'content' => array(
|
51 |
+
'name' => __('Testimony Content', INBOUND_LABEL),
|
52 |
+
'desc' => __('Put the content here.', INBOUND_LABEL),
|
53 |
+
'type' => 'textarea',
|
54 |
+
'std' => ''
|
55 |
+
)
|
56 |
+
),
|
57 |
+
'shortcode' => '[testimony author="{{author}}" meta="{{meta}}"]{{content}}[/testimony]',
|
58 |
+
'clone' => __('Add More Testimony', INBOUND_LABEL )
|
59 |
+
),
|
60 |
+
'shortcode' => '[testimonial heading="{{heading}}" column="{{column}}"]{{child}}[/testimonial]',
|
61 |
+
'popup_title' => __('Insert Testimonial Shortcode', INBOUND_LABEL)
|
62 |
+
);
|
63 |
+
|
64 |
+
/* Page builder module config
|
65 |
+
* ----------------------------------------------------- */
|
66 |
+
$freshbuilder_modules['testimonial'] = array(
|
67 |
+
'name' => __('Testimonial', INBOUND_LABEL),
|
68 |
+
'size' => 'one_half',
|
69 |
+
'options' => array(
|
70 |
+
'heading' => array(
|
71 |
+
'name' => __('Heading', INBOUND_LABEL),
|
72 |
+
'desc' => __('Enter the heading text.', INBOUND_LABEL),
|
73 |
+
'type' => 'text',
|
74 |
+
'std' => 'Testimonial',
|
75 |
+
'class' => '',
|
76 |
+
'is_content' => 0
|
77 |
+
),
|
78 |
+
'column' => array(
|
79 |
+
'name' => __('Column', INBOUND_LABEL),
|
80 |
+
'desc' => __('Select the number of column.', INBOUND_LABEL),
|
81 |
+
'type' => 'select',
|
82 |
+
'options' => array(
|
83 |
+
'1' => __('1 Column', INBOUND_LABEL),
|
84 |
+
'2' => __('2 Columns', INBOUND_LABEL),
|
85 |
+
'3' => __('3 Columns', INBOUND_LABEL),
|
86 |
+
'4' => __('4 Columns', INBOUND_LABEL),
|
87 |
+
'5' => __('5 Columns', INBOUND_LABEL)
|
88 |
+
),
|
89 |
+
'std' => '3',
|
90 |
+
'class' => '',
|
91 |
+
'is_content' => 0
|
92 |
+
)
|
93 |
+
),
|
94 |
+
'child' => array(
|
95 |
+
'author' => array(
|
96 |
+
'name' => __('Testimony Author', INBOUND_LABEL),
|
97 |
+
'desc' => __('Enter the testimony author name.', INBOUND_LABEL),
|
98 |
+
'type' => 'text',
|
99 |
+
'std' => '',
|
100 |
+
'class' => '',
|
101 |
+
'is_content' => 0
|
102 |
+
),
|
103 |
+
'meta' => array(
|
104 |
+
'name' => __('Testimony Author Meta', INBOUND_LABEL),
|
105 |
+
'desc' => __('The author job, company or website name.', INBOUND_LABEL),
|
106 |
+
'type' => 'text',
|
107 |
+
'std' => '',
|
108 |
+
'class' => '',
|
109 |
+
'is_content' => 0
|
110 |
+
),
|
111 |
+
'content' => array(
|
112 |
+
'name' => __('Testimony Text', INBOUND_LABEL),
|
113 |
+
'desc' => __('Put the content here.', INBOUND_LABEL),
|
114 |
+
'type' => 'textarea',
|
115 |
+
'std' => '',
|
116 |
+
'class' => '',
|
117 |
+
'is_content' => 1
|
118 |
+
)
|
119 |
+
),
|
120 |
+
'child_code' => 'testimony'
|
121 |
+
);
|
122 |
+
|
123 |
+
/* Add shortcode
|
124 |
+
* ----------------------------------------------------- */
|
125 |
+
add_shortcode('testimonial', 'inbound_shortcode_testimonial');
|
126 |
+
|
127 |
+
function inbound_shortcode_testimonial( $atts, $content = null ) {
|
128 |
+
extract(shortcode_atts(array(
|
129 |
+
'heading' => __('Testimonial', INBOUND_LABEL),
|
130 |
+
'column' => 1,
|
131 |
+
), $atts));
|
132 |
+
|
133 |
+
$grid = ' grid full';
|
134 |
+
if ($column == '2') $grid = ' grid one-half';
|
135 |
+
if ($column == '3') $grid = ' grid one-third';
|
136 |
+
if ($column == '4') $grid = ' grid one-fourth';
|
137 |
+
if ($column == '5') $grid = ' grid one-fifth';
|
138 |
+
$out = '';
|
139 |
+
|
140 |
+
|
141 |
+
$out .= '<div class="testimonial row">';
|
142 |
+
if ($heading != '') {
|
143 |
+
$out .= '<div class="grid full"><div class="heading"><h3>'.$heading.'</h3><div class="sep"></div></div></div>';
|
144 |
+
}
|
145 |
+
|
146 |
+
if (!preg_match_all("/(.?)\[(testimony)\b(.*?)(?:(\/))?\](?:(.+?)\[\/testimony\])?(.?)/s", $content, $matches)) {
|
147 |
+
return do_shortcode($content);
|
148 |
+
}
|
149 |
+
else {
|
150 |
+
|
151 |
+
for($i = 0; $i < count($matches[0]); $i++) {
|
152 |
+
$matches[3][$i] = shortcode_parse_atts($matches[3][$i]);
|
153 |
+
}
|
154 |
+
|
155 |
+
for($i = 0; $i < count($matches[0]); $i++) {
|
156 |
+
$out .= '<div class="'.$grid.'">';
|
157 |
+
$out .= '<div class="fancy-quote">';
|
158 |
+
$out .= '<div class="quote-text">';
|
159 |
+
$out .= '<div class="triangle"></div>';
|
160 |
+
$out .= '<p>'.do_shortcode(trim($matches[5][$i])).'</p>';
|
161 |
+
$out .= '</div>';
|
162 |
+
|
163 |
+
$out .= '<div class="quote-author">';
|
164 |
+
if( $matches[3][$i]['author'] ) {
|
165 |
+
$out .= '<span class="quote-author-name">'.$matches[3][$i]['author'].'</span>';
|
166 |
+
}
|
167 |
+
|
168 |
+
if( $matches[3][$i]['meta'] ){
|
169 |
+
$out .= ' - <span class="quote-author-meta">'.$matches[3][$i]['meta'].'</span>';
|
170 |
+
}
|
171 |
+
$out .= '</div>';
|
172 |
+
$out .= '</div>';
|
173 |
+
$out .= '</div>';
|
174 |
+
|
175 |
+
if( $i == $column - 1 ) {
|
176 |
+
$out .= '<div class="clear"></div>';
|
177 |
+
}
|
178 |
+
}
|
179 |
+
}
|
180 |
+
|
181 |
+
$out .= '</div>';
|
182 |
+
|
183 |
+
return $out;
|
184 |
+
}
|
shared/inbound-shortcodes/shortcodes/video.php
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Video Shortcode
|
4 |
+
* ---------------------------------------------------------------------------
|
5 |
+
* @author : Rifki A.G
|
6 |
+
* @copyright : Copyright (c) 2013, FreshThemes
|
7 |
+
* http://www.freshthemes.net
|
8 |
+
* http://www.rifki.net
|
9 |
+
* --------------------------------------------------------------------------- */
|
10 |
+
|
11 |
+
/* Shortcode generator config
|
12 |
+
* ----------------------------------------------------- */
|
13 |
+
$shortcodes_config['video'] = array(
|
14 |
+
'no_preview' => true,
|
15 |
+
'options' => array(
|
16 |
+
'url' => array(
|
17 |
+
'name' => __('Video URL', INBOUND_LABEL),
|
18 |
+
'desc' => __('Paste the video URL here, click <a href="http://codex.wordpress.org/Embeds#Okay.2C_So_What_Sites_Can_I_Embed_From.3F" target="_blank">here</a> to see all available video hosts.', INBOUND_LABEL),
|
19 |
+
'type' => 'text',
|
20 |
+
'std' => ''
|
21 |
+
)
|
22 |
+
),
|
23 |
+
'shortcode' => '[video url="{{url}}" /]',
|
24 |
+
'popup_title' => __('Insert Video Shortcode', INBOUND_LABEL)
|
25 |
+
);
|
26 |
+
|
27 |
+
/* Add shortcode
|
28 |
+
* ----------------------------------------------------- */
|
29 |
+
add_shortcode('video', 'inbound_shortcode_video');
|
30 |
+
|
31 |
+
function inbound_shortcode_video( $atts, $content = null ) {
|
32 |
+
extract(shortcode_atts(array(
|
33 |
+
'url' => ''
|
34 |
+
), $atts));
|
35 |
+
|
36 |
+
return '<div class="video-container">'. wp_oembed_get( $url ) .'</div>';
|
37 |
+
}
|
shared/inboundnow/inboundnow.extension-licensing.php
ADDED
@@ -0,0 +1,278 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* License handler for InboundNow Packaged Extensions
|
4 |
+
*
|
5 |
+
* This class should simplify the process of adding license information
|
6 |
+
* to inboundnow multi-purposed extensions.
|
7 |
+
*
|
8 |
+
* @author Hudson Atwell
|
9 |
+
* @version 1.1
|
10 |
+
*/
|
11 |
+
|
12 |
+
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
13 |
+
|
14 |
+
if ( ! defined( 'INBOUNDNOW_STORE_URL' ) )
|
15 |
+
define('INBOUNDNOW_STORE_URL','http://www.inboundnow.com/');
|
16 |
+
|
17 |
+
if ( ! class_exists( 'INBOUNDNOW_EXTENSION_LICENSE' ) ) :
|
18 |
+
|
19 |
+
/**
|
20 |
+
* LP_EXTENSION_LICENSE Class
|
21 |
+
*/
|
22 |
+
class INBOUNDNOW_EXTENSION_LICENSE {
|
23 |
+
private $item_slug;
|
24 |
+
private $item_shortname;
|
25 |
+
private $version;
|
26 |
+
|
27 |
+
/**
|
28 |
+
* Class constructor
|
29 |
+
*
|
30 |
+
* @param string $_file
|
31 |
+
* @param string $_item_slug
|
32 |
+
* @param string $_version
|
33 |
+
* @param string $_author
|
34 |
+
* @param string $_optname
|
35 |
+
* @param string $_api_url
|
36 |
+
*/
|
37 |
+
function __construct( $_item_label, $_item_slug ) {
|
38 |
+
|
39 |
+
$this->item_label = $_item_label;
|
40 |
+
$this->item_slug = $_item_slug;
|
41 |
+
|
42 |
+
// Setup hooks
|
43 |
+
$this->hooks();
|
44 |
+
}
|
45 |
+
|
46 |
+
/**
|
47 |
+
* Setup hooks
|
48 |
+
*
|
49 |
+
* @access private
|
50 |
+
* @return void
|
51 |
+
*/
|
52 |
+
|
53 |
+
private function hooks() {
|
54 |
+
// Register settings
|
55 |
+
add_filter( 'lp_define_global_settings', array( $this, 'lp_settings' ), 1 );
|
56 |
+
add_filter( 'wp_cta_define_global_settings', array( $this, 'wp_cta_settings' ), 1 );
|
57 |
+
add_filter( 'wpleads_define_global_settings', array( $this, 'wpleads_settings' ), 1 );
|
58 |
+
|
59 |
+
}
|
60 |
+
|
61 |
+
/**
|
62 |
+
* Add license field to settings
|
63 |
+
*
|
64 |
+
* @access public
|
65 |
+
* @param array $settings
|
66 |
+
* @return array
|
67 |
+
*/
|
68 |
+
public function lp_settings( $lp_global_settings ) {
|
69 |
+
$lp_global_settings['lp-license-keys']['settings'][] = array(
|
70 |
+
|
71 |
+
'id' => $this->item_slug,
|
72 |
+
'slug' => $this->item_slug,
|
73 |
+
'label' => sprintf( __( '%1$s', 'lp' ), $this->item_label ),
|
74 |
+
'description' => 'Head to http://www.inboundnow.com/ to retrieve your license key for '.$this->item_label,
|
75 |
+
'type' => 'inboundnow-license-key',
|
76 |
+
'default' => '',
|
77 |
+
);
|
78 |
+
|
79 |
+
return $lp_global_settings;
|
80 |
+
}
|
81 |
+
|
82 |
+
/**
|
83 |
+
* Add license field to settings
|
84 |
+
*
|
85 |
+
* @access public
|
86 |
+
* @param array $settings
|
87 |
+
* @return array
|
88 |
+
*/
|
89 |
+
public function wp_cta_settings( $wp_cta_global_settings ) {
|
90 |
+
|
91 |
+
$wp_cta_global_settings['wp-cta-license-keys']['settings'][] = array(
|
92 |
+
|
93 |
+
'id' => $this->item_slug,
|
94 |
+
'slug' => $this->item_slug,
|
95 |
+
'label' => sprintf( __( '%1$s', 'lp' ), $this->item_label ),
|
96 |
+
'description' => 'Head to http://www.inboundnow.com/ to retrieve your license key for '. $this->item_label ,
|
97 |
+
'type' => 'inboundnow-license-key',
|
98 |
+
'default' => '',
|
99 |
+
);
|
100 |
+
|
101 |
+
return $wp_cta_global_settings;
|
102 |
+
}
|
103 |
+
|
104 |
+
/**
|
105 |
+
* Add license field to settings
|
106 |
+
*
|
107 |
+
* @access public
|
108 |
+
* @param array $settings
|
109 |
+
* @return array
|
110 |
+
*/
|
111 |
+
public function wpleads_settings( $wpleads_global_settings ) {
|
112 |
+
$wpleads_global_settings['wpleads-license-keys']['label'] = 'License Keys';
|
113 |
+
$wpleads_global_settings['wpleads-license-keys']['settings'][] = array(
|
114 |
+
|
115 |
+
'id' => $this->item_slug,
|
116 |
+
'slug' => $this->item_slug,
|
117 |
+
'label' => sprintf( __( '%1$s', 'lp' ), $this->item_label ),
|
118 |
+
'description' => 'Head to http://www.inboundnow.com/ to retrieve your license key for'. $this->item_label,
|
119 |
+
'type' => 'inboundnow-license-key',
|
120 |
+
'default' => '',
|
121 |
+
);
|
122 |
+
|
123 |
+
//print_r($lp_global_settings);exit;
|
124 |
+
return $wpleads_global_settings;
|
125 |
+
}
|
126 |
+
|
127 |
+
|
128 |
+
}
|
129 |
+
|
130 |
+
|
131 |
+
/**
|
132 |
+
* HOOKS : display license field in global settings area
|
133 |
+
*/
|
134 |
+
|
135 |
+
add_action('lp_render_global_settings','inboundnow_display_license_field');
|
136 |
+
add_action('wpleads_render_global_settings','inboundnow_display_license_field');
|
137 |
+
add_action('wp_cta_render_global_settings','inboundnow_display_license_field');
|
138 |
+
function inboundnow_display_license_field($field)
|
139 |
+
{
|
140 |
+
if ($field['type']=='inboundnow-license-key')
|
141 |
+
{
|
142 |
+
$field['id'] = "inboundnow-license-keys-".$field['slug'];
|
143 |
+
$field['value'] = get_option($field['id']);
|
144 |
+
|
145 |
+
switch ($_GET['post_type']){
|
146 |
+
|
147 |
+
case "landing-page":
|
148 |
+
$prefix = "lp_";
|
149 |
+
break;
|
150 |
+
case "wp-lead":
|
151 |
+
$prefix = "wpleads_";
|
152 |
+
break;
|
153 |
+
case "wp-call-to-action":
|
154 |
+
$prefix = "wp_cta_";
|
155 |
+
break;
|
156 |
+
|
157 |
+
}
|
158 |
+
//echo here;exit;
|
159 |
+
$license_status = inboundnow_check_license_status($field);
|
160 |
+
//echo $license_status;exit;
|
161 |
+
echo '<input type="hidden" name="inboundnow_license_status-'.$field['slug'].'" id="'.$field['id'].'" value="'.$license_status.'" size="30" />
|
162 |
+
<input type="text" name="'.$field['id'].'" id="'.$field['id'].'" value="'.$field['value'].'" size="30" />
|
163 |
+
<div class="'.$prefix.'tooltip tool_text" title="'.$field['description'].'"></div>';
|
164 |
+
|
165 |
+
if ($license_status=='valid')
|
166 |
+
{
|
167 |
+
echo '<div class="'.$prefix.'license_status_valid">Valid</div>';
|
168 |
+
}
|
169 |
+
else
|
170 |
+
{
|
171 |
+
echo '<div class="'.$prefix.'license_status_invalid">Invalid</div>';
|
172 |
+
}
|
173 |
+
}
|
174 |
+
}
|
175 |
+
|
176 |
+
|
177 |
+
/**
|
178 |
+
* HOOKS : display license field in global settings area
|
179 |
+
*/
|
180 |
+
|
181 |
+
add_action('lp_save_global_settings','inboundnow_save_license_field');
|
182 |
+
add_action('wpleads_save_global_settings','inboundnow_save_license_field');
|
183 |
+
add_action('wp_cta_save_global_settings','inboundnow_save_license_field');
|
184 |
+
function inboundnow_save_license_field($field)
|
185 |
+
{
|
186 |
+
if ($field['type']=='inboundnow-license-key')
|
187 |
+
{
|
188 |
+
//echo $field['id'].":".$_POST['main-landing-page-auto-format-forms']."<br>";
|
189 |
+
$field['id'] = "inboundnow-license-keys-".$field['slug'];
|
190 |
+
$field['old_value'] = get_option($field['id'] );
|
191 |
+
|
192 |
+
(isset($_POST[$field['id'] ]))? $field['new_value'] = $_POST[$field['id'] ] : $field['new_value'] = null;
|
193 |
+
|
194 |
+
if ((isset($field['new_value']) && $field['new_value'] !== $field['old_value'] ) || !isset($field['old_value']) )
|
195 |
+
{
|
196 |
+
//echo $field['id'];exit;
|
197 |
+
$bool = update_option($field['id'],$field['new_value']);
|
198 |
+
|
199 |
+
|
200 |
+
// data to send in our API request
|
201 |
+
$api_params = array(
|
202 |
+
'edd_action'=> 'activate_license',
|
203 |
+
'license' => $field['new_value'],
|
204 |
+
'item_name' => $field['slug'] // the name of our product in EDD
|
205 |
+
);
|
206 |
+
//print_r($api_params);
|
207 |
+
|
208 |
+
// Call the custom API.
|
209 |
+
$response = wp_remote_get( add_query_arg( $api_params, INBOUNDNOW_STORE_URL ), array( 'timeout' => 30, 'sslverify' => false ) );
|
210 |
+
|
211 |
+
|
212 |
+
// make sure the response came back okay
|
213 |
+
if ( is_wp_error( $response ) )
|
214 |
+
//echo $response['body'];exit;
|
215 |
+
|
216 |
+
// decode the license data
|
217 |
+
$license_data = json_decode( wp_remote_retrieve_body( $response ) );
|
218 |
+
|
219 |
+
|
220 |
+
// $license_data->license will be either "active" or "inactive"
|
221 |
+
$license_status = update_option('inboundnow-license_status-'.$field['slug'], $license_data->license);
|
222 |
+
|
223 |
+
}
|
224 |
+
elseif ('' == $field['new_value'] )
|
225 |
+
{
|
226 |
+
$bool = update_option($field['id'], '' );
|
227 |
+
}
|
228 |
+
}
|
229 |
+
}
|
230 |
+
|
231 |
+
|
232 |
+
/**
|
233 |
+
* FUNCTIONS : checks the status of the license key
|
234 |
+
*/
|
235 |
+
|
236 |
+
function inboundnow_check_license_status($field)
|
237 |
+
{
|
238 |
+
//print_r($field);exit;
|
239 |
+
$date = date("Y-m-d");
|
240 |
+
$cache_date = get_option($field['id']."-expire");
|
241 |
+
$license_status = get_option($field['id']);
|
242 |
+
|
243 |
+
if (isset($cache_date)&&($date<$cache_date)&&$license_status=='valid')
|
244 |
+
{
|
245 |
+
return "valid";
|
246 |
+
}
|
247 |
+
|
248 |
+
$license_key = get_option($field['id']);
|
249 |
+
|
250 |
+
$api_params = array(
|
251 |
+
'edd_action' => 'check_license',
|
252 |
+
'license' => $license_key,
|
253 |
+
'item_name' => urlencode( $field['slug'] )
|
254 |
+
);
|
255 |
+
//print_r($api_params);
|
256 |
+
|
257 |
+
// Call the custom API.
|
258 |
+
$response = wp_remote_get( add_query_arg( $api_params, INBOUNDNOW_STORE_URL ), array( 'timeout' => 15, 'sslverify' => false ) );
|
259 |
+
//print_r($response);
|
260 |
+
|
261 |
+
if ( is_wp_error( $response ) )
|
262 |
+
return false;
|
263 |
+
|
264 |
+
$license_data = json_decode( wp_remote_retrieve_body( $response ) );
|
265 |
+
//echo $license_data;exit;
|
266 |
+
|
267 |
+
if( $license_data->license == 'valid' ) {
|
268 |
+
$newDate = date('Y-m-d', strtotime("+15 days"));
|
269 |
+
update_option($field['id']."-expire", $newDate);
|
270 |
+
return 'valid';
|
271 |
+
// this license is still valid
|
272 |
+
} else {
|
273 |
+
return 'invalid';
|
274 |
+
}
|
275 |
+
}
|
276 |
+
|
277 |
+
|
278 |
+
endif; // end class_exists check
|
shared/inboundnow/inboundnow.extension-updating.php
ADDED
@@ -0,0 +1,164 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
if ( ! class_exists( 'INBOUNDNOW_EXTENSION_UPDATER' ) ) :
|
4 |
+
|
5 |
+
// uncomment this line for testing
|
6 |
+
//set_site_transient( 'update_plugins', null );
|
7 |
+
|
8 |
+
/**
|
9 |
+
* Allows plugins to use their own update API.
|
10 |
+
*
|
11 |
+
* @author Pippin Williamson, Hudson Atwell
|
12 |
+
* @version 1.0
|
13 |
+
*/
|
14 |
+
class INBOUNDNOW_EXTENSION_UPDATER {
|
15 |
+
private $api_url = '';
|
16 |
+
private $api_data = array();
|
17 |
+
private $name = '';
|
18 |
+
private $slug = '';
|
19 |
+
|
20 |
+
/**
|
21 |
+
* Class constructor.
|
22 |
+
*
|
23 |
+
* @uses plugin_basename()
|
24 |
+
* @uses hook()
|
25 |
+
*
|
26 |
+
* @param string $_api_url The URL pointing to the custom API endpoint.
|
27 |
+
* @param string $_plugin_file Path to the plugin file.
|
28 |
+
* @param array $_api_data Optional data to send with API calls.
|
29 |
+
* @return void
|
30 |
+
*/
|
31 |
+
function __construct( $_api_url, $_plugin_file, $_api_data = null ) {
|
32 |
+
$this->api_url = trailingslashit( $_api_url );
|
33 |
+
$this->api_data = urlencode_deep( $_api_data );
|
34 |
+
$this->name = plugin_basename( $_plugin_file );
|
35 |
+
$this->slug = basename( $_plugin_file, '.php');
|
36 |
+
$this->version = $_api_data['version'];
|
37 |
+
|
38 |
+
// Set up hooks.
|
39 |
+
$this->hook();
|
40 |
+
}
|
41 |
+
|
42 |
+
/**
|
43 |
+
* Set up Wordpress filters to hook into WP's update process.
|
44 |
+
*
|
45 |
+
* @uses add_filter()
|
46 |
+
*
|
47 |
+
* @return void
|
48 |
+
*/
|
49 |
+
private function hook() {
|
50 |
+
//update_option('_site_transient_update_plugins',''); //uncomment to force upload update check
|
51 |
+
add_filter( 'pre_set_site_transient_update_plugins', array( $this, 'pre_set_site_transient_update_plugins_filter' ) );
|
52 |
+
add_filter( 'plugins_api', array( $this, 'plugins_api_filter' ), 10, 3);
|
53 |
+
//echo 1; exit;
|
54 |
+
}
|
55 |
+
|
56 |
+
/**
|
57 |
+
* Check for Updates at the defined API endpoint and modify the update array.
|
58 |
+
*
|
59 |
+
* This function dives into the update api just when Wordpress creates its update array,
|
60 |
+
* then adds a custom API call and injects the custom plugin data retrieved from the API.
|
61 |
+
* It is reassembled from parts of the native Wordpress plugin update code.
|
62 |
+
* See wp-includes/update.php line 121 for the original wp_update_plugins() function.
|
63 |
+
*
|
64 |
+
* @uses api_request()
|
65 |
+
*
|
66 |
+
* @param array $_transient_data Update array build by Wordpress.
|
67 |
+
* @return array Modified update array with custom plugin data.
|
68 |
+
*/
|
69 |
+
|
70 |
+
function pre_set_site_transient_update_plugins_filter( $_transient_data ) {
|
71 |
+
|
72 |
+
//var_dump($_transient_data);
|
73 |
+
if( empty( $_transient_data ) ) return $_transient_data;
|
74 |
+
|
75 |
+
$to_send = array( 'slug' => $this->slug );
|
76 |
+
|
77 |
+
$api_response = $this->api_request( 'plugin_latest_version', $to_send );
|
78 |
+
|
79 |
+
/*** Debug assistance ***
|
80 |
+
echo $this->name;
|
81 |
+
echo "\r\n<br>\r\n";
|
82 |
+
echo $this->version;
|
83 |
+
print_r($api_response);
|
84 |
+
echo "\r\n<hr>\r\n";
|
85 |
+
*/
|
86 |
+
|
87 |
+
if( false !== $api_response && is_object( $api_response ) ) {
|
88 |
+
if( version_compare( $this->version, $api_response->new_version, '<' ) )
|
89 |
+
//echo $this->name;exit;
|
90 |
+
$_transient_data->response[$this->name] = $api_response;
|
91 |
+
}
|
92 |
+
|
93 |
+
//echo "<hr>";
|
94 |
+
//echo var_dump($_transient_data);
|
95 |
+
//exit;
|
96 |
+
|
97 |
+
return $_transient_data;
|
98 |
+
}
|
99 |
+
|
100 |
+
|
101 |
+
/**
|
102 |
+
* Updates information on the "View version x.x details" page with custom data.
|
103 |
+
*
|
104 |
+
* @uses api_request()
|
105 |
+
*
|
106 |
+
* @param mixed $_data
|
107 |
+
* @param string $_action
|
108 |
+
* @param object $_args
|
109 |
+
* @return object $_data
|
110 |
+
*/
|
111 |
+
function plugins_api_filter( $_data, $_action = '', $_args = null ) {
|
112 |
+
//mail('Hudson.atwell@gmail.com','Landing Pages Test - JSON', "hello".$to_send['slug']);
|
113 |
+
if ( ( $_action != 'plugin_information' ) || !isset( $_args->slug ) || ( $_args->slug != $this->slug ) ) return $_data;
|
114 |
+
|
115 |
+
$to_send = array( 'slug' => $this->slug );
|
116 |
+
//print_r($to_send);exit;
|
117 |
+
$api_response = $this->api_request( 'plugin_information', $to_send );
|
118 |
+
|
119 |
+
if ( false !== $api_response ) $_data = $api_response;
|
120 |
+
|
121 |
+
return $_data;
|
122 |
+
}
|
123 |
+
|
124 |
+
/**
|
125 |
+
* Calls the API and, if successfull, returns the object delivered by the API.
|
126 |
+
*
|
127 |
+
* @uses get_bloginfo()
|
128 |
+
* @uses wp_remote_post()
|
129 |
+
* @uses is_wp_error()
|
130 |
+
*
|
131 |
+
* @param string $_action The requested action.
|
132 |
+
* @param array $_data Parameters for the API action.
|
133 |
+
* @return false||object
|
134 |
+
*/
|
135 |
+
private function api_request( $_action, $_data ) {
|
136 |
+
//echo 1;exit;
|
137 |
+
global $wp_version;
|
138 |
+
|
139 |
+
$data = array_merge( $this->api_data, $_data );
|
140 |
+
if( $data['slug'] != $this->slug )
|
141 |
+
return;
|
142 |
+
|
143 |
+
$api_params = array(
|
144 |
+
'edd_action' => 'get_version',
|
145 |
+
'license' => $data['license'],
|
146 |
+
'name' => $data['item_name'],
|
147 |
+
'slug' => $this->slug,
|
148 |
+
//'author' => $data['author'],
|
149 |
+
'nature' => 'extension',
|
150 |
+
);
|
151 |
+
$request = wp_remote_post( $this->api_url, array( 'timeout' => 15, 'sslverify' => false, 'body' => $api_params ) );
|
152 |
+
|
153 |
+
if ( !is_wp_error( $request ) ):
|
154 |
+
$request = json_decode( wp_remote_retrieve_body( $request ) );
|
155 |
+
if( $request )
|
156 |
+
$request->sections = maybe_unserialize( $request->sections );
|
157 |
+
return $request;
|
158 |
+
else:
|
159 |
+
return false;
|
160 |
+
endif;
|
161 |
+
}
|
162 |
+
}
|
163 |
+
|
164 |
+
endif;
|
shared/post-type.lead.php
DELETED
@@ -1,39 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
if (!post_type_exists('wp-lead'))
|
3 |
-
{
|
4 |
-
add_action('init', 'lp_wpleads_register');
|
5 |
-
function lp_wpleads_register() {
|
6 |
-
//echo $slug;exit;
|
7 |
-
$labels = array(
|
8 |
-
'name' => _x('Leads', 'post type general name'),
|
9 |
-
'singular_name' => _x('Lead', 'post type singular name'),
|
10 |
-
'add_new' => _x('Add New', 'Lead'),
|
11 |
-
'add_new_item' => __('Add New Lead'),
|
12 |
-
'edit_item' => __('Edit Lead'),
|
13 |
-
'new_item' => __('New Leads'),
|
14 |
-
'view_item' => __('View Leads'),
|
15 |
-
'search_items' => __('Search Leads'),
|
16 |
-
'not_found' => __('Nothing found'),
|
17 |
-
'not_found_in_trash' => __('Nothing found in Trash'),
|
18 |
-
'parent_item_colon' => ''
|
19 |
-
);
|
20 |
-
|
21 |
-
$args = array(
|
22 |
-
'labels' => $labels,
|
23 |
-
'public' => false,
|
24 |
-
'publicly_queryable' => false,
|
25 |
-
//'show_ui' => true,
|
26 |
-
'show_ui' => false,
|
27 |
-
'query_var' => true,
|
28 |
-
//'menu_icon' => WPL_URL . '/images/leads.png',
|
29 |
-
'capability_type' => 'post',
|
30 |
-
'hierarchical' => false,
|
31 |
-
'menu_position' => null,
|
32 |
-
'supports' => array('custom-fields','thumbnail')
|
33 |
-
);
|
34 |
-
|
35 |
-
register_post_type( 'wp-lead' , $args );
|
36 |
-
//flush_rewrite_rules( false );
|
37 |
-
|
38 |
-
}
|
39 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
shared/tracking/js/store.lead.ajax.js
ADDED
@@ -0,0 +1,512 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
jQuery(document).ready(function($) {
|
2 |
+
/* Core Inbound Form Tracking Script */
|
3 |
+
|
4 |
+
jQuery("body").on('submit', '.wpl-track-me', function (e) {
|
5 |
+
|
6 |
+
this_form = jQuery(this);
|
7 |
+
|
8 |
+
element_type = 'FORM';
|
9 |
+
|
10 |
+
// process form only once
|
11 |
+
processed = this_form.hasClass('lead_processed');
|
12 |
+
if (processed === true) {
|
13 |
+
return;
|
14 |
+
}
|
15 |
+
|
16 |
+
form_id = jQuery(this).attr('id');
|
17 |
+
form_class = jQuery(this).attr('class');
|
18 |
+
|
19 |
+
jQuery('button, input[type="button"]').css('cursor', 'wait');
|
20 |
+
jQuery('input').css('cursor', 'wait');
|
21 |
+
jQuery('body').css('cursor', 'wait');
|
22 |
+
|
23 |
+
|
24 |
+
e.preventDefault(); // halt normal form
|
25 |
+
|
26 |
+
var email = "";
|
27 |
+
var firstname = "";
|
28 |
+
var lastname = "";
|
29 |
+
var phone = "";
|
30 |
+
var company = "";
|
31 |
+
var address = "";
|
32 |
+
|
33 |
+
var tracking_obj = JSON.stringify(trackObj);
|
34 |
+
var page_view_count = countProperties(pageviewObj);
|
35 |
+
//console.log("view count" + page_view_count);
|
36 |
+
|
37 |
+
if (!email)
|
38 |
+
{
|
39 |
+
|
40 |
+
jQuery(this_form).find('input[type=text],input[type=email]').each(function() {
|
41 |
+
if (this.value)
|
42 |
+
{
|
43 |
+
if (jQuery(this).attr("name").toLowerCase().indexOf('email')>-1&&!email) {
|
44 |
+
email = this.value;
|
45 |
+
|
46 |
+
}
|
47 |
+
else if(jQuery(this).attr("name").toLowerCase().indexOf('e-mail')>-1&&!email) {
|
48 |
+
email = this.value;
|
49 |
+
}
|
50 |
+
else if(jQuery(this).attr("name").toLowerCase().indexOf('name')>-1&&!firstname) {
|
51 |
+
firstname = this.value;
|
52 |
+
}
|
53 |
+
else if (jQuery(this).attr("name").toLowerCase().indexOf('last')>-1) {
|
54 |
+
lastname = this.value;
|
55 |
+
}
|
56 |
+
else if (jQuery(this).attr("name").toLowerCase().indexOf('phone')>-1) {
|
57 |
+
phone = this.value;
|
58 |
+
}
|
59 |
+
else if (jQuery(this).attr("name").toLowerCase().indexOf('company')>-1) {
|
60 |
+
company = this.value;
|
61 |
+
}
|
62 |
+
else if (jQuery(this).attr("name").toLowerCase().indexOf('address')>-1) {
|
63 |
+
address = this.value;
|
64 |
+
}
|
65 |
+
}
|
66 |
+
});
|
67 |
+
}
|
68 |
+
|
69 |
+
if (!email)
|
70 |
+
{
|
71 |
+
jQuery(this_form).find('input[type=text],input[type=email]').each(function() {
|
72 |
+
if (jQuery(this).closest('li').children('label').length>0)
|
73 |
+
{
|
74 |
+
if (jQuery(this).closest('li').children('label').html().toLowerCase().indexOf('email')>-1&&!email)
|
75 |
+
{
|
76 |
+
email = this.value;
|
77 |
+
}
|
78 |
+
else if (jQuery(this).closest('li').children('label').html().toLowerCase().indexOf('e-mail')>-1&&!email) {
|
79 |
+
email = this.value;
|
80 |
+
}
|
81 |
+
else if (jQuery(this).closest('li').children('label').html().toLowerCase().indexOf('name')>-1&&!firstname) {
|
82 |
+
firstname = this.value;
|
83 |
+
}
|
84 |
+
else if (jQuery(this).closest('li').children('label').html().toLowerCase().indexOf('last')>-1) {
|
85 |
+
lastname = this.value;
|
86 |
+
}
|
87 |
+
else if (jQuery(this).closest('li').children('label').html().toLowerCase().indexOf('phone')>-1) {
|
88 |
+
phone = this.value;
|
89 |
+
}
|
90 |
+
else if (jQuery(this).closest('li').children('label').html().toLowerCase().indexOf('company')>-1) {
|
91 |
+
company = this.value;
|
92 |
+
}
|
93 |
+
else if (jQuery(this).closest('li').children('label').html().toLowerCase().indexOf('address')>-1) {
|
94 |
+
address = this.value;
|
95 |
+
}
|
96 |
+
}
|
97 |
+
|
98 |
+
});
|
99 |
+
}
|
100 |
+
|
101 |
+
if (!email)
|
102 |
+
{
|
103 |
+
jQuery(this_form).find('input[type=text],input[type=email]').each(function() {
|
104 |
+
if (jQuery(this).closest('div').children('label').length>0)
|
105 |
+
{
|
106 |
+
if (jQuery(this).closest('div').children('label').html().toLowerCase().indexOf('email')>-1&&!email)
|
107 |
+
{
|
108 |
+
email = this.value;
|
109 |
+
}
|
110 |
+
else if (jQuery(this).closest('div').children('label').html().toLowerCase().indexOf('e-mail')>-1&&!email) {
|
111 |
+
email = this.value;
|
112 |
+
}
|
113 |
+
else if (jQuery(this).closest('div').children('label').html().toLowerCase().indexOf('name')>-1&&!firstname) {
|
114 |
+
firstname = this.value;
|
115 |
+
}
|
116 |
+
else if (jQuery(this).closest('div').children('label').html().toLowerCase().indexOf('last')>-1) {
|
117 |
+
lastname = this.value;
|
118 |
+
}
|
119 |
+
else if (jQuery(this).closest('div').children('label').html().toLowerCase().indexOf('phone')>-1) {
|
120 |
+
phone = this.value;
|
121 |
+
}
|
122 |
+
else if (jQuery(this).closest('div').children('label').html().toLowerCase().indexOf('company')>-1) {
|
123 |
+
company = this.value;
|
124 |
+
}
|
125 |
+
else if (jQuery(this).closest('div').children('label').html().toLowerCase().indexOf('address')>-1) {
|
126 |
+
address = this.value;
|
127 |
+
}
|
128 |
+
}
|
129 |
+
});
|
130 |
+
}
|
131 |
+
|
132 |
+
|
133 |
+
if (!lastname&&firstname)
|
134 |
+
{
|
135 |
+
var parts = firstname.split(" ");
|
136 |
+
firstname = parts[0];
|
137 |
+
lastname = parts[1];
|
138 |
+
}
|
139 |
+
|
140 |
+
var form_inputs = jQuery('.wpl-track-me').find('input[type=text],textarea,select');
|
141 |
+
var post_values = {};
|
142 |
+
form_inputs.each(function() {
|
143 |
+
post_values[this.name] = jQuery(this).val();
|
144 |
+
});
|
145 |
+
var post_values_json = JSON.stringify(post_values);
|
146 |
+
|
147 |
+
var wp_lead_uid = jQuery.cookie("wp_lead_uid");
|
148 |
+
var page_views = JSON.stringify(pageviewObj);
|
149 |
+
var page_id = inbound_ajax.post_id;
|
150 |
+
if (typeof (landing_path_info) != "undefined" && landing_path_info != null && landing_path_info != "") {
|
151 |
+
var lp_variation = landing_path_info.variation;
|
152 |
+
} else if (typeof (cta_path_info) != "undefined" && cta_path_info != null && cta_path_info != "") {
|
153 |
+
var lp_variation = cta_path_info.variation;
|
154 |
+
} else {
|
155 |
+
var lp_variation = null;
|
156 |
+
}
|
157 |
+
|
158 |
+
jQuery.cookie("wp_lead_email", email, { path: '/', expires: 365 });
|
159 |
+
|
160 |
+
|
161 |
+
|
162 |
+
/* Timeout Fallback
|
163 |
+
setTimeout(function() {
|
164 |
+
console.log('more than 10 seconds has passed. Release form')
|
165 |
+
release_form_sub();
|
166 |
+
}, 10000);
|
167 |
+
*/
|
168 |
+
jQuery.ajax({
|
169 |
+
type: 'POST',
|
170 |
+
url: inbound_ajax.admin_url,
|
171 |
+
timeout: 10000,
|
172 |
+
data: {
|
173 |
+
element_type : element_type,
|
174 |
+
action: 'inbound_store_lead',
|
175 |
+
emailTo: email,
|
176 |
+
first_name: firstname,
|
177 |
+
last_name: lastname,
|
178 |
+
phone: phone,
|
179 |
+
address: address,
|
180 |
+
company_name: company,
|
181 |
+
wp_lead_uid: wp_lead_uid,
|
182 |
+
page_view_count: page_view_count,
|
183 |
+
page_views: page_views,
|
184 |
+
post_type: inbound_ajax.post_type,
|
185 |
+
lp_variation: lp_variation,
|
186 |
+
json: tracking_obj, // replace with page_view_obj
|
187 |
+
raw_post_values_json : post_values_json,
|
188 |
+
lp_id: page_id
|
189 |
+
/* Replace with jquery hook
|
190 |
+
do_action('wpl-lead-collection-add-ajax-data');
|
191 |
+
*/
|
192 |
+
},
|
193 |
+
success: function(user_id){
|
194 |
+
jQuery(this_form).trigger("inbound_form_complete"); // Trigger custom hook
|
195 |
+
jQuery.cookie("wp_lead_id", user_id, { path: '/', expires: 365 });
|
196 |
+
jQuery.totalStorage('wp_lead_id', user_id);
|
197 |
+
this_form.addClass('lead_processed');
|
198 |
+
|
199 |
+
|
200 |
+
// Unbind form
|
201 |
+
this_form.unbind('click');
|
202 |
+
this_form.submit();
|
203 |
+
|
204 |
+
jQuery('button, input[type="button"]').css('cursor', 'default');
|
205 |
+
jQuery('input').css('cursor', 'default');
|
206 |
+
jQuery('body').css('cursor', 'default');
|
207 |
+
|
208 |
+
|
209 |
+
jQuery.totalStorage.deleteItem('page_views'); // remove pageviews
|
210 |
+
jQuery.totalStorage.deleteItem('tracking_events'); // remove events
|
211 |
+
//jQuery.totalStorage.deleteItem('cta_clicks'); // remove cta
|
212 |
+
},
|
213 |
+
error: function(MLHttpRequest, textStatus, errorThrown){
|
214 |
+
//alert(MLHttpRequest+' '+errorThrown+' '+textStatus); // debug
|
215 |
+
|
216 |
+
// Create fallback localstorage object
|
217 |
+
var conversionObj = new Array();
|
218 |
+
conversionObj.push({
|
219 |
+
action: 'inbound_store_lead',
|
220 |
+
emailTo: email,
|
221 |
+
first_name: firstname,
|
222 |
+
last_name: lastname,
|
223 |
+
wp_lead_uid: wp_lead_uid,
|
224 |
+
page_view_count: page_view_count,
|
225 |
+
page_views: page_views,
|
226 |
+
post_type: inbound_ajax.post_type,
|
227 |
+
lp_variation: lp_variation,
|
228 |
+
json: tracking_obj,
|
229 |
+
// type: 'form-completion',
|
230 |
+
raw_post_values_json : post_values_json,
|
231 |
+
lp_id: page_id
|
232 |
+
});
|
233 |
+
|
234 |
+
jQuery.totalStorage('failed_conversion', conversionObj); // store failed data
|
235 |
+
jQuery.cookie("failed_conversion", true, { path: '/', expires: 365 });
|
236 |
+
|
237 |
+
// If fail, cookie form data and ajax submit on next page load
|
238 |
+
console.log('ajax fail');
|
239 |
+
release_form_sub( this_form , element_type );
|
240 |
+
|
241 |
+
}
|
242 |
+
});
|
243 |
+
|
244 |
+
});
|
245 |
+
|
246 |
+
jQuery("body").on('click', '.wpl-track-me-link', function (e) {
|
247 |
+
|
248 |
+
this_form = jQuery(this);
|
249 |
+
|
250 |
+
var element_type='A';
|
251 |
+
var a_href = jQuery(this).attr("href");
|
252 |
+
|
253 |
+
// process form only once
|
254 |
+
processed = this_form.hasClass('lead_processed');
|
255 |
+
if (processed === true) {
|
256 |
+
return;
|
257 |
+
}
|
258 |
+
|
259 |
+
form_id = jQuery(this).attr('id');
|
260 |
+
form_class = jQuery(this).attr('class');
|
261 |
+
|
262 |
+
jQuery(this).css('cursor', 'wait');
|
263 |
+
jQuery('body').css('cursor', 'wait');
|
264 |
+
|
265 |
+
|
266 |
+
e.preventDefault(); // halt normal form
|
267 |
+
|
268 |
+
var tracking_obj = JSON.stringify(trackObj);
|
269 |
+
var page_view_count = countProperties(pageviewObj);
|
270 |
+
//console.log("view count" + page_view_count);
|
271 |
+
|
272 |
+
var wp_lead_uid = jQuery.cookie("wp_lead_uid");
|
273 |
+
var page_views = JSON.stringify(pageviewObj);
|
274 |
+
|
275 |
+
var page_id = inbound_ajax.post_id;
|
276 |
+
if (typeof (landing_path_info) != "undefined" && landing_path_info != null && landing_path_info != "") {
|
277 |
+
var lp_variation = landing_path_info.variation;
|
278 |
+
} else if (typeof (cta_path_info) != "undefined" && cta_path_info != null && cta_path_info != "") {
|
279 |
+
var lp_variation = cta_path_info.variation;
|
280 |
+
} else {
|
281 |
+
var lp_variation = null;
|
282 |
+
}
|
283 |
+
|
284 |
+
/* Timeout Fallback
|
285 |
+
setTimeout(function() {
|
286 |
+
console.log('more than 10 seconds has passed. Release form')
|
287 |
+
release_form_sub();
|
288 |
+
}, 10000);
|
289 |
+
*/
|
290 |
+
jQuery.ajax({
|
291 |
+
type: 'POST',
|
292 |
+
url: inbound_ajax.admin_url,
|
293 |
+
timeout: 10000,
|
294 |
+
data: {
|
295 |
+
action: 'inbound_store_lead',
|
296 |
+
element_type : 'A',
|
297 |
+
wp_lead_uid: wp_lead_uid,
|
298 |
+
page_view_count: page_view_count,
|
299 |
+
page_views: page_views,
|
300 |
+
post_type: inbound_ajax.post_type,
|
301 |
+
lp_variation: lp_variation,
|
302 |
+
json: tracking_obj, // replace with page_view_obj
|
303 |
+
lp_id: page_id
|
304 |
+
/* Replace with jquery hook
|
305 |
+
do_action('wpl-lead-collection-add-ajax-data');
|
306 |
+
*/
|
307 |
+
},
|
308 |
+
success: function(user_id){
|
309 |
+
jQuery(this_form).trigger("inbound_form_complete"); // Trigger custom hook
|
310 |
+
jQuery.cookie("wp_lead_id", user_id, { path: '/', expires: 365 });
|
311 |
+
jQuery.totalStorage('wp_lead_id', user_id);
|
312 |
+
this_form.addClass('lead_processed');
|
313 |
+
|
314 |
+
this_form.unbind('click');
|
315 |
+
|
316 |
+
if (a_href)
|
317 |
+
{
|
318 |
+
window.location = a_href;
|
319 |
+
}
|
320 |
+
else
|
321 |
+
{
|
322 |
+
location.reload();
|
323 |
+
}
|
324 |
+
|
325 |
+
|
326 |
+
jQuery.totalStorage.deleteItem('page_views'); // remove pageviews
|
327 |
+
jQuery.totalStorage.deleteItem('tracking_events'); // remove events
|
328 |
+
//jQuery.totalStorage.deleteItem('cta_clicks'); // remove cta
|
329 |
+
},
|
330 |
+
error: function(MLHttpRequest, textStatus, errorThrown){
|
331 |
+
//alert(MLHttpRequest+' '+errorThrown+' '+textStatus); // debug
|
332 |
+
|
333 |
+
// Create fallback localstorage object
|
334 |
+
var conversionObj = new Array();
|
335 |
+
conversionObj.push({
|
336 |
+
action: 'inbound_store_lead',
|
337 |
+
emailTo: email,
|
338 |
+
first_name: firstname,
|
339 |
+
last_name: lastname,
|
340 |
+
wp_lead_uid: wp_lead_uid,
|
341 |
+
page_view_count: page_view_count,
|
342 |
+
page_views: page_views,
|
343 |
+
post_type: inbound_ajax.post_type,
|
344 |
+
lp_variation: lp_variation,
|
345 |
+
json: tracking_obj,
|
346 |
+
// type: 'form-completion',
|
347 |
+
raw_post_values_json : post_values_json,
|
348 |
+
lp_id: page_id
|
349 |
+
});
|
350 |
+
|
351 |
+
jQuery.totalStorage('failed_conversion', conversionObj); // store failed data
|
352 |
+
jQuery.cookie("failed_conversion", true, { path: '/', expires: 365 });
|
353 |
+
|
354 |
+
// If fail, cookie form data and ajax submit on next page load
|
355 |
+
console.log('ajax fail');
|
356 |
+
release_form_sub( this_form , element_type );
|
357 |
+
|
358 |
+
}
|
359 |
+
});
|
360 |
+
|
361 |
+
|
362 |
+
|
363 |
+
});
|
364 |
+
|
365 |
+
|
366 |
+
// Fallback for form ajax fails
|
367 |
+
var failed_conversion = jQuery.cookie("failed_conversion");
|
368 |
+
var fallback_obj = jQuery.totalStorage('failed_conversion');
|
369 |
+
|
370 |
+
if (typeof (failed_conversion) != "undefined" && failed_conversion == 'true' ) {
|
371 |
+
if (typeof fallback_obj =='object' && fallback_obj)
|
372 |
+
{
|
373 |
+
//console.log('fallback ran');
|
374 |
+
jQuery.ajax({
|
375 |
+
type: 'POST',
|
376 |
+
url: inbound_ajax.admin_url,
|
377 |
+
data: {
|
378 |
+
action: fallback_obj[0].action,
|
379 |
+
emailTo: fallback_obj[0].emailTo,
|
380 |
+
first_name: fallback_obj[0].first_name,
|
381 |
+
last_name: fallback_obj[0].last_name,
|
382 |
+
wp_lead_uid: fallback_obj[0].wp_lead_uid,
|
383 |
+
page_view_count: fallback_obj[0].page_view_count,
|
384 |
+
page_views: fallback_obj[0].page_views,
|
385 |
+
post_type: fallback_obj[0].post_type,
|
386 |
+
lp_variation: fallback_obj[0].lp_variation,
|
387 |
+
json: fallback_obj[0].json, // replace with page_view_obj
|
388 |
+
// type: 'form-completion',
|
389 |
+
raw_post_values_json : fallback_obj[0].raw_post_values_json,
|
390 |
+
lp_id: fallback_obj[0].lp_id
|
391 |
+
/* Replace with jquery hook
|
392 |
+
do_action('wpl-lead-collection-add-ajax-data');
|
393 |
+
*/
|
394 |
+
},
|
395 |
+
success: function(user_id){
|
396 |
+
//console.log('Fallback fired');
|
397 |
+
jQuery.removeCookie("failed_conversion"); // remove failed cookie
|
398 |
+
jQuery.totalStorage.deleteItem('failed_conversion'); // remove failed data
|
399 |
+
},
|
400 |
+
error: function(MLHttpRequest, textStatus, errorThrown){
|
401 |
+
//alert(MLHttpRequest+' '+errorThrown+' '+textStatus);
|
402 |
+
//die();
|
403 |
+
}
|
404 |
+
|
405 |
+
});
|
406 |
+
}
|
407 |
+
}
|
408 |
+
|
409 |
+
});
|
410 |
+
|
411 |
+
function release_form_sub(this_form , element_type){
|
412 |
+
jQuery('button, input[type="button"]').css('cursor', 'default');
|
413 |
+
jQuery('input').css('cursor', 'default');
|
414 |
+
jQuery('body').css('cursor', 'default');
|
415 |
+
|
416 |
+
if (element_type=='FORM')
|
417 |
+
{
|
418 |
+
this_form.unbind('submit');
|
419 |
+
this_form.submit();
|
420 |
+
}
|
421 |
+
|
422 |
+
if (element_type=='A')
|
423 |
+
{
|
424 |
+
this_form.unbind('wpl-track-me');
|
425 |
+
|
426 |
+
if (a_href)
|
427 |
+
{
|
428 |
+
window.location = a_href;
|
429 |
+
}
|
430 |
+
else
|
431 |
+
{
|
432 |
+
location.reload();
|
433 |
+
}
|
434 |
+
}
|
435 |
+
}
|
436 |
+
|
437 |
+
function inbound_find_form_fields(element, field_name, regex) {
|
438 |
+
//console.log(element);
|
439 |
+
//console.log(field_name);
|
440 |
+
var return_val = "";
|
441 |
+
var name = element.attr("name");
|
442 |
+
var id = element.attr("id");
|
443 |
+
var form_value = element.val();
|
444 |
+
var nearest_li = element.closest('li').children('label');
|
445 |
+
var nearest_div = element.closest('div').children('label');
|
446 |
+
var newregex = new RegExp(regex, 'gi');
|
447 |
+
//console.log(newregex);
|
448 |
+
|
449 |
+
// Check name attributes for common names
|
450 |
+
if (typeof (name) != "undefined" && name != null && name != "" && return_val === "") {
|
451 |
+
|
452 |
+
var match = newregex.test(name); // regex to find matching name
|
453 |
+
//console.log(match + name);
|
454 |
+
if (match == true) {
|
455 |
+
return form_value + " Regex 'name' Match: " + name;
|
456 |
+
var return_val = form_value;
|
457 |
+
}
|
458 |
+
if (name.toLowerCase().indexOf(field_name)>-1) {
|
459 |
+
return form_value + " indexof Match: " + name;
|
460 |
+
var return_val = form_value;
|
461 |
+
}
|
462 |
+
|
463 |
+
}
|
464 |
+
|
465 |
+
// Check nearest li element for common names
|
466 |
+
if (typeof (nearest_li) != "undefined" && nearest_li != null && nearest_li != "" && return_val === "") {
|
467 |
+
var the_label_text = nearest_li.html();
|
468 |
+
var match = newregex.test(the_label_text); // regex to find matching label
|
469 |
+
|
470 |
+
if (match == true){
|
471 |
+
return the_label_text + " Regex Label Match" + name;
|
472 |
+
var return_val = form_value;
|
473 |
+
}
|
474 |
+
|
475 |
+
}
|
476 |
+
|
477 |
+
// Check nearest div element for common names
|
478 |
+
if (typeof (nearest_div) != "undefined" && nearest_div != null && nearest_div != "" && return_val === "") {
|
479 |
+
var the_div_text = nearest_div.html();
|
480 |
+
var match = newregex.test(the_div_text); // regex to find matching label
|
481 |
+
|
482 |
+
if (match == true){
|
483 |
+
return the_div_text + " Regex Div Match" + name;
|
484 |
+
var return_val = form_value;
|
485 |
+
}
|
486 |
+
|
487 |
+
}
|
488 |
+
|
489 |
+
if(return_val === "") {
|
490 |
+
//return "Not Found:" + name + "Looking for:" + field_name;
|
491 |
+
return;
|
492 |
+
}
|
493 |
+
|
494 |
+
}
|
495 |
+
|
496 |
+
// Regex to match form field values
|
497 |
+
/* Runs the above function and grabs form values
|
498 |
+
setTimeout(function() {
|
499 |
+
jQuery(".wpl-track-me").find('input[type=text],input[type=email]').each(function() {
|
500 |
+
var this_input = jQuery(this);
|
501 |
+
|
502 |
+
var email_field = inbound_find_form_fields(this_input, 'email', 'email|e-mail');
|
503 |
+
var first_name_field = inbound_find_form_fields(this_input, 'first', 'first name|first-name|first_name');
|
504 |
+
var last_name_field = inbound_find_form_fields(this_input, 'last', 'Last name|last-name|last_name');
|
505 |
+
|
506 |
+
console.log(email_field);
|
507 |
+
console.log(first_name_field);
|
508 |
+
console.log(last_name_field);
|
509 |
+
});
|
510 |
+
}, 400);
|
511 |
+
*/
|
512 |
+
// end function to parse form fields
|
shared/tracking/store.lead.php
CHANGED
@@ -4,39 +4,47 @@
|
|
4 |
*
|
5 |
* - Handles lead creation and storage
|
6 |
*/
|
|
|
|
|
|
|
7 |
add_action('wp_ajax_inbound_store_lead', 'inbound_store_lead');
|
8 |
add_action('wp_ajax_nopriv_inbound_store_lead', 'inbound_store_lead');
|
9 |
|
10 |
-
if (!function_exists('inbound_store_lead')) {
|
11 |
function inbound_store_lead()
|
12 |
{
|
13 |
global $user_ID, $wpdb;
|
|
|
|
|
|
|
|
|
|
|
14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
// check for set email
|
16 |
-
if (isset( $_POST['emailTo'])
|
17 |
{
|
18 |
-
// Grab form values
|
19 |
-
$title = $_POST['emailTo'];
|
20 |
-
$content = $_POST['first_name'];
|
21 |
-
$wp_lead_uid = $_POST['wp_lead_uid'];
|
22 |
-
$raw_post_values_json = $_POST['raw_post_values_json'];
|
23 |
-
|
24 |
-
$time = current_time( 'timestamp', 0 ); // Current wordpress time from settings
|
25 |
-
$wordpress_date_time = date("Y-m-d G:i:s T", $time);
|
26 |
-
|
27 |
-
(isset( $_POST['first_name'] )) ? $first_name = $_POST['first_name'] : $first_name = "";
|
28 |
-
(isset( $_POST['last_name'] )) ? $last_name = $_POST['last_name'] : $last_name = "";
|
29 |
-
(isset( $_SERVER['REMOTE_ADDR'] )) ? $ip_address = $_SERVER['REMOTE_ADDR'] : $ip_address = "undefined";
|
30 |
-
(isset( $_POST['nature'] )) ? $nature = $_POST['nature'] : $nature = 0; // Whats this for?
|
31 |
-
(isset( $_POST['wp_lead_uid'] )) ? $wp_lead_uid = $_POST['wp_lead_uid'] : $wp_lead_uid = "null";
|
32 |
-
(isset( $_POST['lp_id'] )) ? $lp_id = $_POST['lp_id'] : $lp_id = 0;
|
33 |
-
(isset( $_POST['lp_v'] )) ? $lp_variation = $_POST['lp_v'] : $lp_variation = 0;
|
34 |
-
(isset( $_POST['page_views'] )) ? $page_views = $_POST['page_views'] : $page_views = false;
|
35 |
-
|
36 |
-
do_action('inbound_store_lead_pre'); // Global lead storage action hook
|
37 |
-
//do_action('lp_store_lead_pre'); // Landing Page specific storage hook (remove)
|
38 |
-
//do_action('wpl_store_lead_pre'); // Leads specific storage hook (remove)
|
39 |
-
|
40 |
$query = $wpdb->prepare(
|
41 |
'SELECT ID FROM ' . $wpdb->posts . '
|
42 |
WHERE post_title = %s
|
@@ -49,42 +57,48 @@ function inbound_store_lead()
|
|
49 |
|
50 |
if ( $wpdb->num_rows ) {
|
51 |
/* Update Existing Lead */
|
52 |
-
$
|
53 |
-
$meta = get_post_meta( $
|
54 |
$meta++;
|
55 |
|
56 |
-
if ($lp_id)
|
57 |
{
|
58 |
-
$conversion_data = get_post_meta( $
|
59 |
$conversion_data = json_decode($conversion_data,true);
|
60 |
-
$conversion_data[$meta]['id'] = $lp_id;
|
61 |
-
$conversion_data[$meta]['variation'] = $lp_variation;
|
62 |
-
$conversion_data[$meta]['datetime'] = $wordpress_date_time;
|
63 |
-
$conversion_data = json_encode($conversion_data);
|
64 |
}
|
65 |
|
66 |
-
update_post_meta( $
|
67 |
-
update_post_meta( $
|
68 |
|
69 |
-
if (!empty($user_ID))
|
70 |
-
update_post_meta( $
|
71 |
-
if (!empty($first_name))
|
72 |
-
update_post_meta( $
|
73 |
-
if (!empty($last_name))
|
74 |
-
update_post_meta( $
|
75 |
-
if (!empty($
|
76 |
-
update_post_meta( $
|
|
|
|
|
|
|
|
|
|
|
|
|
77 |
|
78 |
-
update_post_meta( $
|
79 |
-
update_post_meta( $
|
80 |
-
update_post_meta( $
|
81 |
|
82 |
-
do_action('wpleads_after_conversion_lead_update',$
|
83 |
|
84 |
} else {
|
85 |
/* Create New Lead */
|
86 |
$post = array(
|
87 |
-
'post_title' => $
|
88 |
//'post_content' => $json,
|
89 |
'post_status' => 'publish',
|
90 |
'post_type' => 'wp-lead',
|
@@ -93,58 +107,72 @@ function inbound_store_lead()
|
|
93 |
|
94 |
//$post = add_filter('lp_leads_post_vars',$post);
|
95 |
|
96 |
-
if ($lp_id)
|
97 |
{
|
98 |
-
$conversion_data[1]['id'] = $lp_id;
|
99 |
-
$conversion_data[1]['variation'] = $lp_variation;
|
100 |
-
$conversion_data[1]['datetime'] = $wordpress_date_time;
|
101 |
$conversion_data[1]['first_time'] = 1;
|
102 |
-
$conversion_data = json_encode($conversion_data);
|
103 |
}
|
104 |
|
105 |
|
106 |
-
$
|
107 |
-
update_post_meta( $
|
108 |
-
update_post_meta( $
|
109 |
-
update_post_meta( $
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
117 |
|
118 |
-
$
|
119 |
|
|
|
120 |
|
121 |
-
(isset($geo_array['geoplugin_areaCode'])) ? update_post_meta( $post_ID, 'wpleads_areaCode', $geo_array['geoplugin_areaCode'] ) : null;
|
122 |
-
(isset($geo_array['geoplugin_city'])) ? update_post_meta( $post_ID, 'wpleads_city', $geo_array['geoplugin_city'] ) : null;
|
123 |
-
(isset($geo_array['geoplugin_regionName'])) ? update_post_meta( $post_ID, 'wpleads_region_name', $geo_array['geoplugin_regionName'] ) : null;
|
124 |
-
(isset($geo_array['geoplugin_regionCode'])) ? update_post_meta( $post_ID, 'wpleads_region_code', $geo_array['geoplugin_regionCode'] ) : null;
|
125 |
-
(isset($geo_array['geoplugin_countryName'])) ? update_post_meta( $post_ID, 'wpleads_country_name', $geo_array['geoplugin_countryName'] ) : null;
|
126 |
-
(isset($geo_array['geoplugin_countryCode'])) ? update_post_meta( $post_ID, 'wpleads_country_code', $geo_array['geoplugin_countryCode'] ) : null;
|
127 |
-
(isset($geo_array['geoplugin_latitude'])) ? update_post_meta( $post_ID, 'wpleads_latitude', $geo_array['geoplugin_latitude'] ) : null;
|
128 |
-
(isset($geo_array['geoplugin_longitude'])) ? update_post_meta( $post_ID, 'wpleads_longitude', $geo_array['geoplugin_longitude'] ) : null;
|
129 |
-
(isset($geo_array['geoplugin_currencyCode'])) ? update_post_meta( $post_ID, 'wpleads_currency_code', $geo_array['geoplugin_currencyCode'] ) : null;
|
130 |
-
(isset($geo_array['geoplugin_currencySymbol_UTF8'])) ? update_post_meta( $post_ID, 'wpleads_currency_symbol', $geo_array['geoplugin_currencySymbol_UTF8'] ) : null;
|
131 |
|
132 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
133 |
|
134 |
}
|
135 |
-
setcookie('wp_lead_id' , $post_ID, time() + (20 * 365 * 24 * 60 * 60),'/');
|
136 |
-
$data['lp_id'] = $lp_id;
|
137 |
-
$data['lead_id'] = $post_ID;
|
138 |
-
$data['first_name'] = $first_name;
|
139 |
-
$data['last_name'] = $last_name;
|
140 |
-
$data['email'] = $title;
|
141 |
-
$data['wp_lead_uid'] = $wp_lead_uid;
|
142 |
-
$data['raw_post_values_json'] = $raw_post_values_json;
|
143 |
|
144 |
-
|
|
|
|
|
|
|
|
|
|
|
145 |
|
146 |
-
echo $
|
147 |
die();
|
148 |
}
|
|
|
|
|
|
|
|
|
149 |
}
|
150 |
}
|
4 |
*
|
5 |
* - Handles lead creation and storage
|
6 |
*/
|
7 |
+
|
8 |
+
if (!function_exists('inbound_store_lead')) {
|
9 |
+
|
10 |
add_action('wp_ajax_inbound_store_lead', 'inbound_store_lead');
|
11 |
add_action('wp_ajax_nopriv_inbound_store_lead', 'inbound_store_lead');
|
12 |
|
|
|
13 |
function inbound_store_lead()
|
14 |
{
|
15 |
global $user_ID, $wpdb;
|
16 |
+
|
17 |
+
// Grab form values
|
18 |
+
$data['element_type'] = $_POST['element_type'];
|
19 |
+
$data['wp_lead_uid'] = $_POST['wp_lead_uid'];
|
20 |
+
$data['raw_post_values_json'] = $_POST['raw_post_values_json'];
|
21 |
|
22 |
+
$time = current_time( 'timestamp', 0 ); // Current wordpress time from settings
|
23 |
+
$data['user_ID'] = $user_ID;
|
24 |
+
$data['wordpress_date_time'] = date("Y-m-d G:i:s T", $time);
|
25 |
+
|
26 |
+
|
27 |
+
$data['email'] = $_POST['emailTo'];
|
28 |
+
(isset( $_POST['first_name'] )) ? $data['first_name'] = $_POST['first_name'] : $data['first_name'] = "";
|
29 |
+
(isset( $_POST['last_name'] )) ? $data['last_name'] = $_POST['last_name'] : $data['last_name'] = "";
|
30 |
+
(isset( $_POST['company_name'] )) ? $data['company_name'] = $_POST['company_name'] : $data['company_name'] = "";
|
31 |
+
(isset( $_POST['phone'] )) ? $data['phone'] = $_POST['phone'] : $data['phone'] = "";
|
32 |
+
(isset( $_POST['address'] )) ? $data['address'] = $_POST['address'] : $data['address'] = "";
|
33 |
+
|
34 |
+
(isset( $_SERVER['REMOTE_ADDR'] )) ? $data['ip_address'] = $_SERVER['REMOTE_ADDR'] :$data['ip_address'] = "undefined";
|
35 |
+
(isset( $_POST['wp_lead_uid'] )) ? $data['wp_lead_uid'] = $_POST['wp_lead_uid'] : $data['wp_lead_uid'] = "null";
|
36 |
+
(isset( $_POST['lp_id'] )) ? $data['lp_id'] = $_POST['lp_id'] : $data['lp_id'] = 0;
|
37 |
+
(isset( $_POST['post_type'] )) ? $data['post_type'] = $_POST['post_type'] : $data['post_type'] = 'na';
|
38 |
+
(isset( $_POST['lp_variation'] )) ? $data['lp_variation'] = $_POST['lp_variation'] : $data['lp_variation'] = 0;
|
39 |
+
(isset( $_POST['page_views'] )) ? $data['page_views'] = $_POST['page_views'] : $data['page_views'] = false;
|
40 |
+
(isset( $_POST['page_view_count'] )) ? $data['page_view_count'] = $_POST['page_view_count'] : $data['page_view_count'] = 0;
|
41 |
+
|
42 |
+
do_action('inbound_store_lead_pre' , $data); // Global lead storage action hook
|
43 |
+
|
44 |
+
// header('HTTP/1.0 404 Not found'); exit; // simulate fail
|
45 |
// check for set email
|
46 |
+
if ( ( isset( $_POST['emailTo']) && !empty( $_POST['emailTo']) && strstr($_POST['emailTo'],'@') ))
|
47 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
$query = $wpdb->prepare(
|
49 |
'SELECT ID FROM ' . $wpdb->posts . '
|
50 |
WHERE post_title = %s
|
57 |
|
58 |
if ( $wpdb->num_rows ) {
|
59 |
/* Update Existing Lead */
|
60 |
+
$data['lead_id'] = $wpdb->get_var( $query );
|
61 |
+
$meta = get_post_meta( $data['lead_id'], 'times', TRUE ); // replace times
|
62 |
$meta++;
|
63 |
|
64 |
+
if ($data['lp_id'])
|
65 |
{
|
66 |
+
$conversion_data = get_post_meta( $data['lead_id'], 'wpleads_conversion_data', TRUE );
|
67 |
$conversion_data = json_decode($conversion_data,true);
|
68 |
+
$conversion_data[$meta]['id'] = $data['lp_id'];
|
69 |
+
$conversion_data[$meta]['variation'] = $data['lp_variation'];
|
70 |
+
$conversion_data[$meta]['datetime'] = $data['wordpress_date_time'];
|
71 |
+
$data['conversion_data'] = json_encode($conversion_data);
|
72 |
}
|
73 |
|
74 |
+
update_post_meta( $data['lead_id'], 'times', $meta ); // replace times
|
75 |
+
update_post_meta( $data['lead_id'], 'wpleads_email_address', $data['email'] );
|
76 |
|
77 |
+
if (!empty($data['user_ID']))
|
78 |
+
update_post_meta( $data['lead_id'], 'wpleads_wordpress_user_id', $data['user_ID'] );
|
79 |
+
if (!empty($data['first_name']))
|
80 |
+
update_post_meta( $data['lead_id'], 'wpleads_first_name', $data['first_name'] );
|
81 |
+
if (!empty($data['last_name']))
|
82 |
+
update_post_meta( $data['lead_id'], 'wpleads_last_name', $data['last_name'] );
|
83 |
+
if (!empty($data['phone']))
|
84 |
+
update_post_meta( $data['lead_id'], 'wpleads_work_phone', $data['phone'] );
|
85 |
+
if (!empty($data['company_name']))
|
86 |
+
update_post_meta( $data['lead_id'], 'wpleads_company_name', $data['company'] );
|
87 |
+
if (!empty($data['address']))
|
88 |
+
update_post_meta( $data['lead_id'], 'wpleads_address_line_1', $data['address'] );
|
89 |
+
if (!empty($data['wp_lead_uid']))
|
90 |
+
update_post_meta( $data['lead_id'], 'wp_leads_uid', $data['wp_lead_uid'] );
|
91 |
|
92 |
+
update_post_meta( $data['lead_id'], 'wpleads_ip_address', $data['ip_address'] );
|
93 |
+
update_post_meta( $data['lead_id'], 'wpleads_conversion_data', $data['conversion_data'] );
|
94 |
+
update_post_meta( $data['lead_id'], 'wpleads_landing_page_'.$data['lp_id'], 1 );
|
95 |
|
96 |
+
do_action('wpleads_after_conversion_lead_update',$data['lead_id']);
|
97 |
|
98 |
} else {
|
99 |
/* Create New Lead */
|
100 |
$post = array(
|
101 |
+
'post_title' => $data['email'],
|
102 |
//'post_content' => $json,
|
103 |
'post_status' => 'publish',
|
104 |
'post_type' => 'wp-lead',
|
107 |
|
108 |
//$post = add_filter('lp_leads_post_vars',$post);
|
109 |
|
110 |
+
if ($data['lp_id'])
|
111 |
{
|
112 |
+
$conversion_data[1]['id'] = $data['lp_id'];
|
113 |
+
$conversion_data[1]['variation'] = $data['lp_variation'];
|
114 |
+
$conversion_data[1]['datetime'] = $data['wordpress_date_time'];
|
115 |
$conversion_data[1]['first_time'] = 1;
|
116 |
+
$data['conversion_data'] = json_encode($conversion_data);
|
117 |
}
|
118 |
|
119 |
|
120 |
+
$data['lead_id'] = wp_insert_post($post);
|
121 |
+
update_post_meta( $data['lead_id'], 'times', 1 );
|
122 |
+
update_post_meta( $data['lead_id'], 'wpleads_wordpress_user_id', $user_ID );
|
123 |
+
update_post_meta( $data['lead_id'], 'wpleads_email_address', $data['email'] );
|
124 |
+
|
125 |
+
if (!empty($data['first_name']))
|
126 |
+
update_post_meta( $data['lead_id'], 'wpleads_first_name', $data['first_name'] );
|
127 |
+
if (!empty($data['last_name']))
|
128 |
+
update_post_meta( $data['lead_id'], 'wpleads_last_name', $data['last_name'] );
|
129 |
+
if (!empty($data['phone']))
|
130 |
+
update_post_meta( $data['lead_id'], 'wpleads_work_phone', $data['phone'] );
|
131 |
+
if (!empty($data['company_name']))
|
132 |
+
update_post_meta( $data['lead_id'], 'wpleads_company_name', $data['company_name'] );
|
133 |
+
if (!empty($data['address']))
|
134 |
+
update_post_meta( $data['lead_id'], 'wpleads_address_line_1', $data['address'] );
|
135 |
+
|
136 |
+
update_post_meta( $data['lead_id'], 'wpleads_ip_address', $data['ip_address'] );
|
137 |
+
update_post_meta( $data['lead_id'], 'wp_leads_uid', $data['wp_lead_uid'] );
|
138 |
+
update_post_meta( $data['lead_id'], 'page_views', $data['page_views'] );
|
139 |
+
//update_post_meta( $data['lead_id'], 'wpl-lead-page-view-count', $page_view_count ); // enable
|
140 |
+
//update_post_meta( $data['lead_id'], 'wpl-lead-conversion-count', 1 ); // enable
|
141 |
+
update_post_meta( $data['lead_id'], 'wpleads_conversion_data', $data['conversion_data'] );
|
142 |
|
143 |
+
update_post_meta( $data['lead_id'], 'wpleads_landing_page_'.$data['lp_id'], 1 );
|
144 |
|
145 |
+
$geo_array = unserialize(lp_remote_connect('http://www.geoplugin.net/php.gp?ip='.$data['ip_address']));
|
146 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
147 |
|
148 |
+
(isset($geo_array['geoplugin_areaCode'])) ? update_post_meta( $data['lead_id'], 'wpleads_areaCode', $geo_array['geoplugin_areaCode'] ) : null;
|
149 |
+
(isset($geo_array['geoplugin_city'])) ? update_post_meta( $data['lead_id'], 'wpleads_city', $geo_array['geoplugin_city'] ) : null;
|
150 |
+
(isset($geo_array['geoplugin_regionName'])) ? update_post_meta( $data['lead_id'], 'wpleads_region_name', $geo_array['geoplugin_regionName'] ) : null;
|
151 |
+
(isset($geo_array['geoplugin_regionCode'])) ? update_post_meta( $data['lead_id'], 'wpleads_region_code', $geo_array['geoplugin_regionCode'] ) : null;
|
152 |
+
(isset($geo_array['geoplugin_countryName'])) ? update_post_meta( $data['lead_id'], 'wpleads_country_name', $geo_array['geoplugin_countryName'] ) : null;
|
153 |
+
(isset($geo_array['geoplugin_countryCode'])) ? update_post_meta( $data['lead_id'], 'wpleads_country_code', $geo_array['geoplugin_countryCode'] ) : null;
|
154 |
+
(isset($geo_array['geoplugin_latitude'])) ? update_post_meta( $data['lead_id'], 'wpleads_latitude', $geo_array['geoplugin_latitude'] ) : null;
|
155 |
+
(isset($geo_array['geoplugin_longitude'])) ? update_post_meta( $data['lead_id'], 'wpleads_longitude', $geo_array['geoplugin_longitude'] ) : null;
|
156 |
+
(isset($geo_array['geoplugin_currencyCode'])) ? update_post_meta( $data['lead_id'], 'wpleads_currency_code', $geo_array['geoplugin_currencyCode'] ) : null;
|
157 |
+
(isset($geo_array['geoplugin_currencySymbol_UTF8'])) ? update_post_meta( $data['lead_id'], 'wpleads_currency_symbol', $geo_array['geoplugin_currencySymbol_UTF8'] ) : null;
|
158 |
+
|
159 |
+
do_action('wpleads_after_conversion_lead_insert',$data['lead_id']);
|
160 |
|
161 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
162 |
|
163 |
+
setcookie('wp_lead_id' , $data['lead_id'], time() + (20 * 365 * 24 * 60 * 60),'/');
|
164 |
+
|
165 |
+
do_action('inbound_store_lead_post', $data );
|
166 |
+
do_action('wp_cta_store_lead_post', $data );
|
167 |
+
do_action('wpl_store_lead_post', $data );
|
168 |
+
do_action('lp_store_lead_post', $data );
|
169 |
|
170 |
+
echo $data['lead_id'];
|
171 |
die();
|
172 |
}
|
173 |
+
else
|
174 |
+
{
|
175 |
+
|
176 |
+
}
|
177 |
}
|
178 |
}
|
templates/countdown-lander/config.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Template Name: Countdown Lander Template
|
5 |
*
|
6 |
* @package WordPress Landing Pages
|
7 |
-
* @author David Wells
|
8 |
*/
|
9 |
|
10 |
do_action('lp_global_config'); // The lp_global_config function is for global code added by 3rd party extensions
|
@@ -12,59 +12,91 @@ do_action('lp_global_config'); // The lp_global_config function is for global co
|
|
12 |
//gets template directory name to use as identifier - do not edit - include in all template files
|
13 |
$key = lp_get_parent_directory(dirname(__FILE__));
|
14 |
|
15 |
-
//EDIT - START - defines template information - helps categorizae template and provides additional popup information
|
16 |
-
$lp_data[$key]['category'] = "Countdown";
|
17 |
-
$lp_data[$key]['version'] = "1.0.0.4";
|
18 |
-
$lp_data[$key]['description'] = "Countdown Lander Template";
|
19 |
-
$lp_data[$key]['features'][] = lp_list_feature("Demo Link","http://demo.inboundnow.com/go/countdown-lander-preview/");
|
20 |
-
$lp_data[$key]['features'][] = lp_list_feature("The countdown lander template is for counting down to events or limited time offers.");
|
21 |
-
$lp_data[$key]['thumbnail'] = LANDINGPAGES_URLPATH.'templates/'.$key.'/thumbnail.png';
|
22 |
-
|
23 |
-
//DO NOT EDIT - adds template to template selection dropdown
|
24 |
-
$lp_data[$key]['value'] = $key;
|
25 |
-
$lp_data[$key]['label'] = ucwords(str_replace('-',' ',$key));
|
26 |
-
|
27 |
-
|
28 |
-
//************************************************
|
29 |
-
// Add User Options to Your Landing Page Template
|
30 |
-
//************************************************
|
31 |
-
// Date Picker Example
|
32 |
-
// Add a colorpicker option to your theme's options panel.
|
33 |
-
$lp_data[$key]['options'][] =
|
34 |
-
lp_add_option($key,"datepicker","date-picker","2013-1-31 13:00","Countdown Date","What date are we counting down to?", $options=null);
|
35 |
-
|
36 |
-
// Add Colorpicker
|
37 |
-
$lp_data[$key]['options'][] =
|
38 |
-
lp_add_option($key,"colorpicker","headline-color","ffffff","Headline Text Color","Use this setting to change the Heading Text Color", $options=null);
|
39 |
-
|
40 |
-
// Add Colorpicker
|
41 |
-
$lp_data[$key]['options'][] =
|
42 |
-
lp_add_option($key,"colorpicker","other-text-color","ffffff","Other Text Color","Use this setting to change the template's text color", $options=null);
|
43 |
-
|
44 |
-
// Add Colorpicker
|
45 |
-
$lp_data[$key]['options'][] =
|
46 |
-
lp_add_option($key,"colorpicker","submit-button-color","5baa1e","Submit Button Color","Use this setting to change the template's submit button color.", $options=null);
|
47 |
-
// Add Colorpicker
|
48 |
-
$lp_data[$key]['options'][] =
|
49 |
-
lp_add_option($key,"colorpicker","content-background","000000","Content Background Color","Use this setting to change the content area's background color", $options=null);
|
50 |
-
|
51 |
-
// Add a radio button option to your theme's options panel.
|
52 |
-
$options = array('on' => 'on','off'=>'off');
|
53 |
-
$lp_data[$key]['options'][] =
|
54 |
-
lp_add_option($key,"radio","background-on","on","Show Transparent Background behind content?","Toggle this on to render the transparent background behind your content for better visability", $options);
|
55 |
-
|
56 |
-
// Textfield Example
|
57 |
-
// Add a text input field to the landing page options panel
|
58 |
-
$lp_data[$key]['options'][] =
|
59 |
-
lp_add_option($key,"text","countdown-message","Countdown Until... Message","Countdown Until... Message","Insert the event you are counting down to", $options=null);
|
60 |
-
|
61 |
-
// Media Uploaded Example
|
62 |
-
// Add a media uploader field to your landing page options
|
63 |
-
$lp_data[$key]['options'][] =
|
64 |
-
lp_add_option($key,"media","bg-image","","Background Image","Enter an URL or upload an image for the background.", $options=null);
|
65 |
-
|
66 |
-
// Radio Button Example
|
67 |
-
// Add a radio butto
|
4 |
* Template Name: Countdown Lander Template
|
5 |
*
|
6 |
* @package WordPress Landing Pages
|
7 |
+
* @author David Wells, Hudson Atwell
|
8 |
*/
|
9 |
|
10 |
do_action('lp_global_config'); // The lp_global_config function is for global code added by 3rd party extensions
|
12 |
//gets template directory name to use as identifier - do not edit - include in all template files
|
13 |
$key = lp_get_parent_directory(dirname(__FILE__));
|
14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|