Version Description
- Directly assign font to element using the class identical to font name.
Download this release
Release Info
Developer | dnesscarkey |
Plugin | Use Any Font |
Version | 4.6 |
Comparing to | |
See all releases |
Code changes from version 4.5.1 to 4.6
- plugin_interface.php +5 -2
- readme.txt +5 -2
- use-any-font.php +1 -1
plugin_interface.php
CHANGED
@@ -84,8 +84,8 @@ function uaf_activate(){
|
|
84 |
|
85 |
function uaf_update_check() { // MUST CHANGE WITH EVERY VERSION
|
86 |
$uaf_version_check = get_option('uaf_current_version');
|
87 |
-
if ($uaf_version_check != '4.
|
88 |
-
update_option('uaf_current_version', '4.
|
89 |
if ($uaf_version_check < 4.0):
|
90 |
uaf_create_folder();
|
91 |
uaf_move_file_to_newPath();
|
@@ -178,6 +178,9 @@ function uaf_write_css(){
|
|
178 |
src: url('<?php echo $uaf_upload_url.$fontData['font_path'] ?>.eot');
|
179 |
src: local('<?php echo $fontData['font_name'] ?>'), url('<?php echo $uaf_upload_url.$fontData['font_path'] ?>.eot') format('embedded-opentype'), url('<?php echo $uaf_upload_url.$fontData['font_path'] ?>.woff') format('woff');
|
180 |
}
|
|
|
|
|
|
|
181 |
<?php
|
182 |
endforeach;
|
183 |
endif;
|
84 |
|
85 |
function uaf_update_check() { // MUST CHANGE WITH EVERY VERSION
|
86 |
$uaf_version_check = get_option('uaf_current_version');
|
87 |
+
if ($uaf_version_check != '4.6'):
|
88 |
+
update_option('uaf_current_version', '4.6');
|
89 |
if ($uaf_version_check < 4.0):
|
90 |
uaf_create_folder();
|
91 |
uaf_move_file_to_newPath();
|
178 |
src: url('<?php echo $uaf_upload_url.$fontData['font_path'] ?>.eot');
|
179 |
src: local('<?php echo $fontData['font_name'] ?>'), url('<?php echo $uaf_upload_url.$fontData['font_path'] ?>.eot') format('embedded-opentype'), url('<?php echo $uaf_upload_url.$fontData['font_path'] ?>.woff') format('woff');
|
180 |
}
|
181 |
+
|
182 |
+
.<?php echo $fontData['font_name'] ?>{font-family: '<?php echo $fontData['font_name'] ?>' !important;}
|
183 |
+
|
184 |
<?php
|
185 |
endforeach;
|
186 |
endif;
|
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: 4.
|
6 |
-
Stable tag: 4.
|
7 |
|
8 |
Embed any font in your website
|
9 |
|
@@ -110,6 +110,9 @@ You can check our <a href="http://dineshkarki.com.np/forums/forum/use-any-fonts"
|
|
110 |
|
111 |
== Changelog ==
|
112 |
|
|
|
|
|
|
|
113 |
= 4.5.1 =
|
114 |
* Fixed form validation js error.
|
115 |
|
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: 4.6.1
|
6 |
+
Stable tag: 4.6
|
7 |
|
8 |
Embed any font in your website
|
9 |
|
110 |
|
111 |
== Changelog ==
|
112 |
|
113 |
+
= 4.6 =
|
114 |
+
* Directly assign font to element using the class identical to font name.
|
115 |
+
|
116 |
= 4.5.1 =
|
117 |
* Fixed form validation js error.
|
118 |
|
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.6
|
8 |
Author URI: http://www.dineshkarki.com.np
|
9 |
*/
|
10 |
|