Version Description
- Using wp_remote_get inplace of wp_remove_fopen for API Key
Download this release
Release Info
Developer | dnesscarkey |
Plugin | Use Any Font |
Version | 4.2.1 |
Comparing to | |
See all releases |
Code changes from version 4.1.1 to 4.2.1
- css/uaf.css +0 -0
- images/wp_masonry_layout.gif +0 -0
- includes/uaf_editor_setup.php +1 -20
- includes/uaf_footer.php +18 -1
- includes/uaf_header.php +7 -7
- plugin_interface.php +2 -2
- readme.txt +9 -2
- use-any-font.php +1 -1
css/uaf.css
ADDED
File without changes
|
images/wp_masonry_layout.gif
ADDED
Binary file
|
includes/uaf_editor_setup.php
CHANGED
@@ -1,6 +1,5 @@
|
|
1 |
<?php
|
2 |
function uaf_mce_before_init( $init_array ) {
|
3 |
-
|
4 |
$theme_advanced_fonts = '';
|
5 |
$fontsRawData = get_option('uaf_font_data');
|
6 |
$fontsData = json_decode($fontsRawData, true);
|
@@ -10,25 +9,7 @@ function uaf_mce_before_init( $init_array ) {
|
|
10 |
endforeach;
|
11 |
endif;
|
12 |
|
13 |
-
$
|
14 |
-
$theme_advanced_fonts .= 'Arial=Arial, Helvetica, sans-serif;';
|
15 |
-
$theme_advanced_fonts .= 'Arial Black=Arial Black, Avant Garde;';
|
16 |
-
$theme_advanced_fonts .= 'Book Antiqua=Book Antiqua, Palatino;';
|
17 |
-
$theme_advanced_fonts .= 'Comic Sans MS=Comic Sans MS, sans-serif;';
|
18 |
-
$theme_advanced_fonts .= 'Courier New=Courier New, Courier;';
|
19 |
-
$theme_advanced_fonts .= 'Georgia=Georgia, Palatino;';
|
20 |
-
$theme_advanced_fonts .= 'Helvetica=Helvetica;';
|
21 |
-
$theme_advanced_fonts .= 'Impact=Impact, Chicago;';
|
22 |
-
$theme_advanced_fonts .= 'Symbol=Symbol;';
|
23 |
-
$theme_advanced_fonts .= 'Tahoma=Tahoma, Arial, Helvetica, sans-serif;';
|
24 |
-
$theme_advanced_fonts .= 'Terminal=Terminal, Monaco;';
|
25 |
-
$theme_advanced_fonts .= 'Times New Roman=Times New Roman, Times;';
|
26 |
-
$theme_advanced_fonts .= 'Trebuchet MS=Trebuchet MS, Geneva;';
|
27 |
-
$theme_advanced_fonts .= 'Verdana=Verdana, Geneva;';
|
28 |
-
$theme_advanced_fonts .= 'Webdings=Webdings;';
|
29 |
-
$theme_advanced_fonts .= 'Wingdings=Wingdings, Zapf Dingbats;';
|
30 |
-
|
31 |
-
$init_array['theme_advanced_fonts'] = $theme_advanced_fonts;
|
32 |
return $init_array;
|
33 |
}
|
34 |
|
1 |
<?php
|
2 |
function uaf_mce_before_init( $init_array ) {
|
|
|
3 |
$theme_advanced_fonts = '';
|
4 |
$fontsRawData = get_option('uaf_font_data');
|
5 |
$fontsData = json_decode($fontsRawData, true);
|
9 |
endforeach;
|
10 |
endif;
|
11 |
|
12 |
+
$init_array['font_formats'] = $theme_advanced_fonts.'Andale Mono=Andale Mono, Times;Arial=Arial, Helvetica, sans-serif;Arial Black=Arial Black, Avant Garde;Book Antiqua=Book Antiqua, Palatino;Comic Sans MS=Comic Sans MS, sans-serif;Courier New=Courier New, Courier;Georgia=Georgia, Palatino;Helvetica=Helvetica;Impact=Impact, Chicago;Symbol=Symbol;Tahoma=Tahoma, Arial, Helvetica, sans-serif;Terminal=Terminal, Monaco;Times New Roman=Times New Roman, Times;Trebuchet MS=Trebuchet MS, Geneva;Verdana=Verdana, Geneva;Webdings=Webdings;Wingdings=Wingdings';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
return $init_array;
|
14 |
}
|
15 |
|
includes/uaf_footer.php
CHANGED
@@ -167,6 +167,22 @@ $uaf_disbale_editor_font_list_value = get_option('uaf_disbale_editor_font_list')
|
|
167 |
</tbody>
|
168 |
</table>
|
169 |
<br/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
170 |
<table class="wp-list-table widefat fixed bookmarks">
|
171 |
<thead>
|
172 |
<tr>
|
@@ -177,7 +193,8 @@ $uaf_disbale_editor_font_list_value = get_option('uaf_disbale_editor_font_list')
|
|
177 |
<tr>
|
178 |
<td>
|
179 |
<ul class="uaf_list">
|
180 |
-
<li><a href="http://
|
|
|
181 |
<li><a href="http://wordpress.org/extend/plugins/jquery-validation-for-contact-form-7/" target="_blank">Jquery Validation For Contact Form 7</a></li>
|
182 |
<li><a href="http://wordpress.org/extend/plugins/add-tags-and-category-to-page/" target="_blank">Add Tags And Category To Page</a></li>
|
183 |
<li><a href="http://wordpress.org/extend/plugins/block-specific-plugin-updates/" target="_blank">Block Specific Plugin Updates</a></li>
|
167 |
</tbody>
|
168 |
</table>
|
169 |
<br/>
|
170 |
+
<table class="wp-list-table widefat fixed bookmarks">
|
171 |
+
<thead>
|
172 |
+
<tr>
|
173 |
+
<th>Recently Added Plugin</th>
|
174 |
+
</tr>
|
175 |
+
</thead>
|
176 |
+
<tbody>
|
177 |
+
<tr>
|
178 |
+
<td style="padding:4px;">
|
179 |
+
<a href="http://goo.gl/3XDDzi" target="_blank"><img width="240" alt="Create Masonry Brick Shortcode" src="<?php echo plugins_url("use-any-font/images/wp_masonry_layout.gif"); ?>" class="aligncenter size-full wp-image-426"></a>
|
180 |
+
</td>
|
181 |
+
</tr>
|
182 |
+
</tbody>
|
183 |
+
</table>
|
184 |
+
<br/>
|
185 |
+
|
186 |
<table class="wp-list-table widefat fixed bookmarks">
|
187 |
<thead>
|
188 |
<tr>
|
193 |
<tr>
|
194 |
<td>
|
195 |
<ul class="uaf_list">
|
196 |
+
<li><a href="http://goo.gl/3XDDzi" target="_blank">WP Masonry Layout</a></li>
|
197 |
+
<li><a href="http://wordpress.org/extend/plugins/any-mobile-theme-switcher/" target="_blank">Any Mobile Theme Switcher</a></li>
|
198 |
<li><a href="http://wordpress.org/extend/plugins/jquery-validation-for-contact-form-7/" target="_blank">Jquery Validation For Contact Form 7</a></li>
|
199 |
<li><a href="http://wordpress.org/extend/plugins/add-tags-and-category-to-page/" target="_blank">Add Tags And Category To Page</a></li>
|
200 |
<li><a href="http://wordpress.org/extend/plugins/block-specific-plugin-updates/" target="_blank">Block Specific Plugin Updates</a></li>
|
includes/uaf_header.php
CHANGED
@@ -1,14 +1,16 @@
|
|
1 |
<?php
|
2 |
if (isset($_POST['ucf_api_key_submit'])){
|
3 |
-
$api_key_return =
|
4 |
-
|
5 |
-
if (
|
|
|
|
|
|
|
|
|
6 |
if ($api_key_return->status == 'success'){
|
7 |
update_option('uaf_api_key', $_POST['uaf_api_key']);
|
8 |
}
|
9 |
$api_message = $api_key_return->msg;
|
10 |
-
} else {
|
11 |
-
$api_message = 'Sorry there was an error. Please try again.';
|
12 |
}
|
13 |
}
|
14 |
|
@@ -17,8 +19,6 @@ if (isset($_POST['ucf_api_key_remove'])){
|
|
17 |
$api_message = 'Your Activation key has been removed';
|
18 |
}
|
19 |
|
20 |
-
|
21 |
-
|
22 |
$uaf_api_key = get_option('uaf_api_key');
|
23 |
?>
|
24 |
<?php if (!empty($api_message)):?>
|
1 |
<?php
|
2 |
if (isset($_POST['ucf_api_key_submit'])){
|
3 |
+
$api_key_return = wp_remote_get('http://dnesscarkey.com/font-convertor/api/validate_key.php?license_key='.$_POST['uaf_api_key']);
|
4 |
+
|
5 |
+
if ( is_wp_error( $api_key_return ) ) {
|
6 |
+
$error_message = $api_key_return->get_error_message();
|
7 |
+
$api_message = "Something went wrong: $error_message";
|
8 |
+
} else {
|
9 |
+
$api_key_return = json_decode($api_key_return['body']);
|
10 |
if ($api_key_return->status == 'success'){
|
11 |
update_option('uaf_api_key', $_POST['uaf_api_key']);
|
12 |
}
|
13 |
$api_message = $api_key_return->msg;
|
|
|
|
|
14 |
}
|
15 |
}
|
16 |
|
19 |
$api_message = 'Your Activation key has been removed';
|
20 |
}
|
21 |
|
|
|
|
|
22 |
$uaf_api_key = get_option('uaf_api_key');
|
23 |
?>
|
24 |
<?php if (!empty($api_message)):?>
|
plugin_interface.php
CHANGED
@@ -55,8 +55,8 @@ function uaf_activate(){
|
|
55 |
|
56 |
function uaf_update_check() { // MUST CHANGE WITH EVERY VERSION
|
57 |
$uaf_version_check = get_option('uaf_current_version');
|
58 |
-
if ($uaf_version_check != 4.1):
|
59 |
-
update_option('uaf_current_version', '4.1');
|
60 |
if ($uaf_version_check < 4.0):
|
61 |
uaf_create_folder();
|
62 |
uaf_move_file_to_newPath();
|
55 |
|
56 |
function uaf_update_check() { // MUST CHANGE WITH EVERY VERSION
|
57 |
$uaf_version_check = get_option('uaf_current_version');
|
58 |
+
if ($uaf_version_check != '4.2.1'):
|
59 |
+
update_option('uaf_current_version', '4.2.1');
|
60 |
if ($uaf_version_check < 4.0):
|
61 |
uaf_create_folder();
|
62 |
uaf_move_file_to_newPath();
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: dnesscarkey
|
3 |
Tags: use any font, any font, embed any font, font embed, font uploader, css3 font embed, @font-face embed, font conversion, webfont, ttf, opentype, custom fonts
|
4 |
Requires at least: 3.0
|
5 |
-
Tested up to: 3.
|
6 |
-
Stable tag: 4.
|
7 |
|
8 |
Embed any font in your website
|
9 |
|
@@ -93,6 +93,13 @@ You can check our <a href="http://dineshkarki.com.np/forums/forum/use-any-fonts"
|
|
93 |
|
94 |
== Changelog ==
|
95 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
96 |
= 4.1.1 =
|
97 |
* Minor update
|
98 |
* Added font formats (dfont, suit)
|
2 |
Contributors: dnesscarkey
|
3 |
Tags: use any font, any font, embed any font, font embed, font uploader, css3 font embed, @font-face embed, font conversion, webfont, ttf, opentype, custom fonts
|
4 |
Requires at least: 3.0
|
5 |
+
Tested up to: 3.9.1
|
6 |
+
Stable tag: 4.2.1
|
7 |
|
8 |
Embed any font in your website
|
9 |
|
93 |
|
94 |
== Changelog ==
|
95 |
|
96 |
+
= 4.2.1 =
|
97 |
+
* Using wp_remote_get inplace of wp_remove_fopen for API Key
|
98 |
+
|
99 |
+
= 4.2 =
|
100 |
+
* Compatible with 3.9
|
101 |
+
* Fixed font list issue in editor for 3.9
|
102 |
+
|
103 |
= 4.1.1 =
|
104 |
* Minor update
|
105 |
* Added font formats (dfont, suit)
|
use-any-font.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Use Any Font
|
|
4 |
Plugin URI: http://dineshkarki.com.np/use-any-font
|
5 |
Description: Embed any font in your website
|
6 |
Author: Dinesh Karki
|
7 |
-
Version: 4.
|
8 |
Author URI: http://www.dineshkarki.com.np
|
9 |
*/
|
10 |
|
4 |
Plugin URI: http://dineshkarki.com.np/use-any-font
|
5 |
Description: Embed any font in your website
|
6 |
Author: Dinesh Karki
|
7 |
+
Version: 4.2.1
|
8 |
Author URI: http://www.dineshkarki.com.np
|
9 |
*/
|
10 |
|