Use Any Font - Version 6.1.5

Version Description

  • Added custom font support for The7 Theme (https://the7.io/)
Download this release

Release Info

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

Code changes from version 6.1.4 to 6.1.5

includes/functions/uaf_editor_functions.php CHANGED
@@ -230,4 +230,21 @@ function uaf_wpbakery_custom_fonts($fonts) {
230
  endif;
231
  $fonts_uaf = json_decode (json_encode ($fonts_uaf), FALSE);
232
  return array_merge($fonts_uaf,$fonts);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
233
  }
230
  endif;
231
  $fonts_uaf = json_decode (json_encode ($fonts_uaf), FALSE);
232
  return array_merge($fonts_uaf,$fonts);
233
+ }
234
+
235
+ // FOR THE7 and presscore options framework
236
+
237
+
238
+
239
+ apply_filters( 'presscore_options_get_safe_fonts', $fonts);
240
+ add_filter('presscore_options_get_safe_fonts', 'uaf_presscore_options_custom_fonts');
241
+ function uaf_presscore_options_custom_fonts($fonts) {
242
+ $fontsData = uaf_get_font_families();
243
+
244
+ if (!empty($fontsData)):
245
+ foreach ($fontsData as $key=>$fontName):
246
+ $fonts_uaf[$fontName] = $fontName;
247
+ endforeach;
248
+ endif;
249
+ return array_merge($fonts_uaf,$fonts);
250
  }
includes/uaf_config.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  if ( ! defined( 'ABSPATH' ) ) exit;
3
 
4
- $GLOBALS['uaf_current_version'] = '6.1.4';
5
 
6
 
7
  $GLOBALS['uaf_fix_settings'] = array(
1
  <?php
2
  if ( ! defined( 'ABSPATH' ) ) exit;
3
 
4
+ $GLOBALS['uaf_current_version'] = '6.1.5';
5
 
6
 
7
  $GLOBALS['uaf_fix_settings'] = array(
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: dnesscarkey
3
  Tags: custom fonts, font embed, font uploader, typography, install font
4
  Requires at least: 3.0
5
  Tested up to: 5.8
6
- Stable tag: 6.1.4
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
 
@@ -143,6 +143,9 @@ Please do write us after integration and we will add it in our supported list.
143
 
144
  == Changelog ==
145
 
 
 
 
146
  = 6.1.4 =
147
  * Added hide key button.
148
  * Fixed cache being cleared for multi language sites when language was changed.
3
  Tags: custom fonts, font embed, font uploader, typography, install font
4
  Requires at least: 3.0
5
  Tested up to: 5.8
6
+ Stable tag: 6.1.5
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
 
143
 
144
  == Changelog ==
145
 
146
+ = 6.1.5 =
147
+ * Added custom font support for The7 Theme (https://the7.io/)
148
+
149
  = 6.1.4 =
150
  * Added hide key button.
151
  * Fixed cache being cleared for multi language sites when language was changed.
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.1.4
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.1.5
9
  Author URI: https://dineshkarki.com.np/use-any-font
10
  */
11