Use Any Font - Version 5.10

Version Description

  • Added support for Gutenberg Editor using class.
  • Added support for Revolution Slider. Now you can select font family directly from Revolution slider to assign font.
Download this release

Release Info

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

Code changes from version 5.9 to 5.10

includes/uaf_editor_setup.php CHANGED
@@ -1,4 +1,6 @@
1
  <?php
 
 
2
  // DEFAULT WORDPRESS EDITOR
3
  function uaf_mce_before_init( $init_array ) {
4
  $theme_advanced_fonts = '';
@@ -188,4 +190,21 @@ function uaf_kirki_custom_fonts($standard_fonts) {
188
  endforeach;
189
  endif;
190
  return array_merge_recursive( $fonts_uaf, $standard_fonts );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
191
  }
1
  <?php
2
+ add_action('enqueue_block_editor_assets', 'uaf_client_css'); // FOR GUTENBERG EDITOR
3
+
4
  // DEFAULT WORDPRESS EDITOR
5
  function uaf_mce_before_init( $init_array ) {
6
  $theme_advanced_fonts = '';
190
  endforeach;
191
  endif;
192
  return array_merge_recursive( $fonts_uaf, $standard_fonts );
193
+ }
194
+
195
+ // REVOLUTION SLIDER
196
+ add_filter( 'revslider_data_get_font_familys', 'uaf_revslider_custom_fonts', 20 );
197
+ function uaf_revslider_custom_fonts($fonts) {
198
+ $fontsData = uaf_get_uploaded_font_data();
199
+ $fonts_uaf = array();
200
+ if (!empty($fontsData)):
201
+ foreach ($fontsData as $key=>$fontData):
202
+ $fonts_uaf[] = array(
203
+ 'type' => 'Use Any Font',
204
+ 'version' => 'Serif Fonts',
205
+ 'label' => $fontData['font_name']
206
+ );
207
+ endforeach;
208
+ endif;
209
+ return array_merge($fonts_uaf,$fonts);
210
  }
includes/uaf_functions.php CHANGED
@@ -117,8 +117,8 @@ function uaf_write_css(){
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.9'):
121
- update_option('uaf_current_version', '5.9');
122
  if ($uaf_version_check < 4.0):
123
  uaf_create_folder();
124
  uaf_move_file_to_newPath();
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.10'):
121
+ update_option('uaf_current_version', '5.10');
122
  if ($uaf_version_check < 4.0):
123
  uaf_create_folder();
124
  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, woff2
4
  Requires at least: 3.0
5
- Tested up to: 5.4
6
- Stable tag: 5.9
7
 
8
  Embed any custom font in your website. #1 Rated custom fonts plugin by WPMUDev.org with auto converted woff2 compression for faster font loading.
9
 
@@ -19,7 +19,7 @@ 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, 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 custom fonts 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>,
@@ -29,6 +29,7 @@ Use Any Font gives you freedom to use custom fonts in your website. It is not li
29
  <a href="https://wordpress.org/themes/generatepress/" target="_blank">Generate Press</a>,
30
  <a href="https://wordpress.org/themes/astra/" target="_blank">Astra Theme</a>,
31
  <a href="https://wordpress.org/themes/oceanwp/" target="_blank">Ocean WP Theme</a>,
 
32
  and any visual builder using the class.
33
  * Custom fonts uploaded can be directly used from Theme options panel for major themeforest themes like <a href="https://bit.ly/3auJKzt" target="_blank">Avada, X Theme, Flatsome, Salient, Porto, Shopkeeper, Oshine, WPLMS Learning Management System Theme, KLEO, WoodMart, ListingPro, SimpleMag, ROSA 1, 907, Voice, Grand Restaurant, LeadEngine, Service Finder, MagPlus, Hostiko, Adifier, Puca, GreenMart, Reco, VidoRev, Halena and many more known themes. (1000+). Check out full list here.</a>
34
  * Supports font format including ttf, otf, woff. The required fonts are converted automatically.
@@ -59,10 +60,10 @@ We don't respond to support tickets created here. Please visit our <a href="http
59
  You can use <strong>uaf_get_font_families();</strong> function to get the list of custom fonts uploaded with Use Any Font. You can add it in your font family select box or list.
60
 
61
  <em>if (function_exists('uaf_get_font_families')){
62
- $uaf_font_families = uaf_get_font_families(); // Return Array
63
  }</em>
64
 
65
- Please do write us after integration and we will add it in our supported list.
66
 
67
  == Installation ==
68
 
@@ -143,6 +144,10 @@ Please do write us after integration and we will add it in our supported list.
143
 
144
  == Changelog ==
145
 
 
 
 
 
146
  = 5.9 =
147
  * Support for all themes that uses Redux and kirki framework. Full list <a href="https://bit.ly/3auJKzt" target="_blank">here</a>.
148
 
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.1
6
+ Stable tag: 5.10
7
 
8
  Embed any custom font in your website. #1 Rated custom fonts plugin by WPMUDev.org with auto converted woff2 compression for faster font loading.
9
 
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 custom fonts directly from Wordpress Editor, Gutenberg 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>,
29
  <a href="https://wordpress.org/themes/generatepress/" target="_blank">Generate Press</a>,
30
  <a href="https://wordpress.org/themes/astra/" target="_blank">Astra Theme</a>,
31
  <a href="https://wordpress.org/themes/oceanwp/" target="_blank">Ocean WP Theme</a>,
32
+ <a href="https://bit.ly/3auJKzt" target="_blank">Revolution Slider</a>,
33
  and any visual builder using the class.
34
  * Custom fonts uploaded can be directly used from Theme options panel for major themeforest themes like <a href="https://bit.ly/3auJKzt" target="_blank">Avada, X Theme, Flatsome, Salient, Porto, Shopkeeper, Oshine, WPLMS Learning Management System Theme, KLEO, WoodMart, ListingPro, SimpleMag, ROSA 1, 907, Voice, Grand Restaurant, LeadEngine, Service Finder, MagPlus, Hostiko, Adifier, Puca, GreenMart, Reco, VidoRev, Halena and many more known themes. (1000+). Check out full list here.</a>
35
  * Supports font format including ttf, otf, woff. The required fonts are converted automatically.
60
  You can use <strong>uaf_get_font_families();</strong> function to get the list of custom fonts uploaded with Use Any Font. You can add it in your font family select box or list.
61
 
62
  <em>if (function_exists('uaf_get_font_families')){
63
+ $uaf_font_families = uaf_get_font_families(); // Returns Array
64
  }</em>
65
 
66
+ Please do write us after integration and we will add it in our supported list and create a discount code for your users.
67
 
68
  == Installation ==
69
 
144
 
145
  == Changelog ==
146
 
147
+ = 5.10 =
148
+ * Added support for Gutenberg Editor using class.
149
+ * Added support for Revolution Slider. Now you can select font family directly from Revolution slider to assign font.
150
+
151
  = 5.9 =
152
  * Support for all themes that uses Redux and kirki framework. Full list <a href="https://bit.ly/3auJKzt" target="_blank">here</a>.
153
 
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.9
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.10
8
  Author URI: http://www.dineshkarki.com.np
9
  */
10