Typekit Fonts for WordPress - Version 1.8

Version Description

  • Use WordPress.org language packs for plugin translations.
  • Improved compatibility with older PHP versions (no more pass by reference).
  • Screenshot updates.
  • Readme updates.
Download this release

Release Info

Developer jamescollins
Plugin Icon 128x128 Typekit Fonts for WordPress
Version 1.8
Comparing to
See all releases

Code changes from version 1.7.2 to 1.8

languages/_readme.txt CHANGED
@@ -1,5 +1,3 @@
1
- If you would like to help translate this plugin into another language, please visit the Transifex project page: https://www.transifex.com/projects/p/typekit-fonts-for-wordpress/
2
-
3
- I will give you credit and it will help others who speak your language.
4
 
5
  Thank you!
1
+ If you would like to help translate this plugin into another language, please visit https://translate.wordpress.org/projects/wp-plugins/typekit-fonts-for-wordpress.
 
 
2
 
3
  Thank you!
languages/typekit-fonts-for-wordpress.mo DELETED
Binary file
languages/typekit-fonts-for-wordpress.po DELETED
@@ -1,336 +0,0 @@
1
- # Copyright (C) 2014 OM4
2
- # This file is distributed under the same license as the Typekit Fonts for WordPress package.
3
- # Translators:
4
- # ThemeBoy <support@themeboy.com>, 2014
5
- msgid ""
6
- msgstr ""
7
- "Project-Id-Version: Typekit Fonts for WordPress\n"
8
- "Report-Msgid-Bugs-To: http://wordpress.org/support/plugin/typekit-fonts-for-"
9
- "wordpress\n"
10
- "POT-Creation-Date: 2014-08-03 03:55:30+00:00\n"
11
- "PO-Revision-Date: 2014-08-03 22:07+1000\n"
12
- "Last-Translator: James Collins <james@om4.com.au>\n"
13
- "Language-Team: Japanese (http://www.transifex.com/projects/p/typekit-fonts-"
14
- "for-wordpress/language/ja/)\n"
15
- "MIME-Version: 1.0\n"
16
- "Content-Type: text/plain; charset=UTF-8\n"
17
- "Content-Transfer-Encoding: 8bit\n"
18
- "Language: ja\n"
19
- "Plural-Forms: nplurals=1; plural=0;\n"
20
- "X-Generator: Poedit 1.6.7\n"
21
-
22
- #: typekit-admin.php:28
23
- msgid "Typekit Fonts"
24
- msgstr "Typekit フォント"
25
-
26
- #: typekit-admin.php:57
27
- msgid ""
28
- " Please <a href=\"%s\">click here for instructions</a> on how to obtain your "
29
- "Typekit embed code."
30
- msgstr ""
31
- "Typekit 埋め込みコードを取得するには<a href=\"%s\">ここをクリック</a>してくだ"
32
- "さい。"
33
-
34
- #: typekit-admin.php:60
35
- msgid "Invalid Typekit embed code. %s"
36
- msgstr "無効な Typekit 埋め込みコード。%s"
37
-
38
- #: typekit-admin.php:63
39
- msgid "You must enter your Typekit embed code. %s"
40
- msgstr "Typekit 埋め込みコードの入力が必要です。%s"
41
-
42
- #: typekit-admin.php:75
43
- msgid ""
44
- "Your Typekit embed code may be incorrect because <a href=\"%1$s\" target="
45
- "\"_blank\">%1$s</a> does not exist. Please verify that your Typekit embed "
46
- "code is correct. If you have just published your kit, please try again in a "
47
- "few minutes."
48
- msgstr ""
49
- "<a href=\"%1$s\" target=\"_blank\">%1$s</a> が存在しないため、あなたの "
50
- "Typekit 埋め込みコードは無効です。Typekit 埋め込みコードが正しく入力されたこ"
51
- "とをお確かめください。新しく公開された場合は、数分後、再度試してください。"
52
-
53
- #: typekit-admin.php:86
54
- msgid "Settings saved."
55
- msgstr "設定を保存しました。"
56
-
57
- #: typekit-admin.php:92
58
- msgid "Typekit Fonts for WordPress Settings"
59
- msgstr "WordPress 設定用 Typekit フォント"
60
-
61
- #: typekit-admin.php:93
62
- msgid ""
63
- "Typekit offer a service that allows you to select from a range of hundreds "
64
- "of high quality fonts for your WordPress website. The fonts are applied "
65
- "using the font-face standard, so they are standards compliant, fully "
66
- "licensed and accessible."
67
- msgstr ""
68
- "Typekit は、様々なフォントから選択し、あなたの WordPress サイトで使用すること"
69
- "ができるサービスを提供しています。標準の font-face を使用し適用されているの"
70
- "で、ライセンスの問題もなく、アクセシビリティ機能も埋め込まれてます。"
71
-
72
- #: typekit-admin.php:94
73
- msgid ""
74
- "To use this plugin you need to sign up with Typekit, and then configure the "
75
- "following options."
76
- msgstr ""
77
- "このプラグインを使用するには Typekit で登録し、下記のオプションを設定する必要"
78
- "があります。"
79
-
80
- #: typekit-admin.php:95
81
- msgid "Register with Typekit"
82
- msgstr "Typekit で登録する"
83
-
84
- #: typekit-admin.php:97
85
- msgid ""
86
- "Go to <a href=\"%s\" target=\"blank\">typekit.com</a> and register for an "
87
- "account"
88
- msgstr ""
89
- "<a href=\"%s\" target=\"blank\">typekit.com</a> にアクセスし、アカウントを登"
90
- "録してください"
91
-
92
- #: typekit-admin.php:98
93
- msgid "Choose a few fonts to add to your account and Publish them"
94
- msgstr "あなたのアカウントからフォントを選択し、公開してください"
95
-
96
- #: typekit-admin.php:99
97
- msgid ""
98
- "Go to the Kit Editor and get your Embed Code (link at the top right of the "
99
- "screen)"
100
- msgstr ""
101
- "Kit Editor へアクセスし、埋め込みコードを取得してください (画面右上のリンク)"
102
-
103
- #: typekit-admin.php:101
104
- msgid "Plugin Configuration"
105
- msgstr "プラグイン設定"
106
-
107
- #: typekit-admin.php:103
108
- msgid "Enter the whole 2 lines of your embed code into the box below."
109
- msgstr "下のボックスにあなたの埋め込みコードの全体の2行を入力してください。"
110
-
111
- #: typekit-admin.php:104
112
- msgid "Typekit Embed Code:"
113
- msgstr "Typekit 埋め込みコード:"
114
-
115
- #: typekit-admin.php:106
116
- msgid ""
117
- "You can add selectors using the Typekit Kit Editor. Alternatively you can "
118
- "define your own CSS rules in your own style sheet or using the Custom CSS "
119
- "Rules field below (technical note: these CSS rules will be embedded in the "
120
- "header of each page). Look at the advanced examples shown in the Typekit "
121
- "editor for ideas."
122
- msgstr ""
123
- "Typekit エディタを使用してセレクターを追加できます。あるいは下の「カスタム "
124
- "CSS ルール」フィールドを使用して自分の CSS ルールを追加できます(※この CSS "
125
- "ルールは各ページのヘッダーに埋め込まれます)。Typekit エディタに表示されている"
126
- "例をご覧ください。"
127
-
128
- #: typekit-admin.php:107
129
- msgid "Custom CSS Rules:"
130
- msgstr "カスタム CSS ルール:"
131
-
132
- #: typekit-admin.php:108
133
- msgid "Click here for help on CSS"
134
- msgstr "CSS ヘルプはこちら"
135
-
136
- #: typekit-admin.php:113
137
- msgid "Save Settings"
138
- msgstr "設定を保存"
139
-
140
- #: typekit-admin.php:115
141
- msgid "Help"
142
- msgstr "ヘルプ"
143
-
144
- #: typekit-admin.php:116
145
- msgid "Fonts not showing?"
146
- msgstr "フォントが表示されない場合"
147
-
148
- #: typekit-admin.php:118
149
- msgid ""
150
- "Have you created your Typekit account, added fonts to it and <strong>pressed "
151
- "Publish</strong>? Fonts aren't available until they are published."
152
- msgstr ""
153
- "Typekit アカウントを作成し、フォントを追加・公開しましたか?フォントは公開さ"
154
- "れるまで利用できません。"
155
-
156
- #: typekit-admin.php:119
157
- msgid ""
158
- "Have you <strong>waited a few minutes</strong> to allow Typekit time to send "
159
- "your fonts out around the world? Grab a cup of coffee and try again soon."
160
- msgstr ""
161
- "世界各国の Typekit サーバーが更新されるまで<strong>数分かかる場合があります</"
162
- "strong>。少し時間を置き、再度試してください。"
163
-
164
- #: typekit-admin.php:120
165
- msgid ""
166
- "Have you <strong>added CSS rules</strong> to display your fonts? If in "
167
- "doubt, just try the H2 rule shown in the example and see if that works for "
168
- "you."
169
- msgstr ""
170
- "フォントを表示する <strong>CSS ルールを追加</strong>しましたか?不明な場合、"
171
- "サンプルの H2 ルールで試してみてください。"
172
-
173
- #: typekit-admin.php:122
174
- msgid "CSS"
175
- msgstr "CSS"
176
-
177
- #: typekit-admin.php:123
178
- msgid ""
179
- "You can use CSS selectors to apply your new typekit fonts. The settings for "
180
- "this plugin allow you to add new CSS rules to your website to activate "
181
- "Typekit fonts. If you are using fonts for more than just a few elements, you "
182
- "may find it easier to manage this way. And using your own CSS rules is a "
183
- "good way to access different font weights."
184
- msgstr ""
185
- "この CSS セレクターを新規 Typekit フォントに適用できます。このプラグインの設"
186
- "定を使用して Typekit フォントに CSS ルールを追加できます。多くのエレメントに"
187
- "フォントを使用している場合、この管理方法をおすすめします。さらに、自分の CSS "
188
- "ルールを使用することによって文字の太さを変えることができます。"
189
-
190
- #: typekit-admin.php:124
191
- msgid ""
192
- "There are many options for using CSS, but here are a few common scenarios. "
193
- "Note: we've used proxima-nova for our examples, you'll need to change "
194
- "proxima-nova to the name of your chosen font from Typekit - your added font "
195
- "names will be visible in the Kit Editor."
196
- msgstr ""
197
- "CSS を使用する方法は様々ですが、ここでは一般的なシナリオを紹介します。注: こ"
198
- "の例では「proxima-nova」を使用しており、「proxima-nova」をあなたの選択した "
199
- "Typekit フォント名に変更しください。フォント名は Kit Editor で表示されていま"
200
- "す。"
201
-
202
- #: typekit-admin.php:125
203
- msgid "Headings"
204
- msgstr "見出し"
205
-
206
- #: typekit-admin.php:127
207
- msgid ""
208
- "If you want your Typekit fonts to be used for H2 headings, add a rule like "
209
- "this to your CSS Rules field:"
210
- msgstr ""
211
- "Typekit フォントを H2 見出しに使用されたい場合、次のようなルールを「CSS ルー"
212
- "ル」フィールドに追加してください:"
213
-
214
- #: typekit-admin.php:129
215
- msgid ""
216
- "(and you can add similar rules if you want to target other headings such as "
217
- "H3)"
218
- msgstr "(H3 など他の見出しにも似たようなルールでターゲティングできます)"
219
-
220
- #: typekit-admin.php:131
221
- msgid "Sidebar Headings"
222
- msgstr "サイドバーの見出し"
223
-
224
- #: typekit-admin.php:133
225
- msgid ""
226
- "If you want your Typekit fonts to be used for sidebar H2 headings, add a "
227
- "rule like this to your CSS Rules field:"
228
- msgstr ""
229
- "Typekit フォントをサイドバーの H2 見出しに使用されたい場合、次のようなルール"
230
- "を「CSS ルール」フィールドに追加してください:"
231
-
232
- #: typekit-admin.php:136
233
- msgid "Font Weights"
234
- msgstr "文字の太さ"
235
-
236
- #: typekit-admin.php:137
237
- msgid ""
238
- "If your Kit contains more than one weight and/or style for a particular "
239
- "font, you need to use numeric <code class=\"inline\">font-weight</code> "
240
- "values in your CSS rules to map to a font's weights."
241
- msgstr ""
242
- "あなたの Kit に複数の文字の太さまたはスタイルが含まれているフォントがある場合"
243
- "は、 文字の太さにマップするために数値の <code class=\"inline\">font-weight</"
244
- "code> を CSS ルールに含む必要があります。"
245
-
246
- #: typekit-admin.php:138
247
- msgid ""
248
- "Typekit fonts have been assigned values from 100 to 900 based on information "
249
- "from the font's designer. Web browsers also do some guessing as to which "
250
- "weight it should display if the specific value isn't present. Say your font "
251
- "has 100, 300 and 900. If you set your text with <code class=\"inline\">font-"
252
- "weight: 400</code>, it will choose the most appropriate (300 in this case)."
253
- "<br />Note: A <code class=\"inline\">font-weight</code> value of 400 "
254
- "corresponds to <code class=\"inline\">font-weight: normal;</code>"
255
- msgstr ""
256
- "フォントのデザイナーからの情報により、Typekit フォントは100から900までの値が"
257
- "割り当てられています。なお、値が存在しない場合はブラウザーが表示すべき文字の"
258
- "太さを自動的に判断します。例えば、100、300、900の太さを含むフォントがあるとし"
259
- "ます。テキストの設定が <code class=\"inline\">font-weight: 400</code> の場"
260
- "合、最も適している太さ(この場合は300)が選択されます。<br />注: 値が400の "
261
- "<code class=\"inline\">font-weight</code> は <code class=\"inline\">font-"
262
- "weight: normal;</code> に相当します。"
263
-
264
- #: typekit-admin.php:139
265
- msgid "See <a href=\"%s\">this help article</a> for more details."
266
- msgstr "詳しくは<a href=\"%s\">この投稿</a>をご覧ください。"
267
-
268
- #: typekit-admin.php:140
269
- msgid "Advanced targetting of fonts with CSS selectors"
270
- msgstr "CSSセレクタを持つフォントの高度なターゲッティング"
271
-
272
- #: typekit-admin.php:142
273
- msgid ""
274
- "You can target your fonts to specific parts of your website if you know a "
275
- "bit more about your current WordPress theme and where the font family is "
276
- "specified. All WordPress themes have a style.css file, and if you know how "
277
- "to check that you should be able to see the selectors in use. Or you can "
278
- "install Chris Pederick's Web Developer Toolbar for Firefox and use the CSS, "
279
- "View CSS option to see all the CSS rules in use for your theme. When you "
280
- "find the selectors that are used for font-family, you can create a rule just "
281
- "for that selector to override that rule."
282
- msgstr "使用中の WordPress テーマおよびフォントファミリーについて詳しい場合、"
283
-
284
- #: typekit-admin.php:143
285
- msgid "For example, if your theme has this CSS rule:"
286
- msgstr "例えば、使用中のテーマにこのCSSルールが存在する場合:"
287
-
288
- #: typekit-admin.php:145
289
- msgid ""
290
- "you could create this rule to apply your new font to the body of your "
291
- "website:"
292
- msgstr ""
293
- "このルールを作成することにより、あなたのフォントをウェブサイト本文に適用でき"
294
- "ます:"
295
-
296
- #: typekit-admin.php:148
297
- msgid "Where to go to get help"
298
- msgstr "ヘルプはこちら"
299
-
300
- #: typekit-admin.php:150
301
- msgid "<a href=\"%s\" target=\"_blank\">Typekit Support</a>"
302
- msgstr "<a href=\"%s\" target=\"_blank\">Typekit サポート</a>"
303
-
304
- #: typekit-admin.php:151
305
- msgid "<a href=\"%s\" target=\"_blank\">Sitepoint CSS Forums</a>"
306
- msgstr "<a href=\"%s\" target=\"_blank\">Sitepoint CSS フォーラム</a>"
307
-
308
- #: typekit-admin.php:152
309
- msgid "<a href=\"%s\" target=\"_blank\">W3Schools CSS Help</a>"
310
- msgstr "<a href=\"%s\" target=\"_blank\">W3Schools CSS ヘルプ</a>"
311
-
312
- #. Plugin Name of the plugin/theme
313
- msgid "Typekit Fonts for WordPress"
314
- msgstr "ワードプレス用 Typekit フォント"
315
-
316
- #. Plugin URI of the plugin/theme
317
- msgid "http://om4.com.au/wordpress-plugins/typekit-fonts-for-wordpress-plugin/"
318
- msgstr ""
319
- "http://om4.com.au/wordpress-plugins/typekit-fonts-for-wordpress-plugin/"
320
-
321
- #. Description of the plugin/theme
322
- msgid ""
323
- "Use a range of hundreds of high quality fonts on your WordPress website by "
324
- "integrating the <a href=\"http://typekit.com\">Typekit</a> font service into "
325
- "your WordPress blog."
326
- msgstr ""
327
- "<a href=\"http://typekit.com\">Typekit</a> を使用することにより、様々なフォン"
328
- "トをあなたの WordPress ブログに埋め込むことができます。"
329
-
330
- #. Author of the plugin/theme
331
- msgid "OM4"
332
- msgstr "OM4"
333
-
334
- #. Author URI of the plugin/theme
335
- msgid "http://om4.com.au/"
336
- msgstr "http://om4.com.au/"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
languages/typekit-fonts-for-wordpress.pot CHANGED
@@ -1,15 +1,15 @@
1
- # Copyright (C) 2014 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.7-dev\n"
6
- "Report-Msgid-Bugs-To: http://wordpress.org/support/plugin/typekit-fonts-for-"
7
  "wordpress\n"
8
- "POT-Creation-Date: 2014-08-03 03:55:30+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: 2014-MO-DA HO:MI+ZONE\n"
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
 
@@ -261,7 +261,7 @@ msgid "Typekit Fonts for WordPress"
261
  msgstr ""
262
 
263
  #. Plugin URI of the plugin/theme
264
- msgid "http://om4.com.au/wordpress-plugins/typekit-fonts-for-wordpress-plugin/"
265
  msgstr ""
266
 
267
  #. Description of the plugin/theme
@@ -276,5 +276,5 @@ msgid "OM4"
276
  msgstr ""
277
 
278
  #. Author URI of the plugin/theme
279
- msgid "http://om4.com.au/"
280
  msgstr ""
1
+ # Copyright (C) 2015 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\n"
6
+ "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/typekit-fonts-for-"
7
  "wordpress\n"
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: 2015-MO-DA HO:MI+ZONE\n"
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
 
261
  msgstr ""
262
 
263
  #. Plugin URI of the plugin/theme
264
+ msgid "https://om4.com.au/plugins/typekit-fonts-for-wordpress-plugin/"
265
  msgstr ""
266
 
267
  #. Description of the plugin/theme
276
  msgstr ""
277
 
278
  #. Author URI of the plugin/theme
279
+ msgid "https://om4.com.au/plugins/"
280
  msgstr ""
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Typekit Fonts for WordPress ===
2
  Contributors: jamescollins, glenn-om4
3
- Donate link: https://om4.com.au/wordpress-plugins/#donate
4
- Tags: typekit, fonts, font, design, wp, multisite, wpmu
5
  Requires at least: 4.0
6
- Tested up to: 4.3.1
7
- Stable tag: 1.7.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -12,7 +12,7 @@ Use a range of hundreds of high quality fonts on your WordPress website by integ
12
 
13
  == Description ==
14
 
15
- Allows you to embed and use [Typekit](http://www.typekit.com) fonts in your WordPress website without having to edit your theme.
16
 
17
  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.
18
 
@@ -20,9 +20,9 @@ To use this plugin you need to sign up with Typekit, install this plugin and the
20
 
21
  Detailed instructions are available on the plugin's settings page.
22
 
23
- Compatible with WordPress Multisite.
24
 
25
- This plugin is designed to function securely with both WordPress and WordPress Multisite. When the JavaScript Embed Code is entered on the settings page, the user account id is extracted from the embed code and the correctly formed Typekit Embed Code is included in the site header, so it is not possible to use the Embed Code field to include arbitrary JavaScript. The Custom CSS field is also filtered, and doesn't allow any HTML code to be entered.
26
 
27
  **Available Languages**
28
 
@@ -30,7 +30,7 @@ This plugin is designed to function securely with both WordPress and WordPress M
30
 
31
  **Other Languages**
32
 
33
- If you would like to help translate this plugin into another language, [please visit the Transifex project page](https://www.transifex.com/projects/p/typekit-fonts-for-wordpress/). Thank you.
34
 
35
  == Installation ==
36
 
@@ -61,8 +61,14 @@ Please see [this page](http://help.typekit.com/customer/portal/articles/6786-bro
61
 
62
  == Changelog ==
63
 
 
 
 
 
 
 
64
  = 1.7.2 =
65
- * Use Typekit's latest recommended embed code (which uses a https:// typekit embed code URL for all sites).
66
  * WordPress 4.3 compatibility.
67
  * Change plugin's textdomain to match the plugin's folder name in preparation for translate.wordpress.org translations.
68
 
@@ -118,6 +124,10 @@ Please see [this page](http://help.typekit.com/customer/portal/articles/6786-bro
118
 
119
  == Upgrade Notice ==
120
 
 
 
 
 
121
  = 1.7 =
122
  * Japanese language support.
123
 
1
  === Typekit Fonts for WordPress ===
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.0
6
+ Tested up to: 4.4
7
+ Stable tag: 1.8
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
12
 
13
  == Description ==
14
 
15
+ Embed and use [Typekit](https://typekit.com/) fonts in your WordPress website without having to edit your theme!
16
 
17
  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.
18
 
20
 
21
  Detailed instructions are available on the plugin's settings page.
22
 
23
+ This plugin uses [Typekit's asynchronous embed code](http://blog.typekit.com/2015/08/04/new-embed-code-for-asynchronous-font-loading/), which doesn't block the rendering of the page while fonts are loading.
24
 
25
+ Compatible with WordPress Multisite.
26
 
27
  **Available Languages**
28
 
30
 
31
  **Other Languages**
32
 
33
+ If you would like to translate this plugin into another language, [please visit the translate.wordpress.org site](https://translate.wordpress.org/projects/wp-plugins/typekit-fonts-for-wordpress). Thank you!
34
 
35
  == Installation ==
36
 
61
 
62
  == Changelog ==
63
 
64
+ = 1.8 =
65
+ * Use WordPress.org language packs for plugin translations.
66
+ * Improved compatibility with older PHP versions (no more pass by reference).
67
+ * Screenshot updates.
68
+ * Readme updates.
69
+
70
  = 1.7.2 =
71
+ * Use Typekit's latest recommended embed code (which uses a https:// Typekit embed code URL for all sites).
72
  * WordPress 4.3 compatibility.
73
  * Change plugin's textdomain to match the plugin's folder name in preparation for translate.wordpress.org translations.
74
 
124
 
125
  == Upgrade Notice ==
126
 
127
+ = 1.8 =
128
+ * Support for translate.wordpress.org language packs.
129
+ * WordPress 4.3 (and 4.4) compatibility.
130
+
131
  = 1.7 =
132
  * Japanese language support.
133
 
screenshot-1.png CHANGED
Binary file
screenshot-2.png CHANGED
Binary file
typekit-admin.php CHANGED
@@ -16,16 +16,16 @@ class OM4_Typekit_Admin {
16
  function OM4_Typekit_Admin(& $instance) {
17
  global $wpdb;
18
 
19
- $this->typekitInstance = & $instance;
20
 
21
- add_action('admin_menu', array(& $this, 'AdminMenu'));
22
  }
23
 
24
  /**
25
  * Set up the Admin Settings menu
26
  */
27
  function AdminMenu() {
28
- add_options_page(__('Typekit Fonts', 'typekit-fonts-for-wordpress'), __('Typekit Fonts', 'typekit-fonts-for-wordpress'), 'manage_options', basename(__FILE__), array(& $this, 'AdminPage'));
29
  }
30
 
31
  /**
@@ -94,7 +94,7 @@ class OM4_Typekit_Admin {
94
  <p><?php _e('To use this plugin you need to sign up with Typekit, and then configure the following options.', 'typekit-fonts-for-wordpress'); ?></p>
95
  <h3><?php _e('Register with Typekit', 'typekit-fonts-for-wordpress'); ?></h3>
96
  <ol>
97
- <li><?php printf( __('Go to <a href="%s" target="blank">typekit.com</a> and register for an account', 'typekit-fonts-for-wordpress'), 'http://typekit.com'); ?></li>
98
  <li><?php _e('Choose a few fonts to add to your account and Publish them', 'typekit-fonts-for-wordpress'); ?></li>
99
  <li id="getembedcode"><?php _e('Go to the Kit Editor and get your Embed Code (link at the top right of the screen)', 'typekit-fonts-for-wordpress'); ?></li>
100
  </ol>
16
  function OM4_Typekit_Admin(& $instance) {
17
  global $wpdb;
18
 
19
+ $this->typekitInstance = $instance;
20
 
21
+ add_action('admin_menu', array($this, 'AdminMenu'));
22
  }
23
 
24
  /**
25
  * Set up the Admin Settings menu
26
  */
27
  function AdminMenu() {
28
+ add_options_page(__('Typekit Fonts', 'typekit-fonts-for-wordpress'), __('Typekit Fonts', 'typekit-fonts-for-wordpress'), 'manage_options', basename(__FILE__), array($this, 'AdminPage'));
29
  }
30
 
31
  /**
94
  <p><?php _e('To use this plugin you need to sign up with Typekit, and then configure the following options.', 'typekit-fonts-for-wordpress'); ?></p>
95
  <h3><?php _e('Register with Typekit', 'typekit-fonts-for-wordpress'); ?></h3>
96
  <ol>
97
+ <li><?php printf( __('Go to <a href="%s" target="blank">typekit.com</a> and register for an account', 'typekit-fonts-for-wordpress'), 'https://typekit.com/'); ?></li>
98
  <li><?php _e('Choose a few fonts to add to your account and Publish them', 'typekit-fonts-for-wordpress'); ?></li>
99
  <li id="getembedcode"><?php _e('Go to the Kit Editor and get your Embed Code (link at the top right of the screen)', 'typekit-fonts-for-wordpress'); ?></li>
100
  </ol>
typekit.php CHANGED
@@ -1,11 +1,11 @@
1
  <?php
2
  /*
3
  Plugin Name: Typekit Fonts for WordPress
4
- Plugin URI: https://om4.com.au/wordpress-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.7.2
7
  Author: OM4
8
- Author URI: https://om4.com.au/
9
  Text Domain: typekit-fonts-for-wordpress
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -82,6 +82,8 @@ class OM4_Typekit {
82
  register_activation_hook(__FILE__, array($this, 'Activate'));
83
 
84
  add_action('init', array($this, 'Initialise'));
 
 
85
 
86
  add_action('wp_head', array($this, 'HeaderCode'), 99);
87
 
@@ -94,15 +96,10 @@ class OM4_Typekit {
94
  }
95
 
96
  /**
97
- * Load up the localization file if we're using WordPress in a different language.
98
- *
99
- * Place it in this plugin's "languages" folder and name it "typekit-fonts-for-wordpress-[value in wp-config].mo".
100
- *
101
- * See languages/_readme.txt for more information.
102
- *
103
  */
104
  function LoadDomain() {
105
- load_plugin_textdomain( 'typekit-fonts-for-wordpress', false, "{$this->dirname}/languages" );
106
  }
107
 
108
  /**
@@ -137,8 +134,6 @@ class OM4_Typekit {
137
  */
138
  function Initialise() {
139
 
140
- $this->LoadDomain();
141
-
142
  $this->CheckVersion();
143
 
144
  if (is_admin()) {
1
  <?php
2
  /*
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
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
82
  register_activation_hook(__FILE__, array($this, 'Activate'));
83
 
84
  add_action('init', array($this, 'Initialise'));
85
+
86
+ add_action('plugins_loaded', array($this, 'LoadDomain'));
87
 
88
  add_action('wp_head', array($this, 'HeaderCode'), 99);
89
 
96
  }
97
 
98
  /**
99
+ * Load up the relevant language pack if we're using WordPress in a different language.
 
 
 
 
 
100
  */
101
  function LoadDomain() {
102
+ load_plugin_textdomain( 'typekit-fonts-for-wordpress' );
103
  }
104
 
105
  /**
134
  */
135
  function Initialise() {
136
 
 
 
137
  $this->CheckVersion();
138
 
139
  if (is_admin()) {