Use Any Font - Version 4.9.2

Version Description

  • Adds custom fonts to typography of Themify and Beaver Page Builder
Download this release

Release Info

Developer dnesscarkey
Plugin Icon 128x128 Use Any Font
Version 4.9.2
Comparing to
See all releases

Code changes from version 4.9.1 to 4.9.2

includes/uaf_editor_setup.php CHANGED
@@ -105,4 +105,38 @@ function uaf_send_fonts_elementor_list( $controls_registry ) {
105
  $new_fonts = array_merge($fonts_uaf, $fonts );
106
  $controls_registry->get_control( 'font' )->set_settings( 'options', $new_fonts );
107
  }
108
- add_action( 'elementor/controls/controls_registered', 'uaf_send_fonts_elementor_list', 10, 1 );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
105
  $new_fonts = array_merge($fonts_uaf, $fonts );
106
  $controls_registry->get_control( 'font' )->set_settings( 'options', $new_fonts );
107
  }
108
+ add_action( 'elementor/controls/controls_registered', 'uaf_send_fonts_elementor_list', 10, 1 );
109
+
110
+ // Beaver Builder
111
+ add_filter('fl_builder_font_families_system', 'uaf_send_fonts_beaver_builder_list',10,2);
112
+ function uaf_send_fonts_beaver_builder_list($fonts){
113
+ $fontsRawData = get_option('uaf_font_data');
114
+ $fontsData = json_decode($fontsRawData, true);
115
+ $fonts_uaf = array();
116
+ if (!empty($fontsData)):
117
+ foreach ($fontsData as $key=>$fontData):
118
+ $fonts_uaf[$fontData['font_name']] = array(
119
+ 'fallback' => 'Verdana, Arial, sans-serif',
120
+ 'weights' => array('400')
121
+ );
122
+ endforeach;
123
+ endif;
124
+ return array_merge($fonts_uaf,$fonts);
125
+ }
126
+
127
+ // Themify Builder
128
+ add_filter('themify_get_web_safe_font_list', 'uaf_send_fonts_themify_builder_list',10,2);
129
+ function uaf_send_fonts_themify_builder_list($fonts){
130
+ $fontsRawData = get_option('uaf_font_data');
131
+ $fontsData = json_decode($fontsRawData, true);
132
+ $fonts_uaf = array();
133
+ if (!empty($fontsData)):
134
+ foreach ($fontsData as $key=>$fontData):
135
+ $fonts_uaf[] = array(
136
+ 'value' => $fontData['font_name'],
137
+ 'name' => $fontData['font_name']
138
+ );
139
+ endforeach;
140
+ endif;
141
+ return array_merge($fonts_uaf,$fonts);
142
+ }
plugin_interface.php CHANGED
@@ -92,8 +92,8 @@ function uaf_activate(){
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.9.1'):
96
- update_option('uaf_current_version', '4.9.1');
97
  if ($uaf_version_check < 4.0):
98
  uaf_create_folder();
99
  uaf_move_file_to_newPath();
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.9.2'):
96
+ update_option('uaf_current_version', '4.9.2');
97
  if ($uaf_version_check < 4.0):
98
  uaf_create_folder();
99
  uaf_move_file_to_newPath();
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
4
  Requires at least: 3.0
5
- Tested up to: 4.9.1
6
- Stable tag: 4.9.1
7
 
8
  Embed any custom font in your website. #1 Rated custom fonts plugin by WPMUDev.org.
9
 
@@ -19,7 +19,12 @@ Use Any Font gives you freedom to use custom fonts in your website. It is not li
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>, <a href="https://wordpress.org/plugins/elementor/" target="_blank">Elementor Page Builder</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.
@@ -108,6 +113,9 @@ No, our server is needed during font conversion only. After that all fonts are s
108
 
109
  == Changelog ==
110
 
 
 
 
111
  = 4.9.1 =
112
  * Adds custom fonts to typography of Elemenator Page Builder
113
 
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.9.2
6
+ Stable tag: 4.9.2
7
 
8
  Embed any custom font in your website. #1 Rated custom fonts plugin by WPMUDev.org.
9
 
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,
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>, and any visual builder using the class.
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 15 MB.
113
 
114
  == Changelog ==
115
 
116
+ = 4.9.2 =
117
+ * Adds custom fonts to typography of Themify and Beaver Page Builder
118
+
119
  = 4.9.1 =
120
  * Adds custom fonts to typography of Elemenator Page Builder
121
 
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.9.1
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.9.2
8
  Author URI: http://www.dineshkarki.com.np
9
  */
10