Version Description
- WordPress 4.6 compatibility.
- Improved handling of the HTTP response when verifying a Typekit Kit URL.
Download this release
Release Info
Developer | jamescollins |
Plugin | Typekit Fonts for WordPress |
Version | 1.8.2 |
Comparing to | |
See all releases |
Code changes from version 1.8.1 to 1.8.2
- languages/typekit-fonts-for-wordpress.pot +64 -132
- readme.txt +7 -3
- typekit-admin.php +4 -3
- typekit.php +2 -2
languages/typekit-fonts-for-wordpress.pot
CHANGED
@@ -1,15 +1,14 @@
|
|
1 |
-
# Copyright (C)
|
2 |
# This file is distributed under the same license as the Typekit Fonts for WordPress package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Typekit Fonts for WordPress 1.8\n"
|
6 |
-
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/typekit-fonts-for-"
|
7 |
-
"
|
8 |
-
"POT-Creation-Date: 2015-10-09 01:26:41+00:00\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"PO-Revision-Date:
|
13 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
14 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
15 |
|
@@ -18,9 +17,7 @@ msgid "Typekit Fonts"
|
|
18 |
msgstr ""
|
19 |
|
20 |
#: typekit-admin.php:57
|
21 |
-
msgid ""
|
22 |
-
" Please <a href=\"%s\">click here for instructions</a> on how to obtain your "
|
23 |
-
"Typekit embed code."
|
24 |
msgstr ""
|
25 |
|
26 |
#: typekit-admin.php:60
|
@@ -31,231 +28,169 @@ msgstr ""
|
|
31 |
msgid "You must enter your Typekit embed code. %s"
|
32 |
msgstr ""
|
33 |
|
34 |
-
#: typekit-admin.php:
|
35 |
-
msgid ""
|
36 |
-
"Your Typekit embed code may be incorrect because <a href=\"%1$s\" target="
|
37 |
-
"\"_blank\">%1$s</a> does not exist. Please verify that your Typekit embed "
|
38 |
-
"code is correct. If you have just published your kit, please try again in a "
|
39 |
-
"few minutes."
|
40 |
msgstr ""
|
41 |
|
42 |
-
#: typekit-admin.php:
|
43 |
msgid "Settings saved."
|
44 |
msgstr ""
|
45 |
|
46 |
-
#: typekit-admin.php:92
|
47 |
-
msgid "Typekit Fonts for WordPress Settings"
|
48 |
-
msgstr ""
|
49 |
-
|
50 |
#: typekit-admin.php:93
|
51 |
-
msgid ""
|
52 |
-
"Typekit offer a service that allows you to select from a range of hundreds "
|
53 |
-
"of high quality fonts for your WordPress website. The fonts are applied "
|
54 |
-
"using the font-face standard, so they are standards compliant, fully "
|
55 |
-
"licensed and accessible."
|
56 |
msgstr ""
|
57 |
|
58 |
#: typekit-admin.php:94
|
59 |
-
msgid ""
|
60 |
-
"To use this plugin you need to sign up with Typekit, and then configure the "
|
61 |
-
"following options."
|
62 |
msgstr ""
|
63 |
|
64 |
#: typekit-admin.php:95
|
65 |
-
msgid "
|
66 |
msgstr ""
|
67 |
|
68 |
-
#: typekit-admin.php:
|
69 |
-
msgid ""
|
70 |
-
"Go to <a href=\"%s\" target=\"blank\">typekit.com</a> and register for an "
|
71 |
-
"account"
|
72 |
msgstr ""
|
73 |
|
74 |
#: typekit-admin.php:98
|
75 |
-
msgid "
|
76 |
msgstr ""
|
77 |
|
78 |
#: typekit-admin.php:99
|
79 |
-
msgid ""
|
80 |
-
|
81 |
-
|
|
|
|
|
82 |
msgstr ""
|
83 |
|
84 |
-
#: typekit-admin.php:
|
85 |
msgid "Plugin Configuration"
|
86 |
msgstr ""
|
87 |
|
88 |
-
#: typekit-admin.php:
|
89 |
msgid "Enter the whole 2 lines of your embed code into the box below."
|
90 |
msgstr ""
|
91 |
|
92 |
-
#: typekit-admin.php:
|
93 |
msgid "Typekit Embed Code:"
|
94 |
msgstr ""
|
95 |
|
96 |
-
#: typekit-admin.php:
|
97 |
-
msgid ""
|
98 |
-
"You can add selectors using the Typekit Kit Editor. Alternatively you can "
|
99 |
-
"define your own CSS rules in your own style sheet or using the Custom CSS "
|
100 |
-
"Rules field below (technical note: these CSS rules will be embedded in the "
|
101 |
-
"header of each page). Look at the advanced examples shown in the Typekit "
|
102 |
-
"editor for ideas."
|
103 |
msgstr ""
|
104 |
|
105 |
-
#: typekit-admin.php:
|
106 |
msgid "Custom CSS Rules:"
|
107 |
msgstr ""
|
108 |
|
109 |
-
#: typekit-admin.php:
|
110 |
msgid "Click here for help on CSS"
|
111 |
msgstr ""
|
112 |
|
113 |
-
#: typekit-admin.php:
|
114 |
msgid "Save Settings"
|
115 |
msgstr ""
|
116 |
|
117 |
-
#: typekit-admin.php:
|
118 |
msgid "Help"
|
119 |
msgstr ""
|
120 |
|
121 |
-
#: typekit-admin.php:
|
122 |
msgid "Fonts not showing?"
|
123 |
msgstr ""
|
124 |
|
125 |
-
#: typekit-admin.php:118
|
126 |
-
msgid ""
|
127 |
-
"Have you created your Typekit account, added fonts to it and <strong>pressed "
|
128 |
-
"Publish</strong>? Fonts aren't available until they are published."
|
129 |
-
msgstr ""
|
130 |
-
|
131 |
#: typekit-admin.php:119
|
132 |
-
msgid ""
|
133 |
-
"Have you <strong>waited a few minutes</strong> to allow Typekit time to send "
|
134 |
-
"your fonts out around the world? Grab a cup of coffee and try again soon."
|
135 |
msgstr ""
|
136 |
|
137 |
#: typekit-admin.php:120
|
138 |
-
msgid ""
|
139 |
-
"Have you <strong>added CSS rules</strong> to display your fonts? If in "
|
140 |
-
"doubt, just try the H2 rule shown in the example and see if that works for "
|
141 |
-
"you."
|
142 |
msgstr ""
|
143 |
|
144 |
-
#: typekit-admin.php:
|
145 |
-
msgid "CSS"
|
146 |
msgstr ""
|
147 |
|
148 |
#: typekit-admin.php:123
|
149 |
-
msgid ""
|
150 |
-
"You can use CSS selectors to apply your new typekit fonts. The settings for "
|
151 |
-
"this plugin allow you to add new CSS rules to your website to activate "
|
152 |
-
"Typekit fonts. If you are using fonts for more than just a few elements, you "
|
153 |
-
"may find it easier to manage this way. And using your own CSS rules is a "
|
154 |
-
"good way to access different font weights."
|
155 |
msgstr ""
|
156 |
|
157 |
#: typekit-admin.php:124
|
158 |
-
msgid ""
|
159 |
-
"There are many options for using CSS, but here are a few common scenarios. "
|
160 |
-
"Note: we've used proxima-nova for our examples, you'll need to change "
|
161 |
-
"proxima-nova to the name of your chosen font from Typekit - your added font "
|
162 |
-
"names will be visible in the Kit Editor."
|
163 |
msgstr ""
|
164 |
|
165 |
#: typekit-admin.php:125
|
166 |
-
msgid "
|
167 |
msgstr ""
|
168 |
|
169 |
-
#: typekit-admin.php:
|
170 |
-
msgid ""
|
171 |
-
"If you want your Typekit fonts to be used for H2 headings, add a rule like "
|
172 |
-
"this to your CSS Rules field:"
|
173 |
msgstr ""
|
174 |
|
175 |
-
#: typekit-admin.php:
|
176 |
-
msgid ""
|
177 |
-
"(and you can add similar rules if you want to target other headings such as "
|
178 |
-
"H3)"
|
179 |
msgstr ""
|
180 |
|
181 |
-
#: typekit-admin.php:
|
182 |
-
msgid "
|
183 |
msgstr ""
|
184 |
|
185 |
-
#: typekit-admin.php:
|
186 |
-
msgid ""
|
187 |
-
"If you want your Typekit fonts to be used for sidebar H2 headings, add a "
|
188 |
-
"rule like this to your CSS Rules field:"
|
189 |
msgstr ""
|
190 |
|
191 |
-
#: typekit-admin.php:
|
192 |
-
msgid "
|
193 |
msgstr ""
|
194 |
|
195 |
#: typekit-admin.php:137
|
196 |
-
msgid ""
|
197 |
-
"If your Kit contains more than one weight and/or style for a particular "
|
198 |
-
"font, you need to use numeric <code class=\"inline\">font-weight</code> "
|
199 |
-
"values in your CSS rules to map to a font's weights."
|
200 |
msgstr ""
|
201 |
|
202 |
#: typekit-admin.php:138
|
203 |
-
msgid ""
|
204 |
-
"Typekit fonts have been assigned values from 100 to 900 based on information "
|
205 |
-
"from the font's designer. Web browsers also do some guessing as to which "
|
206 |
-
"weight it should display if the specific value isn't present. Say your font "
|
207 |
-
"has 100, 300 and 900. If you set your text with <code class=\"inline\">font-"
|
208 |
-
"weight: 400</code>, it will choose the most appropriate (300 in this case)."
|
209 |
-
"<br />Note: A <code class=\"inline\">font-weight</code> value of 400 "
|
210 |
-
"corresponds to <code class=\"inline\">font-weight: normal;</code>"
|
211 |
msgstr ""
|
212 |
|
213 |
#: typekit-admin.php:139
|
214 |
-
msgid "
|
215 |
msgstr ""
|
216 |
|
217 |
#: typekit-admin.php:140
|
218 |
-
msgid "
|
219 |
msgstr ""
|
220 |
|
221 |
-
#: typekit-admin.php:
|
222 |
-
msgid ""
|
223 |
-
"You can target your fonts to specific parts of your website if you know a "
|
224 |
-
"bit more about your current WordPress theme and where the font family is "
|
225 |
-
"specified. All WordPress themes have a style.css file, and if you know how "
|
226 |
-
"to check that you should be able to see the selectors in use. Or you can "
|
227 |
-
"install Chris Pederick's Web Developer Toolbar for Firefox and use the CSS, "
|
228 |
-
"View CSS option to see all the CSS rules in use for your theme. When you "
|
229 |
-
"find the selectors that are used for font-family, you can create a rule just "
|
230 |
-
"for that selector to override that rule."
|
231 |
msgstr ""
|
232 |
|
233 |
#: typekit-admin.php:143
|
|
|
|
|
|
|
|
|
234 |
msgid "For example, if your theme has this CSS rule:"
|
235 |
msgstr ""
|
236 |
|
237 |
-
#: typekit-admin.php:
|
238 |
-
msgid ""
|
239 |
-
"you could create this rule to apply your new font to the body of your "
|
240 |
-
"website:"
|
241 |
msgstr ""
|
242 |
|
243 |
-
#: typekit-admin.php:
|
244 |
msgid "Where to go to get help"
|
245 |
msgstr ""
|
246 |
|
247 |
-
#: typekit-admin.php:
|
248 |
msgid "<a href=\"%s\" target=\"_blank\">Typekit Support</a>"
|
249 |
msgstr ""
|
250 |
|
251 |
-
#: typekit-admin.php:
|
252 |
msgid "<a href=\"%s\" target=\"_blank\">Sitepoint CSS Forums</a>"
|
253 |
msgstr ""
|
254 |
|
255 |
-
#: typekit-admin.php:
|
256 |
msgid "<a href=\"%s\" target=\"_blank\">W3Schools CSS Help</a>"
|
257 |
msgstr ""
|
258 |
-
|
259 |
#. Plugin Name of the plugin/theme
|
260 |
msgid "Typekit Fonts for WordPress"
|
261 |
msgstr ""
|
@@ -265,10 +200,7 @@ msgid "https://om4.com.au/plugins/typekit-fonts-for-wordpress-plugin/"
|
|
265 |
msgstr ""
|
266 |
|
267 |
#. Description of the plugin/theme
|
268 |
-
msgid ""
|
269 |
-
"Use a range of hundreds of high quality fonts on your WordPress website by "
|
270 |
-
"integrating the <a href=\"http://typekit.com\">Typekit</a> font service into "
|
271 |
-
"your WordPress blog."
|
272 |
msgstr ""
|
273 |
|
274 |
#. Author of the plugin/theme
|
1 |
+
# Copyright (C) 2016 OM4
|
2 |
# This file is distributed under the same license as the Typekit Fonts for WordPress package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Typekit Fonts for WordPress 1.8.2\n"
|
6 |
+
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/typekit-fonts-for-wordpress\n"
|
7 |
+
"POT-Creation-Date: 2016-08-09 03:24:14+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: 2016-MO-DA HO:MI+ZONE\n"
|
12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
13 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
14 |
|
17 |
msgstr ""
|
18 |
|
19 |
#: typekit-admin.php:57
|
20 |
+
msgid " Please <a href=\"%s\">click here for instructions</a> on how to obtain your Typekit embed code."
|
|
|
|
|
21 |
msgstr ""
|
22 |
|
23 |
#: typekit-admin.php:60
|
28 |
msgid "You must enter your Typekit embed code. %s"
|
29 |
msgstr ""
|
30 |
|
31 |
+
#: typekit-admin.php:76
|
32 |
+
msgid "Your Typekit embed code may be incorrect because <a href=\"%1$s\" target=\"_blank\">%1$s</a> does not exist. Please verify that your Typekit embed code is correct. If you have just published your kit, please try again in a few minutes."
|
|
|
|
|
|
|
|
|
33 |
msgstr ""
|
34 |
|
35 |
+
#: typekit-admin.php:87
|
36 |
msgid "Settings saved."
|
37 |
msgstr ""
|
38 |
|
|
|
|
|
|
|
|
|
39 |
#: typekit-admin.php:93
|
40 |
+
msgid "Typekit Fonts for WordPress Settings"
|
|
|
|
|
|
|
|
|
41 |
msgstr ""
|
42 |
|
43 |
#: typekit-admin.php:94
|
44 |
+
msgid "Typekit offer a service that allows you to select from a range of hundreds of high quality fonts for your WordPress website. The fonts are applied using the font-face standard, so they are standards compliant, fully licensed and accessible."
|
|
|
|
|
45 |
msgstr ""
|
46 |
|
47 |
#: typekit-admin.php:95
|
48 |
+
msgid "To use this plugin you need to sign up with Typekit, and then configure the following options."
|
49 |
msgstr ""
|
50 |
|
51 |
+
#: typekit-admin.php:96
|
52 |
+
msgid "Register with Typekit"
|
|
|
|
|
53 |
msgstr ""
|
54 |
|
55 |
#: typekit-admin.php:98
|
56 |
+
msgid "Go to <a href=\"%s\" target=\"blank\">typekit.com</a> and register for an account"
|
57 |
msgstr ""
|
58 |
|
59 |
#: typekit-admin.php:99
|
60 |
+
msgid "Choose a few fonts to add to your account and Publish them"
|
61 |
+
msgstr ""
|
62 |
+
|
63 |
+
#: typekit-admin.php:100
|
64 |
+
msgid "Go to the Kit Editor and get your Embed Code (link at the top right of the screen)"
|
65 |
msgstr ""
|
66 |
|
67 |
+
#: typekit-admin.php:102
|
68 |
msgid "Plugin Configuration"
|
69 |
msgstr ""
|
70 |
|
71 |
+
#: typekit-admin.php:104
|
72 |
msgid "Enter the whole 2 lines of your embed code into the box below."
|
73 |
msgstr ""
|
74 |
|
75 |
+
#: typekit-admin.php:105
|
76 |
msgid "Typekit Embed Code:"
|
77 |
msgstr ""
|
78 |
|
79 |
+
#: typekit-admin.php:107
|
80 |
+
msgid "You can add selectors using the Typekit Kit Editor. Alternatively you can define your own CSS rules in your own style sheet or using the Custom CSS Rules field below (technical note: these CSS rules will be embedded in the header of each page). Look at the advanced examples shown in the Typekit editor for ideas."
|
|
|
|
|
|
|
|
|
|
|
81 |
msgstr ""
|
82 |
|
83 |
+
#: typekit-admin.php:108
|
84 |
msgid "Custom CSS Rules:"
|
85 |
msgstr ""
|
86 |
|
87 |
+
#: typekit-admin.php:109
|
88 |
msgid "Click here for help on CSS"
|
89 |
msgstr ""
|
90 |
|
91 |
+
#: typekit-admin.php:114
|
92 |
msgid "Save Settings"
|
93 |
msgstr ""
|
94 |
|
95 |
+
#: typekit-admin.php:116
|
96 |
msgid "Help"
|
97 |
msgstr ""
|
98 |
|
99 |
+
#: typekit-admin.php:117
|
100 |
msgid "Fonts not showing?"
|
101 |
msgstr ""
|
102 |
|
|
|
|
|
|
|
|
|
|
|
|
|
103 |
#: typekit-admin.php:119
|
104 |
+
msgid "Have you created your Typekit account, added fonts to it and <strong>pressed Publish</strong>? Fonts aren't available until they are published."
|
|
|
|
|
105 |
msgstr ""
|
106 |
|
107 |
#: typekit-admin.php:120
|
108 |
+
msgid "Have you <strong>waited a few minutes</strong> to allow Typekit time to send your fonts out around the world? Grab a cup of coffee and try again soon."
|
|
|
|
|
|
|
109 |
msgstr ""
|
110 |
|
111 |
+
#: typekit-admin.php:121
|
112 |
+
msgid "Have you <strong>added CSS rules</strong> to display your fonts? If in doubt, just try the H2 rule shown in the example and see if that works for you."
|
113 |
msgstr ""
|
114 |
|
115 |
#: typekit-admin.php:123
|
116 |
+
msgid "CSS"
|
|
|
|
|
|
|
|
|
|
|
117 |
msgstr ""
|
118 |
|
119 |
#: typekit-admin.php:124
|
120 |
+
msgid "You can use CSS selectors to apply your new typekit fonts. The settings for this plugin allow you to add new CSS rules to your website to activate Typekit fonts. If you are using fonts for more than just a few elements, you may find it easier to manage this way. And using your own CSS rules is a good way to access different font weights."
|
|
|
|
|
|
|
|
|
121 |
msgstr ""
|
122 |
|
123 |
#: typekit-admin.php:125
|
124 |
+
msgid "There are many options for using CSS, but here are a few common scenarios. Note: we've used proxima-nova for our examples, you'll need to change proxima-nova to the name of your chosen font from Typekit - your added font names will be visible in the Kit Editor."
|
125 |
msgstr ""
|
126 |
|
127 |
+
#: typekit-admin.php:126
|
128 |
+
msgid "Headings"
|
|
|
|
|
129 |
msgstr ""
|
130 |
|
131 |
+
#: typekit-admin.php:128
|
132 |
+
msgid "If you want your Typekit fonts to be used for H2 headings, add a rule like this to your CSS Rules field:"
|
|
|
|
|
133 |
msgstr ""
|
134 |
|
135 |
+
#: typekit-admin.php:130
|
136 |
+
msgid "(and you can add similar rules if you want to target other headings such as H3)"
|
137 |
msgstr ""
|
138 |
|
139 |
+
#: typekit-admin.php:132
|
140 |
+
msgid "Sidebar Headings"
|
|
|
|
|
141 |
msgstr ""
|
142 |
|
143 |
+
#: typekit-admin.php:134
|
144 |
+
msgid "If you want your Typekit fonts to be used for sidebar H2 headings, add a rule like this to your CSS Rules field:"
|
145 |
msgstr ""
|
146 |
|
147 |
#: typekit-admin.php:137
|
148 |
+
msgid "Font Weights"
|
|
|
|
|
|
|
149 |
msgstr ""
|
150 |
|
151 |
#: typekit-admin.php:138
|
152 |
+
msgid "If your Kit contains more than one weight and/or style for a particular font, you need to use numeric <code class=\"inline\">font-weight</code> values in your CSS rules to map to a font's weights."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
153 |
msgstr ""
|
154 |
|
155 |
#: typekit-admin.php:139
|
156 |
+
msgid "Typekit fonts have been assigned values from 100 to 900 based on information from the font's designer. Web browsers also do some guessing as to which weight it should display if the specific value isn't present. Say your font has 100, 300 and 900. If you set your text with <code class=\"inline\">font-weight: 400</code>, it will choose the most appropriate (300 in this case).<br />Note: A <code class=\"inline\">font-weight</code> value of 400 corresponds to <code class=\"inline\">font-weight: normal;</code>"
|
157 |
msgstr ""
|
158 |
|
159 |
#: typekit-admin.php:140
|
160 |
+
msgid "See <a href=\"%s\">this help article</a> for more details."
|
161 |
msgstr ""
|
162 |
|
163 |
+
#: typekit-admin.php:141
|
164 |
+
msgid "Advanced targetting of fonts with CSS selectors"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
165 |
msgstr ""
|
166 |
|
167 |
#: typekit-admin.php:143
|
168 |
+
msgid "You can target your fonts to specific parts of your website if you know a bit more about your current WordPress theme and where the font family is specified. All WordPress themes have a style.css file, and if you know how to check that you should be able to see the selectors in use. Or you can install Chris Pederick's Web Developer Toolbar for Firefox and use the CSS, View CSS option to see all the CSS rules in use for your theme. When you find the selectors that are used for font-family, you can create a rule just for that selector to override that rule."
|
169 |
+
msgstr ""
|
170 |
+
|
171 |
+
#: typekit-admin.php:144
|
172 |
msgid "For example, if your theme has this CSS rule:"
|
173 |
msgstr ""
|
174 |
|
175 |
+
#: typekit-admin.php:146
|
176 |
+
msgid "you could create this rule to apply your new font to the body of your website:"
|
|
|
|
|
177 |
msgstr ""
|
178 |
|
179 |
+
#: typekit-admin.php:149
|
180 |
msgid "Where to go to get help"
|
181 |
msgstr ""
|
182 |
|
183 |
+
#: typekit-admin.php:151
|
184 |
msgid "<a href=\"%s\" target=\"_blank\">Typekit Support</a>"
|
185 |
msgstr ""
|
186 |
|
187 |
+
#: typekit-admin.php:152
|
188 |
msgid "<a href=\"%s\" target=\"_blank\">Sitepoint CSS Forums</a>"
|
189 |
msgstr ""
|
190 |
|
191 |
+
#: typekit-admin.php:153
|
192 |
msgid "<a href=\"%s\" target=\"_blank\">W3Schools CSS Help</a>"
|
193 |
msgstr ""
|
|
|
194 |
#. Plugin Name of the plugin/theme
|
195 |
msgid "Typekit Fonts for WordPress"
|
196 |
msgstr ""
|
200 |
msgstr ""
|
201 |
|
202 |
#. Description of the plugin/theme
|
203 |
+
msgid "Use a range of hundreds of high quality fonts on your WordPress website by integrating the <a href=\"http://typekit.com\">Typekit</a> font service into your WordPress blog."
|
|
|
|
|
|
|
204 |
msgstr ""
|
205 |
|
206 |
#. Author of the plugin/theme
|
readme.txt
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
Contributors: jamescollins, glenn-om4
|
3 |
Donate link: https://om4.com.au/plugins/#donate
|
4 |
Tags: typekit, fonts, font, design, wp, multisite, wpmu, css, snippet
|
5 |
-
Requires at least: 4.
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 1.8.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -61,6 +61,10 @@ Please see [this page](http://help.typekit.com/customer/portal/articles/6786-bro
|
|
61 |
|
62 |
== Changelog ==
|
63 |
|
|
|
|
|
|
|
|
|
64 |
= 1.8.1 =
|
65 |
* PHP7 compatibility (no more deprecated constructor warning).
|
66 |
|
2 |
Contributors: jamescollins, glenn-om4
|
3 |
Donate link: https://om4.com.au/plugins/#donate
|
4 |
Tags: typekit, fonts, font, design, wp, multisite, wpmu, css, snippet
|
5 |
+
Requires at least: 4.2
|
6 |
+
Tested up to: 4.6
|
7 |
+
Stable tag: 1.8.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
61 |
|
62 |
== Changelog ==
|
63 |
|
64 |
+
= 1.8.2 =
|
65 |
+
* WordPress 4.6 compatibility.
|
66 |
+
* Improved handling of the HTTP response when verifying a Typekit Kit URL.
|
67 |
+
|
68 |
= 1.8.1 =
|
69 |
* PHP7 compatibility (no more deprecated constructor warning).
|
70 |
|
typekit-admin.php
CHANGED
@@ -68,11 +68,12 @@ class OM4_Typekit_Admin {
|
|
68 |
} else {
|
69 |
// ensure the Typekit account ID maps to a valid JS file on Typekit's servers (ie doesn't return a 404 error)
|
70 |
$url = sprintf($this->typekitInstance->embedcodeurl, $id);
|
71 |
-
$
|
72 |
-
|
|
|
73 |
?>
|
74 |
<div id="error" class="error"><p>
|
75 |
-
<?php printf(__('Your Typekit embed code may be incorrect because <a href="%1$s" target="_blank">%1$s</a> does not exist. Please verify that your Typekit embed code is correct. If you have just published your kit, please try again in a few minutes.', 'typekit-fonts-for-wordpress'), $url); ?>
|
76 |
</p></div>
|
77 |
<?php
|
78 |
}
|
68 |
} else {
|
69 |
// ensure the Typekit account ID maps to a valid JS file on Typekit's servers (ie doesn't return a 404 error)
|
70 |
$url = sprintf($this->typekitInstance->embedcodeurl, $id);
|
71 |
+
$response = wp_remote_head( $url );
|
72 |
+
|
73 |
+
if ( 404 == wp_remote_retrieve_response_code( $response ) ) {
|
74 |
?>
|
75 |
<div id="error" class="error"><p>
|
76 |
+
<?php printf( __( 'Your Typekit embed code may be incorrect because <a href="%1$s" target="_blank">%1$s</a> does not exist. Please verify that your Typekit embed code is correct. If you have just published your kit, please try again in a few minutes.', 'typekit-fonts-for-wordpress'), esc_url( $url ) ); ?>
|
77 |
</p></div>
|
78 |
<?php
|
79 |
}
|
typekit.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Typekit Fonts for WordPress
|
4 |
Plugin URI: https://om4.com.au/plugins/typekit-fonts-for-wordpress-plugin/
|
5 |
Description: Use a range of hundreds of high quality fonts on your WordPress website by integrating the <a href="http://typekit.com">Typekit</a> font service into your WordPress blog.
|
6 |
-
Version: 1.8.
|
7 |
Author: OM4
|
8 |
Author URI: https://om4.com.au/plugins/
|
9 |
Text Domain: typekit-fonts-for-wordpress
|
@@ -11,7 +11,7 @@ License: GPLv2 or later
|
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
|
14 |
-
/* Copyright 2009-2016 OM4 (email :
|
15 |
|
16 |
This program is free software; you can redistribute it and/or modify
|
17 |
it under the terms of the GNU General Public License as published by
|
3 |
Plugin Name: Typekit Fonts for WordPress
|
4 |
Plugin URI: https://om4.com.au/plugins/typekit-fonts-for-wordpress-plugin/
|
5 |
Description: Use a range of hundreds of high quality fonts on your WordPress website by integrating the <a href="http://typekit.com">Typekit</a> font service into your WordPress blog.
|
6 |
+
Version: 1.8.2
|
7 |
Author: OM4
|
8 |
Author URI: https://om4.com.au/plugins/
|
9 |
Text Domain: typekit-fonts-for-wordpress
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
|
14 |
+
/* Copyright 2009-2016 OM4 (email : plugins@om4.com.au)
|
15 |
|
16 |
This program is free software; you can redistribute it and/or modify
|
17 |
it under the terms of the GNU General Public License as published by
|