Version Description
- SiteOrigin Page Builder Support
Download this release
Release Info
Developer | dnesscarkey |
Plugin | Use Any Font |
Version | 4.7.2 |
Comparing to | |
See all releases |
Code changes from version 4.7.1 to 4.7.2
- includes/uaf_editor_setup.php +36 -0
- plugin_interface.php +2 -20
- readme.txt +23 -27
- use-any-font.php +1 -1
includes/uaf_editor_setup.php
CHANGED
@@ -1,4 +1,6 @@
|
|
1 |
<?php
|
|
|
|
|
2 |
function uaf_mce_before_init( $init_array ) {
|
3 |
$theme_advanced_fonts = '';
|
4 |
$fontsRawData = get_option('uaf_font_data');
|
@@ -17,4 +19,38 @@ function wp_editor_fontsize_filter( $options ) {
|
|
17 |
array_unshift( $options, 'fontsizeselect');
|
18 |
array_unshift( $options, 'fontselect');
|
19 |
return $options;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
}
|
1 |
<?php
|
2 |
+
|
3 |
+
// DEFAULT WORDPRESS EDITOR
|
4 |
function uaf_mce_before_init( $init_array ) {
|
5 |
$theme_advanced_fonts = '';
|
6 |
$fontsRawData = get_option('uaf_font_data');
|
19 |
array_unshift( $options, 'fontsizeselect');
|
20 |
array_unshift( $options, 'fontselect');
|
21 |
return $options;
|
22 |
+
}
|
23 |
+
|
24 |
+
// DIVI CUSTOMIZER AND BUILDER
|
25 |
+
|
26 |
+
add_filter('et_websafe_fonts', 'uaf_send_fonts_divi_list',10,2);
|
27 |
+
function uaf_send_fonts_divi_list($fonts){
|
28 |
+
$fontsRawData = get_option('uaf_font_data');
|
29 |
+
$fontsData = json_decode($fontsRawData, true);
|
30 |
+
$fonts_uaf = array();
|
31 |
+
if (!empty($fontsData)):
|
32 |
+
foreach ($fontsData as $key=>$fontData):
|
33 |
+
$fonts_uaf[$fontData['font_name']] = array(
|
34 |
+
'styles' => '400',
|
35 |
+
'character_set' => 'cyrillic,greek,latin',
|
36 |
+
'type' => 'serif'
|
37 |
+
);
|
38 |
+
endforeach;
|
39 |
+
endif;
|
40 |
+
return array_merge($fonts_uaf,$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');
|
48 |
+
$fontsData = json_decode($fontsRawData, true);
|
49 |
+
$fonts_uaf = array();
|
50 |
+
if (!empty($fontsData)):
|
51 |
+
foreach ($fontsData as $key=>$fontData):
|
52 |
+
$fonts_uaf[$fontData['font_name']] = $fontData['font_name'];
|
53 |
+
endforeach;
|
54 |
+
endif;
|
55 |
+
return array_merge($fonts_uaf,$fonts);
|
56 |
}
|
plugin_interface.php
CHANGED
@@ -47,24 +47,6 @@ if ($uaf_disbale_editor_font_list_value != 1):
|
|
47 |
add_filter('tiny_mce_before_init', 'uaf_mce_before_init' );
|
48 |
endif;
|
49 |
|
50 |
-
// ADD FONTS to DIVI editor font List
|
51 |
-
add_filter('et_websafe_fonts', 'uaf_send_fonts_divi_list',10,2);
|
52 |
-
function uaf_send_fonts_divi_list($fonts){
|
53 |
-
$fontsRawData = get_option('uaf_font_data');
|
54 |
-
$fontsData = json_decode($fontsRawData, true);
|
55 |
-
$fonts_uaf = array();
|
56 |
-
if (!empty($fontsData)):
|
57 |
-
foreach ($fontsData as $key=>$fontData):
|
58 |
-
$fonts_uaf[$fontData['font_name']] = array(
|
59 |
-
'styles' => '400',
|
60 |
-
'character_set' => 'cyrillic,greek,latin',
|
61 |
-
'type' => 'serif'
|
62 |
-
);
|
63 |
-
endforeach;
|
64 |
-
endif;
|
65 |
-
return array_merge($fonts_uaf,$fonts);
|
66 |
-
}
|
67 |
-
|
68 |
function uaf_client_css() {
|
69 |
$uaf_upload = wp_upload_dir();
|
70 |
$uaf_upload_url = set_url_scheme($uaf_upload['baseurl']);
|
@@ -109,8 +91,8 @@ function uaf_activate(){
|
|
109 |
|
110 |
function uaf_update_check() { // MUST CHANGE WITH EVERY VERSION
|
111 |
$uaf_version_check = get_option('uaf_current_version');
|
112 |
-
if ($uaf_version_check != '4.7.
|
113 |
-
update_option('uaf_current_version', '4.7.
|
114 |
if ($uaf_version_check < 4.0):
|
115 |
uaf_create_folder();
|
116 |
uaf_move_file_to_newPath();
|
47 |
add_filter('tiny_mce_before_init', 'uaf_mce_before_init' );
|
48 |
endif;
|
49 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
function uaf_client_css() {
|
51 |
$uaf_upload = wp_upload_dir();
|
52 |
$uaf_upload_url = set_url_scheme($uaf_upload['baseurl']);
|
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.2'):
|
95 |
+
update_option('uaf_current_version', '4.7.2');
|
96 |
if ($uaf_version_check < 4.0):
|
97 |
uaf_create_folder();
|
98 |
uaf_move_file_to_newPath();
|
readme.txt
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
=== Use Any Font ===
|
2 |
Contributors: dnesscarkey
|
3 |
-
Tags:
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 4.7.3
|
6 |
-
Stable tag: 4.7.
|
7 |
|
8 |
Embed any font in your website
|
9 |
|
@@ -12,20 +12,23 @@ Use any font you wish and give your site a elegant look. No css knowledge requir
|
|
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
|
16 |
|
17 |
-
Features
|
18 |
|
19 |
* Quick and easy to setup. No css or any rocket science knowledge needed.
|
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.
|
22 |
-
* Use uploaded font directly from Editor
|
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 |
* <a href="http://dineshkarki.com.np/forums/forum/use-any-fonts" target="_blank">Support Forum</a> to quickly resolve your issues.
|
30 |
* <a href="http://dineshkarki.com.np/rectify-my-problem" target="_blank">Rectify My Problem</a> for personal assitance.
|
31 |
|
@@ -54,17 +57,9 @@ We don't respond to support tickets created here. Please visit our <a href="http
|
|
54 |
|
55 |
== Frequently Asked Questions ==
|
56 |
|
57 |
-
= Which font format does plugin accepts ? =
|
58 |
-
|
59 |
-
Currently, ttf, otf, woff font format are accepted.
|
60 |
-
|
61 |
-
= What is the max font file size ? =
|
62 |
-
|
63 |
-
Font file upto 15MB is acceptable. However, we suggest you to use smaller ones as far as possible. The font file size directly affects your site load time.
|
64 |
|
65 |
-
|
66 |
-
|
67 |
-
Ya, our plugin accept upto 15 MB font file but your wordpress installation have limitation for file size. Please check this link to increase it http://www.wpbeginner.com/wp-tutorials/how-to-increase-the-maximum-file-upload-size-in-wordpress/
|
68 |
|
69 |
= Does it works with multiple fonts ? =
|
70 |
|
@@ -74,17 +69,13 @@ Ya, it works with multiple fonts. For multiple font conversion request, you need
|
|
74 |
|
75 |
No, you don't need to do it yourself. Just upload your font(supports most of the font format), and the plugin does the rest.
|
76 |
|
77 |
-
=
|
78 |
-
|
79 |
-
Please check screenshot #4 in Screenshots tab.
|
80 |
-
|
81 |
-
= I want to disable font list from wordpress editor ? =
|
82 |
|
83 |
-
|
84 |
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
|
89 |
= Where are my fonts stored ? =
|
90 |
|
@@ -96,7 +87,9 @@ No, our server is needed during font conversion only. After that all fonts are s
|
|
96 |
|
97 |
= Not working for me. What can i do ? =
|
98 |
|
99 |
-
|
|
|
|
|
100 |
|
101 |
|
102 |
== Screenshots ==
|
@@ -110,6 +103,9 @@ You can check our <a href="http://dineshkarki.com.np/forums/forum/use-any-fonts"
|
|
110 |
|
111 |
== Changelog ==
|
112 |
|
|
|
|
|
|
|
113 |
= 4.7.1 =
|
114 |
* Divi Theme Issue Fixes.
|
115 |
|
1 |
=== Use Any Font ===
|
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.3
|
6 |
+
Stable tag: 4.7.2
|
7 |
|
8 |
Embed any font in your website
|
9 |
|
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 |
|
19 |
* Quick and easy to setup. No css or any rocket science knowledge needed.
|
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>
|
30 |
+
|
31 |
+
* <a href="http://dnesscarkey.com/virtual-support/use-any-font.php" target="_blank">Virtual Support</a> to solve common issues. It covers almost 80% of repeated issues.
|
32 |
* <a href="http://dineshkarki.com.np/forums/forum/use-any-fonts" target="_blank">Support Forum</a> to quickly resolve your issues.
|
33 |
* <a href="http://dineshkarki.com.np/rectify-my-problem" target="_blank">Rectify My Problem</a> for personal assitance.
|
34 |
|
57 |
|
58 |
== Frequently Asked Questions ==
|
59 |
|
60 |
+
= Which font format does plugin accepts and the font size ? =
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
|
62 |
+
Currently, ttf, otf, woff font format are accepted. Font file upto 15MB is acceptable. However, we suggest you to use smaller ones as far as possible. The font file size directly affects your site load time.
|
|
|
|
|
63 |
|
64 |
= Does it works with multiple fonts ? =
|
65 |
|
69 |
|
70 |
No, you don't need to do it yourself. Just upload your font(supports most of the font format), and the plugin does the rest.
|
71 |
|
72 |
+
= Does it work with Visual Builder like Divi Builder ? =
|
|
|
|
|
|
|
|
|
73 |
|
74 |
+
Ya, it works with any visual builder. For that you can assign class to those elements. Class name are same as font name. Also, we have full support for Divi Builder and SiteOrigin Page Builder. You can assign fonts using their font family dropdown.
|
75 |
|
76 |
+
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 |
|
87 |
|
88 |
= Not working for me. What can i do ? =
|
89 |
|
90 |
+
<a href="http://dnesscarkey.com/virtual-support/use-any-font.php" target="_blank">Virtual Support</a> to solve common issues. It covers almost 80% of repeated issues.
|
91 |
+
<a href="http://dineshkarki.com.np/forums/forum/use-any-fonts" target="_blank">Support Forum</a> to quickly resolve your issues.
|
92 |
+
<a href="http://dineshkarki.com.np/rectify-my-problem" target="_blank">Rectify My Problem</a> for personal assitance.
|
93 |
|
94 |
|
95 |
== Screenshots ==
|
103 |
|
104 |
== Changelog ==
|
105 |
|
106 |
+
= 4.7.2 =
|
107 |
+
* SiteOrigin Page Builder Support
|
108 |
+
|
109 |
= 4.7.1 =
|
110 |
* Divi Theme Issue Fixes.
|
111 |
|
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.2
|
8 |
Author URI: http://www.dineshkarki.com.np
|
9 |
*/
|
10 |
|