Typekit Fonts for WordPress - Version 1.2

Version Description

  • Fix invalid HTML on settings page.
  • Properly save/display settings.
  • WordPress 3.2 compatibility.
  • Translation/localization improvements.
  • Fix localization deprecated notice (thanks to aradams for reporting).
  • Store translation files in a /languages sub directory.
Download this release

Release Info

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

Code changes from version 1.1 to 1.2

languages/_readme.txt ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ If a translation file for your language does not come bundled with this plugin, then check out this URL:
2
+
3
+ http://codex.wordpress.org/Translating_WordPress
4
+
5
+ It will walk you through how to translate the plugin using the provided template file, "om4-typekit.pot".
6
+
7
+ Once you're done and have the plugin translated, please send us your translation file so that we can
8
+ bundle it with future version of this plugin: http://om4.com.au/plugin-support-request/
9
+
10
+ I will give you credit and it will help others who speak your language.
11
+
12
+ Thanks!
typekit-fonts-for-wordpress.pot → languages/om4-typekit.pot RENAMED
File without changes
readme.txt CHANGED
@@ -2,9 +2,9 @@
2
  Contributors: jamescollins, glenn-om4
3
  Donate link: http://om4.com.au/wordpress-plugins/#donate
4
  Tags: typekit, fonts, font, design, wp, multisite, wpmu
5
- Requires at least: 2.8
6
- Tested up to: 3.1
7
- Stable tag: 1.1
8
 
9
  Use a range of hundreds of high quality fonts on your WordPress website by integrating the Typekit font service into your WordPress blog.
10
 
@@ -24,6 +24,8 @@ This plugin is designed to function securely with both WordPress and WordPress M
24
 
25
  If the website is using HTTPS/SSL, the SSL version of the Typekit embed code is automatically used instead.
26
 
 
 
27
  == Installation ==
28
 
29
  Installation of this plugin is simple:
@@ -53,6 +55,14 @@ Please see [this page](http://getsatisfaction.com/typekit/topics/typekit_browser
53
 
54
  == Changelog ==
55
 
 
 
 
 
 
 
 
 
56
  = 1.1 =
57
  * WordPress 3.1 compatibility.
58
 
@@ -73,5 +83,8 @@ Please see [this page](http://getsatisfaction.com/typekit/topics/typekit_browser
73
 
74
  == Upgrade Notice ==
75
 
 
 
 
76
  = 1.1 =
77
  * WordPress 3.1 compatibility.
2
  Contributors: jamescollins, glenn-om4
3
  Donate link: http://om4.com.au/wordpress-plugins/#donate
4
  Tags: typekit, fonts, font, design, wp, multisite, wpmu
5
+ Requires at least: 3.1
6
+ Tested up to: 3.2
7
+ Stable tag: 1.2
8
 
9
  Use a range of hundreds of high quality fonts on your WordPress website by integrating the Typekit font service into your WordPress blog.
10
 
24
 
25
  If the website is using HTTPS/SSL, the SSL version of the Typekit embed code is automatically used instead.
26
 
27
+ See the [Typekit Fonts for WordPress Plugin](http://om4.com.au/wordpress-plugins/typekit-fonts-for-wordpress-plugin/) home page for further information.
28
+
29
  == Installation ==
30
 
31
  Installation of this plugin is simple:
55
 
56
  == Changelog ==
57
 
58
+ = 1.2 =
59
+ * Fix invalid HTML on settings page.
60
+ * Properly save/display settings.
61
+ * WordPress 3.2 compatibility.
62
+ * Translation/localization improvements.
63
+ * Fix localization deprecated notice (thanks to aradams for reporting).
64
+ * Store translation files in a /languages sub directory.
65
+
66
  = 1.1 =
67
  * WordPress 3.1 compatibility.
68
 
83
 
84
  == Upgrade Notice ==
85
 
86
+ = 1.2 =
87
+ * WordPress 3.2 compatibility, translation/localization improvements, invalid HTML fixes.
88
+
89
  = 1.1 =
90
  * WordPress 3.1 compatibility.
typekit-admin.php CHANGED
@@ -101,12 +101,12 @@ class OM4_Typekit_Admin {
101
  <h3><?php _e('Plugin Configuration', 'om4-typekit'); ?></h3>
102
  <ol start="4">
103
  <li><?php _e('Enter the whole 2 lines of your embed code into the box below.', 'om4-typekit'); ?><br />
104
- <p class="option"><label for="embedcode"><?php _e('Typekit Embed Code:', 'om4-typekit'); ?></label> <textarea name="embedcode" rows="3" cols="80" /><?php echo $this->typekitInstance->GetEmbedCode(); ?></textarea><br />
105
  <?php _e('Note: If you website loads over SSL/HTTPS, then the SSL Typekit embed code is used automatically (regardless of which scheme is pasted above).', 'om4-typekit'); ?></p>
106
 
107
  </li>
108
  <li><?php _e('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.', 'om4-typekit'); ?>
109
- <p class="option"><label for="css"><?php _e('Custom CSS Rules:', 'om4-typekit'); ?></label> <textarea name="css" rows="10" cols="80" /><?php echo $this->typekitInstance->GetCSSRules(); ?></textarea><br />
110
  <a href="#help-css"><?php _e('Click here for help on CSS', 'om4-typekit'); ?></a>
111
  </p>
112
  </li>
101
  <h3><?php _e('Plugin Configuration', 'om4-typekit'); ?></h3>
102
  <ol start="4">
103
  <li><?php _e('Enter the whole 2 lines of your embed code into the box below.', 'om4-typekit'); ?><br />
104
+ <p class="option"><label for="embedcode"><?php _e('Typekit Embed Code:', 'om4-typekit'); ?></label> <textarea name="embedcode" rows="3" cols="80"><?php echo esc_textarea( $this->typekitInstance->GetEmbedCode() ); ?></textarea><br />
105
  <?php _e('Note: If you website loads over SSL/HTTPS, then the SSL Typekit embed code is used automatically (regardless of which scheme is pasted above).', 'om4-typekit'); ?></p>
106
 
107
  </li>
108
  <li><?php _e('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.', 'om4-typekit'); ?>
109
+ <p class="option"><label for="css"><?php _e('Custom CSS Rules:', 'om4-typekit'); ?></label> <textarea name="css" rows="10" cols="80"><?php echo esc_textarea( $this->typekitInstance->GetCSSRules() ); ?></textarea><br />
110
  <a href="#help-css"><?php _e('Click here for help on CSS', 'om4-typekit'); ?></a>
111
  </p>
112
  </li>
typekit.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Typekit Fonts for WordPress
4
  Plugin URI: http://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.1
7
  Author: OM4
8
  Author URI: http://om4.com.au/
9
  Text Domain: om4-typekit
@@ -100,11 +100,15 @@ class OM4_Typekit {
100
  }
101
 
102
  /**
103
- * Intialise I18n
 
 
 
 
104
  *
105
  */
106
  function LoadDomain() {
107
- load_plugin_textdomain('om4-typekit', WP_PLUGIN_DIR.'/'.dirname(plugin_basename(__FILE__)));
108
  }
109
 
110
  /**
3
  Plugin Name: Typekit Fonts for WordPress
4
  Plugin URI: http://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.2
7
  Author: OM4
8
  Author URI: http://om4.com.au/
9
  Text Domain: om4-typekit
100
  }
101
 
102
  /**
103
+ * Load up the localization file if we're using WordPress in a different language.
104
+ *
105
+ * Place it in this plugin's "languages" folder and name it "om4-typekit-[value in wp-config].mo".
106
+ *
107
+ * See languages/_readme.txt for more information.
108
  *
109
  */
110
  function LoadDomain() {
111
+ load_plugin_textdomain( 'om4-typekit', false, "{$this->dirname}/languages" );
112
  }
113
 
114
  /**