Version Description
- Lots of code style and escaping improvements.
- Removed banner for the Yoast website review service as it's no longer offered.
- Added RTL stylesheets.
Download this release
Release Info
Developer | joostdevalk |
Plugin | Clicky by Yoast |
Version | 1.8 |
Comparing to | |
See all releases |
Code changes from version 1.7 to 1.8
- LICENSE +0 -674
- admin/class-clicky-admin-page.php +22 -47
- admin/class-clicky-admin.php +48 -31
- admin/class-clicky-options-admin.php +94 -43
- admin/index.php +4 -0
- admin/views/admin-page.php +6 -5
- admin/views/index.php +4 -0
- admin/views/like-box.php +6 -4
- admin/views/meta-box.php +18 -10
- admin/views/stats-page.php +3 -1
- clicky.php +14 -8
- css/adminbar.css +0 -14
- css/clicky_admin.css +0 -126
- css/clicky_admin.min.css +0 -1
- css/{adminbar.min.css → dist/adminbar.css} +0 -0
- css/dist/clicky_admin.css +1 -0
- frontend/class-clicky-frontend.php +23 -21
- frontend/class-clicky-visitor-graph.php +34 -32
- frontend/index.php +4 -0
- frontend/views/comment-author-script.php +5 -2
- frontend/views/index.php +4 -0
- frontend/views/script.php +10 -4
- images/banner-website-review.png +0 -0
- images/index.php +4 -0
- includes/class-clicky-options.php +17 -15
- includes/index.php +4 -0
- index.php +4 -0
- js/admin.js +0 -23
- js/admin.min.js +1 -1
- languages/clicky-bg_BG.mo +0 -0
- languages/clicky-en_CA.mo +0 -0
- languages/clicky-en_GB.mo +0 -0
- languages/clicky-fa_IR.mo +0 -0
- languages/clicky-it_IT.mo +0 -0
- languages/clicky-ja.mo +0 -0
- languages/clicky-ro_RO.mo +0 -0
- languages/clicky-sv_SE.mo +0 -0
- languages/clicky.pot +348 -0
- languages/index.php +4 -0
- readme.txt +12 -7
- vendor/autoload.php +1 -1
- vendor/autoload_52.php +1 -1
- vendor/composer/autoload_classmap.php +28 -0
- vendor/composer/autoload_real.php +4 -4
- vendor/composer/autoload_real_52.php +3 -3
- vendor/composer/autoload_static.php +33 -5
- vendor/yoast/i18n-module/CHANGELOG.md +31 -0
- vendor/yoast/i18n-module/i18n-module.php +28 -3
LICENSE
DELETED
@@ -1,674 +0,0 @@
|
|
1 |
-
GNU GENERAL PUBLIC LICENSE
|
2 |
-
Version 3, 29 June 2007
|
3 |
-
|
4 |
-
Copyright (C) 2007 Free Software Foundation, Inc. {http://fsf.org/}
|
5 |
-
Everyone is permitted to copy and distribute verbatim copies
|
6 |
-
of this license document, but changing it is not allowed.
|
7 |
-
|
8 |
-
Preamble
|
9 |
-
|
10 |
-
The GNU General Public License is a free, copyleft license for
|
11 |
-
software and other kinds of works.
|
12 |
-
|
13 |
-
The licenses for most software and other practical works are designed
|
14 |
-
to take away your freedom to share and change the works. By contrast,
|
15 |
-
the GNU General Public License is intended to guarantee your freedom to
|
16 |
-
share and change all versions of a program--to make sure it remains free
|
17 |
-
software for all its users. We, the Free Software Foundation, use the
|
18 |
-
GNU General Public License for most of our software; it applies also to
|
19 |
-
any other work released this way by its authors. You can apply it to
|
20 |
-
your programs, too.
|
21 |
-
|
22 |
-
When we speak of free software, we are referring to freedom, not
|
23 |
-
price. Our General Public Licenses are designed to make sure that you
|
24 |
-
have the freedom to distribute copies of free software (and charge for
|
25 |
-
them if you wish), that you receive source code or can get it if you
|
26 |
-
want it, that you can change the software or use pieces of it in new
|
27 |
-
free programs, and that you know you can do these things.
|
28 |
-
|
29 |
-
To protect your rights, we need to prevent others from denying you
|
30 |
-
these rights or asking you to surrender the rights. Therefore, you have
|
31 |
-
certain responsibilities if you distribute copies of the software, or if
|
32 |
-
you modify it: responsibilities to respect the freedom of others.
|
33 |
-
|
34 |
-
For example, if you distribute copies of such a program, whether
|
35 |
-
gratis or for a fee, you must pass on to the recipients the same
|
36 |
-
freedoms that you received. You must make sure that they, too, receive
|
37 |
-
or can get the source code. And you must show them these terms so they
|
38 |
-
know their rights.
|
39 |
-
|
40 |
-
Developers that use the GNU GPL protect your rights with two steps:
|
41 |
-
(1) assert copyright on the software, and (2) offer you this License
|
42 |
-
giving you legal permission to copy, distribute and/or modify it.
|
43 |
-
|
44 |
-
For the developers' and authors' protection, the GPL clearly explains
|
45 |
-
that there is no warranty for this free software. For both users' and
|
46 |
-
authors' sake, the GPL requires that modified versions be marked as
|
47 |
-
changed, so that their problems will not be attributed erroneously to
|
48 |
-
authors of previous versions.
|
49 |
-
|
50 |
-
Some devices are designed to deny users access to install or run
|
51 |
-
modified versions of the software inside them, although the manufacturer
|
52 |
-
can do so. This is fundamentally incompatible with the aim of
|
53 |
-
protecting users' freedom to change the software. The systematic
|
54 |
-
pattern of such abuse occurs in the area of products for individuals to
|
55 |
-
use, which is precisely where it is most unacceptable. Therefore, we
|
56 |
-
have designed this version of the GPL to prohibit the practice for those
|
57 |
-
products. If such problems arise substantially in other domains, we
|
58 |
-
stand ready to extend this provision to those domains in future versions
|
59 |
-
of the GPL, as needed to protect the freedom of users.
|
60 |
-
|
61 |
-
Finally, every program is threatened constantly by software patents.
|
62 |
-
States should not allow patents to restrict development and use of
|
63 |
-
software on general-purpose computers, but in those that do, we wish to
|
64 |
-
avoid the special danger that patents applied to a free program could
|
65 |
-
make it effectively proprietary. To prevent this, the GPL assures that
|
66 |
-
patents cannot be used to render the program non-free.
|
67 |
-
|
68 |
-
The precise terms and conditions for copying, distribution and
|
69 |
-
modification follow.
|
70 |
-
|
71 |
-
TERMS AND CONDITIONS
|
72 |
-
|
73 |
-
0. Definitions.
|
74 |
-
|
75 |
-
"This License" refers to version 3 of the GNU General Public License.
|
76 |
-
|
77 |
-
"Copyright" also means copyright-like laws that apply to other kinds of
|
78 |
-
works, such as semiconductor masks.
|
79 |
-
|
80 |
-
"The Program" refers to any copyrightable work licensed under this
|
81 |
-
License. Each licensee is addressed as "you". "Licensees" and
|
82 |
-
"recipients" may be individuals or organizations.
|
83 |
-
|
84 |
-
To "modify" a work means to copy from or adapt all or part of the work
|
85 |
-
in a fashion requiring copyright permission, other than the making of an
|
86 |
-
exact copy. The resulting work is called a "modified version" of the
|
87 |
-
earlier work or a work "based on" the earlier work.
|
88 |
-
|
89 |
-
A "covered work" means either the unmodified Program or a work based
|
90 |
-
on the Program.
|
91 |
-
|
92 |
-
To "propagate" a work means to do anything with it that, without
|
93 |
-
permission, would make you directly or secondarily liable for
|
94 |
-
infringement under applicable copyright law, except executing it on a
|
95 |
-
computer or modifying a private copy. Propagation includes copying,
|
96 |
-
distribution (with or without modification), making available to the
|
97 |
-
public, and in some countries other activities as well.
|
98 |
-
|
99 |
-
To "convey" a work means any kind of propagation that enables other
|
100 |
-
parties to make or receive copies. Mere interaction with a user through
|
101 |
-
a computer network, with no transfer of a copy, is not conveying.
|
102 |
-
|
103 |
-
An interactive user interface displays "Appropriate Legal Notices"
|
104 |
-
to the extent that it includes a convenient and prominently visible
|
105 |
-
feature that (1) displays an appropriate copyright notice, and (2)
|
106 |
-
tells the user that there is no warranty for the work (except to the
|
107 |
-
extent that warranties are provided), that licensees may convey the
|
108 |
-
work under this License, and how to view a copy of this License. If
|
109 |
-
the interface presents a list of user commands or options, such as a
|
110 |
-
menu, a prominent item in the list meets this criterion.
|
111 |
-
|
112 |
-
1. Source Code.
|
113 |
-
|
114 |
-
The "source code" for a work means the preferred form of the work
|
115 |
-
for making modifications to it. "Object code" means any non-source
|
116 |
-
form of a work.
|
117 |
-
|
118 |
-
A "Standard Interface" means an interface that either is an official
|
119 |
-
standard defined by a recognized standards body, or, in the case of
|
120 |
-
interfaces specified for a particular programming language, one that
|
121 |
-
is widely used among developers working in that language.
|
122 |
-
|
123 |
-
The "System Libraries" of an executable work include anything, other
|
124 |
-
than the work as a whole, that (a) is included in the normal form of
|
125 |
-
packaging a Major Component, but which is not part of that Major
|
126 |
-
Component, and (b) serves only to enable use of the work with that
|
127 |
-
Major Component, or to implement a Standard Interface for which an
|
128 |
-
implementation is available to the public in source code form. A
|
129 |
-
"Major Component", in this context, means a major essential component
|
130 |
-
(kernel, window system, and so on) of the specific operating system
|
131 |
-
(if any) on which the executable work runs, or a compiler used to
|
132 |
-
produce the work, or an object code interpreter used to run it.
|
133 |
-
|
134 |
-
The "Corresponding Source" for a work in object code form means all
|
135 |
-
the source code needed to generate, install, and (for an executable
|
136 |
-
work) run the object code and to modify the work, including scripts to
|
137 |
-
control those activities. However, it does not include the work's
|
138 |
-
System Libraries, or general-purpose tools or generally available free
|
139 |
-
programs which are used unmodified in performing those activities but
|
140 |
-
which are not part of the work. For example, Corresponding Source
|
141 |
-
includes interface definition files associated with source files for
|
142 |
-
the work, and the source code for shared libraries and dynamically
|
143 |
-
linked subprograms that the work is specifically designed to require,
|
144 |
-
such as by intimate data communication or control flow between those
|
145 |
-
subprograms and other parts of the work.
|
146 |
-
|
147 |
-
The Corresponding Source need not include anything that users
|
148 |
-
can regenerate automatically from other parts of the Corresponding
|
149 |
-
Source.
|
150 |
-
|
151 |
-
The Corresponding Source for a work in source code form is that
|
152 |
-
same work.
|
153 |
-
|
154 |
-
2. Basic Permissions.
|
155 |
-
|
156 |
-
All rights granted under this License are granted for the term of
|
157 |
-
copyright on the Program, and are irrevocable provided the stated
|
158 |
-
conditions are met. This License explicitly affirms your unlimited
|
159 |
-
permission to run the unmodified Program. The output from running a
|
160 |
-
covered work is covered by this License only if the output, given its
|
161 |
-
content, constitutes a covered work. This License acknowledges your
|
162 |
-
rights of fair use or other equivalent, as provided by copyright law.
|
163 |
-
|
164 |
-
You may make, run and propagate covered works that you do not
|
165 |
-
convey, without conditions so long as your license otherwise remains
|
166 |
-
in force. You may convey covered works to others for the sole purpose
|
167 |
-
of having them make modifications exclusively for you, or provide you
|
168 |
-
with facilities for running those works, provided that you comply with
|
169 |
-
the terms of this License in conveying all material for which you do
|
170 |
-
not control copyright. Those thus making or running the covered works
|
171 |
-
for you must do so exclusively on your behalf, under your direction
|
172 |
-
and control, on terms that prohibit them from making any copies of
|
173 |
-
your copyrighted material outside their relationship with you.
|
174 |
-
|
175 |
-
Conveying under any other circumstances is permitted solely under
|
176 |
-
the conditions stated below. Sublicensing is not allowed; section 10
|
177 |
-
makes it unnecessary.
|
178 |
-
|
179 |
-
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
180 |
-
|
181 |
-
No covered work shall be deemed part of an effective technological
|
182 |
-
measure under any applicable law fulfilling obligations under article
|
183 |
-
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
184 |
-
similar laws prohibiting or restricting circumvention of such
|
185 |
-
measures.
|
186 |
-
|
187 |
-
When you convey a covered work, you waive any legal power to forbid
|
188 |
-
circumvention of technological measures to the extent such circumvention
|
189 |
-
is effected by exercising rights under this License with respect to
|
190 |
-
the covered work, and you disclaim any intention to limit operation or
|
191 |
-
modification of the work as a means of enforcing, against the work's
|
192 |
-
users, your or third parties' legal rights to forbid circumvention of
|
193 |
-
technological measures.
|
194 |
-
|
195 |
-
4. Conveying Verbatim Copies.
|
196 |
-
|
197 |
-
You may convey verbatim copies of the Program's source code as you
|
198 |
-
receive it, in any medium, provided that you conspicuously and
|
199 |
-
appropriately publish on each copy an appropriate copyright notice;
|
200 |
-
keep intact all notices stating that this License and any
|
201 |
-
non-permissive terms added in accord with section 7 apply to the code;
|
202 |
-
keep intact all notices of the absence of any warranty; and give all
|
203 |
-
recipients a copy of this License along with the Program.
|
204 |
-
|
205 |
-
You may charge any price or no price for each copy that you convey,
|
206 |
-
and you may offer support or warranty protection for a fee.
|
207 |
-
|
208 |
-
5. Conveying Modified Source Versions.
|
209 |
-
|
210 |
-
You may convey a work based on the Program, or the modifications to
|
211 |
-
produce it from the Program, in the form of source code under the
|
212 |
-
terms of section 4, provided that you also meet all of these conditions:
|
213 |
-
|
214 |
-
a) The work must carry prominent notices stating that you modified
|
215 |
-
it, and giving a relevant date.
|
216 |
-
|
217 |
-
b) The work must carry prominent notices stating that it is
|
218 |
-
released under this License and any conditions added under section
|
219 |
-
7. This requirement modifies the requirement in section 4 to
|
220 |
-
"keep intact all notices".
|
221 |
-
|
222 |
-
c) You must license the entire work, as a whole, under this
|
223 |
-
License to anyone who comes into possession of a copy. This
|
224 |
-
License will therefore apply, along with any applicable section 7
|
225 |
-
additional terms, to the whole of the work, and all its parts,
|
226 |
-
regardless of how they are packaged. This License gives no
|
227 |
-
permission to license the work in any other way, but it does not
|
228 |
-
invalidate such permission if you have separately received it.
|
229 |
-
|
230 |
-
d) If the work has interactive user interfaces, each must display
|
231 |
-
Appropriate Legal Notices; however, if the Program has interactive
|
232 |
-
interfaces that do not display Appropriate Legal Notices, your
|
233 |
-
work need not make them do so.
|
234 |
-
|
235 |
-
A compilation of a covered work with other separate and independent
|
236 |
-
works, which are not by their nature extensions of the covered work,
|
237 |
-
and which are not combined with it such as to form a larger program,
|
238 |
-
in or on a volume of a storage or distribution medium, is called an
|
239 |
-
"aggregate" if the compilation and its resulting copyright are not
|
240 |
-
used to limit the access or legal rights of the compilation's users
|
241 |
-
beyond what the individual works permit. Inclusion of a covered work
|
242 |
-
in an aggregate does not cause this License to apply to the other
|
243 |
-
parts of the aggregate.
|
244 |
-
|
245 |
-
6. Conveying Non-Source Forms.
|
246 |
-
|
247 |
-
You may convey a covered work in object code form under the terms
|
248 |
-
of sections 4 and 5, provided that you also convey the
|
249 |
-
machine-readable Corresponding Source under the terms of this License,
|
250 |
-
in one of these ways:
|
251 |
-
|
252 |
-
a) Convey the object code in, or embodied in, a physical product
|
253 |
-
(including a physical distribution medium), accompanied by the
|
254 |
-
Corresponding Source fixed on a durable physical medium
|
255 |
-
customarily used for software interchange.
|
256 |
-
|
257 |
-
b) Convey the object code in, or embodied in, a physical product
|
258 |
-
(including a physical distribution medium), accompanied by a
|
259 |
-
written offer, valid for at least three years and valid for as
|
260 |
-
long as you offer spare parts or customer support for that product
|
261 |
-
model, to give anyone who possesses the object code either (1) a
|
262 |
-
copy of the Corresponding Source for all the software in the
|
263 |
-
product that is covered by this License, on a durable physical
|
264 |
-
medium customarily used for software interchange, for a price no
|
265 |
-
more than your reasonable cost of physically performing this
|
266 |
-
conveying of source, or (2) access to copy the
|
267 |
-
Corresponding Source from a network server at no charge.
|
268 |
-
|
269 |
-
c) Convey individual copies of the object code with a copy of the
|
270 |
-
written offer to provide the Corresponding Source. This
|
271 |
-
alternative is allowed only occasionally and noncommercially, and
|
272 |
-
only if you received the object code with such an offer, in accord
|
273 |
-
with subsection 6b.
|
274 |
-
|
275 |
-
d) Convey the object code by offering access from a designated
|
276 |
-
place (gratis or for a charge), and offer equivalent access to the
|
277 |
-
Corresponding Source in the same way through the same place at no
|
278 |
-
further charge. You need not require recipients to copy the
|
279 |
-
Corresponding Source along with the object code. If the place to
|
280 |
-
copy the object code is a network server, the Corresponding Source
|
281 |
-
may be on a different server (operated by you or a third party)
|
282 |
-
that supports equivalent copying facilities, provided you maintain
|
283 |
-
clear directions next to the object code saying where to find the
|
284 |
-
Corresponding Source. Regardless of what server hosts the
|
285 |
-
Corresponding Source, you remain obligated to ensure that it is
|
286 |
-
available for as long as needed to satisfy these requirements.
|
287 |
-
|
288 |
-
e) Convey the object code using peer-to-peer transmission, provided
|
289 |
-
you inform other peers where the object code and Corresponding
|
290 |
-
Source of the work are being offered to the general public at no
|
291 |
-
charge under subsection 6d.
|
292 |
-
|
293 |
-
A separable portion of the object code, whose source code is excluded
|
294 |
-
from the Corresponding Source as a System Library, need not be
|
295 |
-
included in conveying the object code work.
|
296 |
-
|
297 |
-
A "User Product" is either (1) a "consumer product", which means any
|
298 |
-
tangible personal property which is normally used for personal, family,
|
299 |
-
or household purposes, or (2) anything designed or sold for incorporation
|
300 |
-
into a dwelling. In determining whether a product is a consumer product,
|
301 |
-
doubtful cases shall be resolved in favor of coverage. For a particular
|
302 |
-
product received by a particular user, "normally used" refers to a
|
303 |
-
typical or common use of that class of product, regardless of the status
|
304 |
-
of the particular user or of the way in which the particular user
|
305 |
-
actually uses, or expects or is expected to use, the product. A product
|
306 |
-
is a consumer product regardless of whether the product has substantial
|
307 |
-
commercial, industrial or non-consumer uses, unless such uses represent
|
308 |
-
the only significant mode of use of the product.
|
309 |
-
|
310 |
-
"Installation Information" for a User Product means any methods,
|
311 |
-
procedures, authorization keys, or other information required to install
|
312 |
-
and execute modified versions of a covered work in that User Product from
|
313 |
-
a modified version of its Corresponding Source. The information must
|
314 |
-
suffice to ensure that the continued functioning of the modified object
|
315 |
-
code is in no case prevented or interfered with solely because
|
316 |
-
modification has been made.
|
317 |
-
|
318 |
-
If you convey an object code work under this section in, or with, or
|
319 |
-
specifically for use in, a User Product, and the conveying occurs as
|
320 |
-
part of a transaction in which the right of possession and use of the
|
321 |
-
User Product is transferred to the recipient in perpetuity or for a
|
322 |
-
fixed term (regardless of how the transaction is characterized), the
|
323 |
-
Corresponding Source conveyed under this section must be accompanied
|
324 |
-
by the Installation Information. But this requirement does not apply
|
325 |
-
if neither you nor any third party retains the ability to install
|
326 |
-
modified object code on the User Product (for example, the work has
|
327 |
-
been installed in ROM).
|
328 |
-
|
329 |
-
The requirement to provide Installation Information does not include a
|
330 |
-
requirement to continue to provide support service, warranty, or updates
|
331 |
-
for a work that has been modified or installed by the recipient, or for
|
332 |
-
the User Product in which it has been modified or installed. Access to a
|
333 |
-
network may be denied when the modification itself materially and
|
334 |
-
adversely affects the operation of the network or violates the rules and
|
335 |
-
protocols for communication across the network.
|
336 |
-
|
337 |
-
Corresponding Source conveyed, and Installation Information provided,
|
338 |
-
in accord with this section must be in a format that is publicly
|
339 |
-
documented (and with an implementation available to the public in
|
340 |
-
source code form), and must require no special password or key for
|
341 |
-
unpacking, reading or copying.
|
342 |
-
|
343 |
-
7. Additional Terms.
|
344 |
-
|
345 |
-
"Additional permissions" are terms that supplement the terms of this
|
346 |
-
License by making exceptions from one or more of its conditions.
|
347 |
-
Additional permissions that are applicable to the entire Program shall
|
348 |
-
be treated as though they were included in this License, to the extent
|
349 |
-
that they are valid under applicable law. If additional permissions
|
350 |
-
apply only to part of the Program, that part may be used separately
|
351 |
-
under those permissions, but the entire Program remains governed by
|
352 |
-
this License without regard to the additional permissions.
|
353 |
-
|
354 |
-
When you convey a copy of a covered work, you may at your option
|
355 |
-
remove any additional permissions from that copy, or from any part of
|
356 |
-
it. (Additional permissions may be written to require their own
|
357 |
-
removal in certain cases when you modify the work.) You may place
|
358 |
-
additional permissions on material, added by you to a covered work,
|
359 |
-
for which you have or can give appropriate copyright permission.
|
360 |
-
|
361 |
-
Notwithstanding any other provision of this License, for material you
|
362 |
-
add to a covered work, you may (if authorized by the copyright holders of
|
363 |
-
that material) supplement the terms of this License with terms:
|
364 |
-
|
365 |
-
a) Disclaiming warranty or limiting liability differently from the
|
366 |
-
terms of sections 15 and 16 of this License; or
|
367 |
-
|
368 |
-
b) Requiring preservation of specified reasonable legal notices or
|
369 |
-
author attributions in that material or in the Appropriate Legal
|
370 |
-
Notices displayed by works containing it; or
|
371 |
-
|
372 |
-
c) Prohibiting misrepresentation of the origin of that material, or
|
373 |
-
requiring that modified versions of such material be marked in
|
374 |
-
reasonable ways as different from the original version; or
|
375 |
-
|
376 |
-
d) Limiting the use for publicity purposes of names of licensors or
|
377 |
-
authors of the material; or
|
378 |
-
|
379 |
-
e) Declining to grant rights under trademark law for use of some
|
380 |
-
trade names, trademarks, or service marks; or
|
381 |
-
|
382 |
-
f) Requiring indemnification of licensors and authors of that
|
383 |
-
material by anyone who conveys the material (or modified versions of
|
384 |
-
it) with contractual assumptions of liability to the recipient, for
|
385 |
-
any liability that these contractual assumptions directly impose on
|
386 |
-
those licensors and authors.
|
387 |
-
|
388 |
-
All other non-permissive additional terms are considered "further
|
389 |
-
restrictions" within the meaning of section 10. If the Program as you
|
390 |
-
received it, or any part of it, contains a notice stating that it is
|
391 |
-
governed by this License along with a term that is a further
|
392 |
-
restriction, you may remove that term. If a license document contains
|
393 |
-
a further restriction but permits relicensing or conveying under this
|
394 |
-
License, you may add to a covered work material governed by the terms
|
395 |
-
of that license document, provided that the further restriction does
|
396 |
-
not survive such relicensing or conveying.
|
397 |
-
|
398 |
-
If you add terms to a covered work in accord with this section, you
|
399 |
-
must place, in the relevant source files, a statement of the
|
400 |
-
additional terms that apply to those files, or a notice indicating
|
401 |
-
where to find the applicable terms.
|
402 |
-
|
403 |
-
Additional terms, permissive or non-permissive, may be stated in the
|
404 |
-
form of a separately written license, or stated as exceptions;
|
405 |
-
the above requirements apply either way.
|
406 |
-
|
407 |
-
8. Termination.
|
408 |
-
|
409 |
-
You may not propagate or modify a covered work except as expressly
|
410 |
-
provided under this License. Any attempt otherwise to propagate or
|
411 |
-
modify it is void, and will automatically terminate your rights under
|
412 |
-
this License (including any patent licenses granted under the third
|
413 |
-
paragraph of section 11).
|
414 |
-
|
415 |
-
However, if you cease all violation of this License, then your
|
416 |
-
license from a particular copyright holder is reinstated (a)
|
417 |
-
provisionally, unless and until the copyright holder explicitly and
|
418 |
-
finally terminates your license, and (b) permanently, if the copyright
|
419 |
-
holder fails to notify you of the violation by some reasonable means
|
420 |
-
prior to 60 days after the cessation.
|
421 |
-
|
422 |
-
Moreover, your license from a particular copyright holder is
|
423 |
-
reinstated permanently if the copyright holder notifies you of the
|
424 |
-
violation by some reasonable means, this is the first time you have
|
425 |
-
received notice of violation of this License (for any work) from that
|
426 |
-
copyright holder, and you cure the violation prior to 30 days after
|
427 |
-
your receipt of the notice.
|
428 |
-
|
429 |
-
Termination of your rights under this section does not terminate the
|
430 |
-
licenses of parties who have received copies or rights from you under
|
431 |
-
this License. If your rights have been terminated and not permanently
|
432 |
-
reinstated, you do not qualify to receive new licenses for the same
|
433 |
-
material under section 10.
|
434 |
-
|
435 |
-
9. Acceptance Not Required for Having Copies.
|
436 |
-
|
437 |
-
You are not required to accept this License in order to receive or
|
438 |
-
run a copy of the Program. Ancillary propagation of a covered work
|
439 |
-
occurring solely as a consequence of using peer-to-peer transmission
|
440 |
-
to receive a copy likewise does not require acceptance. However,
|
441 |
-
nothing other than this License grants you permission to propagate or
|
442 |
-
modify any covered work. These actions infringe copyright if you do
|
443 |
-
not accept this License. Therefore, by modifying or propagating a
|
444 |
-
covered work, you indicate your acceptance of this License to do so.
|
445 |
-
|
446 |
-
10. Automatic Licensing of Downstream Recipients.
|
447 |
-
|
448 |
-
Each time you convey a covered work, the recipient automatically
|
449 |
-
receives a license from the original licensors, to run, modify and
|
450 |
-
propagate that work, subject to this License. You are not responsible
|
451 |
-
for enforcing compliance by third parties with this License.
|
452 |
-
|
453 |
-
An "entity transaction" is a transaction transferring control of an
|
454 |
-
organization, or substantially all assets of one, or subdividing an
|
455 |
-
organization, or merging organizations. If propagation of a covered
|
456 |
-
work results from an entity transaction, each party to that
|
457 |
-
transaction who receives a copy of the work also receives whatever
|
458 |
-
licenses to the work the party's predecessor in interest had or could
|
459 |
-
give under the previous paragraph, plus a right to possession of the
|
460 |
-
Corresponding Source of the work from the predecessor in interest, if
|
461 |
-
the predecessor has it or can get it with reasonable efforts.
|
462 |
-
|
463 |
-
You may not impose any further restrictions on the exercise of the
|
464 |
-
rights granted or affirmed under this License. For example, you may
|
465 |
-
not impose a license fee, royalty, or other charge for exercise of
|
466 |
-
rights granted under this License, and you may not initiate litigation
|
467 |
-
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
468 |
-
any patent claim is infringed by making, using, selling, offering for
|
469 |
-
sale, or importing the Program or any portion of it.
|
470 |
-
|
471 |
-
11. Patents.
|
472 |
-
|
473 |
-
A "contributor" is a copyright holder who authorizes use under this
|
474 |
-
License of the Program or a work on which the Program is based. The
|
475 |
-
work thus licensed is called the contributor's "contributor version".
|
476 |
-
|
477 |
-
A contributor's "essential patent claims" are all patent claims
|
478 |
-
owned or controlled by the contributor, whether already acquired or
|
479 |
-
hereafter acquired, that would be infringed by some manner, permitted
|
480 |
-
by this License, of making, using, or selling its contributor version,
|
481 |
-
but do not include claims that would be infringed only as a
|
482 |
-
consequence of further modification of the contributor version. For
|
483 |
-
purposes of this definition, "control" includes the right to grant
|
484 |
-
patent sublicenses in a manner consistent with the requirements of
|
485 |
-
this License.
|
486 |
-
|
487 |
-
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
488 |
-
patent license under the contributor's essential patent claims, to
|
489 |
-
make, use, sell, offer for sale, import and otherwise run, modify and
|
490 |
-
propagate the contents of its contributor version.
|
491 |
-
|
492 |
-
In the following three paragraphs, a "patent license" is any express
|
493 |
-
agreement or commitment, however denominated, not to enforce a patent
|
494 |
-
(such as an express permission to practice a patent or covenant not to
|
495 |
-
sue for patent infringement). To "grant" such a patent license to a
|
496 |
-
party means to make such an agreement or commitment not to enforce a
|
497 |
-
patent against the party.
|
498 |
-
|
499 |
-
If you convey a covered work, knowingly relying on a patent license,
|
500 |
-
and the Corresponding Source of the work is not available for anyone
|
501 |
-
to copy, free of charge and under the terms of this License, through a
|
502 |
-
publicly available network server or other readily accessible means,
|
503 |
-
then you must either (1) cause the Corresponding Source to be so
|
504 |
-
available, or (2) arrange to deprive yourself of the benefit of the
|
505 |
-
patent license for this particular work, or (3) arrange, in a manner
|
506 |
-
consistent with the requirements of this License, to extend the patent
|
507 |
-
license to downstream recipients. "Knowingly relying" means you have
|
508 |
-
actual knowledge that, but for the patent license, your conveying the
|
509 |
-
covered work in a country, or your recipient's use of the covered work
|
510 |
-
in a country, would infringe one or more identifiable patents in that
|
511 |
-
country that you have reason to believe are valid.
|
512 |
-
|
513 |
-
If, pursuant to or in connection with a single transaction or
|
514 |
-
arrangement, you convey, or propagate by procuring conveyance of, a
|
515 |
-
covered work, and grant a patent license to some of the parties
|
516 |
-
receiving the covered work authorizing them to use, propagate, modify
|
517 |
-
or convey a specific copy of the covered work, then the patent license
|
518 |
-
you grant is automatically extended to all recipients of the covered
|
519 |
-
work and works based on it.
|
520 |
-
|
521 |
-
A patent license is "discriminatory" if it does not include within
|
522 |
-
the scope of its coverage, prohibits the exercise of, or is
|
523 |
-
conditioned on the non-exercise of one or more of the rights that are
|
524 |
-
specifically granted under this License. You may not convey a covered
|
525 |
-
work if you are a party to an arrangement with a third party that is
|
526 |
-
in the business of distributing software, under which you make payment
|
527 |
-
to the third party based on the extent of your activity of conveying
|
528 |
-
the work, and under which the third party grants, to any of the
|
529 |
-
parties who would receive the covered work from you, a discriminatory
|
530 |
-
patent license (a) in connection with copies of the covered work
|
531 |
-
conveyed by you (or copies made from those copies), or (b) primarily
|
532 |
-
for and in connection with specific products or compilations that
|
533 |
-
contain the covered work, unless you entered into that arrangement,
|
534 |
-
or that patent license was granted, prior to 28 March 2007.
|
535 |
-
|
536 |
-
Nothing in this License shall be construed as excluding or limiting
|
537 |
-
any implied license or other defenses to infringement that may
|
538 |
-
otherwise be available to you under applicable patent law.
|
539 |
-
|
540 |
-
12. No Surrender of Others' Freedom.
|
541 |
-
|
542 |
-
If conditions are imposed on you (whether by court order, agreement or
|
543 |
-
otherwise) that contradict the conditions of this License, they do not
|
544 |
-
excuse you from the conditions of this License. If you cannot convey a
|
545 |
-
covered work so as to satisfy simultaneously your obligations under this
|
546 |
-
License and any other pertinent obligations, then as a consequence you may
|
547 |
-
not convey it at all. For example, if you agree to terms that obligate you
|
548 |
-
to collect a royalty for further conveying from those to whom you convey
|
549 |
-
the Program, the only way you could satisfy both those terms and this
|
550 |
-
License would be to refrain entirely from conveying the Program.
|
551 |
-
|
552 |
-
13. Use with the GNU Affero General Public License.
|
553 |
-
|
554 |
-
Notwithstanding any other provision of this License, you have
|
555 |
-
permission to link or combine any covered work with a work licensed
|
556 |
-
under version 3 of the GNU Affero General Public License into a single
|
557 |
-
combined work, and to convey the resulting work. The terms of this
|
558 |
-
License will continue to apply to the part which is the covered work,
|
559 |
-
but the special requirements of the GNU Affero General Public License,
|
560 |
-
section 13, concerning interaction through a network will apply to the
|
561 |
-
combination as such.
|
562 |
-
|
563 |
-
14. Revised Versions of this License.
|
564 |
-
|
565 |
-
The Free Software Foundation may publish revised and/or new versions of
|
566 |
-
the GNU General Public License from time to time. Such new versions will
|
567 |
-
be similar in spirit to the present version, but may differ in detail to
|
568 |
-
address new problems or concerns.
|
569 |
-
|
570 |
-
Each version is given a distinguishing version number. If the
|
571 |
-
Program specifies that a certain numbered version of the GNU General
|
572 |
-
Public License "or any later version" applies to it, you have the
|
573 |
-
option of following the terms and conditions either of that numbered
|
574 |
-
version or of any later version published by the Free Software
|
575 |
-
Foundation. If the Program does not specify a version number of the
|
576 |
-
GNU General Public License, you may choose any version ever published
|
577 |
-
by the Free Software Foundation.
|
578 |
-
|
579 |
-
If the Program specifies that a proxy can decide which future
|
580 |
-
versions of the GNU General Public License can be used, that proxy's
|
581 |
-
public statement of acceptance of a version permanently authorizes you
|
582 |
-
to choose that version for the Program.
|
583 |
-
|
584 |
-
Later license versions may give you additional or different
|
585 |
-
permissions. However, no additional obligations are imposed on any
|
586 |
-
author or copyright holder as a result of your choosing to follow a
|
587 |
-
later version.
|
588 |
-
|
589 |
-
15. Disclaimer of Warranty.
|
590 |
-
|
591 |
-
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
592 |
-
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
593 |
-
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
594 |
-
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
595 |
-
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
596 |
-
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
597 |
-
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
598 |
-
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
599 |
-
|
600 |
-
16. Limitation of Liability.
|
601 |
-
|
602 |
-
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
603 |
-
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
604 |
-
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
605 |
-
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
606 |
-
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
607 |
-
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
608 |
-
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
609 |
-
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
610 |
-
SUCH DAMAGES.
|
611 |
-
|
612 |
-
17. Interpretation of Sections 15 and 16.
|
613 |
-
|
614 |
-
If the disclaimer of warranty and limitation of liability provided
|
615 |
-
above cannot be given local legal effect according to their terms,
|
616 |
-
reviewing courts shall apply local law that most closely approximates
|
617 |
-
an absolute waiver of all civil liability in connection with the
|
618 |
-
Program, unless a warranty or assumption of liability accompanies a
|
619 |
-
copy of the Program in return for a fee.
|
620 |
-
|
621 |
-
END OF TERMS AND CONDITIONS
|
622 |
-
|
623 |
-
How to Apply These Terms to Your New Programs
|
624 |
-
|
625 |
-
If you develop a new program, and you want it to be of the greatest
|
626 |
-
possible use to the public, the best way to achieve this is to make it
|
627 |
-
free software which everyone can redistribute and change under these terms.
|
628 |
-
|
629 |
-
To do so, attach the following notices to the program. It is safest
|
630 |
-
to attach them to the start of each source file to most effectively
|
631 |
-
state the exclusion of warranty; and each file should have at least
|
632 |
-
the "copyright" line and a pointer to where the full notice is found.
|
633 |
-
|
634 |
-
{one line to give the program's name and a brief idea of what it does.}
|
635 |
-
Copyright (C) {year} {name of author}
|
636 |
-
|
637 |
-
This program is free software: you can redistribute it and/or modify
|
638 |
-
it under the terms of the GNU General Public License as published by
|
639 |
-
the Free Software Foundation, either version 3 of the License, or
|
640 |
-
(at your option) any later version.
|
641 |
-
|
642 |
-
This program is distributed in the hope that it will be useful,
|
643 |
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
644 |
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
645 |
-
GNU General Public License for more details.
|
646 |
-
|
647 |
-
You should have received a copy of the GNU General Public License
|
648 |
-
along with this program. If not, see {http://www.gnu.org/licenses/}.
|
649 |
-
|
650 |
-
Also add information on how to contact you by electronic and paper mail.
|
651 |
-
|
652 |
-
If the program does terminal interaction, make it output a short
|
653 |
-
notice like this when it starts in an interactive mode:
|
654 |
-
|
655 |
-
clicky Copyright (C) 2013 Yoast
|
656 |
-
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
657 |
-
This is free software, and you are welcome to redistribute it
|
658 |
-
under certain conditions; type `show c' for details.
|
659 |
-
|
660 |
-
The hypothetical commands `show w' and `show c' should show the appropriate
|
661 |
-
parts of the General Public License. Of course, your program's commands
|
662 |
-
might be different; for a GUI interface, you would use an "about box".
|
663 |
-
|
664 |
-
You should also get your employer (if you work as a programmer) or school,
|
665 |
-
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
666 |
-
For more information on this, and how to apply and follow the GNU GPL, see
|
667 |
-
{http://www.gnu.org/licenses/}.
|
668 |
-
|
669 |
-
The GNU General Public License does not permit incorporating your program
|
670 |
-
into proprietary programs. If your program is a subroutine library, you
|
671 |
-
may consider it more useful to permit linking proprietary applications with
|
672 |
-
the library. If this is what you want to do, use the GNU Lesser General
|
673 |
-
Public License instead of this License. But first, please read
|
674 |
-
{http://www.gnu.org/philosophy/why-not-lgpl.html}.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/class-clicky-admin-page.php
CHANGED
@@ -1,15 +1,17 @@
|
|
1 |
<?php
|
2 |
/**
|
|
|
|
|
3 |
* @package Yoast\Clicky\Admin
|
4 |
*/
|
5 |
|
6 |
/**
|
7 |
-
* Class for the Clicky plugin admin page
|
8 |
*/
|
9 |
class Clicky_Admin_Page extends Clicky_Admin {
|
10 |
|
11 |
/**
|
12 |
-
* Class constructor
|
13 |
*/
|
14 |
public function __construct() {
|
15 |
$options_admin = new Clicky_Options_Admin();
|
@@ -23,51 +25,42 @@ class Clicky_Admin_Page extends Clicky_Admin {
|
|
23 |
}
|
24 |
|
25 |
/**
|
26 |
-
*
|
27 |
-
*
|
28 |
-
* @param string $ext Extension to use for asset.
|
29 |
-
*
|
30 |
-
* @return string
|
31 |
-
*/
|
32 |
-
private function file_ext( $ext ) {
|
33 |
-
return ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? $ext : '.min' . $ext;
|
34 |
-
}
|
35 |
-
|
36 |
-
/**
|
37 |
-
* Enqueue the styles for the admin page
|
38 |
*/
|
39 |
public function config_page_styles() {
|
40 |
-
wp_enqueue_style( 'clicky-admin-css', CLICKY_PLUGIN_DIR_URL . 'css/clicky_admin
|
41 |
}
|
42 |
|
43 |
/**
|
44 |
-
* Enqueue the scripts for the admin page
|
45 |
*/
|
46 |
public function config_page_scripts() {
|
47 |
-
wp_enqueue_script( '
|
48 |
}
|
49 |
|
50 |
/**
|
51 |
-
* Creates the configuration page
|
52 |
*/
|
53 |
public function config_page() {
|
54 |
-
require 'views/admin-page.php';
|
55 |
}
|
56 |
|
57 |
/**
|
58 |
-
* Create a postbox widget
|
59 |
*
|
60 |
* @param string $title Title to display.
|
61 |
* @param string $content Content to display.
|
62 |
*/
|
63 |
private function box( $title, $content ) {
|
64 |
-
|
|
|
65 |
}
|
66 |
|
67 |
/**
|
68 |
* Info box with link to the bug tracker.
|
69 |
*/
|
70 |
private function plugin_support() {
|
|
|
71 |
$content = '<p>' . sprintf( __( 'If you\'re in need of support with Clicky and / or this plugin, please visit the %1$sClicky forums%2$s.', 'clicky' ), "<a href='https://clicky.com/forums/'>", '</a>' ) . '</p>';
|
72 |
$this->box( __( 'Need Support?', 'clicky' ), $content );
|
73 |
}
|
@@ -80,7 +73,7 @@ class Clicky_Admin_Page extends Clicky_Admin {
|
|
80 |
* @param string $extra_links Additional links to add to the output, after the RSS subscribe link.
|
81 |
*/
|
82 |
private function rss_news( $feed, $title, $extra_links = '' ) {
|
83 |
-
include_once
|
84 |
$rss = fetch_feed( $feed );
|
85 |
|
86 |
if ( is_wp_error( $rss ) ) {
|
@@ -91,14 +84,14 @@ class Clicky_Admin_Page extends Clicky_Admin {
|
|
91 |
|
92 |
$rss = '';
|
93 |
foreach ( $rss_items as $item ) {
|
94 |
-
$url
|
95 |
$rss .= '<li class="yoast">';
|
96 |
-
$rss .= '<a href="' . $url . '#utm_source=wpadmin&utm_medium=sidebarwidget&utm_term=newsitem&utm_campaign=clickywpplugin">' .
|
97 |
$rss .= '</li>';
|
98 |
}
|
99 |
}
|
100 |
|
101 |
-
$content
|
102 |
$content .= $rss;
|
103 |
$content .= '<li class="rss"><a href="' . $feed . '">' . __( 'Subscribe with RSS', 'clicky' ) . '</a></li>';
|
104 |
$content .= $extra_links;
|
@@ -108,17 +101,17 @@ class Clicky_Admin_Page extends Clicky_Admin {
|
|
108 |
}
|
109 |
|
110 |
/**
|
111 |
-
* Box with latest news from Clicky
|
112 |
*/
|
113 |
private function clicky_news() {
|
114 |
$this->rss_news( 'http://clicky.com/blog/rss', __( 'Latest news from Clicky', 'clicky' ) );
|
115 |
}
|
116 |
|
117 |
/**
|
118 |
-
* Box with latest news from Yoast.com for sidebar
|
119 |
*/
|
120 |
private function yoast_news() {
|
121 |
-
$extra_links
|
122 |
$extra_links .= '<li class="twitter"><a href="https://twitter.com/yoast">' . __( 'Follow Yoast on Twitter', 'clicky' ) . '</a></li>';
|
123 |
$extra_links .= '<li class="email"><a href="https://yoast.com/newsletter/">' . __( 'Subscribe by email', 'clicky' ) . '</a></li>';
|
124 |
|
@@ -126,25 +119,7 @@ class Clicky_Admin_Page extends Clicky_Admin {
|
|
126 |
}
|
127 |
|
128 |
/**
|
129 |
-
*
|
130 |
-
*
|
131 |
-
* @param string $img Image to show.
|
132 |
-
* @param string $url URL to use.
|
133 |
-
* @param string $alt Alt to add.
|
134 |
-
*/
|
135 |
-
private function banner( $img, $url, $alt ) {
|
136 |
-
printf( '<a class="yoast_banner" href="%1$s" title="%3$s"><img src="%2$s" width="261" alt="%3$s"/></a>', $url, $img, $alt );
|
137 |
-
}
|
138 |
-
|
139 |
-
/**
|
140 |
-
* Print a website review banner
|
141 |
-
*/
|
142 |
-
private function website_review_banner() {
|
143 |
-
$this->banner( CLICKY_PLUGIN_DIR_URL . 'images/banner-website-review.png', 'https://yoast.com/hire-us/website-review/#utm_source=clicky-config&utm_medium=banner&utm_campaign=website-review-banner', __( 'Get your site reviewed by team Yoast!', 'clicky' ) );
|
144 |
-
}
|
145 |
-
|
146 |
-
/**
|
147 |
-
* Instantiate the i18n module
|
148 |
*/
|
149 |
public function i18n_module() {
|
150 |
new yoast_i18n(
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Clicky for WordPress plugin file.
|
4 |
+
*
|
5 |
* @package Yoast\Clicky\Admin
|
6 |
*/
|
7 |
|
8 |
/**
|
9 |
+
* Class for the Clicky plugin admin page.
|
10 |
*/
|
11 |
class Clicky_Admin_Page extends Clicky_Admin {
|
12 |
|
13 |
/**
|
14 |
+
* Class constructor.
|
15 |
*/
|
16 |
public function __construct() {
|
17 |
$options_admin = new Clicky_Options_Admin();
|
25 |
}
|
26 |
|
27 |
/**
|
28 |
+
* Enqueue the styles for the admin page.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
*/
|
30 |
public function config_page_styles() {
|
31 |
+
wp_enqueue_style( 'clicky-admin-css', CLICKY_PLUGIN_DIR_URL . 'css/dist/clicky_admin.css', null, CLICKY_PLUGIN_VERSION );
|
32 |
}
|
33 |
|
34 |
/**
|
35 |
+
* Enqueue the scripts for the admin page.
|
36 |
*/
|
37 |
public function config_page_scripts() {
|
38 |
+
wp_enqueue_script( 'clicky-admin-js', CLICKY_PLUGIN_DIR_URL . 'js/admin.min.js', null, CLICKY_PLUGIN_VERSION );
|
39 |
}
|
40 |
|
41 |
/**
|
42 |
+
* Creates the configuration page.
|
43 |
*/
|
44 |
public function config_page() {
|
45 |
+
require CLICKY_PLUGIN_DIR_PATH . 'admin/views/admin-page.php';
|
46 |
}
|
47 |
|
48 |
/**
|
49 |
+
* Create a postbox widget.
|
50 |
*
|
51 |
* @param string $title Title to display.
|
52 |
* @param string $content Content to display.
|
53 |
*/
|
54 |
private function box( $title, $content ) {
|
55 |
+
// @codingStandardsIgnoreLine
|
56 |
+
echo '<div class="yoast_box"><h3>' . esc_html( $title ) . '</h3><div class="inside">' . $content . '</div></div>';
|
57 |
}
|
58 |
|
59 |
/**
|
60 |
* Info box with link to the bug tracker.
|
61 |
*/
|
62 |
private function plugin_support() {
|
63 |
+
/* translators: 1: link open tag to clicky forum website; 2: link close tag. */
|
64 |
$content = '<p>' . sprintf( __( 'If you\'re in need of support with Clicky and / or this plugin, please visit the %1$sClicky forums%2$s.', 'clicky' ), "<a href='https://clicky.com/forums/'>", '</a>' ) . '</p>';
|
65 |
$this->box( __( 'Need Support?', 'clicky' ), $content );
|
66 |
}
|
73 |
* @param string $extra_links Additional links to add to the output, after the RSS subscribe link.
|
74 |
*/
|
75 |
private function rss_news( $feed, $title, $extra_links = '' ) {
|
76 |
+
include_once ABSPATH . WPINC . '/feed.php';
|
77 |
$rss = fetch_feed( $feed );
|
78 |
|
79 |
if ( is_wp_error( $rss ) ) {
|
84 |
|
85 |
$rss = '';
|
86 |
foreach ( $rss_items as $item ) {
|
87 |
+
$url = preg_replace( '/#.*/', '', esc_url( $item->get_permalink(), $protocolls = null, 'display' ) );
|
88 |
$rss .= '<li class="yoast">';
|
89 |
+
$rss .= '<a href="' . $url . '#utm_source=wpadmin&utm_medium=sidebarwidget&utm_term=newsitem&utm_campaign=clickywpplugin">' . $item->get_title() . '</a> ';
|
90 |
$rss .= '</li>';
|
91 |
}
|
92 |
}
|
93 |
|
94 |
+
$content = '<ul>';
|
95 |
$content .= $rss;
|
96 |
$content .= '<li class="rss"><a href="' . $feed . '">' . __( 'Subscribe with RSS', 'clicky' ) . '</a></li>';
|
97 |
$content .= $extra_links;
|
101 |
}
|
102 |
|
103 |
/**
|
104 |
+
* Box with latest news from Clicky.
|
105 |
*/
|
106 |
private function clicky_news() {
|
107 |
$this->rss_news( 'http://clicky.com/blog/rss', __( 'Latest news from Clicky', 'clicky' ) );
|
108 |
}
|
109 |
|
110 |
/**
|
111 |
+
* Box with latest news from Yoast.com for sidebar.
|
112 |
*/
|
113 |
private function yoast_news() {
|
114 |
+
$extra_links = '<li class="facebook"><a href="https://www.facebook.com/yoast">' . __( 'Like Yoast on Facebook', 'clicky' ) . '</a></li>';
|
115 |
$extra_links .= '<li class="twitter"><a href="https://twitter.com/yoast">' . __( 'Follow Yoast on Twitter', 'clicky' ) . '</a></li>';
|
116 |
$extra_links .= '<li class="email"><a href="https://yoast.com/newsletter/">' . __( 'Subscribe by email', 'clicky' ) . '</a></li>';
|
117 |
|
119 |
}
|
120 |
|
121 |
/**
|
122 |
+
* Instantiate the i18n module.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
123 |
*/
|
124 |
public function i18n_module() {
|
125 |
new yoast_i18n(
|
admin/class-clicky-admin.php
CHANGED
@@ -1,22 +1,24 @@
|
|
1 |
<?php
|
2 |
/**
|
|
|
|
|
3 |
* @package Yoast\Clicky\Admin
|
4 |
*/
|
5 |
|
6 |
/**
|
7 |
-
* Backend Class the Clicky plugin
|
8 |
*/
|
9 |
class Clicky_Admin {
|
10 |
|
11 |
/**
|
12 |
-
* This holds the plugins options
|
13 |
*
|
14 |
* @var array
|
15 |
*/
|
16 |
public $options = array();
|
17 |
|
18 |
/**
|
19 |
-
* Menu slug for WordPress admin
|
20 |
*
|
21 |
* @access private
|
22 |
* @var string
|
@@ -24,7 +26,7 @@ class Clicky_Admin {
|
|
24 |
public $hook = 'clicky';
|
25 |
|
26 |
/**
|
27 |
-
* Construct of class Clicky_admin
|
28 |
*
|
29 |
* @access private
|
30 |
* @link https://codex.wordpress.org/Function_Reference/add_action
|
@@ -41,40 +43,50 @@ class Clicky_Admin {
|
|
41 |
}
|
42 |
|
43 |
/**
|
44 |
-
* Initialize needed actions
|
45 |
*/
|
46 |
public function admin_init() {
|
47 |
$public_post_types = get_post_types( array( 'public' => true ) );
|
48 |
|
49 |
foreach ( $public_post_types as $post_type ) {
|
50 |
-
add_meta_box(
|
51 |
-
|
52 |
-
'
|
53 |
-
|
|
|
|
|
|
|
54 |
}
|
55 |
|
56 |
$this->register_menu_pages();
|
57 |
}
|
58 |
|
59 |
/**
|
60 |
-
* Creates the dashboard and options pages
|
61 |
*
|
62 |
* @link https://codex.wordpress.org/Function_Reference/add_options_page
|
63 |
* @link https://codex.wordpress.org/Function_Reference/add_dashboard_page
|
64 |
*/
|
65 |
private function register_menu_pages() {
|
66 |
-
add_options_page(
|
67 |
-
|
68 |
-
'
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
}
|
75 |
|
76 |
/**
|
77 |
-
* Creates
|
78 |
*/
|
79 |
public function admin_warnings() {
|
80 |
$required_options = array( 'site_id', 'site_key', 'admin_site_key' );
|
@@ -89,27 +101,32 @@ class Clicky_Admin {
|
|
89 |
}
|
90 |
|
91 |
/**
|
92 |
-
* Outputs a warning
|
93 |
*/
|
94 |
private function setup_warning() {
|
95 |
echo "<div class='updated'><p><strong>";
|
96 |
-
|
97 |
echo '</strong>';
|
98 |
-
printf(
|
|
|
|
|
|
|
|
|
|
|
99 |
echo '</p></div>';
|
100 |
}
|
101 |
|
102 |
/**
|
103 |
-
* Returns the plugins settings page URL
|
104 |
*
|
105 |
-
* @return string Admin URL to the current plugins settings URL
|
106 |
*/
|
107 |
private function plugin_options_url() {
|
108 |
return admin_url( 'options-general.php?page=' . $this->hook );
|
109 |
}
|
110 |
|
111 |
/**
|
112 |
-
* Add meta box for entering specific goals
|
113 |
*
|
114 |
* @link https://codex.wordpress.org/Function_Reference/get_post_meta
|
115 |
*/
|
@@ -122,11 +139,11 @@ class Clicky_Admin {
|
|
122 |
|
123 |
$clicky_goal = get_post_meta( $post->ID, '_clicky_goal', true );
|
124 |
|
125 |
-
require 'views/meta-box.php';
|
126 |
}
|
127 |
|
128 |
/**
|
129 |
-
* Updates post meta for '_clicky_goal' with goal ID and value
|
130 |
*
|
131 |
* @param int $post_id The post ID.
|
132 |
*/
|
@@ -139,20 +156,20 @@ class Clicky_Admin {
|
|
139 |
}
|
140 |
|
141 |
/**
|
142 |
-
* Loads (external) stats page in an iframe
|
143 |
*/
|
144 |
public function dashboard_page() {
|
145 |
$args = array(
|
146 |
'site_id' => $this->options['site_id'],
|
147 |
'sitekey' => $this->options['site_key'],
|
148 |
);
|
149 |
-
$iframe_url = 'https://clicky.com/stats/wp-iframe?'
|
150 |
|
151 |
-
require 'views/stats-page.php';
|
152 |
}
|
153 |
|
154 |
/**
|
155 |
-
* Add a link to the settings page to the plugins list
|
156 |
*
|
157 |
* @param array $links Links to add.
|
158 |
* @param string $file Plugin file name.
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Clicky for WordPress plugin file.
|
4 |
+
*
|
5 |
* @package Yoast\Clicky\Admin
|
6 |
*/
|
7 |
|
8 |
/**
|
9 |
+
* Backend Class the Clicky plugin.
|
10 |
*/
|
11 |
class Clicky_Admin {
|
12 |
|
13 |
/**
|
14 |
+
* This holds the plugins options.
|
15 |
*
|
16 |
* @var array
|
17 |
*/
|
18 |
public $options = array();
|
19 |
|
20 |
/**
|
21 |
+
* Menu slug for WordPress admin.
|
22 |
*
|
23 |
* @access private
|
24 |
* @var string
|
26 |
public $hook = 'clicky';
|
27 |
|
28 |
/**
|
29 |
+
* Construct of class Clicky_admin.
|
30 |
*
|
31 |
* @access private
|
32 |
* @link https://codex.wordpress.org/Function_Reference/add_action
|
43 |
}
|
44 |
|
45 |
/**
|
46 |
+
* Initialize needed actions.
|
47 |
*/
|
48 |
public function admin_init() {
|
49 |
$public_post_types = get_post_types( array( 'public' => true ) );
|
50 |
|
51 |
foreach ( $public_post_types as $post_type ) {
|
52 |
+
add_meta_box(
|
53 |
+
'clicky',
|
54 |
+
__( 'Clicky Goal Tracking', 'clicky' ),
|
55 |
+
array( $this, 'meta_box_content' ),
|
56 |
+
$post_type,
|
57 |
+
'side'
|
58 |
+
);
|
59 |
}
|
60 |
|
61 |
$this->register_menu_pages();
|
62 |
}
|
63 |
|
64 |
/**
|
65 |
+
* Creates the dashboard and options pages.
|
66 |
*
|
67 |
* @link https://codex.wordpress.org/Function_Reference/add_options_page
|
68 |
* @link https://codex.wordpress.org/Function_Reference/add_dashboard_page
|
69 |
*/
|
70 |
private function register_menu_pages() {
|
71 |
+
add_options_page(
|
72 |
+
__( 'Clicky settings', 'clicky' ),
|
73 |
+
__( 'Clicky', 'clicky' ),
|
74 |
+
'manage_options',
|
75 |
+
$this->hook,
|
76 |
+
array( new Clicky_Admin_Page(), 'config_page' )
|
77 |
+
);
|
78 |
+
|
79 |
+
add_dashboard_page(
|
80 |
+
__( 'Clicky Stats', 'clicky' ),
|
81 |
+
__( 'Clicky Stats', 'clicky' ),
|
82 |
+
'manage_options',
|
83 |
+
'clicky_stats',
|
84 |
+
array( $this, 'dashboard_page' )
|
85 |
+
);
|
86 |
}
|
87 |
|
88 |
/**
|
89 |
+
* Creates warnings for empty fields in the admin.
|
90 |
*/
|
91 |
public function admin_warnings() {
|
92 |
$required_options = array( 'site_id', 'site_key', 'admin_site_key' );
|
101 |
}
|
102 |
|
103 |
/**
|
104 |
+
* Outputs a warning.
|
105 |
*/
|
106 |
private function setup_warning() {
|
107 |
echo "<div class='updated'><p><strong>";
|
108 |
+
esc_html_e( 'Clicky is almost ready. ', 'clicky' );
|
109 |
echo '</strong>';
|
110 |
+
printf(
|
111 |
+
/* translators: 1: link open tag to the plugin settings page; 2: link close tag. */
|
112 |
+
esc_html__( 'You must %1$s enter your Clicky Site ID, Site Key and Admin Site Key%2$s for it to work.', 'clicky' ),
|
113 |
+
"<a href='" . esc_url( $this->plugin_options_url() ) . "'>",
|
114 |
+
'</a>'
|
115 |
+
);
|
116 |
echo '</p></div>';
|
117 |
}
|
118 |
|
119 |
/**
|
120 |
+
* Returns the plugins settings page URL.
|
121 |
*
|
122 |
+
* @return string Admin URL to the current plugins settings URL.
|
123 |
*/
|
124 |
private function plugin_options_url() {
|
125 |
return admin_url( 'options-general.php?page=' . $this->hook );
|
126 |
}
|
127 |
|
128 |
/**
|
129 |
+
* Add meta box for entering specific goals.
|
130 |
*
|
131 |
* @link https://codex.wordpress.org/Function_Reference/get_post_meta
|
132 |
*/
|
139 |
|
140 |
$clicky_goal = get_post_meta( $post->ID, '_clicky_goal', true );
|
141 |
|
142 |
+
require CLICKY_PLUGIN_DIR_PATH . 'admin/views/meta-box.php';
|
143 |
}
|
144 |
|
145 |
/**
|
146 |
+
* Updates post meta for '_clicky_goal' with goal ID and value.
|
147 |
*
|
148 |
* @param int $post_id The post ID.
|
149 |
*/
|
156 |
}
|
157 |
|
158 |
/**
|
159 |
+
* Loads (external) stats page in an iframe.
|
160 |
*/
|
161 |
public function dashboard_page() {
|
162 |
$args = array(
|
163 |
'site_id' => $this->options['site_id'],
|
164 |
'sitekey' => $this->options['site_key'],
|
165 |
);
|
166 |
+
$iframe_url = add_query_arg( $args, 'https://clicky.com/stats/wp-iframe?' );
|
167 |
|
168 |
+
require CLICKY_PLUGIN_DIR_PATH . 'admin/views/stats-page.php';
|
169 |
}
|
170 |
|
171 |
/**
|
172 |
+
* Add a link to the settings page to the plugins list.
|
173 |
*
|
174 |
* @param array $links Links to add.
|
175 |
* @param string $file Plugin file name.
|
admin/class-clicky-options-admin.php
CHANGED
@@ -1,22 +1,24 @@
|
|
1 |
<?php
|
2 |
/**
|
|
|
|
|
3 |
* @package Yoast\Clicky\Admin
|
4 |
*/
|
5 |
|
6 |
/**
|
7 |
-
* Backend Class for the Clicky plugin options
|
8 |
*/
|
9 |
class Clicky_Options_Admin extends Clicky_Options {
|
10 |
|
11 |
/**
|
12 |
-
* The option group name
|
13 |
*
|
14 |
* @var string
|
15 |
*/
|
16 |
public static $option_group = 'clicky_options';
|
17 |
|
18 |
/**
|
19 |
-
* Class constructor
|
20 |
*/
|
21 |
public function __construct() {
|
22 |
add_action( 'admin_init', array( $this, 'admin_init' ) );
|
@@ -25,7 +27,7 @@ class Clicky_Options_Admin extends Clicky_Options {
|
|
25 |
}
|
26 |
|
27 |
/**
|
28 |
-
* Register the needed option and its settings sections
|
29 |
*/
|
30 |
public function admin_init() {
|
31 |
register_setting( self::$option_group, parent::$option_name, array( $this, 'sanitize_options_on_save' ) );
|
@@ -36,13 +38,15 @@ class Clicky_Options_Admin extends Clicky_Options {
|
|
36 |
}
|
37 |
|
38 |
/**
|
39 |
-
* Register the basic settings
|
40 |
*/
|
41 |
private function register_basic_settings() {
|
42 |
-
add_settings_section(
|
43 |
-
|
44 |
-
'
|
45 |
-
|
|
|
|
|
46 |
|
47 |
$clicky_settings = array(
|
48 |
'site_id' => __( 'Site ID', 'clicky' ),
|
@@ -50,25 +54,37 @@ class Clicky_Options_Admin extends Clicky_Options {
|
|
50 |
'admin_site_key' => __( 'Admin Site Key', 'clicky' ),
|
51 |
);
|
52 |
foreach ( $clicky_settings as $key => $label ) {
|
53 |
-
|
54 |
'name' => 'clicky[' . $key . ']',
|
55 |
'value' => $this->options[ $key ],
|
56 |
-
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
}
|
58 |
|
59 |
-
add_settings_section(
|
60 |
-
|
61 |
-
'
|
62 |
-
|
|
|
|
|
63 |
|
64 |
-
add_settings_section(
|
65 |
-
|
66 |
-
'
|
67 |
-
|
|
|
|
|
68 |
}
|
69 |
|
70 |
/**
|
71 |
-
* Register the separate advanced settings screen
|
72 |
*/
|
73 |
private function register_advanced_settings() {
|
74 |
add_settings_section( 'clicky-advanced', __( 'Advanced Settings', 'clicky' ), null, 'clicky-advanced' );
|
@@ -84,46 +100,64 @@ class Clicky_Options_Admin extends Clicky_Options {
|
|
84 |
),
|
85 |
'cookies_disable' => array(
|
86 |
'label' => __( 'Disable cookies', 'clicky' ),
|
87 |
-
'desc' => __( 'If you don\'t want Clicky to use cookies on your site, check this button. By doing so,
|
88 |
),
|
89 |
'track_names' => array(
|
90 |
'label' => __( 'Track names of commenters', 'clicky' ),
|
91 |
),
|
92 |
);
|
93 |
foreach ( $advanced_settings as $key => $arr ) {
|
94 |
-
|
95 |
-
$this,
|
96 |
-
'input_checkbox',
|
97 |
-
), 'clicky-advanced', 'clicky-advanced', array(
|
98 |
'name' => $key,
|
99 |
'value' => isset( $this->options[ $key ] ) ? $this->options[ $key ] : false,
|
100 |
'desc' => isset( $arr['desc'] ) ? $arr['desc'] : '',
|
101 |
-
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
102 |
}
|
103 |
}
|
104 |
|
105 |
/**
|
106 |
-
* Register the outbound links settings section
|
107 |
*/
|
108 |
private function register_outbound_settings() {
|
109 |
-
add_settings_section(
|
|
|
|
|
|
|
|
|
|
|
110 |
|
111 |
-
|
112 |
'name' => 'clicky[outbound_pattern]',
|
113 |
'value' => $this->options['outbound_pattern'],
|
114 |
'desc' => __( 'For instance: <code>/out/,/go/</code>', 'clicky' ),
|
115 |
-
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
116 |
}
|
117 |
|
118 |
/**
|
119 |
* Create a "plugin like" box.
|
120 |
*/
|
121 |
public function like_text() {
|
122 |
-
require 'views/like-box.php';
|
123 |
}
|
124 |
|
125 |
/**
|
126 |
-
* Sanitizes and trims a string
|
127 |
*
|
128 |
* @param string $string String to sanitize.
|
129 |
*
|
@@ -134,7 +168,7 @@ class Clicky_Options_Admin extends Clicky_Options {
|
|
134 |
}
|
135 |
|
136 |
/**
|
137 |
-
* Sanitize options
|
138 |
*
|
139 |
* @param array $new_options Options to sanitize.
|
140 |
*
|
@@ -175,43 +209,60 @@ class Clicky_Options_Admin extends Clicky_Options {
|
|
175 |
}
|
176 |
|
177 |
/**
|
178 |
-
* Intro for the basic settings screen
|
179 |
*/
|
180 |
public function basic_settings_intro() {
|
181 |
echo '<p>';
|
182 |
-
printf(
|
|
|
|
|
|
|
|
|
|
|
183 |
echo '</p>';
|
184 |
}
|
185 |
|
186 |
/**
|
187 |
-
* Intro for the the outbound links section
|
188 |
*/
|
189 |
public function outbound_explanation() {
|
190 |
echo '<p>';
|
191 |
-
printf(
|
|
|
|
|
|
|
|
|
|
|
192 |
echo '</p>';
|
193 |
}
|
194 |
|
195 |
/**
|
196 |
-
* Text for the support box
|
197 |
*/
|
198 |
public function support_text() {
|
199 |
-
echo '<p>'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
200 |
}
|
201 |
|
202 |
/**
|
203 |
-
* Output an optional input description
|
204 |
*
|
205 |
* @param array $args Arguments to get data from.
|
206 |
*/
|
207 |
private function input_desc( $args ) {
|
208 |
if ( isset( $args['desc'] ) ) {
|
209 |
-
echo '<p class="description">' . $args['desc'] . '</p>';
|
210 |
}
|
211 |
}
|
212 |
|
213 |
/**
|
214 |
-
* Create a text input
|
215 |
*
|
216 |
* @param array $args Arguments to get data from.
|
217 |
*/
|
@@ -221,7 +272,7 @@ class Clicky_Options_Admin extends Clicky_Options {
|
|
221 |
}
|
222 |
|
223 |
/**
|
224 |
-
* Create a checkbox input
|
225 |
*
|
226 |
* @param array $args Arguments to get data from.
|
227 |
*/
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Clicky for WordPress plugin file.
|
4 |
+
*
|
5 |
* @package Yoast\Clicky\Admin
|
6 |
*/
|
7 |
|
8 |
/**
|
9 |
+
* Backend Class for the Clicky plugin options.
|
10 |
*/
|
11 |
class Clicky_Options_Admin extends Clicky_Options {
|
12 |
|
13 |
/**
|
14 |
+
* The option group name.
|
15 |
*
|
16 |
* @var string
|
17 |
*/
|
18 |
public static $option_group = 'clicky_options';
|
19 |
|
20 |
/**
|
21 |
+
* Class constructor.
|
22 |
*/
|
23 |
public function __construct() {
|
24 |
add_action( 'admin_init', array( $this, 'admin_init' ) );
|
27 |
}
|
28 |
|
29 |
/**
|
30 |
+
* Register the needed option and its settings sections.
|
31 |
*/
|
32 |
public function admin_init() {
|
33 |
register_setting( self::$option_group, parent::$option_name, array( $this, 'sanitize_options_on_save' ) );
|
38 |
}
|
39 |
|
40 |
/**
|
41 |
+
* Register the basic settings.
|
42 |
*/
|
43 |
private function register_basic_settings() {
|
44 |
+
add_settings_section(
|
45 |
+
'basic-settings',
|
46 |
+
__( 'Basic settings', 'clicky' ),
|
47 |
+
array( $this, 'basic_settings_intro' ),
|
48 |
+
'clicky'
|
49 |
+
);
|
50 |
|
51 |
$clicky_settings = array(
|
52 |
'site_id' => __( 'Site ID', 'clicky' ),
|
54 |
'admin_site_key' => __( 'Admin Site Key', 'clicky' ),
|
55 |
);
|
56 |
foreach ( $clicky_settings as $key => $label ) {
|
57 |
+
$args = array(
|
58 |
'name' => 'clicky[' . $key . ']',
|
59 |
'value' => $this->options[ $key ],
|
60 |
+
);
|
61 |
+
add_settings_field(
|
62 |
+
$key,
|
63 |
+
$label,
|
64 |
+
array( $this, 'input_text' ),
|
65 |
+
'clicky',
|
66 |
+
'basic-settings',
|
67 |
+
$args
|
68 |
+
);
|
69 |
}
|
70 |
|
71 |
+
add_settings_section(
|
72 |
+
'clicky-like',
|
73 |
+
__( 'Like this plugin?', 'clicky' ),
|
74 |
+
array( $this, 'like_text' ),
|
75 |
+
'clicky'
|
76 |
+
);
|
77 |
|
78 |
+
add_settings_section(
|
79 |
+
'clicky-support',
|
80 |
+
__( 'Need support?', 'clicky' ),
|
81 |
+
array( $this, 'support_text' ),
|
82 |
+
'clicky'
|
83 |
+
);
|
84 |
}
|
85 |
|
86 |
/**
|
87 |
+
* Register the separate advanced settings screen.
|
88 |
*/
|
89 |
private function register_advanced_settings() {
|
90 |
add_settings_section( 'clicky-advanced', __( 'Advanced Settings', 'clicky' ), null, 'clicky-advanced' );
|
100 |
),
|
101 |
'cookies_disable' => array(
|
102 |
'label' => __( 'Disable cookies', 'clicky' ),
|
103 |
+
'desc' => __( 'If you don\'t want Clicky to use cookies on your site, check this button. By doing so, uniqueness will instead be determined based on their IP address.', 'clicky' ),
|
104 |
),
|
105 |
'track_names' => array(
|
106 |
'label' => __( 'Track names of commenters', 'clicky' ),
|
107 |
),
|
108 |
);
|
109 |
foreach ( $advanced_settings as $key => $arr ) {
|
110 |
+
$args = array(
|
|
|
|
|
|
|
111 |
'name' => $key,
|
112 |
'value' => isset( $this->options[ $key ] ) ? $this->options[ $key ] : false,
|
113 |
'desc' => isset( $arr['desc'] ) ? $arr['desc'] : '',
|
114 |
+
);
|
115 |
+
add_settings_field(
|
116 |
+
$key,
|
117 |
+
$arr['label'],
|
118 |
+
array( $this, 'input_checkbox' ),
|
119 |
+
'clicky-advanced',
|
120 |
+
'clicky-advanced',
|
121 |
+
$args
|
122 |
+
);
|
123 |
}
|
124 |
}
|
125 |
|
126 |
/**
|
127 |
+
* Register the outbound links settings section.
|
128 |
*/
|
129 |
private function register_outbound_settings() {
|
130 |
+
add_settings_section(
|
131 |
+
'clicky-outbound',
|
132 |
+
__( 'Outbound Links', 'clicky' ),
|
133 |
+
array( $this, 'outbound_explanation' ),
|
134 |
+
'clicky-advanced'
|
135 |
+
);
|
136 |
|
137 |
+
$args = array(
|
138 |
'name' => 'clicky[outbound_pattern]',
|
139 |
'value' => $this->options['outbound_pattern'],
|
140 |
'desc' => __( 'For instance: <code>/out/,/go/</code>', 'clicky' ),
|
141 |
+
);
|
142 |
+
add_settings_field(
|
143 |
+
'outbound_pattern',
|
144 |
+
__( 'Outbound Link Pattern', 'clicky' ),
|
145 |
+
array( $this, 'input_text' ),
|
146 |
+
'clicky-advanced',
|
147 |
+
'clicky-outbound',
|
148 |
+
$args
|
149 |
+
);
|
150 |
}
|
151 |
|
152 |
/**
|
153 |
* Create a "plugin like" box.
|
154 |
*/
|
155 |
public function like_text() {
|
156 |
+
require CLICKY_PLUGIN_DIR_PATH . 'admin/views/like-box.php';
|
157 |
}
|
158 |
|
159 |
/**
|
160 |
+
* Sanitizes and trims a string.
|
161 |
*
|
162 |
* @param string $string String to sanitize.
|
163 |
*
|
168 |
}
|
169 |
|
170 |
/**
|
171 |
+
* Sanitize options.
|
172 |
*
|
173 |
* @param array $new_options Options to sanitize.
|
174 |
*
|
209 |
}
|
210 |
|
211 |
/**
|
212 |
+
* Intro for the basic settings screen.
|
213 |
*/
|
214 |
public function basic_settings_intro() {
|
215 |
echo '<p>';
|
216 |
+
printf(
|
217 |
+
/* translators: 1: link open tag to the clicky user homepage; 2: link close tag. */
|
218 |
+
esc_html__( 'Go to your %1$suser homepage on Clicky%2$s and click "Preferences" under the name of the domain, you will find the Site ID, Site Key, Admin Site Key and Database Server under Site information.', 'clicky' ),
|
219 |
+
'<a href="http://clicky.com/145844">',
|
220 |
+
'</a>'
|
221 |
+
);
|
222 |
echo '</p>';
|
223 |
}
|
224 |
|
225 |
/**
|
226 |
+
* Intro for the the outbound links section.
|
227 |
*/
|
228 |
public function outbound_explanation() {
|
229 |
echo '<p>';
|
230 |
+
printf(
|
231 |
+
/* translators: 1: link open tag to the clicky knowledge base article; 2: link close tag. */
|
232 |
+
esc_html__( 'If your site uses redirects for outbound links, instead of links that point directly to their external source (this is popular with affiliate links, for example), then you\'ll need to use this variable to tell our tracking code additional patterns to look for when automatically tracking outbound links. %1$sRead more here%2$s.', 'clicky' ),
|
233 |
+
'<a href="https://secure.getclicky.com/helpy?type=customization#outbound_pattern">',
|
234 |
+
'</a>'
|
235 |
+
);
|
236 |
echo '</p>';
|
237 |
}
|
238 |
|
239 |
/**
|
240 |
+
* Text for the support box.
|
241 |
*/
|
242 |
public function support_text() {
|
243 |
+
echo '<p>';
|
244 |
+
printf(
|
245 |
+
/* translators: 1: link open tag to clicky forum website; 2: link close tag. */
|
246 |
+
esc_html__( 'If you\'re in need of support with Clicky and / or this plugin, please visit the %1$sClicky forums%2$s.', 'clicky' ),
|
247 |
+
"<a href='https://clicky.com/forums/'>",
|
248 |
+
'</a>'
|
249 |
+
);
|
250 |
+
echo '</p>';
|
251 |
}
|
252 |
|
253 |
/**
|
254 |
+
* Output an optional input description.
|
255 |
*
|
256 |
* @param array $args Arguments to get data from.
|
257 |
*/
|
258 |
private function input_desc( $args ) {
|
259 |
if ( isset( $args['desc'] ) ) {
|
260 |
+
echo '<p class="description">' . esc_html( $args['desc'] ) . '</p>';
|
261 |
}
|
262 |
}
|
263 |
|
264 |
/**
|
265 |
+
* Create a text input.
|
266 |
*
|
267 |
* @param array $args Arguments to get data from.
|
268 |
*/
|
272 |
}
|
273 |
|
274 |
/**
|
275 |
+
* Create a checkbox input.
|
276 |
*
|
277 |
* @param array $args Arguments to get data from.
|
278 |
*/
|
admin/index.php
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Nothing to see here.
|
4 |
+
*/
|
admin/views/admin-page.php
CHANGED
@@ -1,21 +1,23 @@
|
|
1 |
<?php
|
2 |
/**
|
|
|
|
|
3 |
* @package Yoast/Clicky/View
|
4 |
*/
|
5 |
|
6 |
?><div class="wrap">
|
7 |
<h2>
|
8 |
-
<img id="plugin_icon" src="<?php echo CLICKY_PLUGIN_DIR_URL; ?>images/clicky-32x32.png" class="alignleft" /> Clicky <?php
|
9 |
</h2>
|
10 |
|
11 |
-
<form action="<?php echo admin_url( 'options.php' ); ?>" method="post">
|
12 |
<?php
|
13 |
settings_fields( Clicky_Options_Admin::$option_group );
|
14 |
?>
|
15 |
<div id="yoast_wrapper">
|
16 |
<h2 class="nav-tab-wrapper" id="yoast-tabs">
|
17 |
-
<a class="nav-tab" id="basic-tab" href="#top#basic"><?php
|
18 |
-
<a class="nav-tab" id="advanced-tab" href="#top#advanced"><?php
|
19 |
</h2>
|
20 |
|
21 |
<div class="tabwrapper">
|
@@ -36,7 +38,6 @@
|
|
36 |
<div id="yoast_sidebar">
|
37 |
<?php
|
38 |
$this->yoast_news();
|
39 |
-
$this->website_review_banner();
|
40 |
$this->clicky_news();
|
41 |
?>
|
42 |
</div>
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Clicky for WordPress plugin file.
|
4 |
+
*
|
5 |
* @package Yoast/Clicky/View
|
6 |
*/
|
7 |
|
8 |
?><div class="wrap">
|
9 |
<h2>
|
10 |
+
<img id="plugin_icon" src="<?php echo esc_url( CLICKY_PLUGIN_DIR_URL ); ?>images/clicky-32x32.png" class="alignleft" /> Clicky <?php esc_html_e( 'Configuration', 'clicky' ); ?>
|
11 |
</h2>
|
12 |
|
13 |
+
<form action="<?php echo esc_url( admin_url( 'options.php' ) ); ?>" method="post">
|
14 |
<?php
|
15 |
settings_fields( Clicky_Options_Admin::$option_group );
|
16 |
?>
|
17 |
<div id="yoast_wrapper">
|
18 |
<h2 class="nav-tab-wrapper" id="yoast-tabs">
|
19 |
+
<a class="nav-tab" id="basic-tab" href="#top#basic"><?php esc_html_e( 'Basic settings', 'clicky' ); ?></a>
|
20 |
+
<a class="nav-tab" id="advanced-tab" href="#top#advanced"><?php esc_html_e( 'Advanced settings', 'clicky' ); ?></a>
|
21 |
</h2>
|
22 |
|
23 |
<div class="tabwrapper">
|
38 |
<div id="yoast_sidebar">
|
39 |
<?php
|
40 |
$this->yoast_news();
|
|
|
41 |
$this->clicky_news();
|
42 |
?>
|
43 |
</div>
|
admin/views/index.php
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Nothing to see here.
|
4 |
+
*/
|
admin/views/like-box.php
CHANGED
@@ -1,11 +1,13 @@
|
|
1 |
<?php
|
2 |
/**
|
|
|
|
|
3 |
* @package Yoast/Clicky/View
|
4 |
*/
|
5 |
|
6 |
-
?><p><?php
|
7 |
<ul>
|
8 |
-
<li><a href="https://yoast.com/wordpress/plugins/clicky/"><?php
|
9 |
-
<li><a href="https://wordpress.org/plugins/clicky/"><?php
|
10 |
-
<li><a href="https://wordpress.org/plugins/clicky/"><?php
|
11 |
</ul>
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Clicky for WordPress plugin file.
|
4 |
+
*
|
5 |
* @package Yoast/Clicky/View
|
6 |
*/
|
7 |
|
8 |
+
?><p><?php esc_html_e( 'Why not do any or all of the following:', 'clicky' ); ?></p>
|
9 |
<ul>
|
10 |
+
<li><a href="https://yoast.com/wordpress/plugins/clicky/"><?php esc_html_e( 'Link to it so other folks can find out about it.', 'clicky' ); ?></a></li>
|
11 |
+
<li><a href="https://wordpress.org/plugins/clicky/"><?php esc_html_e( 'Give it a 5 star rating on WordPress.org.', 'clicky' ); ?></a></li>
|
12 |
+
<li><a href="https://wordpress.org/plugins/clicky/"><?php esc_html_e( 'Let other people know that it works with your WordPress setup.', 'clicky' ); ?></a></li>
|
13 |
</ul>
|
admin/views/meta-box.php
CHANGED
@@ -1,19 +1,27 @@
|
|
1 |
<?php
|
2 |
/**
|
|
|
|
|
3 |
* @package Yoast/Clicky/View
|
4 |
*/
|
5 |
|
6 |
?><p>
|
7 |
-
|
8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
</p>
|
10 |
<table>
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
</table>
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Clicky for WordPress plugin file.
|
4 |
+
*
|
5 |
* @package Yoast/Clicky/View
|
6 |
*/
|
7 |
|
8 |
?><p>
|
9 |
+
<?php
|
10 |
+
printf(
|
11 |
+
/* translators: 1: link open tag to clicky website tracking page; 2: link close tag. */
|
12 |
+
esc_html__( 'Clicky can track Goals for you too, %1$syou can create them here%2$s. To be able to track a goal on this post, you need to specify the goal ID here. Optionally, you can also provide the goal revenue.', 'clicky' ),
|
13 |
+
'<a target="_blank" href="https://clicky.com/stats/goals-setup?site_id=' . esc_attr( $this->options['site_id'] ) . '">',
|
14 |
+
'</a>'
|
15 |
+
);
|
16 |
+
?>
|
17 |
</p>
|
18 |
<table>
|
19 |
+
<tr>
|
20 |
+
<th><label for="clicky_goal_id"><?php esc_html_e( 'Goal ID:', 'clicky' ); ?></label></th>
|
21 |
+
<td><input type="text" name="clicky_goal_id" id="clicky_goal_id" value="<?php echo ( isset( $clicky_goal['id'] ) ? esc_attr( $clicky_goal['id'] ) : '' ); ?>"/></td>
|
22 |
+
</tr>
|
23 |
+
<tr>
|
24 |
+
<th><label for="clicky_goal_value"><?php esc_html_e( 'Goal Revenue:', 'clicky' ); ?></label></th>
|
25 |
+
<td><input type="text" name="clicky_goal_value" id="clicky_goal_value" value="<?php echo ( isset( $clicky_goal['value'] ) ? esc_attr( $clicky_goal['value'] ) : '' ); ?>"/></td>
|
26 |
+
</tr>
|
27 |
</table>
|
admin/views/stats-page.php
CHANGED
@@ -1,8 +1,10 @@
|
|
1 |
<?php
|
2 |
/**
|
|
|
|
|
3 |
* @package Yoast/Clicky/View
|
4 |
*/
|
5 |
|
6 |
?><br/>
|
7 |
<iframe style="margin-left: 20px; width: 100%; height: 1000px;"
|
8 |
-
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Clicky for WordPress plugin file.
|
4 |
+
*
|
5 |
* @package Yoast/Clicky/View
|
6 |
*/
|
7 |
|
8 |
?><br/>
|
9 |
<iframe style="margin-left: 20px; width: 100%; height: 1000px;"
|
10 |
+
src="<?php echo esc_url( $iframe_url ); ?>"></iframe>
|
clicky.php
CHANGED
@@ -1,13 +1,18 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
*
|
4 |
*
|
|
|
|
|
|
|
|
|
|
|
5 |
* Plugin Name: Clicky for WordPress
|
6 |
-
* Version:
|
7 |
-
* Plugin URI:
|
8 |
* Description: The Clicky for WordPress plugin by Yoast makes it easy for you to add your Clicky analytics tracking code to your WordPress install, while also giving you some advanced tracking options.
|
9 |
-
* Author:
|
10 |
-
* Author URI:
|
11 |
* Text Domain: clicky
|
12 |
*/
|
13 |
|
@@ -18,6 +23,7 @@ if ( ! function_exists( 'add_filter' ) ) {
|
|
18 |
}
|
19 |
|
20 |
define( 'CLICKY_PLUGIN_FILE', __FILE__ );
|
|
|
21 |
define( 'CLICKY_PLUGIN_DIR_PATH', plugin_dir_path( __FILE__ ) );
|
22 |
define( 'CLICKY_PLUGIN_DIR_URL', plugin_dir_url( __FILE__ ) );
|
23 |
|
@@ -26,12 +32,12 @@ if ( file_exists( CLICKY_PLUGIN_DIR_PATH . 'vendor/autoload_52.php' ) ) {
|
|
26 |
}
|
27 |
|
28 |
/**
|
29 |
-
* Class Yoast Clicky base class
|
30 |
*/
|
31 |
class Yoast_Clicky {
|
32 |
|
33 |
/**
|
34 |
-
* Initialize the plugin settings
|
35 |
*/
|
36 |
public function __construct() {
|
37 |
if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
|
@@ -42,7 +48,7 @@ class Yoast_Clicky {
|
|
42 |
}
|
43 |
|
44 |
/**
|
45 |
-
* Initialize the whole plugin
|
46 |
*/
|
47 |
public function init() {
|
48 |
load_plugin_textdomain( 'clicky', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Clicky for WordPress Plugin.
|
4 |
*
|
5 |
+
* @package Yoast/Clicky
|
6 |
+
* @copyright Copyright (C) 2012-2019 Yoast BV - support@yoast.com
|
7 |
+
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 or higher
|
8 |
+
*
|
9 |
+
* @wordpress-plugin
|
10 |
* Plugin Name: Clicky for WordPress
|
11 |
+
* Version: 1.8
|
12 |
+
* Plugin URI: https://yoast.com/wordpress/plugins/clicky/
|
13 |
* Description: The Clicky for WordPress plugin by Yoast makes it easy for you to add your Clicky analytics tracking code to your WordPress install, while also giving you some advanced tracking options.
|
14 |
+
* Author: Team Yoast
|
15 |
+
* Author URI: https://yoast.com/
|
16 |
* Text Domain: clicky
|
17 |
*/
|
18 |
|
23 |
}
|
24 |
|
25 |
define( 'CLICKY_PLUGIN_FILE', __FILE__ );
|
26 |
+
define( 'CLICKY_PLUGIN_VERSION', '1.8' );
|
27 |
define( 'CLICKY_PLUGIN_DIR_PATH', plugin_dir_path( __FILE__ ) );
|
28 |
define( 'CLICKY_PLUGIN_DIR_URL', plugin_dir_url( __FILE__ ) );
|
29 |
|
32 |
}
|
33 |
|
34 |
/**
|
35 |
+
* Class Yoast Clicky base class.
|
36 |
*/
|
37 |
class Yoast_Clicky {
|
38 |
|
39 |
/**
|
40 |
+
* Initialize the plugin settings.
|
41 |
*/
|
42 |
public function __construct() {
|
43 |
if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
|
48 |
}
|
49 |
|
50 |
/**
|
51 |
+
* Initialize the whole plugin.
|
52 |
*/
|
53 |
public function init() {
|
54 |
load_plugin_textdomain( 'clicky', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
|
css/adminbar.css
DELETED
@@ -1,14 +0,0 @@
|
|
1 |
-
#wpadminbar .quicklinks li#wp-admin-bar-clickystats {
|
2 |
-
height: 28px;
|
3 |
-
}
|
4 |
-
|
5 |
-
#wpadminbar .quicklinks li#wp-admin-bar-clickystats a {
|
6 |
-
height: 28px;
|
7 |
-
padding: 0;
|
8 |
-
}
|
9 |
-
|
10 |
-
#wpadminbar .quicklinks li#wp-admin-bar-clickystats a img {
|
11 |
-
width: 99px;
|
12 |
-
height: 20px;
|
13 |
-
padding: 4px 5px;
|
14 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
css/clicky_admin.css
DELETED
@@ -1,126 +0,0 @@
|
|
1 |
-
/**
|
2 |
-
* Plugin icon
|
3 |
-
*/
|
4 |
-
#plugin_icon {
|
5 |
-
margin: 0 10px 0 0;
|
6 |
-
}
|
7 |
-
|
8 |
-
/**
|
9 |
-
* Main wrappers
|
10 |
-
*/
|
11 |
-
#yoast_wrapper {
|
12 |
-
float: left;
|
13 |
-
max-width: 600px;
|
14 |
-
margin: 0 25px 0 0;
|
15 |
-
}
|
16 |
-
|
17 |
-
#yoast_sidebar {
|
18 |
-
float: left;
|
19 |
-
max-width: 261px;
|
20 |
-
margin: 0 20px 0 0;
|
21 |
-
}
|
22 |
-
|
23 |
-
/**
|
24 |
-
* Tab navigation
|
25 |
-
*/
|
26 |
-
.nav-tab-wrapper {
|
27 |
-
margin-bottom: 0;
|
28 |
-
}
|
29 |
-
|
30 |
-
.yoast_tab {
|
31 |
-
display: none;
|
32 |
-
}
|
33 |
-
|
34 |
-
.yoast_tab.active {
|
35 |
-
display: block;
|
36 |
-
padding: 0.5em 0.9em;
|
37 |
-
border: 1px solid #ddd;
|
38 |
-
border-radius: 0 3px 3px 3px;
|
39 |
-
background-color: #fff;
|
40 |
-
}
|
41 |
-
|
42 |
-
.tabwrapper .yoast_tab {
|
43 |
-
padding: 0;
|
44 |
-
border: none;
|
45 |
-
background: none;
|
46 |
-
}
|
47 |
-
|
48 |
-
.tabwrapper .yoast_tab h3 {
|
49 |
-
padding: 9px 15px 4px 0;
|
50 |
-
font-size: 23px;
|
51 |
-
font-weight: 400;
|
52 |
-
}
|
53 |
-
|
54 |
-
/**
|
55 |
-
* Styling for content in tabs
|
56 |
-
*/
|
57 |
-
.yoast_tab .text,
|
58 |
-
.yoast_tab .select {
|
59 |
-
width: 300px;
|
60 |
-
}
|
61 |
-
|
62 |
-
.yoast_tab li {
|
63 |
-
margin-left: 20px;
|
64 |
-
list-style-type: disc;
|
65 |
-
}
|
66 |
-
|
67 |
-
/**
|
68 |
-
* Boxes used in the sidebar
|
69 |
-
*/
|
70 |
-
.yoast_box {
|
71 |
-
margin: 0 0 20px 0;
|
72 |
-
border: 1px solid #ccc;
|
73 |
-
background-color: #fff;
|
74 |
-
}
|
75 |
-
|
76 |
-
.yoast_box h3 {
|
77 |
-
padding: 0 0 8px 10px;
|
78 |
-
border-bottom: 1px solid #ccc;
|
79 |
-
}
|
80 |
-
|
81 |
-
.yoast_box .inside {
|
82 |
-
padding: 0 10px;
|
83 |
-
}
|
84 |
-
|
85 |
-
.yoast_box .inside ul li {
|
86 |
-
margin-left: 20px;
|
87 |
-
line-height: 16px;
|
88 |
-
list-style: square;
|
89 |
-
}
|
90 |
-
|
91 |
-
.yoast_box .inside a {
|
92 |
-
text-decoration: none;
|
93 |
-
}
|
94 |
-
|
95 |
-
.yoast_box a:hover {
|
96 |
-
text-decoration: underline;
|
97 |
-
}
|
98 |
-
|
99 |
-
.yoast_box ul li.rss {
|
100 |
-
list-style-image: url(../images/rss.png);
|
101 |
-
}
|
102 |
-
|
103 |
-
.yoast_box ul li.twitter {
|
104 |
-
list-style-image: url(../images/twitter-icon.png);
|
105 |
-
}
|
106 |
-
|
107 |
-
.yoast_box ul li.facebook {
|
108 |
-
list-style-image: url(../images/facebook-icon.png);
|
109 |
-
}
|
110 |
-
|
111 |
-
.yoast_box ul li.email {
|
112 |
-
list-style-image: url(../images/email_sub.png);
|
113 |
-
}
|
114 |
-
|
115 |
-
.yoast_box ul li.yoast {
|
116 |
-
margin-left: 0;
|
117 |
-
list-style-type: none;
|
118 |
-
}
|
119 |
-
|
120 |
-
/**
|
121 |
-
* Banner used in the sidebar
|
122 |
-
*/
|
123 |
-
.yoast_banner {
|
124 |
-
display: block;
|
125 |
-
margin: 0 0 20px 0;
|
126 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
css/clicky_admin.min.css
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
#plugin_icon{margin:0 10px 0 0}#yoast_wrapper{float:left;max-width:600px;margin:0 25px 0 0}#yoast_sidebar{float:left;max-width:261px;margin:0 20px 0 0}.nav-tab-wrapper{margin-bottom:0}.yoast_tab{display:none}.yoast_tab.active{display:block;padding:.5em .9em;border:1px solid #ddd;border-radius:0 3px 3px;background-color:#fff}.tabwrapper .yoast_tab{padding:0;border:none;background:0 0}.tabwrapper .yoast_tab h3{padding:9px 15px 4px 0;font-size:23px;font-weight:400}.yoast_tab .select,.yoast_tab .text{width:300px}.yoast_tab li{margin-left:20px;list-style-type:disc}.yoast_box{margin:0 0 20px;border:1px solid #ccc;background-color:#fff}.yoast_box h3{padding:0 0 8px 10px;border-bottom:1px solid #ccc}.yoast_box .inside{padding:0 10px}.yoast_box .inside ul li{margin-left:20px;line-height:16px;list-style:square}.yoast_box .inside a{text-decoration:none}.yoast_box a:hover{text-decoration:underline}.yoast_box ul li.rss{list-style-image:url(../images/rss.png)}.yoast_box ul li.twitter{list-style-image:url(../images/twitter-icon.png)}.yoast_box ul li.facebook{list-style-image:url(../images/facebook-icon.png)}.yoast_box ul li.email{list-style-image:url(../images/email_sub.png)}.yoast_box ul li.yoast{margin-left:0;list-style-type:none}.yoast_banner{display:block;margin:0 0 20px}
|
|
css/{adminbar.min.css → dist/adminbar.css}
RENAMED
File without changes
|
css/dist/clicky_admin.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
#plugin_icon{margin:0 10px 0 0}#yoast_wrapper{float:left;max-width:600px;margin:0 25px 0 0}#yoast_sidebar{float:left;max-width:261px;margin:0 20px 0 0}.nav-tab-wrapper{margin-bottom:0}.yoast_tab{display:none}.yoast_tab.active{display:block;padding:.5em .9em;border:1px solid #ddd;border-radius:0 3px 3px 3px;background-color:#fff}.yoast_tab .select,.yoast_tab .text{width:300px}.yoast_tab li{margin-left:20px;list-style-type:disc}.tabwrapper .yoast_tab{padding:0;border:none;background:none}.tabwrapper .yoast_tab h3{padding:9px 15px 4px 0;font-size:23px;font-weight:400}.yoast_box{margin:0 0 20px;border:1px solid #ccc;background-color:#fff}.yoast_box h3{padding:0 0 8px 10px;border-bottom:1px solid #ccc}.yoast_box .inside{padding:0 10px}.yoast_box .inside ul li{margin-left:20px;line-height:16px;list-style:square}.yoast_box .inside a{text-decoration:none}.yoast_box .inside a:hover{text-decoration:underline}.yoast_box ul li.rss{list-style-image:url(../../images/rss.png)}.yoast_box ul li.twitter{list-style-image:url(../../images/twitter-icon.png)}.yoast_box ul li.facebook{list-style-image:url(../../images/facebook-icon.png)}.yoast_box ul li.email{list-style-image:url(../../images/email_sub.png)}.yoast_box ul li.yoast{list-style:disc}
|
frontend/class-clicky-frontend.php
CHANGED
@@ -1,22 +1,24 @@
|
|
1 |
<?php
|
2 |
/**
|
|
|
|
|
3 |
* @package Yoast\Clicky\FrontEnd
|
4 |
*/
|
5 |
|
6 |
/**
|
7 |
-
* Frontend Class the Clicky plugin
|
8 |
*/
|
9 |
class Clicky_Frontend {
|
10 |
|
11 |
/**
|
12 |
-
* Holds the plugin options
|
13 |
*
|
14 |
* @var array
|
15 |
*/
|
16 |
private $options = array();
|
17 |
|
18 |
/**
|
19 |
-
* Class constructor
|
20 |
*/
|
21 |
public function __construct() {
|
22 |
$this->options = Clicky_Options::instance()->get();
|
@@ -41,26 +43,26 @@ class Clicky_Frontend {
|
|
41 |
|
42 |
// Bail early if current user is admin and ignore admin is true.
|
43 |
if ( $this->options['ignore_admin'] && current_user_can( 'manage_options' ) ) {
|
44 |
-
echo "\n<!-- " .
|
45 |
|
46 |
return;
|
47 |
}
|
48 |
|
49 |
if ( $this->options['track_names'] ) {
|
50 |
-
require 'views/comment-author-script.php';
|
51 |
}
|
52 |
|
53 |
-
$clicky_extra
|
54 |
$clicky_extra .= $this->outbound_tracking();
|
55 |
$clicky_extra .= $this->disable_cookies();
|
56 |
|
57 |
-
require 'views/script.php';
|
58 |
}
|
59 |
|
60 |
/**
|
61 |
-
* Handles the script generation for goal tracking
|
62 |
*
|
63 |
-
* @return string Script code
|
64 |
*/
|
65 |
private function goal_tracking() {
|
66 |
if ( is_singular() ) {
|
@@ -81,22 +83,22 @@ class Clicky_Frontend {
|
|
81 |
}
|
82 |
|
83 |
/**
|
84 |
-
* Handles the script generation for outbound link tracking
|
85 |
*
|
86 |
* @return string
|
87 |
*/
|
88 |
private function outbound_tracking() {
|
89 |
-
if ( isset( $this->options['outbound_pattern'] ) && trim( $this->options['outbound_pattern'] )
|
90 |
|
91 |
$patterns = preg_replace( '~[^\/a-zA-Z0-9,]+~', '', $this->options['outbound_pattern'] );
|
92 |
|
93 |
$patterns = explode( ',', $patterns );
|
94 |
$pattern = '';
|
95 |
foreach ( $patterns as $pat ) {
|
96 |
-
if ( $pattern
|
97 |
$pattern .= ',';
|
98 |
}
|
99 |
-
$pat
|
100 |
$pattern .= "'" . $pat . "'";
|
101 |
}
|
102 |
|
@@ -107,7 +109,7 @@ class Clicky_Frontend {
|
|
107 |
}
|
108 |
|
109 |
/**
|
110 |
-
* Determines whether or not we should disable cookie usage
|
111 |
*
|
112 |
* @return string
|
113 |
*/
|
@@ -120,17 +122,17 @@ class Clicky_Frontend {
|
|
120 |
}
|
121 |
|
122 |
/**
|
123 |
-
* Tracks comments that are not spam and not ping- or trackbacks
|
124 |
*
|
125 |
-
* @param int $
|
126 |
* @param int $comment_status Status of the comment (e.g. spam).
|
127 |
*/
|
128 |
-
public function track_comment( $
|
129 |
// Make sure to only track the comment if it's not spam (but do it for moderated comments).
|
130 |
-
if ( $comment_status
|
131 |
-
$comment = get_comment( $
|
132 |
// Only do this for normal comments, not for pingbacks or trackbacks.
|
133 |
-
if ( $comment->comment_type
|
134 |
$args = array(
|
135 |
'type' => 'click',
|
136 |
'href' => '/wp-comments-post.php',
|
@@ -149,7 +151,7 @@ class Clicky_Frontend {
|
|
149 |
}
|
150 |
|
151 |
/**
|
152 |
-
* Create the log for clicky
|
153 |
*
|
154 |
* @param array $log_data The array with basic log-data.
|
155 |
* @param array $custom The array with custom log-data for the comment author.
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Clicky for WordPress plugin file.
|
4 |
+
*
|
5 |
* @package Yoast\Clicky\FrontEnd
|
6 |
*/
|
7 |
|
8 |
/**
|
9 |
+
* Frontend Class the Clicky plugin.
|
10 |
*/
|
11 |
class Clicky_Frontend {
|
12 |
|
13 |
/**
|
14 |
+
* Holds the plugin options.
|
15 |
*
|
16 |
* @var array
|
17 |
*/
|
18 |
private $options = array();
|
19 |
|
20 |
/**
|
21 |
+
* Class constructor.
|
22 |
*/
|
23 |
public function __construct() {
|
24 |
$this->options = Clicky_Options::instance()->get();
|
43 |
|
44 |
// Bail early if current user is admin and ignore admin is true.
|
45 |
if ( $this->options['ignore_admin'] && current_user_can( 'manage_options' ) ) {
|
46 |
+
echo "\n<!-- " . esc_html__( "Clicky tracking not shown because you're an administrator and you've configured Clicky to ignore administrators.", 'clicky' ) . " -->\n";
|
47 |
|
48 |
return;
|
49 |
}
|
50 |
|
51 |
if ( $this->options['track_names'] ) {
|
52 |
+
require CLICKY_PLUGIN_DIR_PATH . 'frontend/views/comment-author-script.php';
|
53 |
}
|
54 |
|
55 |
+
$clicky_extra = $this->goal_tracking();
|
56 |
$clicky_extra .= $this->outbound_tracking();
|
57 |
$clicky_extra .= $this->disable_cookies();
|
58 |
|
59 |
+
require CLICKY_PLUGIN_DIR_PATH . 'frontend/views/script.php';
|
60 |
}
|
61 |
|
62 |
/**
|
63 |
+
* Handles the script generation for goal tracking.
|
64 |
*
|
65 |
+
* @return string Script code.
|
66 |
*/
|
67 |
private function goal_tracking() {
|
68 |
if ( is_singular() ) {
|
83 |
}
|
84 |
|
85 |
/**
|
86 |
+
* Handles the script generation for outbound link tracking.
|
87 |
*
|
88 |
* @return string
|
89 |
*/
|
90 |
private function outbound_tracking() {
|
91 |
+
if ( isset( $this->options['outbound_pattern'] ) && trim( $this->options['outbound_pattern'] ) !== '' ) {
|
92 |
|
93 |
$patterns = preg_replace( '~[^\/a-zA-Z0-9,]+~', '', $this->options['outbound_pattern'] );
|
94 |
|
95 |
$patterns = explode( ',', $patterns );
|
96 |
$pattern = '';
|
97 |
foreach ( $patterns as $pat ) {
|
98 |
+
if ( $pattern !== '' ) {
|
99 |
$pattern .= ',';
|
100 |
}
|
101 |
+
$pat = trim( str_replace( '"', '', str_replace( "'", '', $pat ) ) );
|
102 |
$pattern .= "'" . $pat . "'";
|
103 |
}
|
104 |
|
109 |
}
|
110 |
|
111 |
/**
|
112 |
+
* Determines whether or not we should disable cookie usage.
|
113 |
*
|
114 |
* @return string
|
115 |
*/
|
122 |
}
|
123 |
|
124 |
/**
|
125 |
+
* Tracks comments that are not spam and not ping- or trackbacks.
|
126 |
*
|
127 |
+
* @param int $comment_id The ID of the comment that needs to be tracked.
|
128 |
* @param int $comment_status Status of the comment (e.g. spam).
|
129 |
*/
|
130 |
+
public function track_comment( $comment_id, $comment_status ) {
|
131 |
// Make sure to only track the comment if it's not spam (but do it for moderated comments).
|
132 |
+
if ( $comment_status !== 'spam' ) {
|
133 |
+
$comment = get_comment( $comment_id );
|
134 |
// Only do this for normal comments, not for pingbacks or trackbacks.
|
135 |
+
if ( $comment->comment_type !== 'pingback' && $comment->comment_type !== 'trackback' ) {
|
136 |
$args = array(
|
137 |
'type' => 'click',
|
138 |
'href' => '/wp-comments-post.php',
|
151 |
}
|
152 |
|
153 |
/**
|
154 |
+
* Create the log for clicky.
|
155 |
*
|
156 |
* @param array $log_data The array with basic log-data.
|
157 |
* @param array $custom The array with custom log-data for the comment author.
|
frontend/class-clicky-visitor-graph.php
CHANGED
@@ -1,78 +1,80 @@
|
|
1 |
<?php
|
2 |
/**
|
|
|
|
|
3 |
* @package Yoast\Clicky\FrontEnd
|
4 |
*/
|
5 |
|
6 |
/**
|
7 |
-
* Backend Class the Clicky plugin
|
8 |
*/
|
9 |
class Clicky_Visitor_Graph {
|
10 |
|
11 |
/**
|
12 |
-
* Will hold the color of bars in our image
|
13 |
*
|
14 |
* @var int
|
15 |
*/
|
16 |
private $bar_color;
|
17 |
|
18 |
/**
|
19 |
-
* Will hold the visitor values for each hour
|
20 |
*
|
21 |
* @var array
|
22 |
*/
|
23 |
private $bar_values = array();
|
24 |
|
25 |
/**
|
26 |
-
* Height of the generated image
|
27 |
*
|
28 |
* @var float
|
29 |
*/
|
30 |
private $bar_width = 0.02;
|
31 |
|
32 |
/**
|
33 |
-
* The width of the gap between two bars
|
34 |
*
|
35 |
* @var int
|
36 |
*/
|
37 |
private $gap;
|
38 |
|
39 |
/**
|
40 |
-
* Holds the generated image
|
41 |
*
|
42 |
* @var resource
|
43 |
*/
|
44 |
private $img;
|
45 |
|
46 |
/**
|
47 |
-
* Height of the generated image
|
48 |
*
|
49 |
* @var int
|
50 |
*/
|
51 |
private $img_height = 20;
|
52 |
|
53 |
/**
|
54 |
-
* Width of the generated image
|
55 |
*
|
56 |
* @var int
|
57 |
*/
|
58 |
private $img_width = 99;
|
59 |
|
60 |
/**
|
61 |
-
* This holds the plugins options
|
62 |
*
|
63 |
* @var array
|
64 |
*/
|
65 |
private $options = array();
|
66 |
|
67 |
/**
|
68 |
-
* The ratio between a value and the overall image height
|
69 |
*
|
70 |
* @var int
|
71 |
*/
|
72 |
private $ratio;
|
73 |
|
74 |
/**
|
75 |
-
* Class constructor
|
76 |
*/
|
77 |
public function __construct() {
|
78 |
if ( ! function_exists( 'imagecreate' ) ) {
|
@@ -98,7 +100,7 @@ class Clicky_Visitor_Graph {
|
|
98 |
}
|
99 |
|
100 |
/**
|
101 |
-
* Creates (CSS for) head for the admin menu bar
|
102 |
*
|
103 |
* @link https://codex.wordpress.org/Function_Reference/add_action
|
104 |
*/
|
@@ -107,13 +109,13 @@ class Clicky_Visitor_Graph {
|
|
107 |
|
108 |
echo "\n";
|
109 |
echo "<style type='text/css'>\n";
|
110 |
-
|
111 |
echo "\n";
|
112 |
echo "</style>\n";
|
113 |
}
|
114 |
|
115 |
/**
|
116 |
-
* Adds Clicky (graph) to the admin bar of the website
|
117 |
*
|
118 |
* @param object $wp_admin_bar Class that contains all information for the admin bar. Passed by reference.
|
119 |
*
|
@@ -138,9 +140,9 @@ class Clicky_Visitor_Graph {
|
|
138 |
}
|
139 |
|
140 |
/**
|
141 |
-
* Creates the graph to be used in the admin bar
|
142 |
*
|
143 |
-
* @return bool|string Returns base64-encoded image on success (
|
144 |
*/
|
145 |
private function create_graph() {
|
146 |
$result = $this->retrieve_clicky_api_details();
|
@@ -160,7 +162,7 @@ class Clicky_Visitor_Graph {
|
|
160 |
}
|
161 |
|
162 |
/**
|
163 |
-
* Retrieve the visitor data from the Clicky API
|
164 |
*
|
165 |
* @link https://codex.wordpress.org/Function_Reference/wp_remote_get
|
166 |
*/
|
@@ -177,7 +179,7 @@ class Clicky_Visitor_Graph {
|
|
177 |
|
178 |
$resp = wp_remote_get( $url );
|
179 |
|
180 |
-
if ( is_wp_error( $resp ) || ! isset( $resp['response']['code'] ) || $resp['response']['code']
|
181 |
return false;
|
182 |
}
|
183 |
|
@@ -192,9 +194,9 @@ class Clicky_Visitor_Graph {
|
|
192 |
}
|
193 |
|
194 |
/**
|
195 |
-
* Parse the Clicky results into a usable array
|
196 |
*
|
197 |
-
* @param
|
198 |
*
|
199 |
* @return array|bool
|
200 |
*/
|
@@ -218,7 +220,7 @@ class Clicky_Visitor_Graph {
|
|
218 |
break 2;
|
219 |
}
|
220 |
$values[] = $item->value;
|
221 |
-
$hours
|
222 |
}
|
223 |
}
|
224 |
$values = array_reverse( $values );
|
@@ -227,7 +229,7 @@ class Clicky_Visitor_Graph {
|
|
227 |
}
|
228 |
|
229 |
/**
|
230 |
-
* Creates the basic rectangle we'll project the bars on
|
231 |
*/
|
232 |
private function create_base_image() {
|
233 |
$this->img = imagecreate( $this->img_width, $this->img_height );
|
@@ -239,18 +241,18 @@ class Clicky_Visitor_Graph {
|
|
239 |
}
|
240 |
|
241 |
/**
|
242 |
-
* Calculate the ratio between the max value of the bar values and the image height to adjust bars length
|
243 |
*/
|
244 |
private function calculate_ratio() {
|
245 |
$max_value = max( $this->bar_values );
|
246 |
-
if ( $max_value === 0 ) {
|
247 |
$max_value = 1;
|
248 |
}
|
249 |
$this->ratio = ( $this->img_height / $max_value );
|
250 |
}
|
251 |
|
252 |
/**
|
253 |
-
* Create the individual bars on the image
|
254 |
*/
|
255 |
private function add_bars_to_image() {
|
256 |
$this->bar_color = imagecolorallocate( $this->img, 240, 240, 240 );
|
@@ -263,21 +265,21 @@ class Clicky_Visitor_Graph {
|
|
263 |
}
|
264 |
|
265 |
/**
|
266 |
-
* Create an individual bar on the image
|
267 |
*
|
268 |
* @param int $index Offset.
|
269 |
* @param int $height Height.
|
270 |
*/
|
271 |
private function create_bar( $index, $height ) {
|
272 |
-
$
|
273 |
-
$
|
274 |
-
$
|
275 |
-
$
|
276 |
-
imagefilledrectangle( $this->img, $
|
277 |
}
|
278 |
|
279 |
/**
|
280 |
-
* Use the image input to build a PNG then returns it as a base64 encoded image usable in a src tag
|
281 |
*
|
282 |
* @return string
|
283 |
*/
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Clicky for WordPress plugin file.
|
4 |
+
*
|
5 |
* @package Yoast\Clicky\FrontEnd
|
6 |
*/
|
7 |
|
8 |
/**
|
9 |
+
* Backend Class the Clicky plugin.
|
10 |
*/
|
11 |
class Clicky_Visitor_Graph {
|
12 |
|
13 |
/**
|
14 |
+
* Will hold the color of bars in our image.
|
15 |
*
|
16 |
* @var int
|
17 |
*/
|
18 |
private $bar_color;
|
19 |
|
20 |
/**
|
21 |
+
* Will hold the visitor values for each hour.
|
22 |
*
|
23 |
* @var array
|
24 |
*/
|
25 |
private $bar_values = array();
|
26 |
|
27 |
/**
|
28 |
+
* Height of the generated image.
|
29 |
*
|
30 |
* @var float
|
31 |
*/
|
32 |
private $bar_width = 0.02;
|
33 |
|
34 |
/**
|
35 |
+
* The width of the gap between two bars.
|
36 |
*
|
37 |
* @var int
|
38 |
*/
|
39 |
private $gap;
|
40 |
|
41 |
/**
|
42 |
+
* Holds the generated image.
|
43 |
*
|
44 |
* @var resource
|
45 |
*/
|
46 |
private $img;
|
47 |
|
48 |
/**
|
49 |
+
* Height of the generated image.
|
50 |
*
|
51 |
* @var int
|
52 |
*/
|
53 |
private $img_height = 20;
|
54 |
|
55 |
/**
|
56 |
+
* Width of the generated image.
|
57 |
*
|
58 |
* @var int
|
59 |
*/
|
60 |
private $img_width = 99;
|
61 |
|
62 |
/**
|
63 |
+
* This holds the plugins options.
|
64 |
*
|
65 |
* @var array
|
66 |
*/
|
67 |
private $options = array();
|
68 |
|
69 |
/**
|
70 |
+
* The ratio between a value and the overall image height.
|
71 |
*
|
72 |
* @var int
|
73 |
*/
|
74 |
private $ratio;
|
75 |
|
76 |
/**
|
77 |
+
* Class constructor.
|
78 |
*/
|
79 |
public function __construct() {
|
80 |
if ( ! function_exists( 'imagecreate' ) ) {
|
100 |
}
|
101 |
|
102 |
/**
|
103 |
+
* Creates (CSS for) head for the admin menu bar.
|
104 |
*
|
105 |
* @link https://codex.wordpress.org/Function_Reference/add_action
|
106 |
*/
|
109 |
|
110 |
echo "\n";
|
111 |
echo "<style type='text/css'>\n";
|
112 |
+
include CLICKY_PLUGIN_DIR_PATH . '/css/adminbar' . $ext;
|
113 |
echo "\n";
|
114 |
echo "</style>\n";
|
115 |
}
|
116 |
|
117 |
/**
|
118 |
+
* Adds Clicky (graph) to the admin bar of the website.
|
119 |
*
|
120 |
* @param object $wp_admin_bar Class that contains all information for the admin bar. Passed by reference.
|
121 |
*
|
140 |
}
|
141 |
|
142 |
/**
|
143 |
+
* Creates the graph to be used in the admin bar.
|
144 |
*
|
145 |
+
* @return bool|string Returns base64-encoded image on success (string) or false on failure.
|
146 |
*/
|
147 |
private function create_graph() {
|
148 |
$result = $this->retrieve_clicky_api_details();
|
162 |
}
|
163 |
|
164 |
/**
|
165 |
+
* Retrieve the visitor data from the Clicky API.
|
166 |
*
|
167 |
* @link https://codex.wordpress.org/Function_Reference/wp_remote_get
|
168 |
*/
|
179 |
|
180 |
$resp = wp_remote_get( $url );
|
181 |
|
182 |
+
if ( is_wp_error( $resp ) || ! isset( $resp['response']['code'] ) || (int) $resp['response']['code'] !== 200 ) {
|
183 |
return false;
|
184 |
}
|
185 |
|
194 |
}
|
195 |
|
196 |
/**
|
197 |
+
* Parse the Clicky results into a usable array.
|
198 |
*
|
199 |
+
* @param string $json JSON encoded object of results.
|
200 |
*
|
201 |
* @return array|bool
|
202 |
*/
|
220 |
break 2;
|
221 |
}
|
222 |
$values[] = $item->value;
|
223 |
+
$hours++;
|
224 |
}
|
225 |
}
|
226 |
$values = array_reverse( $values );
|
229 |
}
|
230 |
|
231 |
/**
|
232 |
+
* Creates the basic rectangle we'll project the bars on.
|
233 |
*/
|
234 |
private function create_base_image() {
|
235 |
$this->img = imagecreate( $this->img_width, $this->img_height );
|
241 |
}
|
242 |
|
243 |
/**
|
244 |
+
* Calculate the ratio between the max value of the bar values and the image height to adjust bars length.
|
245 |
*/
|
246 |
private function calculate_ratio() {
|
247 |
$max_value = max( $this->bar_values );
|
248 |
+
if ( ! is_int( $max_value ) || $max_value === 0 ) {
|
249 |
$max_value = 1;
|
250 |
}
|
251 |
$this->ratio = ( $this->img_height / $max_value );
|
252 |
}
|
253 |
|
254 |
/**
|
255 |
+
* Create the individual bars on the image.
|
256 |
*/
|
257 |
private function add_bars_to_image() {
|
258 |
$this->bar_color = imagecolorallocate( $this->img, 240, 240, 240 );
|
265 |
}
|
266 |
|
267 |
/**
|
268 |
+
* Create an individual bar on the image.
|
269 |
*
|
270 |
* @param int $index Offset.
|
271 |
* @param int $height Height.
|
272 |
*/
|
273 |
private function create_bar( $index, $height ) {
|
274 |
+
$x_axis_1 = ( $this->gap + $index * ( $this->gap + $this->bar_width ) );
|
275 |
+
$x_axis_2 = ( $x_axis_1 + $this->bar_width );
|
276 |
+
$y_axis_1 = ( $this->img_height - intval( $height * $this->ratio ) );
|
277 |
+
$y_axis_2 = $this->img_height;
|
278 |
+
imagefilledrectangle( $this->img, $x_axis_1, $y_axis_1, $x_axis_2, $y_axis_2, $this->bar_color );
|
279 |
}
|
280 |
|
281 |
/**
|
282 |
+
* Use the image input to build a PNG then returns it as a base64 encoded image usable in a src tag.
|
283 |
*
|
284 |
* @return string
|
285 |
*/
|
frontend/index.php
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Nothing to see here.
|
4 |
+
*/
|
frontend/views/comment-author-script.php
CHANGED
@@ -1,9 +1,12 @@
|
|
1 |
<?php
|
2 |
/**
|
|
|
|
|
3 |
* @package Yoast/Clicky/View
|
4 |
*/
|
5 |
|
6 |
-
|
|
|
7 |
function clicky_gc(name) {
|
8 |
var ca = document.cookie.split(';');
|
9 |
for (var i in ca) {
|
@@ -13,6 +16,6 @@
|
|
13 |
}
|
14 |
return '';
|
15 |
}
|
16 |
-
var username_check = clicky_gc('comment_author_<?php echo md5( get_option( 'siteurl' ) ); ?>');
|
17 |
if (username_check) var clicky_custom_session = {username: username_check};
|
18 |
</script>
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Clicky for WordPress plugin file.
|
4 |
+
*
|
5 |
* @package Yoast/Clicky/View
|
6 |
*/
|
7 |
|
8 |
+
?>
|
9 |
+
<script type='text/javascript'>
|
10 |
function clicky_gc(name) {
|
11 |
var ca = document.cookie.split(';');
|
12 |
for (var i in ca) {
|
16 |
}
|
17 |
return '';
|
18 |
}
|
19 |
+
var username_check = clicky_gc('comment_author_<?php echo esc_attr( md5( get_option( 'siteurl' ) ) ); ?>');
|
20 |
if (username_check) var clicky_custom_session = {username: username_check};
|
21 |
</script>
|
frontend/views/index.php
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Nothing to see here.
|
4 |
+
*/
|
frontend/views/script.php
CHANGED
@@ -1,5 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
|
|
|
|
3 |
* @package Yoast/Clicky/View
|
4 |
*/
|
5 |
|
@@ -8,10 +10,14 @@
|
|
8 |
<?php
|
9 |
if ( ! empty( $clicky_extra ) ) {
|
10 |
echo 'var clicky_custom = clicky_custom || {}; ';
|
|
|
11 |
echo $clicky_extra;
|
12 |
-
}
|
|
|
13 |
|
14 |
-
|
15 |
-
|
16 |
</script>
|
17 |
-
|
|
|
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Clicky for WordPress plugin file.
|
4 |
+
*
|
5 |
* @package Yoast/Clicky/View
|
6 |
*/
|
7 |
|
10 |
<?php
|
11 |
if ( ! empty( $clicky_extra ) ) {
|
12 |
echo 'var clicky_custom = clicky_custom || {}; ';
|
13 |
+
// @codingStandardsIgnoreLine WordPress.Security.EscapeOutput.OutputNotEscaped
|
14 |
echo $clicky_extra;
|
15 |
+
}
|
16 |
+
?>
|
17 |
|
18 |
+
var clicky_site_ids = clicky_site_ids || [];
|
19 |
+
clicky_site_ids.push(<?php echo esc_attr( $this->options['site_id'] ); ?>);
|
20 |
</script>
|
21 |
+
<?php
|
22 |
+
// @codingStandardsIgnoreLine WordPress.WP.EnqueuedResources.NonEnqueuedScript
|
23 |
+
echo '<script async src="//static.getclicky.com/js"></script>';
|
images/banner-website-review.png
DELETED
Binary file
|
images/index.php
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Nothing to see here.
|
4 |
+
*/
|
includes/class-clicky-options.php
CHANGED
@@ -1,29 +1,31 @@
|
|
1 |
<?php
|
2 |
/**
|
|
|
|
|
3 |
* @package Yoast/Clicky/Options
|
4 |
*/
|
5 |
|
6 |
/**
|
7 |
-
* Options Class for the Clicky plugin
|
8 |
*
|
9 |
* @since 1.5
|
10 |
*/
|
11 |
class Clicky_Options {
|
12 |
|
13 |
/**
|
14 |
-
* The default options for the Clicky plugin
|
15 |
*
|
16 |
* @var array
|
17 |
*/
|
18 |
public static $option_defaults = array(
|
19 |
-
'site_id' => '',
|
20 |
-
'site_key' => '',
|
21 |
-
'admin_site_key' => '',
|
22 |
-
'outbound_pattern' => '',
|
23 |
-
'ignore_admin' => false,
|
24 |
-
'track_names' => false,
|
25 |
-
'cookies_disable' => false,
|
26 |
-
'disable_stats' => false
|
27 |
);
|
28 |
|
29 |
/**
|
@@ -43,28 +45,28 @@ class Clicky_Options {
|
|
43 |
);
|
44 |
|
45 |
/**
|
46 |
-
* Name of the option we're using
|
47 |
*
|
48 |
* @var string
|
49 |
*/
|
50 |
public static $option_name = 'clicky';
|
51 |
|
52 |
/**
|
53 |
-
* Saving instance of
|
54 |
*
|
55 |
* @var object
|
56 |
*/
|
57 |
private static $instance;
|
58 |
|
59 |
/**
|
60 |
-
* Holds the actual options
|
61 |
*
|
62 |
* @var array
|
63 |
*/
|
64 |
public $options = array();
|
65 |
|
66 |
/**
|
67 |
-
* Class constructor
|
68 |
*/
|
69 |
public function __construct() {
|
70 |
$this->load_options();
|
@@ -115,7 +117,7 @@ class Clicky_Options {
|
|
115 |
}
|
116 |
|
117 |
/**
|
118 |
-
* Returns the Clicky options
|
119 |
*
|
120 |
* @return array
|
121 |
*/
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Clicky for WordPress plugin file.
|
4 |
+
*
|
5 |
* @package Yoast/Clicky/Options
|
6 |
*/
|
7 |
|
8 |
/**
|
9 |
+
* Options Class for the Clicky plugin.
|
10 |
*
|
11 |
* @since 1.5
|
12 |
*/
|
13 |
class Clicky_Options {
|
14 |
|
15 |
/**
|
16 |
+
* The default options for the Clicky plugin.
|
17 |
*
|
18 |
* @var array
|
19 |
*/
|
20 |
public static $option_defaults = array(
|
21 |
+
'site_id' => '', // There is no default site ID as we don't know it...
|
22 |
+
'site_key' => '', // There is no default site key as we don't know it...
|
23 |
+
'admin_site_key' => '', // There is no default admin site key as we don't know it...
|
24 |
+
'outbound_pattern' => '', // By defaulting to an empty string here, we disable this functionality until it's set.
|
25 |
+
'ignore_admin' => false, // While ignoring an admin by default would make sense, it leads to admins thinking the plugin doesn't work.
|
26 |
+
'track_names' => false, // Tracking the names of commenters makes sense, but might be illegal in some countries, so we default to off.
|
27 |
+
'cookies_disable' => false, // No need to disable cookies by default as it severely impacts the quality of tracking.
|
28 |
+
'disable_stats' => false, // The stats on the frontend are often found useful, but some people might want to disable them.
|
29 |
);
|
30 |
|
31 |
/**
|
45 |
);
|
46 |
|
47 |
/**
|
48 |
+
* Name of the option we're using.
|
49 |
*
|
50 |
* @var string
|
51 |
*/
|
52 |
public static $option_name = 'clicky';
|
53 |
|
54 |
/**
|
55 |
+
* Saving active instance of this class in this static var.
|
56 |
*
|
57 |
* @var object
|
58 |
*/
|
59 |
private static $instance;
|
60 |
|
61 |
/**
|
62 |
+
* Holds the actual options.
|
63 |
*
|
64 |
* @var array
|
65 |
*/
|
66 |
public $options = array();
|
67 |
|
68 |
/**
|
69 |
+
* Class constructor.
|
70 |
*/
|
71 |
public function __construct() {
|
72 |
$this->load_options();
|
117 |
}
|
118 |
|
119 |
/**
|
120 |
+
* Returns the Clicky options.
|
121 |
*
|
122 |
* @return array
|
123 |
*/
|
includes/index.php
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Nothing to see here.
|
4 |
+
*/
|
index.php
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Nothing to see here.
|
4 |
+
*/
|
js/admin.js
DELETED
@@ -1,23 +0,0 @@
|
|
1 |
-
jQuery(document).ready(function() {
|
2 |
-
|
3 |
-
jQuery('#yoast-tabs').find('a').click(function () {
|
4 |
-
jQuery('#yoast-tabs').find('a').removeClass('nav-tab-active');
|
5 |
-
jQuery('.yoast_tab').removeClass('active');
|
6 |
-
|
7 |
-
var id = jQuery(this).attr('id').replace('-tab', '');
|
8 |
-
jQuery('#' + id).addClass('active');
|
9 |
-
jQuery(this).addClass('nav-tab-active');
|
10 |
-
jQuery("#return_tab").val(id);
|
11 |
-
});
|
12 |
-
|
13 |
-
// init
|
14 |
-
var active_tab = window.location.hash.replace('#top#','');
|
15 |
-
|
16 |
-
// default to first tab
|
17 |
-
if ( active_tab === '' || active_tab === '#_=_') {
|
18 |
-
active_tab = jQuery('.yoast_tab').attr('id');
|
19 |
-
}
|
20 |
-
|
21 |
-
jQuery('#' + active_tab).addClass('active');
|
22 |
-
jQuery('#' + active_tab + '-tab').addClass('nav-tab-active').click();
|
23 |
-
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
js/admin.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
jQuery(document).ready(function(){
|
1 |
+
jQuery(document).ready(function(t){t("#yoast-tabs").find("a").click(function(){t("#yoast-tabs").find("a").removeClass("nav-tab-active"),t(".yoast_tab").removeClass("active");var a=t(this).attr("id").replace("-tab","");t("#"+a).addClass("active"),t(this).addClass("nav-tab-active"),t("#return_tab").val(a)});var a=window.location.hash.replace("#top#","");""!==a&&"#_=_"!==a||(a=t(".yoast_tab").attr("id")),t("#"+a).addClass("active"),t("#"+a+"-tab").addClass("nav-tab-active").click()});
|
languages/clicky-bg_BG.mo
CHANGED
Binary file
|
languages/clicky-en_CA.mo
CHANGED
Binary file
|
languages/clicky-en_GB.mo
CHANGED
Binary file
|
languages/clicky-fa_IR.mo
CHANGED
Binary file
|
languages/clicky-it_IT.mo
CHANGED
Binary file
|
languages/clicky-ja.mo
CHANGED
Binary file
|
languages/clicky-ro_RO.mo
CHANGED
Binary file
|
languages/clicky-sv_SE.mo
CHANGED
Binary file
|
languages/clicky.pot
ADDED
@@ -0,0 +1,348 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Copyright (C) 2019 Team Yoast
|
2 |
+
# This file is distributed under the same license as the Clicky for WordPress package.
|
3 |
+
msgid ""
|
4 |
+
msgstr ""
|
5 |
+
"Project-Id-Version: Clicky for WordPress 1.8\n"
|
6 |
+
"Report-Msgid-Bugs-To: https://github.com/yoast/clicky/issues\n"
|
7 |
+
"POT-Creation-Date: 2019-06-17 19:17:03+00:00\n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"PO-Revision-Date: 2019-MO-DA HO:MI+ZONE\n"
|
12 |
+
"Last-Translator: Yoast Translate Team <translations@yoast.com>\n"
|
13 |
+
"Language-Team: Yoast Translate <translations@yoast.com>\n"
|
14 |
+
"Language: en\n"
|
15 |
+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
16 |
+
"X-Poedit-Country: United States\n"
|
17 |
+
"X-Poedit-SourceCharset: UTF-8\n"
|
18 |
+
"X-Poedit-KeywordsList: "
|
19 |
+
"__;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;_nx_noop:1,2,3c;esc_"
|
20 |
+
"attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;esc_html_x:1,2c;\n"
|
21 |
+
"X-Poedit-Basepath: ../\n"
|
22 |
+
"X-Poedit-SearchPath-0: .\n"
|
23 |
+
"X-Poedit-Bookmarks: \n"
|
24 |
+
"X-Textdomain-Support: yes\n"
|
25 |
+
"X-Generator: grunt-wp-i18n 1.0.3\n"
|
26 |
+
|
27 |
+
#: admin/class-clicky-admin-page.php:64
|
28 |
+
#: admin/class-clicky-options-admin.php:246
|
29 |
+
#: artifact/admin/class-clicky-admin-page.php:64
|
30 |
+
#: artifact/admin/class-clicky-options-admin.php:246
|
31 |
+
#. translators: 1: link open tag to clicky forum website; 2: link close tag.
|
32 |
+
msgid ""
|
33 |
+
"If you're in need of support with Clicky and / or this plugin, please visit "
|
34 |
+
"the %1$sClicky forums%2$s."
|
35 |
+
msgstr ""
|
36 |
+
|
37 |
+
#: admin/class-clicky-admin-page.php:65
|
38 |
+
#: artifact/admin/class-clicky-admin-page.php:65
|
39 |
+
msgid "Need Support?"
|
40 |
+
msgstr ""
|
41 |
+
|
42 |
+
#: admin/class-clicky-admin-page.php:80
|
43 |
+
#: artifact/admin/class-clicky-admin-page.php:80
|
44 |
+
msgid "No news items, feed might be broken..."
|
45 |
+
msgstr ""
|
46 |
+
|
47 |
+
#: admin/class-clicky-admin-page.php:96
|
48 |
+
#: artifact/admin/class-clicky-admin-page.php:96
|
49 |
+
msgid "Subscribe with RSS"
|
50 |
+
msgstr ""
|
51 |
+
|
52 |
+
#: admin/class-clicky-admin-page.php:107
|
53 |
+
#: artifact/admin/class-clicky-admin-page.php:107
|
54 |
+
msgid "Latest news from Clicky"
|
55 |
+
msgstr ""
|
56 |
+
|
57 |
+
#: admin/class-clicky-admin-page.php:114
|
58 |
+
#: artifact/admin/class-clicky-admin-page.php:114
|
59 |
+
msgid "Like Yoast on Facebook"
|
60 |
+
msgstr ""
|
61 |
+
|
62 |
+
#: admin/class-clicky-admin-page.php:115
|
63 |
+
#: artifact/admin/class-clicky-admin-page.php:115
|
64 |
+
msgid "Follow Yoast on Twitter"
|
65 |
+
msgstr ""
|
66 |
+
|
67 |
+
#: admin/class-clicky-admin-page.php:116
|
68 |
+
#: artifact/admin/class-clicky-admin-page.php:116
|
69 |
+
msgid "Subscribe by email"
|
70 |
+
msgstr ""
|
71 |
+
|
72 |
+
#: admin/class-clicky-admin-page.php:118
|
73 |
+
#: artifact/admin/class-clicky-admin-page.php:118
|
74 |
+
msgid "Latest news from Yoast"
|
75 |
+
msgstr ""
|
76 |
+
|
77 |
+
#. Plugin Name of the plugin/theme
|
78 |
+
msgid "Clicky for WordPress"
|
79 |
+
msgstr ""
|
80 |
+
|
81 |
+
#: admin/class-clicky-admin-page.php:132
|
82 |
+
#: artifact/admin/class-clicky-admin-page.php:132
|
83 |
+
msgid "Yoast Translate"
|
84 |
+
msgstr ""
|
85 |
+
|
86 |
+
#: admin/class-clicky-admin.php:54 artifact/admin/class-clicky-admin.php:54
|
87 |
+
msgid "Clicky Goal Tracking"
|
88 |
+
msgstr ""
|
89 |
+
|
90 |
+
#: admin/class-clicky-admin.php:72 artifact/admin/class-clicky-admin.php:72
|
91 |
+
msgid "Clicky settings"
|
92 |
+
msgstr ""
|
93 |
+
|
94 |
+
#: admin/class-clicky-admin.php:73 artifact/admin/class-clicky-admin.php:73
|
95 |
+
msgid "Clicky"
|
96 |
+
msgstr ""
|
97 |
+
|
98 |
+
#: admin/class-clicky-admin.php:80 admin/class-clicky-admin.php:81
|
99 |
+
#: artifact/admin/class-clicky-admin.php:80
|
100 |
+
#: artifact/admin/class-clicky-admin.php:81
|
101 |
+
msgid "Clicky Stats"
|
102 |
+
msgstr ""
|
103 |
+
|
104 |
+
#: admin/class-clicky-admin.php:108 artifact/admin/class-clicky-admin.php:108
|
105 |
+
msgid "Clicky is almost ready. "
|
106 |
+
msgstr ""
|
107 |
+
|
108 |
+
#: admin/class-clicky-admin.php:112 artifact/admin/class-clicky-admin.php:112
|
109 |
+
#. translators: 1: link open tag to the plugin settings page; 2: link close
|
110 |
+
#. tag.
|
111 |
+
msgid ""
|
112 |
+
"You must %1$s enter your Clicky Site ID, Site Key and Admin Site Key%2$s "
|
113 |
+
"for it to work."
|
114 |
+
msgstr ""
|
115 |
+
|
116 |
+
#: admin/class-clicky-admin.php:185 artifact/admin/class-clicky-admin.php:185
|
117 |
+
msgid "Settings"
|
118 |
+
msgstr ""
|
119 |
+
|
120 |
+
#: admin/class-clicky-options-admin.php:46 admin/views/admin-page.php:19
|
121 |
+
#: artifact/admin/class-clicky-options-admin.php:46
|
122 |
+
#: artifact/admin/views/admin-page.php:19
|
123 |
+
msgid "Basic settings"
|
124 |
+
msgstr ""
|
125 |
+
|
126 |
+
#: admin/class-clicky-options-admin.php:52
|
127 |
+
#: artifact/admin/class-clicky-options-admin.php:52
|
128 |
+
msgid "Site ID"
|
129 |
+
msgstr ""
|
130 |
+
|
131 |
+
#: admin/class-clicky-options-admin.php:53
|
132 |
+
#: artifact/admin/class-clicky-options-admin.php:53
|
133 |
+
msgid "Site Key"
|
134 |
+
msgstr ""
|
135 |
+
|
136 |
+
#: admin/class-clicky-options-admin.php:54
|
137 |
+
#: artifact/admin/class-clicky-options-admin.php:54
|
138 |
+
msgid "Admin Site Key"
|
139 |
+
msgstr ""
|
140 |
+
|
141 |
+
#: admin/class-clicky-options-admin.php:73
|
142 |
+
#: artifact/admin/class-clicky-options-admin.php:73
|
143 |
+
msgid "Like this plugin?"
|
144 |
+
msgstr ""
|
145 |
+
|
146 |
+
#: admin/class-clicky-options-admin.php:80
|
147 |
+
#: artifact/admin/class-clicky-options-admin.php:80
|
148 |
+
msgid "Need support?"
|
149 |
+
msgstr ""
|
150 |
+
|
151 |
+
#: admin/class-clicky-options-admin.php:90
|
152 |
+
#: artifact/admin/class-clicky-options-admin.php:90
|
153 |
+
msgid "Advanced Settings"
|
154 |
+
msgstr ""
|
155 |
+
|
156 |
+
#: admin/class-clicky-options-admin.php:94
|
157 |
+
#: artifact/admin/class-clicky-options-admin.php:94
|
158 |
+
msgid "Disable Admin Bar stats"
|
159 |
+
msgstr ""
|
160 |
+
|
161 |
+
#: admin/class-clicky-options-admin.php:95
|
162 |
+
#: artifact/admin/class-clicky-options-admin.php:95
|
163 |
+
msgid "If you don't want to display the stats in your admin menu, check this box."
|
164 |
+
msgstr ""
|
165 |
+
|
166 |
+
#: admin/class-clicky-options-admin.php:98
|
167 |
+
#: artifact/admin/class-clicky-options-admin.php:98
|
168 |
+
msgid "Ignore Admin users"
|
169 |
+
msgstr ""
|
170 |
+
|
171 |
+
#: admin/class-clicky-options-admin.php:99
|
172 |
+
#: artifact/admin/class-clicky-options-admin.php:99
|
173 |
+
msgid ""
|
174 |
+
"If you are using a caching plugin, such as W3 Total Cache or WP-Supercache, "
|
175 |
+
"please ensure that you have it configured to NOT use the cache for logged "
|
176 |
+
"in users. Otherwise, admin users <em>will still</em> be tracked."
|
177 |
+
msgstr ""
|
178 |
+
|
179 |
+
#: admin/class-clicky-options-admin.php:102
|
180 |
+
#: artifact/admin/class-clicky-options-admin.php:102
|
181 |
+
msgid "Disable cookies"
|
182 |
+
msgstr ""
|
183 |
+
|
184 |
+
#: admin/class-clicky-options-admin.php:103
|
185 |
+
#: artifact/admin/class-clicky-options-admin.php:103
|
186 |
+
msgid ""
|
187 |
+
"If you don't want Clicky to use cookies on your site, check this button. By "
|
188 |
+
"doing so, uniqueness will instead be determined based on their IP address."
|
189 |
+
msgstr ""
|
190 |
+
|
191 |
+
#: admin/class-clicky-options-admin.php:106
|
192 |
+
#: artifact/admin/class-clicky-options-admin.php:106
|
193 |
+
msgid "Track names of commenters"
|
194 |
+
msgstr ""
|
195 |
+
|
196 |
+
#: admin/class-clicky-options-admin.php:132
|
197 |
+
#: artifact/admin/class-clicky-options-admin.php:132
|
198 |
+
msgid "Outbound Links"
|
199 |
+
msgstr ""
|
200 |
+
|
201 |
+
#: admin/class-clicky-options-admin.php:140
|
202 |
+
#: artifact/admin/class-clicky-options-admin.php:140
|
203 |
+
msgid "For instance: <code>/out/,/go/</code>"
|
204 |
+
msgstr ""
|
205 |
+
|
206 |
+
#: admin/class-clicky-options-admin.php:144
|
207 |
+
#: artifact/admin/class-clicky-options-admin.php:144
|
208 |
+
msgid "Outbound Link Pattern"
|
209 |
+
msgstr ""
|
210 |
+
|
211 |
+
#: admin/class-clicky-options-admin.php:218
|
212 |
+
#: artifact/admin/class-clicky-options-admin.php:218
|
213 |
+
#. translators: 1: link open tag to the clicky user homepage; 2: link close
|
214 |
+
#. tag.
|
215 |
+
msgid ""
|
216 |
+
"Go to your %1$suser homepage on Clicky%2$s and click "
|
217 |
+
""Preferences" under the name of the domain, you will find the "
|
218 |
+
"Site ID, Site Key, Admin Site Key and Database Server under Site "
|
219 |
+
"information."
|
220 |
+
msgstr ""
|
221 |
+
|
222 |
+
#: admin/class-clicky-options-admin.php:232
|
223 |
+
#: artifact/admin/class-clicky-options-admin.php:232
|
224 |
+
#. translators: 1: link open tag to the clicky knowledge base article; 2: link
|
225 |
+
#. close tag.
|
226 |
+
msgid ""
|
227 |
+
"If your site uses redirects for outbound links, instead of links that point "
|
228 |
+
"directly to their external source (this is popular with affiliate links, "
|
229 |
+
"for example), then you'll need to use this variable to tell our tracking "
|
230 |
+
"code additional patterns to look for when automatically tracking outbound "
|
231 |
+
"links. %1$sRead more here%2$s."
|
232 |
+
msgstr ""
|
233 |
+
|
234 |
+
#: admin/views/admin-page.php:10 artifact/admin/views/admin-page.php:10
|
235 |
+
msgid "Configuration"
|
236 |
+
msgstr ""
|
237 |
+
|
238 |
+
#: admin/views/admin-page.php:20 artifact/admin/views/admin-page.php:20
|
239 |
+
msgid "Advanced settings"
|
240 |
+
msgstr ""
|
241 |
+
|
242 |
+
#: admin/views/admin-page.php:32 artifact/admin/views/admin-page.php:32
|
243 |
+
msgid "Save Clicky settings"
|
244 |
+
msgstr ""
|
245 |
+
|
246 |
+
#: admin/views/like-box.php:8 artifact/admin/views/like-box.php:8
|
247 |
+
msgid "Why not do any or all of the following:"
|
248 |
+
msgstr ""
|
249 |
+
|
250 |
+
#: admin/views/like-box.php:10 artifact/admin/views/like-box.php:10
|
251 |
+
msgid "Link to it so other folks can find out about it."
|
252 |
+
msgstr ""
|
253 |
+
|
254 |
+
#: admin/views/like-box.php:11 artifact/admin/views/like-box.php:11
|
255 |
+
msgid "Give it a 5 star rating on WordPress.org."
|
256 |
+
msgstr ""
|
257 |
+
|
258 |
+
#: admin/views/like-box.php:12 artifact/admin/views/like-box.php:12
|
259 |
+
msgid "Let other people know that it works with your WordPress setup."
|
260 |
+
msgstr ""
|
261 |
+
|
262 |
+
#: admin/views/meta-box.php:12 artifact/admin/views/meta-box.php:12
|
263 |
+
#. translators: 1: link open tag to clicky website tracking page; 2: link close
|
264 |
+
#. tag.
|
265 |
+
msgid ""
|
266 |
+
"Clicky can track Goals for you too, %1$syou can create them here%2$s. To be "
|
267 |
+
"able to track a goal on this post, you need to specify the goal ID here. "
|
268 |
+
"Optionally, you can also provide the goal revenue."
|
269 |
+
msgstr ""
|
270 |
+
|
271 |
+
#: admin/views/meta-box.php:20 artifact/admin/views/meta-box.php:20
|
272 |
+
msgid "Goal ID:"
|
273 |
+
msgstr ""
|
274 |
+
|
275 |
+
#: admin/views/meta-box.php:24 artifact/admin/views/meta-box.php:24
|
276 |
+
msgid "Goal Revenue:"
|
277 |
+
msgstr ""
|
278 |
+
|
279 |
+
#: artifact/frontend/class-clicky-frontend.php:46
|
280 |
+
#: frontend/class-clicky-frontend.php:46
|
281 |
+
msgid ""
|
282 |
+
"Clicky tracking not shown because you're an administrator and you've "
|
283 |
+
"configured Clicky to ignore administrators."
|
284 |
+
msgstr ""
|
285 |
+
|
286 |
+
#: artifact/frontend/class-clicky-frontend.php:139
|
287 |
+
#: frontend/class-clicky-frontend.php:139
|
288 |
+
msgid "Posted a comment"
|
289 |
+
msgstr ""
|
290 |
+
|
291 |
+
#: artifact/frontend/class-clicky-visitor-graph.php:131
|
292 |
+
#: frontend/class-clicky-visitor-graph.php:131
|
293 |
+
msgid "Visitors over 48 hours. Click for more Clicky Site Stats."
|
294 |
+
msgstr ""
|
295 |
+
|
296 |
+
#: artifact/vendor/yoast/i18n-module/i18n-module.php:189
|
297 |
+
#: vendor/yoast/i18n-module/i18n-module.php:189
|
298 |
+
msgid ""
|
299 |
+
"As you can see, there is a translation of this plugin in %1$s. This "
|
300 |
+
"translation is currently %3$d%% complete. We need your help to make it "
|
301 |
+
"complete and to fix any errors. Please register at %4$s to help complete "
|
302 |
+
"the translation to %1$s!"
|
303 |
+
msgstr ""
|
304 |
+
|
305 |
+
#: artifact/vendor/yoast/i18n-module/i18n-module.php:191
|
306 |
+
#: vendor/yoast/i18n-module/i18n-module.php:191
|
307 |
+
msgid ""
|
308 |
+
"You're using WordPress in %1$s. While %2$s has been translated to %1$s for "
|
309 |
+
"%3$d%%, it's not been shipped with the plugin yet. You can help! Register "
|
310 |
+
"at %4$s to help complete the translation to %1$s!"
|
311 |
+
msgstr ""
|
312 |
+
|
313 |
+
#: artifact/vendor/yoast/i18n-module/i18n-module.php:193
|
314 |
+
#: vendor/yoast/i18n-module/i18n-module.php:193
|
315 |
+
msgid ""
|
316 |
+
"You're using WordPress in a language we don't support yet. We'd love for "
|
317 |
+
"%2$s to be translated in that language too, but unfortunately, it isn't "
|
318 |
+
"right now. You can change that! Register at %4$s to help translate it!"
|
319 |
+
msgstr ""
|
320 |
+
|
321 |
+
#: artifact/vendor/yoast/i18n-module/i18n-module.php:213
|
322 |
+
#: vendor/yoast/i18n-module/i18n-module.php:213
|
323 |
+
msgid "Translation of %s"
|
324 |
+
msgstr ""
|
325 |
+
|
326 |
+
#: artifact/vendor/yoast/i18n-module/i18n-module.php:218
|
327 |
+
#: vendor/yoast/i18n-module/i18n-module.php:218
|
328 |
+
msgid "Register now »"
|
329 |
+
msgstr ""
|
330 |
+
|
331 |
+
#. Plugin URI of the plugin/theme
|
332 |
+
msgid "https://yoast.com/wordpress/plugins/clicky/"
|
333 |
+
msgstr ""
|
334 |
+
|
335 |
+
#. Description of the plugin/theme
|
336 |
+
msgid ""
|
337 |
+
"The Clicky for WordPress plugin by Yoast makes it easy for you to add your "
|
338 |
+
"Clicky analytics tracking code to your WordPress install, while also giving "
|
339 |
+
"you some advanced tracking options."
|
340 |
+
msgstr ""
|
341 |
+
|
342 |
+
#. Author of the plugin/theme
|
343 |
+
msgid "Team Yoast"
|
344 |
+
msgstr ""
|
345 |
+
|
346 |
+
#. Author URI of the plugin/theme
|
347 |
+
msgid "https://yoast.com/"
|
348 |
+
msgstr ""
|
languages/index.php
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Nothing to see here.
|
4 |
+
*/
|
readme.txt
CHANGED
@@ -1,10 +1,9 @@
|
|
1 |
=== Clicky by Yoast ===
|
2 |
-
Contributors: joostdevalk
|
3 |
-
Tags: analytics, statistics, clicky, getclicky, affiliate, outbound links, analysis,
|
4 |
-
Requires at least:
|
5 |
-
Tested up to: 5.
|
6 |
-
Stable tag: 1.
|
7 |
-
Text Domain: clicky
|
8 |
|
9 |
Integrates the Clicky web analytics service into your blog and adds features for comment tracking & more.
|
10 |
|
@@ -39,6 +38,12 @@ Read the authors [review of Clicky Analytics](https://yoast.com/clicky-analytics
|
|
39 |
|
40 |
== Changelog ==
|
41 |
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
= 1.7 =
|
43 |
|
44 |
Released February 26th, 2019
|
@@ -141,7 +146,7 @@ Released July 3rd, 2014.
|
|
141 |
* No more unneeded JavaScript being loaded on the admin pages.
|
142 |
* Made the Goal Tracking box work for all post types and made it smaller.
|
143 |
* Removed some code that was no longer used.
|
144 |
-
* Removed dashboard widget, added Yoast news widget to settings page.
|
145 |
* Added a small stats indicator of visitors in the last 48 to the WordPress toolbar.
|
146 |
|
147 |
= 1.3 =
|
1 |
=== Clicky by Yoast ===
|
2 |
+
Contributors: joostdevalk, yoast
|
3 |
+
Tags: analytics, statistics, clicky, getclicky, affiliate, outbound links, analysis, Yoast
|
4 |
+
Requires at least: 5.1
|
5 |
+
Tested up to: 5.2
|
6 |
+
Stable tag: 1.8
|
|
|
7 |
|
8 |
Integrates the Clicky web analytics service into your blog and adds features for comment tracking & more.
|
9 |
|
38 |
|
39 |
== Changelog ==
|
40 |
|
41 |
+
= 1.8 =
|
42 |
+
|
43 |
+
* Lots of code style and escaping improvements.
|
44 |
+
* Removed banner for the Yoast website review service as it's no longer offered.
|
45 |
+
* Added RTL stylesheets.
|
46 |
+
|
47 |
= 1.7 =
|
48 |
|
49 |
Released February 26th, 2019
|
146 |
* No more unneeded JavaScript being loaded on the admin pages.
|
147 |
* Made the Goal Tracking box work for all post types and made it smaller.
|
148 |
* Removed some code that was no longer used.
|
149 |
+
* Removed dashboard widget, added Yoast news widget to the settings page.
|
150 |
* Added a small stats indicator of visitors in the last 48 to the WordPress toolbar.
|
151 |
|
152 |
= 1.3 =
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInitb438012fc4a076a1479e73373ea0443a::getLoader();
|
vendor/autoload_52.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once dirname(__FILE__) . '/composer'.'/autoload_real_52.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once dirname(__FILE__) . '/composer'.'/autoload_real_52.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInit94e5d626b996cdaa85ddda4a4de885ba::getLoader();
|
vendor/composer/autoload_classmap.php
CHANGED
@@ -16,62 +16,90 @@ return array(
|
|
16 |
'Composer\\Installers\\AimeosInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/AimeosInstaller.php',
|
17 |
'Composer\\Installers\\AnnotateCmsInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/AnnotateCmsInstaller.php',
|
18 |
'Composer\\Installers\\AsgardInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/AsgardInstaller.php',
|
|
|
19 |
'Composer\\Installers\\BaseInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/BaseInstaller.php',
|
20 |
'Composer\\Installers\\BitrixInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/BitrixInstaller.php',
|
21 |
'Composer\\Installers\\BonefishInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/BonefishInstaller.php',
|
22 |
'Composer\\Installers\\CakePHPInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/CakePHPInstaller.php',
|
23 |
'Composer\\Installers\\ChefInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ChefInstaller.php',
|
|
|
24 |
'Composer\\Installers\\ClanCatsFrameworkInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ClanCatsFrameworkInstaller.php',
|
|
|
25 |
'Composer\\Installers\\CodeIgniterInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/CodeIgniterInstaller.php',
|
26 |
'Composer\\Installers\\Concrete5Installer' => $vendorDir . '/composer/installers/src/Composer/Installers/Concrete5Installer.php',
|
27 |
'Composer\\Installers\\CraftInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/CraftInstaller.php',
|
28 |
'Composer\\Installers\\CroogoInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/CroogoInstaller.php',
|
|
|
29 |
'Composer\\Installers\\DokuWikiInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/DokuWikiInstaller.php',
|
30 |
'Composer\\Installers\\DolibarrInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/DolibarrInstaller.php',
|
31 |
'Composer\\Installers\\DrupalInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/DrupalInstaller.php',
|
32 |
'Composer\\Installers\\ElggInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ElggInstaller.php',
|
|
|
|
|
|
|
33 |
'Composer\\Installers\\FuelInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/FuelInstaller.php',
|
34 |
'Composer\\Installers\\FuelphpInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/FuelphpInstaller.php',
|
35 |
'Composer\\Installers\\GravInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/GravInstaller.php',
|
36 |
'Composer\\Installers\\HuradInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/HuradInstaller.php',
|
37 |
'Composer\\Installers\\ImageCMSInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ImageCMSInstaller.php',
|
38 |
'Composer\\Installers\\Installer' => $vendorDir . '/composer/installers/src/Composer/Installers/Installer.php',
|
|
|
39 |
'Composer\\Installers\\JoomlaInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/JoomlaInstaller.php',
|
|
|
40 |
'Composer\\Installers\\KirbyInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/KirbyInstaller.php',
|
41 |
'Composer\\Installers\\KodiCMSInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/KodiCMSInstaller.php',
|
42 |
'Composer\\Installers\\KohanaInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/KohanaInstaller.php',
|
|
|
43 |
'Composer\\Installers\\LaravelInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/LaravelInstaller.php',
|
|
|
44 |
'Composer\\Installers\\LithiumInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/LithiumInstaller.php',
|
45 |
'Composer\\Installers\\MODULEWorkInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MODULEWorkInstaller.php',
|
46 |
'Composer\\Installers\\MODXEvoInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MODXEvoInstaller.php',
|
47 |
'Composer\\Installers\\MagentoInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MagentoInstaller.php',
|
|
|
48 |
'Composer\\Installers\\MakoInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MakoInstaller.php',
|
49 |
'Composer\\Installers\\MauticInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MauticInstaller.php',
|
|
|
50 |
'Composer\\Installers\\MediaWikiInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MediaWikiInstaller.php',
|
51 |
'Composer\\Installers\\MicroweberInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MicroweberInstaller.php',
|
|
|
52 |
'Composer\\Installers\\MoodleInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MoodleInstaller.php',
|
53 |
'Composer\\Installers\\OctoberInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/OctoberInstaller.php',
|
|
|
|
|
54 |
'Composer\\Installers\\OxidInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/OxidInstaller.php',
|
55 |
'Composer\\Installers\\PPIInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PPIInstaller.php',
|
|
|
56 |
'Composer\\Installers\\PhpBBInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PhpBBInstaller.php',
|
57 |
'Composer\\Installers\\PimcoreInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PimcoreInstaller.php',
|
58 |
'Composer\\Installers\\PiwikInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PiwikInstaller.php',
|
|
|
59 |
'Composer\\Installers\\Plugin' => $vendorDir . '/composer/installers/src/Composer/Installers/Plugin.php',
|
|
|
60 |
'Composer\\Installers\\PrestashopInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PrestashopInstaller.php',
|
61 |
'Composer\\Installers\\PuppetInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PuppetInstaller.php',
|
|
|
|
|
|
|
62 |
'Composer\\Installers\\RedaxoInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/RedaxoInstaller.php',
|
63 |
'Composer\\Installers\\RoundcubeInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/RoundcubeInstaller.php',
|
64 |
'Composer\\Installers\\SMFInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/SMFInstaller.php',
|
65 |
'Composer\\Installers\\ShopwareInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ShopwareInstaller.php',
|
66 |
'Composer\\Installers\\SilverStripeInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/SilverStripeInstaller.php',
|
|
|
|
|
67 |
'Composer\\Installers\\Symfony1Installer' => $vendorDir . '/composer/installers/src/Composer/Installers/Symfony1Installer.php',
|
68 |
'Composer\\Installers\\TYPO3CmsInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/TYPO3CmsInstaller.php',
|
69 |
'Composer\\Installers\\TYPO3FlowInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/TYPO3FlowInstaller.php',
|
70 |
'Composer\\Installers\\TheliaInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/TheliaInstaller.php',
|
71 |
'Composer\\Installers\\TuskInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/TuskInstaller.php',
|
|
|
|
|
|
|
72 |
'Composer\\Installers\\WHMCSInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/WHMCSInstaller.php',
|
73 |
'Composer\\Installers\\WolfCMSInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/WolfCMSInstaller.php',
|
74 |
'Composer\\Installers\\WordPressInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/WordPressInstaller.php',
|
|
|
75 |
'Composer\\Installers\\ZendInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ZendInstaller.php',
|
76 |
'Composer\\Installers\\ZikulaInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ZikulaInstaller.php',
|
77 |
'xrstf\\Composer52\\AutoloadGenerator' => $vendorDir . '/xrstf/composer-php52/lib/xrstf/Composer52/AutoloadGenerator.php',
|
16 |
'Composer\\Installers\\AimeosInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/AimeosInstaller.php',
|
17 |
'Composer\\Installers\\AnnotateCmsInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/AnnotateCmsInstaller.php',
|
18 |
'Composer\\Installers\\AsgardInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/AsgardInstaller.php',
|
19 |
+
'Composer\\Installers\\AttogramInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/AttogramInstaller.php',
|
20 |
'Composer\\Installers\\BaseInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/BaseInstaller.php',
|
21 |
'Composer\\Installers\\BitrixInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/BitrixInstaller.php',
|
22 |
'Composer\\Installers\\BonefishInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/BonefishInstaller.php',
|
23 |
'Composer\\Installers\\CakePHPInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/CakePHPInstaller.php',
|
24 |
'Composer\\Installers\\ChefInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ChefInstaller.php',
|
25 |
+
'Composer\\Installers\\CiviCrmInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/CiviCrmInstaller.php',
|
26 |
'Composer\\Installers\\ClanCatsFrameworkInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ClanCatsFrameworkInstaller.php',
|
27 |
+
'Composer\\Installers\\CockpitInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/CockpitInstaller.php',
|
28 |
'Composer\\Installers\\CodeIgniterInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/CodeIgniterInstaller.php',
|
29 |
'Composer\\Installers\\Concrete5Installer' => $vendorDir . '/composer/installers/src/Composer/Installers/Concrete5Installer.php',
|
30 |
'Composer\\Installers\\CraftInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/CraftInstaller.php',
|
31 |
'Composer\\Installers\\CroogoInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/CroogoInstaller.php',
|
32 |
+
'Composer\\Installers\\DecibelInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/DecibelInstaller.php',
|
33 |
'Composer\\Installers\\DokuWikiInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/DokuWikiInstaller.php',
|
34 |
'Composer\\Installers\\DolibarrInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/DolibarrInstaller.php',
|
35 |
'Composer\\Installers\\DrupalInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/DrupalInstaller.php',
|
36 |
'Composer\\Installers\\ElggInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ElggInstaller.php',
|
37 |
+
'Composer\\Installers\\EliasisInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/EliasisInstaller.php',
|
38 |
+
'Composer\\Installers\\ExpressionEngineInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ExpressionEngineInstaller.php',
|
39 |
+
'Composer\\Installers\\EzPlatformInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/EzPlatformInstaller.php',
|
40 |
'Composer\\Installers\\FuelInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/FuelInstaller.php',
|
41 |
'Composer\\Installers\\FuelphpInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/FuelphpInstaller.php',
|
42 |
'Composer\\Installers\\GravInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/GravInstaller.php',
|
43 |
'Composer\\Installers\\HuradInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/HuradInstaller.php',
|
44 |
'Composer\\Installers\\ImageCMSInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ImageCMSInstaller.php',
|
45 |
'Composer\\Installers\\Installer' => $vendorDir . '/composer/installers/src/Composer/Installers/Installer.php',
|
46 |
+
'Composer\\Installers\\ItopInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ItopInstaller.php',
|
47 |
'Composer\\Installers\\JoomlaInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/JoomlaInstaller.php',
|
48 |
+
'Composer\\Installers\\KanboardInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/KanboardInstaller.php',
|
49 |
'Composer\\Installers\\KirbyInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/KirbyInstaller.php',
|
50 |
'Composer\\Installers\\KodiCMSInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/KodiCMSInstaller.php',
|
51 |
'Composer\\Installers\\KohanaInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/KohanaInstaller.php',
|
52 |
+
'Composer\\Installers\\LanManagementSystemInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/LanManagementSystemInstaller.php',
|
53 |
'Composer\\Installers\\LaravelInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/LaravelInstaller.php',
|
54 |
+
'Composer\\Installers\\LavaLiteInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/LavaLiteInstaller.php',
|
55 |
'Composer\\Installers\\LithiumInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/LithiumInstaller.php',
|
56 |
'Composer\\Installers\\MODULEWorkInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MODULEWorkInstaller.php',
|
57 |
'Composer\\Installers\\MODXEvoInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MODXEvoInstaller.php',
|
58 |
'Composer\\Installers\\MagentoInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MagentoInstaller.php',
|
59 |
+
'Composer\\Installers\\MajimaInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MajimaInstaller.php',
|
60 |
'Composer\\Installers\\MakoInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MakoInstaller.php',
|
61 |
'Composer\\Installers\\MauticInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MauticInstaller.php',
|
62 |
+
'Composer\\Installers\\MayaInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MayaInstaller.php',
|
63 |
'Composer\\Installers\\MediaWikiInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MediaWikiInstaller.php',
|
64 |
'Composer\\Installers\\MicroweberInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MicroweberInstaller.php',
|
65 |
+
'Composer\\Installers\\ModxInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ModxInstaller.php',
|
66 |
'Composer\\Installers\\MoodleInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/MoodleInstaller.php',
|
67 |
'Composer\\Installers\\OctoberInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/OctoberInstaller.php',
|
68 |
+
'Composer\\Installers\\OntoWikiInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/OntoWikiInstaller.php',
|
69 |
+
'Composer\\Installers\\OsclassInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/OsclassInstaller.php',
|
70 |
'Composer\\Installers\\OxidInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/OxidInstaller.php',
|
71 |
'Composer\\Installers\\PPIInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PPIInstaller.php',
|
72 |
+
'Composer\\Installers\\PhiftyInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PhiftyInstaller.php',
|
73 |
'Composer\\Installers\\PhpBBInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PhpBBInstaller.php',
|
74 |
'Composer\\Installers\\PimcoreInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PimcoreInstaller.php',
|
75 |
'Composer\\Installers\\PiwikInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PiwikInstaller.php',
|
76 |
+
'Composer\\Installers\\PlentymarketsInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PlentymarketsInstaller.php',
|
77 |
'Composer\\Installers\\Plugin' => $vendorDir . '/composer/installers/src/Composer/Installers/Plugin.php',
|
78 |
+
'Composer\\Installers\\PortoInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PortoInstaller.php',
|
79 |
'Composer\\Installers\\PrestashopInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PrestashopInstaller.php',
|
80 |
'Composer\\Installers\\PuppetInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PuppetInstaller.php',
|
81 |
+
'Composer\\Installers\\PxcmsInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PxcmsInstaller.php',
|
82 |
+
'Composer\\Installers\\RadPHPInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/RadPHPInstaller.php',
|
83 |
+
'Composer\\Installers\\ReIndexInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ReIndexInstaller.php',
|
84 |
'Composer\\Installers\\RedaxoInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/RedaxoInstaller.php',
|
85 |
'Composer\\Installers\\RoundcubeInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/RoundcubeInstaller.php',
|
86 |
'Composer\\Installers\\SMFInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/SMFInstaller.php',
|
87 |
'Composer\\Installers\\ShopwareInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ShopwareInstaller.php',
|
88 |
'Composer\\Installers\\SilverStripeInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/SilverStripeInstaller.php',
|
89 |
+
'Composer\\Installers\\SiteDirectInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/SiteDirectInstaller.php',
|
90 |
+
'Composer\\Installers\\SyDESInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/SyDESInstaller.php',
|
91 |
'Composer\\Installers\\Symfony1Installer' => $vendorDir . '/composer/installers/src/Composer/Installers/Symfony1Installer.php',
|
92 |
'Composer\\Installers\\TYPO3CmsInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/TYPO3CmsInstaller.php',
|
93 |
'Composer\\Installers\\TYPO3FlowInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/TYPO3FlowInstaller.php',
|
94 |
'Composer\\Installers\\TheliaInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/TheliaInstaller.php',
|
95 |
'Composer\\Installers\\TuskInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/TuskInstaller.php',
|
96 |
+
'Composer\\Installers\\UserFrostingInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/UserFrostingInstaller.php',
|
97 |
+
'Composer\\Installers\\VanillaInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/VanillaInstaller.php',
|
98 |
+
'Composer\\Installers\\VgmcpInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/VgmcpInstaller.php',
|
99 |
'Composer\\Installers\\WHMCSInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/WHMCSInstaller.php',
|
100 |
'Composer\\Installers\\WolfCMSInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/WolfCMSInstaller.php',
|
101 |
'Composer\\Installers\\WordPressInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/WordPressInstaller.php',
|
102 |
+
'Composer\\Installers\\YawikInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/YawikInstaller.php',
|
103 |
'Composer\\Installers\\ZendInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ZendInstaller.php',
|
104 |
'Composer\\Installers\\ZikulaInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ZikulaInstaller.php',
|
105 |
'xrstf\\Composer52\\AutoloadGenerator' => $vendorDir . '/xrstf/composer-php52/lib/xrstf/Composer52/AutoloadGenerator.php',
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -19,15 +19,15 @@ class ComposerAutoloaderInit182c104cb065193973ccff7852167bd3
|
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
-
spl_autoload_register(array('
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
-
spl_autoload_unregister(array('
|
25 |
|
26 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
27 |
if ($useStaticLoader) {
|
28 |
require_once __DIR__ . '/autoload_static.php';
|
29 |
|
30 |
-
call_user_func(\Composer\Autoload\
|
31 |
} else {
|
32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
33 |
foreach ($map as $namespace => $path) {
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInitb438012fc4a076a1479e73373ea0443a
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
+
spl_autoload_register(array('ComposerAutoloaderInitb438012fc4a076a1479e73373ea0443a', 'loadClassLoader'), true, true);
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInitb438012fc4a076a1479e73373ea0443a', 'loadClassLoader'));
|
25 |
|
26 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
27 |
if ($useStaticLoader) {
|
28 |
require_once __DIR__ . '/autoload_static.php';
|
29 |
|
30 |
+
call_user_func(\Composer\Autoload\ComposerStaticInitb438012fc4a076a1479e73373ea0443a::getInitializer($loader));
|
31 |
} else {
|
32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
33 |
foreach ($map as $namespace => $path) {
|
vendor/composer/autoload_real_52.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real_52.php generated by xrstf/composer-php52
|
4 |
|
5 |
-
class
|
6 |
private static $loader;
|
7 |
|
8 |
public static function loadClassLoader($class) {
|
@@ -19,9 +19,9 @@ class ComposerAutoloaderInit3ff08d72e29433f3143614168e23e699 {
|
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
-
spl_autoload_register(array('
|
23 |
self::$loader = $loader = new xrstf_Composer52_ClassLoader();
|
24 |
-
spl_autoload_unregister(array('
|
25 |
|
26 |
$vendorDir = dirname(dirname(__FILE__));
|
27 |
$baseDir = dirname($vendorDir);
|
2 |
|
3 |
// autoload_real_52.php generated by xrstf/composer-php52
|
4 |
|
5 |
+
class ComposerAutoloaderInit94e5d626b996cdaa85ddda4a4de885ba {
|
6 |
private static $loader;
|
7 |
|
8 |
public static function loadClassLoader($class) {
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
+
spl_autoload_register(array('ComposerAutoloaderInit94e5d626b996cdaa85ddda4a4de885ba', 'loadClassLoader'), true /*, true */);
|
23 |
self::$loader = $loader = new xrstf_Composer52_ClassLoader();
|
24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit94e5d626b996cdaa85ddda4a4de885ba', 'loadClassLoader'));
|
25 |
|
26 |
$vendorDir = dirname(dirname(__FILE__));
|
27 |
$baseDir = dirname($vendorDir);
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'C' =>
|
@@ -41,62 +41,90 @@ class ComposerStaticInit182c104cb065193973ccff7852167bd3
|
|
41 |
'Composer\\Installers\\AimeosInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/AimeosInstaller.php',
|
42 |
'Composer\\Installers\\AnnotateCmsInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/AnnotateCmsInstaller.php',
|
43 |
'Composer\\Installers\\AsgardInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/AsgardInstaller.php',
|
|
|
44 |
'Composer\\Installers\\BaseInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/BaseInstaller.php',
|
45 |
'Composer\\Installers\\BitrixInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/BitrixInstaller.php',
|
46 |
'Composer\\Installers\\BonefishInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/BonefishInstaller.php',
|
47 |
'Composer\\Installers\\CakePHPInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/CakePHPInstaller.php',
|
48 |
'Composer\\Installers\\ChefInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ChefInstaller.php',
|
|
|
49 |
'Composer\\Installers\\ClanCatsFrameworkInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ClanCatsFrameworkInstaller.php',
|
|
|
50 |
'Composer\\Installers\\CodeIgniterInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/CodeIgniterInstaller.php',
|
51 |
'Composer\\Installers\\Concrete5Installer' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/Concrete5Installer.php',
|
52 |
'Composer\\Installers\\CraftInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/CraftInstaller.php',
|
53 |
'Composer\\Installers\\CroogoInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/CroogoInstaller.php',
|
|
|
54 |
'Composer\\Installers\\DokuWikiInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/DokuWikiInstaller.php',
|
55 |
'Composer\\Installers\\DolibarrInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/DolibarrInstaller.php',
|
56 |
'Composer\\Installers\\DrupalInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/DrupalInstaller.php',
|
57 |
'Composer\\Installers\\ElggInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ElggInstaller.php',
|
|
|
|
|
|
|
58 |
'Composer\\Installers\\FuelInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/FuelInstaller.php',
|
59 |
'Composer\\Installers\\FuelphpInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/FuelphpInstaller.php',
|
60 |
'Composer\\Installers\\GravInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/GravInstaller.php',
|
61 |
'Composer\\Installers\\HuradInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/HuradInstaller.php',
|
62 |
'Composer\\Installers\\ImageCMSInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ImageCMSInstaller.php',
|
63 |
'Composer\\Installers\\Installer' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/Installer.php',
|
|
|
64 |
'Composer\\Installers\\JoomlaInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/JoomlaInstaller.php',
|
|
|
65 |
'Composer\\Installers\\KirbyInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/KirbyInstaller.php',
|
66 |
'Composer\\Installers\\KodiCMSInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/KodiCMSInstaller.php',
|
67 |
'Composer\\Installers\\KohanaInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/KohanaInstaller.php',
|
|
|
68 |
'Composer\\Installers\\LaravelInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/LaravelInstaller.php',
|
|
|
69 |
'Composer\\Installers\\LithiumInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/LithiumInstaller.php',
|
70 |
'Composer\\Installers\\MODULEWorkInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MODULEWorkInstaller.php',
|
71 |
'Composer\\Installers\\MODXEvoInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MODXEvoInstaller.php',
|
72 |
'Composer\\Installers\\MagentoInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MagentoInstaller.php',
|
|
|
73 |
'Composer\\Installers\\MakoInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MakoInstaller.php',
|
74 |
'Composer\\Installers\\MauticInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MauticInstaller.php',
|
|
|
75 |
'Composer\\Installers\\MediaWikiInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MediaWikiInstaller.php',
|
76 |
'Composer\\Installers\\MicroweberInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MicroweberInstaller.php',
|
|
|
77 |
'Composer\\Installers\\MoodleInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MoodleInstaller.php',
|
78 |
'Composer\\Installers\\OctoberInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/OctoberInstaller.php',
|
|
|
|
|
79 |
'Composer\\Installers\\OxidInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/OxidInstaller.php',
|
80 |
'Composer\\Installers\\PPIInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PPIInstaller.php',
|
|
|
81 |
'Composer\\Installers\\PhpBBInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PhpBBInstaller.php',
|
82 |
'Composer\\Installers\\PimcoreInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PimcoreInstaller.php',
|
83 |
'Composer\\Installers\\PiwikInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PiwikInstaller.php',
|
|
|
84 |
'Composer\\Installers\\Plugin' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/Plugin.php',
|
|
|
85 |
'Composer\\Installers\\PrestashopInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PrestashopInstaller.php',
|
86 |
'Composer\\Installers\\PuppetInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PuppetInstaller.php',
|
|
|
|
|
|
|
87 |
'Composer\\Installers\\RedaxoInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/RedaxoInstaller.php',
|
88 |
'Composer\\Installers\\RoundcubeInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/RoundcubeInstaller.php',
|
89 |
'Composer\\Installers\\SMFInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/SMFInstaller.php',
|
90 |
'Composer\\Installers\\ShopwareInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ShopwareInstaller.php',
|
91 |
'Composer\\Installers\\SilverStripeInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/SilverStripeInstaller.php',
|
|
|
|
|
92 |
'Composer\\Installers\\Symfony1Installer' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/Symfony1Installer.php',
|
93 |
'Composer\\Installers\\TYPO3CmsInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/TYPO3CmsInstaller.php',
|
94 |
'Composer\\Installers\\TYPO3FlowInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/TYPO3FlowInstaller.php',
|
95 |
'Composer\\Installers\\TheliaInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/TheliaInstaller.php',
|
96 |
'Composer\\Installers\\TuskInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/TuskInstaller.php',
|
|
|
|
|
|
|
97 |
'Composer\\Installers\\WHMCSInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/WHMCSInstaller.php',
|
98 |
'Composer\\Installers\\WolfCMSInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/WolfCMSInstaller.php',
|
99 |
'Composer\\Installers\\WordPressInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/WordPressInstaller.php',
|
|
|
100 |
'Composer\\Installers\\ZendInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ZendInstaller.php',
|
101 |
'Composer\\Installers\\ZikulaInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ZikulaInstaller.php',
|
102 |
'xrstf\\Composer52\\AutoloadGenerator' => __DIR__ . '/..' . '/xrstf/composer-php52/lib/xrstf/Composer52/AutoloadGenerator.php',
|
@@ -107,10 +135,10 @@ class ComposerStaticInit182c104cb065193973ccff7852167bd3
|
|
107 |
public static function getInitializer(ClassLoader $loader)
|
108 |
{
|
109 |
return \Closure::bind(function () use ($loader) {
|
110 |
-
$loader->prefixLengthsPsr4 =
|
111 |
-
$loader->prefixDirsPsr4 =
|
112 |
-
$loader->prefixesPsr0 =
|
113 |
-
$loader->classMap =
|
114 |
|
115 |
}, null, ClassLoader::class);
|
116 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInitb438012fc4a076a1479e73373ea0443a
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'C' =>
|
41 |
'Composer\\Installers\\AimeosInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/AimeosInstaller.php',
|
42 |
'Composer\\Installers\\AnnotateCmsInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/AnnotateCmsInstaller.php',
|
43 |
'Composer\\Installers\\AsgardInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/AsgardInstaller.php',
|
44 |
+
'Composer\\Installers\\AttogramInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/AttogramInstaller.php',
|
45 |
'Composer\\Installers\\BaseInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/BaseInstaller.php',
|
46 |
'Composer\\Installers\\BitrixInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/BitrixInstaller.php',
|
47 |
'Composer\\Installers\\BonefishInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/BonefishInstaller.php',
|
48 |
'Composer\\Installers\\CakePHPInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/CakePHPInstaller.php',
|
49 |
'Composer\\Installers\\ChefInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ChefInstaller.php',
|
50 |
+
'Composer\\Installers\\CiviCrmInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/CiviCrmInstaller.php',
|
51 |
'Composer\\Installers\\ClanCatsFrameworkInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ClanCatsFrameworkInstaller.php',
|
52 |
+
'Composer\\Installers\\CockpitInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/CockpitInstaller.php',
|
53 |
'Composer\\Installers\\CodeIgniterInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/CodeIgniterInstaller.php',
|
54 |
'Composer\\Installers\\Concrete5Installer' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/Concrete5Installer.php',
|
55 |
'Composer\\Installers\\CraftInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/CraftInstaller.php',
|
56 |
'Composer\\Installers\\CroogoInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/CroogoInstaller.php',
|
57 |
+
'Composer\\Installers\\DecibelInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/DecibelInstaller.php',
|
58 |
'Composer\\Installers\\DokuWikiInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/DokuWikiInstaller.php',
|
59 |
'Composer\\Installers\\DolibarrInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/DolibarrInstaller.php',
|
60 |
'Composer\\Installers\\DrupalInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/DrupalInstaller.php',
|
61 |
'Composer\\Installers\\ElggInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ElggInstaller.php',
|
62 |
+
'Composer\\Installers\\EliasisInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/EliasisInstaller.php',
|
63 |
+
'Composer\\Installers\\ExpressionEngineInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ExpressionEngineInstaller.php',
|
64 |
+
'Composer\\Installers\\EzPlatformInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/EzPlatformInstaller.php',
|
65 |
'Composer\\Installers\\FuelInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/FuelInstaller.php',
|
66 |
'Composer\\Installers\\FuelphpInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/FuelphpInstaller.php',
|
67 |
'Composer\\Installers\\GravInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/GravInstaller.php',
|
68 |
'Composer\\Installers\\HuradInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/HuradInstaller.php',
|
69 |
'Composer\\Installers\\ImageCMSInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ImageCMSInstaller.php',
|
70 |
'Composer\\Installers\\Installer' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/Installer.php',
|
71 |
+
'Composer\\Installers\\ItopInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ItopInstaller.php',
|
72 |
'Composer\\Installers\\JoomlaInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/JoomlaInstaller.php',
|
73 |
+
'Composer\\Installers\\KanboardInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/KanboardInstaller.php',
|
74 |
'Composer\\Installers\\KirbyInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/KirbyInstaller.php',
|
75 |
'Composer\\Installers\\KodiCMSInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/KodiCMSInstaller.php',
|
76 |
'Composer\\Installers\\KohanaInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/KohanaInstaller.php',
|
77 |
+
'Composer\\Installers\\LanManagementSystemInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/LanManagementSystemInstaller.php',
|
78 |
'Composer\\Installers\\LaravelInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/LaravelInstaller.php',
|
79 |
+
'Composer\\Installers\\LavaLiteInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/LavaLiteInstaller.php',
|
80 |
'Composer\\Installers\\LithiumInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/LithiumInstaller.php',
|
81 |
'Composer\\Installers\\MODULEWorkInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MODULEWorkInstaller.php',
|
82 |
'Composer\\Installers\\MODXEvoInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MODXEvoInstaller.php',
|
83 |
'Composer\\Installers\\MagentoInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MagentoInstaller.php',
|
84 |
+
'Composer\\Installers\\MajimaInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MajimaInstaller.php',
|
85 |
'Composer\\Installers\\MakoInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MakoInstaller.php',
|
86 |
'Composer\\Installers\\MauticInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MauticInstaller.php',
|
87 |
+
'Composer\\Installers\\MayaInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MayaInstaller.php',
|
88 |
'Composer\\Installers\\MediaWikiInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MediaWikiInstaller.php',
|
89 |
'Composer\\Installers\\MicroweberInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MicroweberInstaller.php',
|
90 |
+
'Composer\\Installers\\ModxInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ModxInstaller.php',
|
91 |
'Composer\\Installers\\MoodleInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/MoodleInstaller.php',
|
92 |
'Composer\\Installers\\OctoberInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/OctoberInstaller.php',
|
93 |
+
'Composer\\Installers\\OntoWikiInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/OntoWikiInstaller.php',
|
94 |
+
'Composer\\Installers\\OsclassInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/OsclassInstaller.php',
|
95 |
'Composer\\Installers\\OxidInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/OxidInstaller.php',
|
96 |
'Composer\\Installers\\PPIInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PPIInstaller.php',
|
97 |
+
'Composer\\Installers\\PhiftyInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PhiftyInstaller.php',
|
98 |
'Composer\\Installers\\PhpBBInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PhpBBInstaller.php',
|
99 |
'Composer\\Installers\\PimcoreInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PimcoreInstaller.php',
|
100 |
'Composer\\Installers\\PiwikInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PiwikInstaller.php',
|
101 |
+
'Composer\\Installers\\PlentymarketsInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PlentymarketsInstaller.php',
|
102 |
'Composer\\Installers\\Plugin' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/Plugin.php',
|
103 |
+
'Composer\\Installers\\PortoInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PortoInstaller.php',
|
104 |
'Composer\\Installers\\PrestashopInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PrestashopInstaller.php',
|
105 |
'Composer\\Installers\\PuppetInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PuppetInstaller.php',
|
106 |
+
'Composer\\Installers\\PxcmsInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PxcmsInstaller.php',
|
107 |
+
'Composer\\Installers\\RadPHPInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/RadPHPInstaller.php',
|
108 |
+
'Composer\\Installers\\ReIndexInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ReIndexInstaller.php',
|
109 |
'Composer\\Installers\\RedaxoInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/RedaxoInstaller.php',
|
110 |
'Composer\\Installers\\RoundcubeInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/RoundcubeInstaller.php',
|
111 |
'Composer\\Installers\\SMFInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/SMFInstaller.php',
|
112 |
'Composer\\Installers\\ShopwareInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ShopwareInstaller.php',
|
113 |
'Composer\\Installers\\SilverStripeInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/SilverStripeInstaller.php',
|
114 |
+
'Composer\\Installers\\SiteDirectInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/SiteDirectInstaller.php',
|
115 |
+
'Composer\\Installers\\SyDESInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/SyDESInstaller.php',
|
116 |
'Composer\\Installers\\Symfony1Installer' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/Symfony1Installer.php',
|
117 |
'Composer\\Installers\\TYPO3CmsInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/TYPO3CmsInstaller.php',
|
118 |
'Composer\\Installers\\TYPO3FlowInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/TYPO3FlowInstaller.php',
|
119 |
'Composer\\Installers\\TheliaInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/TheliaInstaller.php',
|
120 |
'Composer\\Installers\\TuskInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/TuskInstaller.php',
|
121 |
+
'Composer\\Installers\\UserFrostingInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/UserFrostingInstaller.php',
|
122 |
+
'Composer\\Installers\\VanillaInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/VanillaInstaller.php',
|
123 |
+
'Composer\\Installers\\VgmcpInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/VgmcpInstaller.php',
|
124 |
'Composer\\Installers\\WHMCSInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/WHMCSInstaller.php',
|
125 |
'Composer\\Installers\\WolfCMSInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/WolfCMSInstaller.php',
|
126 |
'Composer\\Installers\\WordPressInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/WordPressInstaller.php',
|
127 |
+
'Composer\\Installers\\YawikInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/YawikInstaller.php',
|
128 |
'Composer\\Installers\\ZendInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ZendInstaller.php',
|
129 |
'Composer\\Installers\\ZikulaInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ZikulaInstaller.php',
|
130 |
'xrstf\\Composer52\\AutoloadGenerator' => __DIR__ . '/..' . '/xrstf/composer-php52/lib/xrstf/Composer52/AutoloadGenerator.php',
|
135 |
public static function getInitializer(ClassLoader $loader)
|
136 |
{
|
137 |
return \Closure::bind(function () use ($loader) {
|
138 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInitb438012fc4a076a1479e73373ea0443a::$prefixLengthsPsr4;
|
139 |
+
$loader->prefixDirsPsr4 = ComposerStaticInitb438012fc4a076a1479e73373ea0443a::$prefixDirsPsr4;
|
140 |
+
$loader->prefixesPsr0 = ComposerStaticInitb438012fc4a076a1479e73373ea0443a::$prefixesPsr0;
|
141 |
+
$loader->classMap = ComposerStaticInitb438012fc4a076a1479e73373ea0443a::$classMap;
|
142 |
|
143 |
}, null, ClassLoader::class);
|
144 |
}
|
vendor/yoast/i18n-module/CHANGELOG.md
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Change Log
|
2 |
+
All notable changes to this project will be documented in this file.
|
3 |
+
|
4 |
+
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
5 |
+
and this project adheres to [Semantic Versioning](http://semver.org/).
|
6 |
+
|
7 |
+
## 1.2.1
|
8 |
+
|
9 |
+
### Removed
|
10 |
+
- Remove backwards incompatible changes. These are only backwards incompatible in a WordPress context, but this is the target audience.
|
11 |
+
|
12 |
+
## 1.2.0
|
13 |
+
|
14 |
+
### Added
|
15 |
+
- Add native support for WordPress.org
|
16 |
+
|
17 |
+
## 1.1.0
|
18 |
+
|
19 |
+
### Changed
|
20 |
+
- Use the user locale for deciding whether to display the message to the user.
|
21 |
+
|
22 |
+
## 1.0.1
|
23 |
+
|
24 |
+
### Fixed
|
25 |
+
- Fix issue where a notice would be shown if the API response had no wp_locale.
|
26 |
+
|
27 |
+
## 1.0.0
|
28 |
+
|
29 |
+
### Added
|
30 |
+
- Initial release of the i18n module to show the user a notice about their
|
31 |
+
language not having been translated to 100%.
|
vendor/yoast/i18n-module/i18n-module.php
CHANGED
@@ -42,7 +42,7 @@ class yoast_i18n {
|
|
42 |
private $locale;
|
43 |
|
44 |
/**
|
45 |
-
* Will contain the locale's name, obtained from
|
46 |
*
|
47 |
* @access private
|
48 |
* @var string
|
@@ -111,7 +111,7 @@ class yoast_i18n {
|
|
111 |
return;
|
112 |
}
|
113 |
|
114 |
-
$this->locale =
|
115 |
if ( 'en_US' === $this->locale ) {
|
116 |
return;
|
117 |
}
|
@@ -123,6 +123,25 @@ class yoast_i18n {
|
|
123 |
}
|
124 |
}
|
125 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
126 |
/**
|
127 |
* This is where you decide where to display the messages and where you set the plugin specific variables.
|
128 |
*
|
@@ -244,17 +263,23 @@ class yoast_i18n {
|
|
244 |
$api_url = trailingslashit( $this->glotpress_url ) . 'api/projects/' . $this->project_slug;
|
245 |
|
246 |
$resp = wp_remote_get( $api_url );
|
|
|
|
|
|
|
247 |
$body = wp_remote_retrieve_body( $resp );
|
248 |
unset( $resp );
|
249 |
|
250 |
if ( $body ) {
|
251 |
$body = json_decode( $body );
|
|
|
|
|
|
|
252 |
foreach ( $body->translation_sets as $set ) {
|
253 |
if ( ! property_exists( $set, 'wp_locale' ) ) {
|
254 |
continue;
|
255 |
}
|
256 |
|
257 |
-
if ( $this->locale
|
258 |
return $set;
|
259 |
}
|
260 |
}
|
42 |
private $locale;
|
43 |
|
44 |
/**
|
45 |
+
* Will contain the locale's name, obtained from your translation site
|
46 |
*
|
47 |
* @access private
|
48 |
* @var string
|
111 |
return;
|
112 |
}
|
113 |
|
114 |
+
$this->locale = $this->get_admin_locale();
|
115 |
if ( 'en_US' === $this->locale ) {
|
116 |
return;
|
117 |
}
|
123 |
}
|
124 |
}
|
125 |
|
126 |
+
/**
|
127 |
+
* Returns the locale used in the admin.
|
128 |
+
*
|
129 |
+
* WordPress 4.7 introduced the ability for users to specify an Admin language
|
130 |
+
* different from the language used on the front end. This checks if the feature
|
131 |
+
* is available and returns the user's language, with a fallback to the site's language.
|
132 |
+
* Can be removed when support for WordPress 4.6 will be dropped, in favor
|
133 |
+
* of WordPress get_user_locale() that already fallbacks to the site’s locale.
|
134 |
+
*
|
135 |
+
* @returns string The locale.
|
136 |
+
*/
|
137 |
+
private function get_admin_locale() {
|
138 |
+
if ( function_exists( 'get_user_locale' ) ) {
|
139 |
+
return get_user_locale();
|
140 |
+
}
|
141 |
+
|
142 |
+
return get_locale();
|
143 |
+
}
|
144 |
+
|
145 |
/**
|
146 |
* This is where you decide where to display the messages and where you set the plugin specific variables.
|
147 |
*
|
263 |
$api_url = trailingslashit( $this->glotpress_url ) . 'api/projects/' . $this->project_slug;
|
264 |
|
265 |
$resp = wp_remote_get( $api_url );
|
266 |
+
if ( is_wp_error( $resp ) || wp_remote_retrieve_response_code( $resp ) !== 200 ) {
|
267 |
+
return null;
|
268 |
+
}
|
269 |
$body = wp_remote_retrieve_body( $resp );
|
270 |
unset( $resp );
|
271 |
|
272 |
if ( $body ) {
|
273 |
$body = json_decode( $body );
|
274 |
+
if ( empty( $body->translation_sets ) ) {
|
275 |
+
return null;
|
276 |
+
}
|
277 |
foreach ( $body->translation_sets as $set ) {
|
278 |
if ( ! property_exists( $set, 'wp_locale' ) ) {
|
279 |
continue;
|
280 |
}
|
281 |
|
282 |
+
if ( $this->locale === $set->wp_locale ) {
|
283 |
return $set;
|
284 |
}
|
285 |
}
|