Version Description
- Added support for Generate Press, Astra and Ocean WP Theme.
- Added setting For Font Display (swap, fallback, block)
Download this release
Release Info
Developer | dnesscarkey |
Plugin | Use Any Font |
Version | 5.6 |
Comparing to | |
See all releases |
Code changes from version 5.5 to 5.6
- includes/uaf_editor_setup.php +43 -2
- includes/uaf_footer.php +20 -39
- includes/uaf_functions.php +62 -50
- plugin_interface.php +0 -1
- readme.txt +17 -6
- uaf_config.php +2 -0
- use-any-font.php +1 -1
includes/uaf_editor_setup.php
CHANGED
@@ -85,7 +85,7 @@ function uaf_send_fonts_x_theme_list($fonts){
|
|
85 |
return array_merge($fonts_uaf,$fonts);
|
86 |
}
|
87 |
|
88 |
-
//
|
89 |
function uaf_send_fonts_elementor_list( $controls_registry ) {
|
90 |
$fontsData = get_uploaded_font_list();
|
91 |
$fonts_uaf = array('Use Any Fonts' => array());
|
@@ -101,7 +101,8 @@ function uaf_send_fonts_elementor_list( $controls_registry ) {
|
|
101 |
}
|
102 |
add_action( 'elementor/controls/controls_registered', 'uaf_send_fonts_elementor_list', 10, 1 );
|
103 |
|
104 |
-
// Beaver Builder (Tested with 2.3.0.1 )
|
|
|
105 |
add_filter('fl_builder_font_families_system', 'uaf_send_fonts_beaver_builder_list',10,2);
|
106 |
function uaf_send_fonts_beaver_builder_list($fonts){
|
107 |
$fontsData = get_uploaded_font_list();
|
@@ -131,4 +132,44 @@ function uaf_send_fonts_themify_builder_list($fonts){
|
|
131 |
endforeach;
|
132 |
endif;
|
133 |
return array_merge($fonts_uaf,$fonts);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
134 |
}
|
85 |
return array_merge($fonts_uaf,$fonts);
|
86 |
}
|
87 |
|
88 |
+
// elementor
|
89 |
function uaf_send_fonts_elementor_list( $controls_registry ) {
|
90 |
$fontsData = get_uploaded_font_list();
|
91 |
$fonts_uaf = array('Use Any Fonts' => array());
|
101 |
}
|
102 |
add_action( 'elementor/controls/controls_registered', 'uaf_send_fonts_elementor_list', 10, 1 );
|
103 |
|
104 |
+
// Beaver Builder and Themes (Tested with 2.3.0.1 )
|
105 |
+
add_filter('fl_theme_system_fonts', 'uaf_send_fonts_beaver_builder_list',10,2);
|
106 |
add_filter('fl_builder_font_families_system', 'uaf_send_fonts_beaver_builder_list',10,2);
|
107 |
function uaf_send_fonts_beaver_builder_list($fonts){
|
108 |
$fontsData = get_uploaded_font_list();
|
132 |
endforeach;
|
133 |
endif;
|
134 |
return array_merge($fonts_uaf,$fonts);
|
135 |
+
}
|
136 |
+
|
137 |
+
// GENERATE PRESS Tested With Version: 2.4.1
|
138 |
+
add_filter( 'generate_typography_default_fonts', function( $fonts ) {
|
139 |
+
$fontsData = get_uploaded_font_list();
|
140 |
+
$fonts_uaf = array();
|
141 |
+
if (!empty($fontsData)):
|
142 |
+
foreach ($fontsData as $key=>$fontData):
|
143 |
+
$fonts_uaf[] = $fontData['font_name'];
|
144 |
+
endforeach;
|
145 |
+
endif;
|
146 |
+
return array_merge($fonts_uaf,$fonts);
|
147 |
+
});
|
148 |
+
|
149 |
+
// ASTRA THEME ver 2.2.1
|
150 |
+
add_action( 'astra_customizer_font_list', 'uaf_astra_customizer_font_list');
|
151 |
+
function uaf_astra_customizer_font_list( $value ) {
|
152 |
+
$fontsData = get_uploaded_font_list();
|
153 |
+
$fonts_uaf = array();
|
154 |
+
if (!empty($fontsData)):
|
155 |
+
echo '<optgroup label="Use Any Font">';
|
156 |
+
foreach ($fontsData as $key=>$fontData):
|
157 |
+
echo '<option value="' .$fontData['font_name'] . '">' . $fontData['font_name']. '</option>';
|
158 |
+
endforeach;
|
159 |
+
endif;
|
160 |
+
}
|
161 |
+
|
162 |
+
|
163 |
+
// oceanwp Theme 1.7.4
|
164 |
+
if ( !function_exists( 'ocean_add_custom_fonts' ) ) {
|
165 |
+
function ocean_add_custom_fonts() {
|
166 |
+
$fontsData = get_uploaded_font_list();
|
167 |
+
$fonts_uaf = array();
|
168 |
+
if (!empty($fontsData)):
|
169 |
+
foreach ($fontsData as $key=>$fontData):
|
170 |
+
$fonts_uaf[] = $fontData['font_name'];
|
171 |
+
endforeach;
|
172 |
+
endif;
|
173 |
+
return $fonts_uaf;
|
174 |
+
}
|
175 |
}
|
includes/uaf_footer.php
CHANGED
@@ -1,43 +1,7 @@
|
|
1 |
<?php
|
2 |
if (isset($_POST['submit-uaf-settings'])){
|
3 |
-
|
4 |
-
$uaf_disbale_editor_font_list = 1;
|
5 |
-
} else {
|
6 |
-
$uaf_disbale_editor_font_list = '';
|
7 |
-
}
|
8 |
-
|
9 |
-
if (isset($_POST['uaf_use_curl_uploader'])){
|
10 |
-
$uaf_use_curl_uploader = 1;
|
11 |
-
} else {
|
12 |
-
$uaf_use_curl_uploader = '';
|
13 |
-
}
|
14 |
-
|
15 |
-
if (isset($_POST['uaf_use_absolute_font_path'])){
|
16 |
-
$uaf_use_absolute_font_path = 1;
|
17 |
-
} else {
|
18 |
-
$uaf_use_absolute_font_path = '';
|
19 |
-
}
|
20 |
-
|
21 |
-
if (isset($_POST['uaf_use_alternative_server'])){
|
22 |
-
$uaf_use_alternative_server = 1;
|
23 |
-
} else {
|
24 |
-
$uaf_use_alternative_server = '';
|
25 |
-
}
|
26 |
-
|
27 |
-
if (isset($_POST['uaf_enable_multi_lang_support'])){
|
28 |
-
$uaf_enable_multi_lang_support = 1;
|
29 |
-
} else {
|
30 |
-
$uaf_enable_multi_lang_support = '';
|
31 |
-
}
|
32 |
-
|
33 |
-
update_option('uaf_disbale_editor_font_list', $uaf_disbale_editor_font_list);
|
34 |
-
update_option('uaf_use_curl_uploader', $uaf_use_curl_uploader);
|
35 |
-
update_option('uaf_use_absolute_font_path', $uaf_use_absolute_font_path);
|
36 |
-
update_option('uaf_use_alternative_server', $uaf_use_alternative_server);
|
37 |
-
update_option('uaf_enable_multi_lang_support', $uaf_enable_multi_lang_support);
|
38 |
$settings_message = 'Settings Saved';
|
39 |
-
|
40 |
-
uaf_write_css(); // Need to rewrite css for uaf_use_relative_font_path setting change
|
41 |
}
|
42 |
|
43 |
$server_status = $GLOBALS['uaf_server_status'];
|
@@ -89,7 +53,7 @@ if (isset($_POST['test_server']) || empty($server_status)){
|
|
89 |
|
90 |
|
91 |
<br/>
|
92 |
-
<table class="wp-list-table widefat fixed bookmarks">
|
93 |
<thead>
|
94 |
<tr>
|
95 |
<th><strong>Additional Settings (Usually not required)</strong></th>
|
@@ -125,7 +89,23 @@ if (isset($_POST['test_server']) || empty($server_status)){
|
|
125 |
<td>
|
126 |
<input type="checkbox" name="uaf_enable_multi_lang_support" value="1" <?php echo $GLOBALS['uaf_enable_multi_lang_support'] == 1?'checked=checked':''; ?> />Enable Multi Language Font Support <strong><em>( When you are using multi language and need to set different font based on language. Currently Supported : WPML & Polylang )</em></strong>
|
127 |
</td>
|
128 |
-
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
129 |
<tr>
|
130 |
<td><input type="submit" name="submit-uaf-settings" class="button-primary" value="Save Settings" /></td>
|
131 |
</tr>
|
@@ -214,6 +194,7 @@ if (isset($_POST['test_server']) || empty($server_status)){
|
|
214 |
<li><a href="http://goo.gl/FcC7EL" target="_blank">Quick Virtual Support</a></li>
|
215 |
<li><a href="http://goo.gl/XgEqzn" target="_blank">Support Forum</a></li>
|
216 |
<li><a href="http://goo.gl/MKg7VS" target="_blank">Rectify My Problem / Contact Us</a></li>
|
|
|
217 |
</ul>
|
218 |
</td>
|
219 |
</tr>
|
1 |
<?php
|
2 |
if (isset($_POST['submit-uaf-settings'])){
|
3 |
+
uaf_save_settings();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
$settings_message = 'Settings Saved';
|
|
|
|
|
5 |
}
|
6 |
|
7 |
$server_status = $GLOBALS['uaf_server_status'];
|
53 |
|
54 |
|
55 |
<br/>
|
56 |
+
<table class="wp-list-table widefat fixed bookmarks uaf_form">
|
57 |
<thead>
|
58 |
<tr>
|
59 |
<th><strong>Additional Settings (Usually not required)</strong></th>
|
89 |
<td>
|
90 |
<input type="checkbox" name="uaf_enable_multi_lang_support" value="1" <?php echo $GLOBALS['uaf_enable_multi_lang_support'] == 1?'checked=checked':''; ?> />Enable Multi Language Font Support <strong><em>( When you are using multi language and need to set different font based on language. Currently Supported : WPML & Polylang )</em></strong>
|
91 |
</td>
|
92 |
+
</tr>
|
93 |
+
|
94 |
+
<tr>
|
95 |
+
|
96 |
+
<td>
|
97 |
+
<select name="uaf_font_display_property">
|
98 |
+
<option value="auto" <?php echo $GLOBALS['uaf_font_display_property'] == "auto"?'selected=selected':''; ?>>auto</option>
|
99 |
+
<option value="block" <?php echo $GLOBALS['uaf_font_display_property'] == "block"?'selected=selected':''; ?>>block</option>
|
100 |
+
<option value="swap" <?php echo $GLOBALS['uaf_font_display_property'] == "swap"?'selected=selected':''; ?>>swap</option>
|
101 |
+
<option value="fallback" <?php echo $GLOBALS['uaf_font_display_property'] == "fallback"?'selected=selected':''; ?>>fallback</option>
|
102 |
+
<option value="optional" <?php echo $GLOBALS['uaf_font_display_property'] == "optional"?'selected=selected':''; ?>>optional</option>
|
103 |
+
</select>
|
104 |
+
Font Display Property
|
105 |
+
</td>
|
106 |
+
</tr>
|
107 |
+
|
108 |
+
|
109 |
<tr>
|
110 |
<td><input type="submit" name="submit-uaf-settings" class="button-primary" value="Save Settings" /></td>
|
111 |
</tr>
|
194 |
<li><a href="http://goo.gl/FcC7EL" target="_blank">Quick Virtual Support</a></li>
|
195 |
<li><a href="http://goo.gl/XgEqzn" target="_blank">Support Forum</a></li>
|
196 |
<li><a href="http://goo.gl/MKg7VS" target="_blank">Rectify My Problem / Contact Us</a></li>
|
197 |
+
<li><a href="https://bit.ly/2wYjOyj" target="_blank">Download Free Fonts</a></li>
|
198 |
</ul>
|
199 |
</td>
|
200 |
</tr>
|
includes/uaf_functions.php
CHANGED
@@ -60,6 +60,7 @@ function uaf_write_css(){
|
|
60 |
font-family: '<?php echo $fontData['font_name'] ?>';
|
61 |
src: <?php if (file_exists($uaf_upload_dir.$fontData['font_path'].'.woff2')){ ?>url('<?php echo $uaf_upload_url.$fontData['font_path'] ?>.woff2') format('woff2'),
|
62 |
<?php } ?>url('<?php echo $uaf_upload_url.$fontData['font_path'] ?>.woff') format('woff');
|
|
|
63 |
}
|
64 |
|
65 |
.<?php echo $fontData['font_name'] ?>{font-family: '<?php echo $fontData['font_name'] ?>' !important;}
|
@@ -116,16 +117,22 @@ function uaf_write_css(){
|
|
116 |
|
117 |
function uaf_update_check() { // MUST CHANGE WITH EVERY VERSION
|
118 |
$uaf_version_check = get_option('uaf_current_version');
|
119 |
-
if ($uaf_version_check != '5.
|
120 |
-
update_option('uaf_current_version', '5.
|
121 |
if ($uaf_version_check < 4.0):
|
122 |
uaf_create_folder();
|
123 |
uaf_move_file_to_newPath();
|
124 |
endif;
|
|
|
125 |
uaf_write_css();
|
126 |
endif;
|
127 |
}
|
128 |
|
|
|
|
|
|
|
|
|
|
|
129 |
function uaf_get_server_url(){
|
130 |
$uaf_use_alternative_server = $GLOBALS['uaf_use_alternative_server'];
|
131 |
if ($uaf_use_alternative_server == 1){
|
@@ -376,6 +383,12 @@ function uaf_get_language_selector(){
|
|
376 |
$lang_select_data[$active_language->w3c] = $active_language->name;
|
377 |
}
|
378 |
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
379 |
case 'sitepress-multilingual-cms/sitepress.php': // WHEN WPML PLUGIN IS ACTIVATED.
|
380 |
$active_languages = icl_get_languages();
|
381 |
foreach ($active_languages as $key => $active_language) {
|
@@ -411,52 +424,51 @@ function uaf_langutizse_elements($finalElements){
|
|
411 |
return $finalElements;
|
412 |
}
|
413 |
|
414 |
-
function uaf_save_settings(){
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
}
|
462 |
}
|
60 |
font-family: '<?php echo $fontData['font_name'] ?>';
|
61 |
src: <?php if (file_exists($uaf_upload_dir.$fontData['font_path'].'.woff2')){ ?>url('<?php echo $uaf_upload_url.$fontData['font_path'] ?>.woff2') format('woff2'),
|
62 |
<?php } ?>url('<?php echo $uaf_upload_url.$fontData['font_path'] ?>.woff') format('woff');
|
63 |
+
font-display: <?php echo $GLOBALS['uaf_font_display_property']; ?>;
|
64 |
}
|
65 |
|
66 |
.<?php echo $fontData['font_name'] ?>{font-family: '<?php echo $fontData['font_name'] ?>' !important;}
|
117 |
|
118 |
function uaf_update_check() { // MUST CHANGE WITH EVERY VERSION
|
119 |
$uaf_version_check = get_option('uaf_current_version');
|
120 |
+
if ($uaf_version_check != '5.6'):
|
121 |
+
update_option('uaf_current_version', '5.6');
|
122 |
if ($uaf_version_check < 4.0):
|
123 |
uaf_create_folder();
|
124 |
uaf_move_file_to_newPath();
|
125 |
endif;
|
126 |
+
uaf_default_settings();
|
127 |
uaf_write_css();
|
128 |
endif;
|
129 |
}
|
130 |
|
131 |
+
function uaf_default_settings(){
|
132 |
+
add_option('uaf_font_display_property','auto');
|
133 |
+
$GLOBALS['uaf_font_display_property'] = get_option('uaf_font_display_property');
|
134 |
+
}
|
135 |
+
|
136 |
function uaf_get_server_url(){
|
137 |
$uaf_use_alternative_server = $GLOBALS['uaf_use_alternative_server'];
|
138 |
if ($uaf_use_alternative_server == 1){
|
383 |
$lang_select_data[$active_language->w3c] = $active_language->name;
|
384 |
}
|
385 |
break;
|
386 |
+
case 'polylang-pro/polylang.php': // WHEN POLYLANG PRO PLUGIN IS ACTIVATED.
|
387 |
+
$active_languages = pll_languages_list(array('fields'=>''));
|
388 |
+
foreach ($active_languages as $key => $active_language) {
|
389 |
+
$lang_select_data[$active_language->w3c] = $active_language->name;
|
390 |
+
}
|
391 |
+
break;
|
392 |
case 'sitepress-multilingual-cms/sitepress.php': // WHEN WPML PLUGIN IS ACTIVATED.
|
393 |
$active_languages = icl_get_languages();
|
394 |
foreach ($active_languages as $key => $active_language) {
|
424 |
return $finalElements;
|
425 |
}
|
426 |
|
427 |
+
function uaf_save_settings(){
|
428 |
+
if (isset($_POST['uaf_disbale_editor_font_list'])){
|
429 |
+
$uaf_disbale_editor_font_list = 1;
|
430 |
+
} else {
|
431 |
+
$uaf_disbale_editor_font_list = '';
|
432 |
+
}
|
433 |
+
|
434 |
+
if (isset($_POST['uaf_use_curl_uploader'])){
|
435 |
+
$uaf_use_curl_uploader = 1;
|
436 |
+
} else {
|
437 |
+
$uaf_use_curl_uploader = '';
|
438 |
+
}
|
439 |
+
|
440 |
+
if (isset($_POST['uaf_use_absolute_font_path'])){
|
441 |
+
$uaf_use_absolute_font_path = 1;
|
442 |
+
} else {
|
443 |
+
$uaf_use_absolute_font_path = '';
|
444 |
+
}
|
445 |
+
|
446 |
+
if (isset($_POST['uaf_use_alternative_server'])){
|
447 |
+
$uaf_use_alternative_server = 1;
|
448 |
+
} else {
|
449 |
+
$uaf_use_alternative_server = '';
|
450 |
+
}
|
451 |
+
|
452 |
+
if (isset($_POST['uaf_enable_multi_lang_support'])){
|
453 |
+
$uaf_enable_multi_lang_support = 1;
|
454 |
+
} else {
|
455 |
+
$uaf_enable_multi_lang_support = '';
|
456 |
+
}
|
457 |
+
|
458 |
+
$uaf_font_display_property = $_POST['uaf_font_display_property'];
|
459 |
+
|
460 |
+
update_option('uaf_disbale_editor_font_list', $uaf_disbale_editor_font_list);
|
461 |
+
update_option('uaf_use_curl_uploader', $uaf_use_curl_uploader);
|
462 |
+
update_option('uaf_use_absolute_font_path', $uaf_use_absolute_font_path);
|
463 |
+
update_option('uaf_use_alternative_server', $uaf_use_alternative_server);
|
464 |
+
update_option('uaf_enable_multi_lang_support', $uaf_enable_multi_lang_support);
|
465 |
+
update_option('uaf_font_display_property', $uaf_font_display_property);
|
466 |
+
|
467 |
+
$GLOBALS['uaf_disbale_editor_font_list'] = $uaf_disbale_editor_font_list;
|
468 |
+
$GLOBALS['uaf_use_curl_uploader'] = $uaf_use_curl_uploader;
|
469 |
+
$GLOBALS['uaf_use_absolute_font_path'] = $uaf_use_absolute_font_path;
|
470 |
+
$GLOBALS['uaf_use_alternative_server'] = $uaf_use_alternative_server;
|
471 |
+
$GLOBALS['uaf_enable_multi_lang_support'] = $uaf_enable_multi_lang_support;
|
472 |
+
$GLOBALS['uaf_font_display_property'] = $uaf_font_display_property;
|
473 |
+
uaf_write_css(); // Need to rewrite css for uaf_use_relative_font_path setting change
|
|
|
474 |
}
|
plugin_interface.php
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
<?php
|
2 |
-
uaf_save_settings();
|
3 |
add_action('admin_menu', 'uaf_create_menu');
|
4 |
add_action("admin_print_scripts", 'adminjslibs');
|
5 |
add_action("admin_print_styles", 'adminCsslibs');
|
1 |
<?php
|
|
|
2 |
add_action('admin_menu', 'uaf_create_menu');
|
3 |
add_action("admin_print_scripts", 'adminjslibs');
|
4 |
add_action("admin_print_styles", 'adminCsslibs');
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
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, woff2
|
4 |
Requires at least: 3.0
|
5 |
-
Tested up to: 5.
|
6 |
-
Stable tag: 5.
|
7 |
|
8 |
Embed any custom font in your website. #1 Rated custom fonts plugin by WPMUDev.org.
|
9 |
|
@@ -17,14 +17,18 @@ Use Any Font gives you freedom to use custom fonts in your website. It is not li
|
|
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
|
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,
|
23 |
<a href="http://www.elegantthemes.com/affiliates/idevaffiliate.php?id=39880" target="_blank">Divi Builder</a>,
|
24 |
<a href="https://wordpress.org/plugins/siteorigin-panels/" target="_blank">Site Origin Page Buider</a>,
|
25 |
<a href="https://wordpress.org/plugins/elementor/" target="_blank">Elementor Page Builder</a>,
|
26 |
<a href="https://www.wpbeaverbuilder.com/?fla=2054&campaign=use-any-font" target="_blank">Beaver Builder</a>,
|
27 |
-
<a href="https://themify.me/member/aff/go/dnesscarkey/?cr=aHR0cHM6Ly90aGVtaWZ5Lm1lL2J1aWxkZXI=" target="_blank">Themify Builder</a>,
|
|
|
|
|
|
|
|
|
28 |
* 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>
|
29 |
* Supports font format including ttf, otf, woff. The required fonts are converted automatically.
|
30 |
* Accepts custom font file upto 25 MB.
|
@@ -37,7 +41,6 @@ Use Any Font gives you freedom to use custom fonts in your website. It is not li
|
|
37 |
|
38 |
* <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.
|
39 |
* <a href="http://dineshkarki.com.np/forums/forum/use-any-fonts" target="_blank">Support Forum</a> to quickly resolve your issues.
|
40 |
-
* <a href="http://dineshkarki.com.np/rectify-my-problem" target="_blank">Rectify My Problem</a> for personal assitance.
|
41 |
|
42 |
You need API key to connect to our server for font conversion. Our server converts your font and sends it back.
|
43 |
|
@@ -66,7 +69,11 @@ We don't respond to support tickets created here. Please visit our <a href="http
|
|
66 |
|
67 |
= Which font format does plugin accepts and the font size ? =
|
68 |
|
69 |
-
Currently, ttf, otf, woff font format are accepted. Font file upto
|
|
|
|
|
|
|
|
|
70 |
|
71 |
= Does it works with multiple fonts ? =
|
72 |
|
@@ -117,6 +124,10 @@ No, our server is needed during font conversion only. After that all fonts are s
|
|
117 |
|
118 |
== Changelog ==
|
119 |
|
|
|
|
|
|
|
|
|
120 |
= 5.5 =
|
121 |
* Assign font based on language for WPML & Polylang multi lingual plugins.
|
122 |
|
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, woff2
|
4 |
Requires at least: 3.0
|
5 |
+
Tested up to: 5.4
|
6 |
+
Stable tag: 5.6
|
7 |
|
8 |
Embed any custom font in your website. #1 Rated custom fonts plugin by WPMUDev.org.
|
9 |
|
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, 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,
|
23 |
<a href="http://www.elegantthemes.com/affiliates/idevaffiliate.php?id=39880" target="_blank">Divi Builder</a>,
|
24 |
<a href="https://wordpress.org/plugins/siteorigin-panels/" target="_blank">Site Origin Page Buider</a>,
|
25 |
<a href="https://wordpress.org/plugins/elementor/" target="_blank">Elementor Page Builder</a>,
|
26 |
<a href="https://www.wpbeaverbuilder.com/?fla=2054&campaign=use-any-font" target="_blank">Beaver Builder</a>,
|
27 |
+
<a href="https://themify.me/member/aff/go/dnesscarkey/?cr=aHR0cHM6Ly90aGVtaWZ5Lm1lL2J1aWxkZXI=" target="_blank">Themify Builder</a>,
|
28 |
+
<a href="https://wordpress.org/themes/generatepress/" target="_blank">Generate Press</a>,
|
29 |
+
<a href="https://wordpress.org/themes/astra/" target="_blank">Astra Theme</a>,
|
30 |
+
<a href="https://wordpress.org/themes/oceanwp/" target="_blank">Ocean WP Theme</a>,
|
31 |
+
and any visual builder using the class.
|
32 |
* 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>
|
33 |
* Supports font format including ttf, otf, woff. The required fonts are converted automatically.
|
34 |
* Accepts custom font file upto 25 MB.
|
41 |
|
42 |
* <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.
|
43 |
* <a href="http://dineshkarki.com.np/forums/forum/use-any-fonts" target="_blank">Support Forum</a> to quickly resolve your issues.
|
|
|
44 |
|
45 |
You need API key to connect to our server for font conversion. Our server converts your font and sends it back.
|
46 |
|
69 |
|
70 |
= Which font format does plugin accepts and the font size ? =
|
71 |
|
72 |
+
Currently, ttf, otf, woff font format are accepted. Font file upto 25MB is acceptable. However, we suggest you to use smaller ones as far as possible. The font file size directly affects your site load time.
|
73 |
+
|
74 |
+
= From where can i get the font files ? =
|
75 |
+
|
76 |
+
Mostly you can download the font files from internet. There are many sites that offer fonts. One of font directory we really like is <a href="https://bit.ly/2wYjOyj" target="_blank">Ultimate Fonts</a>. They only have free fonts which are even free for commercial use.
|
77 |
|
78 |
= Does it works with multiple fonts ? =
|
79 |
|
124 |
|
125 |
== Changelog ==
|
126 |
|
127 |
+
= 5.6 =
|
128 |
+
* Added support for Generate Press, Astra and Ocean WP Theme.
|
129 |
+
* Added setting For Font Display (swap, fallback, block)
|
130 |
+
|
131 |
= 5.5 =
|
132 |
* Assign font based on language for WPML & Polylang multi lingual plugins.
|
133 |
|
uaf_config.php
CHANGED
@@ -5,6 +5,7 @@ $GLOBALS['serverUrl']['default'] = 'https://server2.dnesscarkey.org';
|
|
5 |
$GLOBALS['serverUrl']['alternative'] = 'https://server3.dnesscarkey.org';
|
6 |
$GLOBALS['supported_multi_lang_plugins'] = array(
|
7 |
'polylang/polylang.php', // POLYLANG
|
|
|
8 |
'sitepress-multilingual-cms/sitepress.php' //WPML
|
9 |
);
|
10 |
|
@@ -17,4 +18,5 @@ $GLOBALS['uaf_use_alternative_server'] = get_option('uaf_use_alternative_server
|
|
17 |
$GLOBALS['uaf_enable_multi_lang_support'] = get_option('uaf_enable_multi_lang_support');
|
18 |
$GLOBALS['uaf_server_status'] = get_option('uaf_server_status');
|
19 |
$GLOBALS['uaf_server_msg'] = get_option('uaf_server_msg');
|
|
|
20 |
?>
|
5 |
$GLOBALS['serverUrl']['alternative'] = 'https://server3.dnesscarkey.org';
|
6 |
$GLOBALS['supported_multi_lang_plugins'] = array(
|
7 |
'polylang/polylang.php', // POLYLANG
|
8 |
+
'polylang-pro/polylang.php', // POLYLANG PRO
|
9 |
'sitepress-multilingual-cms/sitepress.php' //WPML
|
10 |
);
|
11 |
|
18 |
$GLOBALS['uaf_enable_multi_lang_support'] = get_option('uaf_enable_multi_lang_support');
|
19 |
$GLOBALS['uaf_server_status'] = get_option('uaf_server_status');
|
20 |
$GLOBALS['uaf_server_msg'] = get_option('uaf_server_msg');
|
21 |
+
$GLOBALS['uaf_font_display_property'] = get_option('uaf_font_display_property');
|
22 |
?>
|
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: 5.
|
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: 5.6
|
8 |
Author URI: http://www.dineshkarki.com.np
|
9 |
*/
|
10 |
|