Use Any Font - Version 6.2.95

Version Description

  • Fixed cache issue.
  • Added Font list for Kadence Theme and Blocks.
Download this release

Release Info

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

Code changes from version 6.2.94 to 6.2.95

includes/functions/uaf_admin_functions.php CHANGED
@@ -129,7 +129,7 @@ function uaf_plugin_initialize(){
129
  }
130
  uaf_get_options();
131
  uaf_trigger_actions();
132
- uaf_check_site_url();
133
 
134
  include UAF_FILE_PATH.'includes/functions/uaf_editor_functions.php'; // EDITOR FILTERS AND HOOKS
135
  }
129
  }
130
  uaf_get_options();
131
  uaf_trigger_actions();
132
+ //uaf_check_site_url();
133
 
134
  include UAF_FILE_PATH.'includes/functions/uaf_editor_functions.php'; // EDITOR FILTERS AND HOOKS
135
  }
includes/functions/uaf_editor_functions.php CHANGED
@@ -263,4 +263,35 @@ function uaf_presscore_options_custom_fonts($fonts) {
263
  else:
264
  return $fonts;
265
  endif;
266
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
263
  else:
264
  return $fonts;
265
  endif;
266
+ }
267
+
268
+ // Kadence Theme And Block
269
+
270
+ // Add custom font to blocks
271
+ function uaf_kadence_custom_fonts( $fonts ) {
272
+ $fontsData = uaf_group_fontdata_by_fontname(uaf_get_uploaded_font_data());
273
+ $fonts_uaf = array();
274
+
275
+ if (!empty($fontsData)):
276
+ foreach ($fontsData as $fontName=>$fontData):
277
+ $variationStyles = array();
278
+ foreach ($fontData as $fontVariationKey => $fontVariationData){
279
+ if (array_key_exists('font_weight',$fontVariationData)){
280
+ $variationStyles[] = $fontVariationData['font_weight'];
281
+ } else {
282
+ $variationStyles[] = '400';
283
+ }
284
+ }
285
+ $fonts_uaf[$fontName] = array(
286
+ 'fallback' => 'helvetica, arial, sans-serif',
287
+ 'weights' => $variationStyles
288
+ );
289
+ endforeach;
290
+ endif;
291
+ return array_merge($fonts_uaf,$fonts);
292
+
293
+ }
294
+ add_filter( 'kadence_blocks_add_custom_fonts', 'uaf_kadence_custom_fonts' );
295
+ add_filter( 'kadence_theme_add_custom_fonts', 'uaf_kadence_custom_fonts' );
296
+
297
+ // EOF Kadence Theme And Block
includes/uaf_config.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  if ( ! defined( 'ABSPATH' ) ) exit;
3
 
4
- $GLOBALS['uaf_current_version'] = '6.2.94';
5
 
6
 
7
  $GLOBALS['uaf_fix_settings'] = array(
1
  <?php
2
  if ( ! defined( 'ABSPATH' ) ) exit;
3
 
4
+ $GLOBALS['uaf_current_version'] = '6.2.95';
5
 
6
 
7
  $GLOBALS['uaf_fix_settings'] = array(
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: dnesscarkey
3
  Tags: custom fonts, font embed, font uploader, typography, install font
4
  Requires at least: 3.0
5
- Tested up to: 6.0
6
- Stable tag: 6.2.94
7
 
8
  Embed any custom font using font uploader and assign to elements. Upload font in 1 format and other needed formats are auto converted even woff2.
9
 
@@ -25,6 +25,7 @@ Use Any Font gives you freedom to intall custom fonts in your wordpress website.
25
  <a href="https://wordpress.org/plugins/elementor/" title="Elementor Page Builder" target="_blank">Elementor Page Builder</a>,
26
  <a href="https://www.wpbeaverbuilder.com/?fla=2054&campaign=use-any-font" title="custom font in Beaver Builder" target="_blank">Beaver Builder</a>,
27
  <a href="https://themify.me/member/aff/go/dnesscarkey/?cr=aHR0cHM6Ly90aGVtaWZ5Lm1lL2J1aWxkZXI=" title="custom font in Themify Builder" target="_blank">Themify Builder</a>,
 
28
  <a href="https://oxygenbuilder.com/" title="custom font in Oxygen Builder" target="_blank">Oxygen Builder</a>,
29
  <a href="https://wordpress.org/themes/generatepress/" title="custom font in Generate Press" target="_blank">Generate Press</a>,
30
  <a href="https://wordpress.org/themes/astra/" title="custom font in Astra Theme" target="_blank">Astra Theme</a>,
@@ -148,6 +149,10 @@ Please do write us after integration and we will add it in our supported list.
148
 
149
  == Changelog ==
150
 
 
 
 
 
151
  = 6.2.94 =
152
  * Fixed Beaver weight selection issue.
153
 
2
  Contributors: dnesscarkey
3
  Tags: custom fonts, font embed, font uploader, typography, install font
4
  Requires at least: 3.0
5
+ Tested up to: 6.0.1
6
+ Stable tag: 6.2.95
7
 
8
  Embed any custom font using font uploader and assign to elements. Upload font in 1 format and other needed formats are auto converted even woff2.
9
 
25
  <a href="https://wordpress.org/plugins/elementor/" title="Elementor Page Builder" target="_blank">Elementor Page Builder</a>,
26
  <a href="https://www.wpbeaverbuilder.com/?fla=2054&campaign=use-any-font" title="custom font in Beaver Builder" target="_blank">Beaver Builder</a>,
27
  <a href="https://themify.me/member/aff/go/dnesscarkey/?cr=aHR0cHM6Ly90aGVtaWZ5Lm1lL2J1aWxkZXI=" title="custom font in Themify Builder" target="_blank">Themify Builder</a>,
28
+ <a href="https://wordpress.org/themes/kadence/" title="custom font in Kadence Theme and Kadence Blocks" target="_blank">Kadence Theme and Blocks</a>,
29
  <a href="https://oxygenbuilder.com/" title="custom font in Oxygen Builder" target="_blank">Oxygen Builder</a>,
30
  <a href="https://wordpress.org/themes/generatepress/" title="custom font in Generate Press" target="_blank">Generate Press</a>,
31
  <a href="https://wordpress.org/themes/astra/" title="custom font in Astra Theme" target="_blank">Astra Theme</a>,
149
 
150
  == Changelog ==
151
 
152
+ = 6.2.95 =
153
+ * Fixed cache issue.
154
+ * Added Font list for Kadence Theme and Blocks.
155
+
156
  = 6.2.94 =
157
  * Fixed Beaver weight selection issue.
158
 
use-any-font.php CHANGED
@@ -5,7 +5,7 @@ Plugin Name: Use Any Font
5
  Plugin URI: https://dineshkarki.com.np/use-any-font
6
  Description: Embed any font in your website
7
  Author: Dnesscarkey
8
- Version: 6.2.94
9
  Author URI: https://dineshkarki.com.np/use-any-font
10
  */
11
 
5
  Plugin URI: https://dineshkarki.com.np/use-any-font
6
  Description: Embed any font in your website
7
  Author: Dnesscarkey
8
+ Version: 6.2.95
9
  Author URI: https://dineshkarki.com.np/use-any-font
10
  */
11