Version Description
- Adds custom fonts to theme options panel for themes like Avada, Salient, Oshine, X Theme, KLEO. (540+ Themes in total)
Download this release
Release Info
Developer | dnesscarkey |
Plugin | ![]() |
Version | 4.7.3 |
Comparing to | |
See all releases |
Code changes from version 4.7.2 to 4.7.3
- includes/uaf_editor_setup.php +38 -1
- includes/uaf_footer.php +1 -1
- includes/uaf_header.php +1 -1
- plugin_interface.php +6 -3
- readme.txt +18 -10
- use-any-font.php +1 -1
includes/uaf_editor_setup.php
CHANGED
@@ -41,7 +41,6 @@ function uaf_send_fonts_divi_list($fonts){
|
|
41 |
}
|
42 |
|
43 |
// SITE ORIGIN BUILDER
|
44 |
-
|
45 |
add_filter('siteorigin_widgets_font_families', 'uaf_send_fonts_siteorigin_list',10,2);
|
46 |
function uaf_send_fonts_siteorigin_list($fonts){
|
47 |
$fontsRawData = get_option('uaf_font_data');
|
@@ -53,4 +52,42 @@ function uaf_send_fonts_siteorigin_list($fonts){
|
|
53 |
endforeach;
|
54 |
endif;
|
55 |
return array_merge($fonts_uaf,$fonts);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
}
|
41 |
}
|
42 |
|
43 |
// SITE ORIGIN BUILDER
|
|
|
44 |
add_filter('siteorigin_widgets_font_families', 'uaf_send_fonts_siteorigin_list',10,2);
|
45 |
function uaf_send_fonts_siteorigin_list($fonts){
|
46 |
$fontsRawData = get_option('uaf_font_data');
|
52 |
endforeach;
|
53 |
endif;
|
54 |
return array_merge($fonts_uaf,$fonts);
|
55 |
+
}
|
56 |
+
|
57 |
+
// REDUX Framework
|
58 |
+
if (class_exists( 'Redux' ) ) {
|
59 |
+
global $opt_name;
|
60 |
+
add_filter('redux/'.$opt_name.'/field/typography/custom_fonts', 'uaf_send_fonts_redux_list' );
|
61 |
+
}
|
62 |
+
|
63 |
+
function uaf_send_fonts_redux_list( $custom_fonts ) {
|
64 |
+
$fontsRawData = get_option('uaf_font_data');
|
65 |
+
$fontsData = json_decode($fontsRawData, true);
|
66 |
+
$fonts_uaf = array('Use Any Fonts' => array());
|
67 |
+
if (!empty($fontsData)):
|
68 |
+
foreach ($fontsData as $key=>$fontData):
|
69 |
+
$fonts_uaf['Use Any Fonts'][$fontData['font_name']] = $fontData['font_name'];
|
70 |
+
endforeach;
|
71 |
+
endif;
|
72 |
+
return $fonts_uaf;
|
73 |
+
}
|
74 |
+
|
75 |
+
|
76 |
+
// X Theme
|
77 |
+
add_filter('x_fonts_data', 'uaf_send_fonts_x_theme_list',10,2);
|
78 |
+
function uaf_send_fonts_x_theme_list($fonts){
|
79 |
+
$fontsRawData = get_option('uaf_font_data');
|
80 |
+
$fontsData = json_decode($fontsRawData, true);
|
81 |
+
$fonts_uaf = array();
|
82 |
+
if (!empty($fontsData)):
|
83 |
+
foreach ($fontsData as $key=>$fontData):
|
84 |
+
$fonts_uaf[$fontData['font_name']] = array(
|
85 |
+
'source' => 'Use Any Font',
|
86 |
+
'family' => $fontData['font_name'],
|
87 |
+
'stack' => '"'.$fontData['font_name'].'"',
|
88 |
+
'weights' => array( '400' )
|
89 |
+
);
|
90 |
+
endforeach;
|
91 |
+
endif;
|
92 |
+
return array_merge($fonts_uaf,$fonts);
|
93 |
}
|
includes/uaf_footer.php
CHANGED
@@ -104,7 +104,7 @@ $server_message = get_option('uaf_server_msg');
|
|
104 |
<tr>
|
105 |
<td>
|
106 |
<ol>
|
107 |
-
<li>Get API key from <a href="http://dnesscarkey.com/font-convertor/api/" target="_blank">here</a>. Offer your contribution (Free for 1 font,
|
108 |
<em><strong>Note:</strong> API key is needed to connect to our server for font conversion.</em>
|
109 |
</li>
|
110 |
|
104 |
<tr>
|
105 |
<td>
|
106 |
<ol>
|
107 |
+
<li>Get API key from <a href="http://dnesscarkey.com/font-convertor/api/" target="_blank">here</a>. Offer your contribution (Free for 1 font, $20 to $100) and get the API key. All API key comes with lifetime validity.<br/>
|
108 |
<em><strong>Note:</strong> API key is needed to connect to our server for font conversion.</em>
|
109 |
</li>
|
110 |
|
includes/uaf_header.php
CHANGED
@@ -66,7 +66,7 @@ if ($uaf_api_package == 'lite'){
|
|
66 |
<input name="uaf_api_key" type="text" style="width:350px; margin-left:50px;" />
|
67 |
<input type="submit" name="ucf_api_key_submit" class="button-primary" value="Verify" style="padding:2px;" />
|
68 |
<br/> <br/>
|
69 |
-
Please keep the API key to start using this plugin. Offer your contribution (Free to $100) and get the API key from <a href="http://dnesscarkey.com/font-convertor/api/" target="_blank">here</a>.<br/>
|
70 |
<?php else: ?>
|
71 |
<span class="active_key"><?php echo $uaf_api_key; ?> - Active</span> <input type="submit" name="ucf_api_key_remove" class="button-primary" value="Remove Key" style="padding:2px; margin-left:20px;" onclick="if(!confirm('<?php echo $delete_confirmation_msg; ?>')){return false;}" />
|
72 |
<?php endif;?>
|
66 |
<input name="uaf_api_key" type="text" style="width:350px; margin-left:50px;" />
|
67 |
<input type="submit" name="ucf_api_key_submit" class="button-primary" value="Verify" style="padding:2px;" />
|
68 |
<br/> <br/>
|
69 |
+
Please keep the API key to start using this plugin. Offer your contribution (Free for 1 font, $20 to $100) and get the API key from <a href="http://dnesscarkey.com/font-convertor/api/" target="_blank">here</a>.<br/>
|
70 |
<?php else: ?>
|
71 |
<span class="active_key"><?php echo $uaf_api_key; ?> - Active</span> <input type="submit" name="ucf_api_key_remove" class="button-primary" value="Remove Key" style="padding:2px; margin-left:20px;" onclick="if(!confirm('<?php echo $delete_confirmation_msg; ?>')){return false;}" />
|
72 |
<?php endif;?>
|
plugin_interface.php
CHANGED
@@ -40,6 +40,7 @@ add_action("admin_print_scripts", 'adminjslibs');
|
|
40 |
add_action("admin_print_styles", 'adminCsslibs');
|
41 |
add_action('wp_enqueue_scripts', 'uaf_client_css');
|
42 |
add_action('plugins_loaded', 'uaf_update_check');
|
|
|
43 |
|
44 |
$uaf_disbale_editor_font_list_value = get_option('uaf_disbale_editor_font_list');
|
45 |
if ($uaf_disbale_editor_font_list_value != 1):
|
@@ -91,8 +92,8 @@ function uaf_activate(){
|
|
91 |
|
92 |
function uaf_update_check() { // MUST CHANGE WITH EVERY VERSION
|
93 |
$uaf_version_check = get_option('uaf_current_version');
|
94 |
-
if ($uaf_version_check != '4.7.
|
95 |
-
update_option('uaf_current_version', '4.7.
|
96 |
if ($uaf_version_check < 4.0):
|
97 |
uaf_create_folder();
|
98 |
uaf_move_file_to_newPath();
|
@@ -246,4 +247,6 @@ function uaf_write_css(){
|
|
246 |
update_option('uaf_css_updated_timestamp', time()); // Time entry for stylesheet version
|
247 |
}
|
248 |
|
249 |
-
|
|
|
|
40 |
add_action("admin_print_styles", 'adminCsslibs');
|
41 |
add_action('wp_enqueue_scripts', 'uaf_client_css');
|
42 |
add_action('plugins_loaded', 'uaf_update_check');
|
43 |
+
add_action('init', 'uaf_editor_setup');
|
44 |
|
45 |
$uaf_disbale_editor_font_list_value = get_option('uaf_disbale_editor_font_list');
|
46 |
if ($uaf_disbale_editor_font_list_value != 1):
|
92 |
|
93 |
function uaf_update_check() { // MUST CHANGE WITH EVERY VERSION
|
94 |
$uaf_version_check = get_option('uaf_current_version');
|
95 |
+
if ($uaf_version_check != '4.7.3'):
|
96 |
+
update_option('uaf_current_version', '4.7.3');
|
97 |
if ($uaf_version_check < 4.0):
|
98 |
uaf_create_folder();
|
99 |
uaf_move_file_to_newPath();
|
247 |
update_option('uaf_css_updated_timestamp', time()); // Time entry for stylesheet version
|
248 |
}
|
249 |
|
250 |
+
function uaf_editor_setup(){
|
251 |
+
include('includes/uaf_editor_setup.php');
|
252 |
+
}
|
readme.txt
CHANGED
@@ -2,17 +2,17 @@
|
|
2 |
Contributors: dnesscarkey
|
3 |
Tags: custom fonts, font embed, font uploader, any font, embed any font, font uploader, css3 font embed, @font-face embed, font conversion, webfont, ttf, opentype
|
4 |
Requires at least: 3.0
|
5 |
-
Tested up to: 4.7.
|
6 |
-
Stable tag: 4.7.
|
7 |
|
8 |
-
Embed any font in your website
|
9 |
|
10 |
== Description ==
|
11 |
-
Use any
|
12 |
|
13 |
Click <a href="http://dineshkarki.com.np/use-any-font/demo" target="_blank">here</a> for Use Any Font working demo.
|
14 |
|
15 |
-
Use Any Font gives you freedom to use custom fonts in your website. It is not like other font embed services which gives you countable number of fonts to select from neither the one that stores your font in remote server. You can use any font if you have its font format (ttf,otf,woff) without being dependent to other's server uptime.
|
16 |
|
17 |
<strong>Features</strong>
|
18 |
|
@@ -20,10 +20,11 @@ Use Any Font gives you freedom to use custom fonts in your website. It is not li
|
|
20 |
* Support all major browsers including IE 6+, Firefox, Chrome, Safari, IOS, Andriod, Opera and more.
|
21 |
* Font conversion within the plugin interface font uploader and quick font assign interface. You can select pre defined html tags or assign it to custom css.
|
22 |
* Use uploaded font directly from Wordpress Editor, <a href="http://www.elegantthemes.com/affiliates/idevaffiliate.php?id=39880" target="_blank">Divi Builder</a>, <a href="https://wordpress.org/plugins/siteorigin-panels/" target="_blank">Site Origin Page Buider</a> and any visual builder using the class.
|
|
|
23 |
* Supports font format including ttf, otf, woff. The required fonts are converted automatically.
|
24 |
-
* Accepts font file upto 15 MB.
|
25 |
* Embed fonts using @font-face css. SEO friendly and quick loading.
|
26 |
-
* Multiple fonts can be used.
|
27 |
* Faster load time as your custom fonts are stored on your own server.
|
28 |
|
29 |
<strong>Support</strong>
|
@@ -34,7 +35,7 @@ Use Any Font gives you freedom to use custom fonts in your website. It is not li
|
|
34 |
|
35 |
You need API key to connect to our server for font conversion. Our server converts your font and sends it back.
|
36 |
|
37 |
-
Offer your contribution (Free for 1 font, $
|
38 |
|
39 |
<strong>Installation Video</strong>
|
40 |
[youtube http://www.youtube.com/watch?v=QzGaWIPVwEk]
|
@@ -49,9 +50,9 @@ We don't respond to support tickets created here. Please visit our <a href="http
|
|
49 |
1. Activate the use-any-font plugin through the 'Plugins' menu in WordPress.
|
50 |
1. Get the API key and verify it (Needed to connect to server for font conversion).
|
51 |
1. Select Use Any Font under Settings
|
52 |
-
1. Upload your font.
|
53 |
1. Assign your font to element.
|
54 |
-
1. You can also assign the font directly from wordpress page/post editor.
|
55 |
1. Your fonts are working in your site now.
|
56 |
1. You may refer to Screenshots tab for visual instructions.
|
57 |
|
@@ -77,6 +78,10 @@ You can check video for more details.
|
|
77 |
<a href="http://www.elegantthemes.com/affiliates/idevaffiliate.php?id=39880" target="_blank">Divi Builder</a> : https://www.youtube.com/watch?v=Y24TtwNHFMY
|
78 |
<a href="https://wordpress.org/plugins/siteorigin-panels/" target="_blank">Site Origin Page Buider</a> : https://www.youtube.com/watch?v=dA-iXWZSCYs
|
79 |
|
|
|
|
|
|
|
|
|
80 |
= Where are my fonts stored ? =
|
81 |
|
82 |
All the fonts are stored in your own server. Our server only convert the fonts and sends back.
|
@@ -103,6 +108,9 @@ No, our server is needed during font conversion only. After that all fonts are s
|
|
103 |
|
104 |
== Changelog ==
|
105 |
|
|
|
|
|
|
|
106 |
= 4.7.2 =
|
107 |
* SiteOrigin Page Builder Support
|
108 |
|
2 |
Contributors: dnesscarkey
|
3 |
Tags: custom fonts, font embed, font uploader, any font, embed any font, font uploader, css3 font embed, @font-face embed, font conversion, webfont, ttf, opentype
|
4 |
Requires at least: 3.0
|
5 |
+
Tested up to: 4.7.4
|
6 |
+
Stable tag: 4.7.3
|
7 |
|
8 |
+
Embed any custom font in your website. #1 Rated custom fonts plugin by WPMUDev.org.
|
9 |
|
10 |
== Description ==
|
11 |
+
Use any custom fonts you wish and give your site a elegant look. No css knowledge required.
|
12 |
|
13 |
Click <a href="http://dineshkarki.com.np/use-any-font/demo" target="_blank">here</a> for Use Any Font working demo.
|
14 |
|
15 |
+
Use Any Font gives you freedom to use custom fonts in your website. It is not like other font embed services which gives you countable number of fonts to select from neither the one that stores your font in remote server. You can use any custom font if you have its font format (ttf,otf,woff) without being dependent to other's server uptime.
|
16 |
|
17 |
<strong>Features</strong>
|
18 |
|
20 |
* Support all major browsers including IE 6+, Firefox, Chrome, Safari, IOS, Andriod, Opera and more.
|
21 |
* Font conversion within the plugin interface font uploader and quick font assign interface. You can select pre defined html tags or assign it to custom css.
|
22 |
* Use uploaded font directly from Wordpress Editor, <a href="http://www.elegantthemes.com/affiliates/idevaffiliate.php?id=39880" target="_blank">Divi Builder</a>, <a href="https://wordpress.org/plugins/siteorigin-panels/" target="_blank">Site Origin Page Buider</a> and any visual builder using the class.
|
23 |
+
* Custom fonts uploaded can be directly used from Theme options panel for major themeforest themes like <a href="https://goo.gl/Oy6tvt" target="_blank">Avada, X Theme, Salient, Oshine, KLEO, ShopKeeper, SimpleMag, Porto and many more (540+). Check out full list here.</a>
|
24 |
* Supports font format including ttf, otf, woff. The required fonts are converted automatically.
|
25 |
+
* Accepts custom font file upto 15 MB.
|
26 |
* Embed fonts using @font-face css. SEO friendly and quick loading.
|
27 |
+
* Multiple custom fonts can be used.
|
28 |
* Faster load time as your custom fonts are stored on your own server.
|
29 |
|
30 |
<strong>Support</strong>
|
35 |
|
36 |
You need API key to connect to our server for font conversion. Our server converts your font and sends it back.
|
37 |
|
38 |
+
Offer your contribution (Free for 1 font, $20 to $100) and get the API key from <a href="http://dnesscarkey.com/font-convertor/api/" target="_blank">here</a>.
|
39 |
|
40 |
<strong>Installation Video</strong>
|
41 |
[youtube http://www.youtube.com/watch?v=QzGaWIPVwEk]
|
50 |
1. Activate the use-any-font plugin through the 'Plugins' menu in WordPress.
|
51 |
1. Get the API key and verify it (Needed to connect to server for font conversion).
|
52 |
1. Select Use Any Font under Settings
|
53 |
+
1. Upload your custom font.
|
54 |
1. Assign your font to element.
|
55 |
+
1. You can also assign the custom font directly from wordpress page/post editor.
|
56 |
1. Your fonts are working in your site now.
|
57 |
1. You may refer to Screenshots tab for visual instructions.
|
58 |
|
78 |
<a href="http://www.elegantthemes.com/affiliates/idevaffiliate.php?id=39880" target="_blank">Divi Builder</a> : https://www.youtube.com/watch?v=Y24TtwNHFMY
|
79 |
<a href="https://wordpress.org/plugins/siteorigin-panels/" target="_blank">Site Origin Page Buider</a> : https://www.youtube.com/watch?v=dA-iXWZSCYs
|
80 |
|
81 |
+
= Does it works with any theme ? =
|
82 |
+
|
83 |
+
Its built in Font Upload and Font assign section allows you to assign custom fonts to any theme. However, for popular themes like <a href="https://goo.gl/Oy6tvt" target="_blank">Avada, X Theme, Salient, Oshine, KLEO, ShopKeeper, SimpleMag, Porto and many more (540+). Check out full list here.</a>, we have added extra features that allows you to assign the custom font to your theme using the theme options panel.
|
84 |
+
|
85 |
= Where are my fonts stored ? =
|
86 |
|
87 |
All the fonts are stored in your own server. Our server only convert the fonts and sends back.
|
108 |
|
109 |
== Changelog ==
|
110 |
|
111 |
+
= 4.7.3 =
|
112 |
+
* Adds custom fonts to theme options panel for themes like Avada, Salient, Oshine, X Theme, KLEO. (540+ Themes in total)
|
113 |
+
|
114 |
= 4.7.2 =
|
115 |
* SiteOrigin Page Builder Support
|
116 |
|
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.7.
|
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.7.3
|
8 |
Author URI: http://www.dineshkarki.com.np
|
9 |
*/
|
10 |
|