Version Description
- WordPress 4.7 compatibility.
- Add "Settings" link on plugins screen.
Download this release
Release Info
Developer | jamescollins |
Plugin | Typekit Fonts for WordPress |
Version | 1.8.3 |
Comparing to | |
See all releases |
Code changes from version 1.8.2 to 1.8.3
- languages/typekit-fonts-for-wordpress.pot +51 -47
- readme.txt +7 -3
- typekit-admin.php +17 -0
- typekit.php +1 -1
languages/typekit-fonts-for-wordpress.pot
CHANGED
@@ -2,9 +2,9 @@
|
|
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.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/typekit-fonts-for-wordpress\n"
|
7 |
-
"POT-Creation-Date: 2016-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -12,183 +12,187 @@ msgstr ""
|
|
12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
13 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
14 |
|
15 |
-
#: typekit-admin.php:
|
16 |
msgid "Typekit Fonts"
|
17 |
msgstr ""
|
18 |
|
19 |
-
#: typekit-admin.php:
|
|
|
|
|
|
|
|
|
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:
|
24 |
msgid "Invalid Typekit embed code. %s"
|
25 |
msgstr ""
|
26 |
|
27 |
-
#: typekit-admin.php:
|
28 |
msgid "You must enter your Typekit embed code. %s"
|
29 |
msgstr ""
|
30 |
|
31 |
-
#: typekit-admin.php:
|
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:
|
36 |
msgid "Settings saved."
|
37 |
msgstr ""
|
38 |
|
39 |
-
#: typekit-admin.php:
|
40 |
msgid "Typekit Fonts for WordPress Settings"
|
41 |
msgstr ""
|
42 |
|
43 |
-
#: typekit-admin.php:
|
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:
|
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:
|
52 |
msgid "Register with Typekit"
|
53 |
msgstr ""
|
54 |
|
55 |
-
#: typekit-admin.php:
|
56 |
msgid "Go to <a href=\"%s\" target=\"blank\">typekit.com</a> and register for an account"
|
57 |
msgstr ""
|
58 |
|
59 |
-
#: typekit-admin.php:
|
60 |
msgid "Choose a few fonts to add to your account and Publish them"
|
61 |
msgstr ""
|
62 |
|
63 |
-
#: typekit-admin.php:
|
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:
|
68 |
msgid "Plugin Configuration"
|
69 |
msgstr ""
|
70 |
|
71 |
-
#: typekit-admin.php:
|
72 |
msgid "Enter the whole 2 lines of your embed code into the box below."
|
73 |
msgstr ""
|
74 |
|
75 |
-
#: typekit-admin.php:
|
76 |
msgid "Typekit Embed Code:"
|
77 |
msgstr ""
|
78 |
|
79 |
-
#: typekit-admin.php:
|
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:
|
84 |
msgid "Custom CSS Rules:"
|
85 |
msgstr ""
|
86 |
|
87 |
-
#: typekit-admin.php:
|
88 |
msgid "Click here for help on CSS"
|
89 |
msgstr ""
|
90 |
|
91 |
-
#: typekit-admin.php:
|
92 |
msgid "Save Settings"
|
93 |
msgstr ""
|
94 |
|
95 |
-
#: typekit-admin.php:
|
96 |
msgid "Help"
|
97 |
msgstr ""
|
98 |
|
99 |
-
#: typekit-admin.php:
|
100 |
msgid "Fonts not showing?"
|
101 |
msgstr ""
|
102 |
|
103 |
-
#: typekit-admin.php:
|
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:
|
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:
|
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:
|
116 |
msgid "CSS"
|
117 |
msgstr ""
|
118 |
|
119 |
-
#: typekit-admin.php:
|
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:
|
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:
|
128 |
msgid "Headings"
|
129 |
msgstr ""
|
130 |
|
131 |
-
#: typekit-admin.php:
|
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:
|
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:
|
140 |
msgid "Sidebar Headings"
|
141 |
msgstr ""
|
142 |
|
143 |
-
#: typekit-admin.php:
|
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:
|
148 |
msgid "Font Weights"
|
149 |
msgstr ""
|
150 |
|
151 |
-
#: typekit-admin.php:
|
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:
|
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:
|
160 |
msgid "See <a href=\"%s\">this help article</a> for more details."
|
161 |
msgstr ""
|
162 |
|
163 |
-
#: typekit-admin.php:
|
164 |
msgid "Advanced targetting of fonts with CSS selectors"
|
165 |
msgstr ""
|
166 |
|
167 |
-
#: typekit-admin.php:
|
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:
|
172 |
msgid "For example, if your theme has this CSS rule:"
|
173 |
msgstr ""
|
174 |
|
175 |
-
#: typekit-admin.php:
|
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:
|
180 |
msgid "Where to go to get help"
|
181 |
msgstr ""
|
182 |
|
183 |
-
#: typekit-admin.php:
|
184 |
msgid "<a href=\"%s\" target=\"_blank\">Typekit Support</a>"
|
185 |
msgstr ""
|
186 |
|
187 |
-
#: typekit-admin.php:
|
188 |
msgid "<a href=\"%s\" target=\"_blank\">Sitepoint CSS Forums</a>"
|
189 |
msgstr ""
|
190 |
|
191 |
-
#: typekit-admin.php:
|
192 |
msgid "<a href=\"%s\" target=\"_blank\">W3Schools CSS Help</a>"
|
193 |
msgstr ""
|
194 |
#. Plugin Name of the plugin/theme
|
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.3\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/typekit-fonts-for-wordpress\n"
|
7 |
+
"POT-Creation-Date: 2016-11-22 03:34:54+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
13 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
14 |
|
15 |
+
#: typekit-admin.php:30
|
16 |
msgid "Typekit Fonts"
|
17 |
msgstr ""
|
18 |
|
19 |
+
#: typekit-admin.php:42
|
20 |
+
msgid "Settings"
|
21 |
+
msgstr ""
|
22 |
+
|
23 |
+
#: typekit-admin.php:74
|
24 |
msgid " Please <a href=\"%s\">click here for instructions</a> on how to obtain your Typekit embed code."
|
25 |
msgstr ""
|
26 |
|
27 |
+
#: typekit-admin.php:77
|
28 |
msgid "Invalid Typekit embed code. %s"
|
29 |
msgstr ""
|
30 |
|
31 |
+
#: typekit-admin.php:80
|
32 |
msgid "You must enter your Typekit embed code. %s"
|
33 |
msgstr ""
|
34 |
|
35 |
+
#: typekit-admin.php:93
|
36 |
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."
|
37 |
msgstr ""
|
38 |
|
39 |
+
#: typekit-admin.php:104
|
40 |
msgid "Settings saved."
|
41 |
msgstr ""
|
42 |
|
43 |
+
#: typekit-admin.php:110
|
44 |
msgid "Typekit Fonts for WordPress Settings"
|
45 |
msgstr ""
|
46 |
|
47 |
+
#: typekit-admin.php:111
|
48 |
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."
|
49 |
msgstr ""
|
50 |
|
51 |
+
#: typekit-admin.php:112
|
52 |
msgid "To use this plugin you need to sign up with Typekit, and then configure the following options."
|
53 |
msgstr ""
|
54 |
|
55 |
+
#: typekit-admin.php:113
|
56 |
msgid "Register with Typekit"
|
57 |
msgstr ""
|
58 |
|
59 |
+
#: typekit-admin.php:115
|
60 |
msgid "Go to <a href=\"%s\" target=\"blank\">typekit.com</a> and register for an account"
|
61 |
msgstr ""
|
62 |
|
63 |
+
#: typekit-admin.php:116
|
64 |
msgid "Choose a few fonts to add to your account and Publish them"
|
65 |
msgstr ""
|
66 |
|
67 |
+
#: typekit-admin.php:117
|
68 |
msgid "Go to the Kit Editor and get your Embed Code (link at the top right of the screen)"
|
69 |
msgstr ""
|
70 |
|
71 |
+
#: typekit-admin.php:119
|
72 |
msgid "Plugin Configuration"
|
73 |
msgstr ""
|
74 |
|
75 |
+
#: typekit-admin.php:121
|
76 |
msgid "Enter the whole 2 lines of your embed code into the box below."
|
77 |
msgstr ""
|
78 |
|
79 |
+
#: typekit-admin.php:122
|
80 |
msgid "Typekit Embed Code:"
|
81 |
msgstr ""
|
82 |
|
83 |
+
#: typekit-admin.php:124
|
84 |
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."
|
85 |
msgstr ""
|
86 |
|
87 |
+
#: typekit-admin.php:125
|
88 |
msgid "Custom CSS Rules:"
|
89 |
msgstr ""
|
90 |
|
91 |
+
#: typekit-admin.php:126
|
92 |
msgid "Click here for help on CSS"
|
93 |
msgstr ""
|
94 |
|
95 |
+
#: typekit-admin.php:131
|
96 |
msgid "Save Settings"
|
97 |
msgstr ""
|
98 |
|
99 |
+
#: typekit-admin.php:133
|
100 |
msgid "Help"
|
101 |
msgstr ""
|
102 |
|
103 |
+
#: typekit-admin.php:134
|
104 |
msgid "Fonts not showing?"
|
105 |
msgstr ""
|
106 |
|
107 |
+
#: typekit-admin.php:136
|
108 |
msgid "Have you created your Typekit account, added fonts to it and <strong>pressed Publish</strong>? Fonts aren't available until they are published."
|
109 |
msgstr ""
|
110 |
|
111 |
+
#: typekit-admin.php:137
|
112 |
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."
|
113 |
msgstr ""
|
114 |
|
115 |
+
#: typekit-admin.php:138
|
116 |
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."
|
117 |
msgstr ""
|
118 |
|
119 |
+
#: typekit-admin.php:140
|
120 |
msgid "CSS"
|
121 |
msgstr ""
|
122 |
|
123 |
+
#: typekit-admin.php:141
|
124 |
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."
|
125 |
msgstr ""
|
126 |
|
127 |
+
#: typekit-admin.php:142
|
128 |
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."
|
129 |
msgstr ""
|
130 |
|
131 |
+
#: typekit-admin.php:143
|
132 |
msgid "Headings"
|
133 |
msgstr ""
|
134 |
|
135 |
+
#: typekit-admin.php:145
|
136 |
msgid "If you want your Typekit fonts to be used for H2 headings, add a rule like this to your CSS Rules field:"
|
137 |
msgstr ""
|
138 |
|
139 |
+
#: typekit-admin.php:147
|
140 |
msgid "(and you can add similar rules if you want to target other headings such as H3)"
|
141 |
msgstr ""
|
142 |
|
143 |
+
#: typekit-admin.php:149
|
144 |
msgid "Sidebar Headings"
|
145 |
msgstr ""
|
146 |
|
147 |
+
#: typekit-admin.php:151
|
148 |
msgid "If you want your Typekit fonts to be used for sidebar H2 headings, add a rule like this to your CSS Rules field:"
|
149 |
msgstr ""
|
150 |
|
151 |
+
#: typekit-admin.php:154
|
152 |
msgid "Font Weights"
|
153 |
msgstr ""
|
154 |
|
155 |
+
#: typekit-admin.php:155
|
156 |
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."
|
157 |
msgstr ""
|
158 |
|
159 |
+
#: typekit-admin.php:156
|
160 |
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>"
|
161 |
msgstr ""
|
162 |
|
163 |
+
#: typekit-admin.php:157
|
164 |
msgid "See <a href=\"%s\">this help article</a> for more details."
|
165 |
msgstr ""
|
166 |
|
167 |
+
#: typekit-admin.php:158
|
168 |
msgid "Advanced targetting of fonts with CSS selectors"
|
169 |
msgstr ""
|
170 |
|
171 |
+
#: typekit-admin.php:160
|
172 |
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."
|
173 |
msgstr ""
|
174 |
|
175 |
+
#: typekit-admin.php:161
|
176 |
msgid "For example, if your theme has this CSS rule:"
|
177 |
msgstr ""
|
178 |
|
179 |
+
#: typekit-admin.php:163
|
180 |
msgid "you could create this rule to apply your new font to the body of your website:"
|
181 |
msgstr ""
|
182 |
|
183 |
+
#: typekit-admin.php:166
|
184 |
msgid "Where to go to get help"
|
185 |
msgstr ""
|
186 |
|
187 |
+
#: typekit-admin.php:168
|
188 |
msgid "<a href=\"%s\" target=\"_blank\">Typekit Support</a>"
|
189 |
msgstr ""
|
190 |
|
191 |
+
#: typekit-admin.php:169
|
192 |
msgid "<a href=\"%s\" target=\"_blank\">Sitepoint CSS Forums</a>"
|
193 |
msgstr ""
|
194 |
|
195 |
+
#: typekit-admin.php:170
|
196 |
msgid "<a href=\"%s\" target=\"_blank\">W3Schools CSS Help</a>"
|
197 |
msgstr ""
|
198 |
#. Plugin Name of the plugin/theme
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ 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.
|
7 |
-
Stable tag: 1.8.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -38,7 +38,7 @@ Installation of this plugin is simple:
|
|
38 |
|
39 |
1. Download the plugin files and copy to your Plugins directory.
|
40 |
1. Activate the plugin through the 'Plugins' menu in WordPress.
|
41 |
-
1. Go to the WordPress Dashboard, and use Settings, Typekit Fonts to enter the whole 2 lines of your Typekit embed code.
|
42 |
1. If you want to setup some CSS selectors like the examples shown in the Advanced link, enter your CSS rules in the plugin settings as well.
|
43 |
|
44 |
== Frequently Asked Questions ==
|
@@ -61,6 +61,10 @@ Please see [this page](http://help.typekit.com/customer/portal/articles/6786-bro
|
|
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.
|
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.7
|
7 |
+
Stable tag: 1.8.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
38 |
|
39 |
1. Download the plugin files and copy to your Plugins directory.
|
40 |
1. Activate the plugin through the 'Plugins' menu in WordPress.
|
41 |
+
1. Go to the WordPress Dashboard, and use "Settings", "Typekit Fonts" to enter the whole 2 lines of your Typekit embed code.
|
42 |
1. If you want to setup some CSS selectors like the examples shown in the Advanced link, enter your CSS rules in the plugin settings as well.
|
43 |
|
44 |
== Frequently Asked Questions ==
|
61 |
|
62 |
== Changelog ==
|
63 |
|
64 |
+
= 1.8.3 =
|
65 |
+
* WordPress 4.7 compatibility.
|
66 |
+
* Add "Settings" link on plugins screen.
|
67 |
+
|
68 |
= 1.8.2 =
|
69 |
* WordPress 4.6 compatibility.
|
70 |
* Improved handling of the HTTP response when verifying a Typekit Kit URL.
|
typekit-admin.php
CHANGED
@@ -19,6 +19,8 @@ class OM4_Typekit_Admin {
|
|
19 |
$this->typekitInstance = $instance;
|
20 |
|
21 |
add_action('admin_menu', array($this, 'AdminMenu'));
|
|
|
|
|
22 |
}
|
23 |
|
24 |
/**
|
@@ -27,6 +29,21 @@ class OM4_Typekit_Admin {
|
|
27 |
public 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 |
/**
|
32 |
* Display the admin settings page
|
19 |
$this->typekitInstance = $instance;
|
20 |
|
21 |
add_action('admin_menu', array($this, 'AdminMenu'));
|
22 |
+
|
23 |
+
add_filter( 'plugin_action_links_' . str_replace( 'typekit-admin.php', 'typekit.php', plugin_basename( __FILE__ ) ), array( $this, 'ActionLinks' ) );
|
24 |
}
|
25 |
|
26 |
/**
|
29 |
public function AdminMenu() {
|
30 |
add_options_page(__('Typekit Fonts', 'typekit-fonts-for-wordpress'), __('Typekit Fonts', 'typekit-fonts-for-wordpress'), 'manage_options', basename(__FILE__), array($this, 'AdminPage'));
|
31 |
}
|
32 |
+
|
33 |
+
/**
|
34 |
+
* Add "Settings" link to the plugin's action links on the plugins screen.
|
35 |
+
*
|
36 |
+
* @param $links
|
37 |
+
*
|
38 |
+
* @return array
|
39 |
+
*/
|
40 |
+
public function ActionLinks( $links ) {
|
41 |
+
$plugin_links = array(
|
42 |
+
'<a href="' . admin_url( 'options-general.php?page=typekit-admin.php' ) . '">' . __( 'Settings', 'typekit-fonts-for-wordpress' ) . '</a>'
|
43 |
+
);
|
44 |
+
|
45 |
+
return array_merge( $plugin_links, $links );
|
46 |
+
}
|
47 |
|
48 |
/**
|
49 |
* Display the admin settings page
|
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
|
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.3
|
7 |
Author: OM4
|
8 |
Author URI: https://om4.com.au/plugins/
|
9 |
Text Domain: typekit-fonts-for-wordpress
|