Use Any Font - Version 5.5

Version Description

  • Assign font based on language for WPML & Polylang multi lingual plugins.
Download this release

Release Info

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

Code changes from version 5.4 to 5.5

includes/uaf_font_implement.php CHANGED
@@ -6,12 +6,13 @@ if (isset($_POST['submit-uaf-implement'])){
6
  $fontsImplementData = array();
7
  endif;
8
 
9
- $fontElements = array();
10
  $fontElements[] = @join(', ',$_POST['elements']);
11
  $fontElements[] = @join(', ',array_filter(array_map('trim',explode("\n", trim($_POST['custom_elements'])))));
12
  $fontElements = array_filter(array_map('trim',$fontElements));
13
- $finalElements = join(', ', $fontElements);
14
-
 
15
  if (!empty($finalElements)){
16
  $fontsImplementData[date('ymdhis')] = array(
17
  'font_key' => $_POST['font_key'],
@@ -63,8 +64,9 @@ $fontsData = json_decode($fontsRawData, true);
63
 
64
  <div id="open_assign_font" style="display:none;">
65
  <form action="admin.php?page=uaf_settings_page" id="open_assign_font_form" method="post">
66
- <table class="uaf_form">
67
- <tr>
 
68
  <td width="175">Select Font</td>
69
  <td>
70
  <select name="font_key" class="required" style="width:200px;">
@@ -78,7 +80,18 @@ $fontsData = json_decode($fontsRawData, true);
78
  ?>
79
  </select>
80
  </td>
81
- </tr>
 
 
 
 
 
 
 
 
 
 
 
82
  <tr>
83
  <td valign="top">Select elements to assign</td>
84
  <td>
@@ -139,7 +152,7 @@ $fontsImplementData = json_decode($fontsImplementRawData, true);
139
  <table cellspacing="0" class="wp-list-table widefat fixed bookmarks">
140
  <thead>
141
  <tr>
142
- <th width="20">Sn</th>
143
  <th>Font</th>
144
  <th>Applied To</th>
145
  <th width="100">Delete</th>
6
  $fontsImplementData = array();
7
  endif;
8
 
9
+ $fontElements = array();
10
  $fontElements[] = @join(', ',$_POST['elements']);
11
  $fontElements[] = @join(', ',array_filter(array_map('trim',explode("\n", trim($_POST['custom_elements'])))));
12
  $fontElements = array_filter(array_map('trim',$fontElements));
13
+ $finalElements = join(', ', $fontElements);
14
+ $finalElements = uaf_langutizse_elements($finalElements);
15
+
16
  if (!empty($finalElements)){
17
  $fontsImplementData[date('ymdhis')] = array(
18
  'font_key' => $_POST['font_key'],
64
 
65
  <div id="open_assign_font" style="display:none;">
66
  <form action="admin.php?page=uaf_settings_page" id="open_assign_font_form" method="post">
67
+ <table class="uaf_form">
68
+
69
+ <tr>
70
  <td width="175">Select Font</td>
71
  <td>
72
  <select name="font_key" class="required" style="width:200px;">
80
  ?>
81
  </select>
82
  </td>
83
+ </tr>
84
+ <?php
85
+ global $TRP_LANGUAGE;
86
+ print_r($TRP_LANGUAGE);
87
+
88
+ $languageSelector = uaf_get_language_selector();
89
+ if ($languageSelector['enableMultiLang'] == TRUE ): ?>
90
+ <tr>
91
+ <td width="175">Select Language</td>
92
+ <td><?php echo $languageSelector['selectHTML']; ?></td>
93
+ </tr>
94
+ <?php endif; ?>
95
  <tr>
96
  <td valign="top">Select elements to assign</td>
97
  <td>
152
  <table cellspacing="0" class="wp-list-table widefat fixed bookmarks">
153
  <thead>
154
  <tr>
155
+ <th width="20">Sn</th>
156
  <th>Font</th>
157
  <th>Applied To</th>
158
  <th width="100">Delete</th>
includes/uaf_footer.php CHANGED
@@ -1,4 +1,45 @@
1
  <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  $server_status = $GLOBALS['uaf_server_status'];
3
  if (isset($_POST['test_server']) || empty($server_status)){
4
  if (in_array ('curl', get_loaded_extensions())) {
@@ -58,7 +99,7 @@ if (isset($_POST['test_server']) || empty($server_status)){
58
  <form method="post" action="">
59
  <tr>
60
  <td>
61
- <input type="checkbox" name="uaf_use_alternative_server" value="1" <?php echo $GLOBALS['uaf_use_alternative_server'] == 1?'checked=checked':''; ?> /> Use alternative server. <em>Only use when you are unable to upload the font using both Default Js and PHP Uploader or verify API key.</em>
62
  </td>
63
  </tr>
64
 
@@ -76,14 +117,15 @@ if (isset($_POST['test_server']) || empty($server_status)){
76
 
77
  <tr>
78
  <td>
79
- <input type="checkbox" name="uaf_disbale_editor_font_list" value="1" <?php echo $GLOBALS['uaf_disbale_editor_font_list'] == 1?'checked=checked':''; ?> /> Disable Font list in wordpress editor. <em>When you have conflict with wordpress editor.</em>
80
  </td>
81
  </tr>
82
-
83
-
84
-
85
-
86
-
 
87
  <tr>
88
  <td><input type="submit" name="submit-uaf-settings" class="button-primary" value="Save Settings" /></td>
89
  </tr>
1
  <?php
2
+ if (isset($_POST['submit-uaf-settings'])){
3
+ if (isset($_POST['uaf_disbale_editor_font_list'])){
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'];
44
  if (isset($_POST['test_server']) || empty($server_status)){
45
  if (in_array ('curl', get_loaded_extensions())) {
99
  <form method="post" action="">
100
  <tr>
101
  <td>
102
+ <input type="checkbox" name="uaf_use_alternative_server" value="1" <?php echo $GLOBALS['uaf_use_alternative_server'] == 1?'checked=checked':''; ?> /> Use alternative server. <strong><em>( When you are unable to upload the font using both Default Js and PHP Uploader or verify API key. )</em></strong>
103
  </td>
104
  </tr>
105
 
117
 
118
  <tr>
119
  <td>
120
+ <input type="checkbox" name="uaf_disbale_editor_font_list" value="1" <?php echo $GLOBALS['uaf_disbale_editor_font_list'] == 1?'checked=checked':''; ?> /> Disable Font list in wordpress editor. <strong><em>( When you have conflict with wordpress editor. )</em></strong>
121
  </td>
122
  </tr>
123
+
124
+ <tr>
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>
includes/uaf_functions.php CHANGED
@@ -116,8 +116,8 @@ 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.4'):
120
- update_option('uaf_current_version', '5.4');
121
  if ($uaf_version_check < 4.0):
122
  uaf_create_folder();
123
  uaf_move_file_to_newPath();
@@ -353,4 +353,110 @@ function uaf_delete_font(){
353
  $return['body'] = 'Font Deleted';
354
  uaf_write_css();
355
  return $return;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
356
  }
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.5'):
120
+ update_option('uaf_current_version', '5.5');
121
  if ($uaf_version_check < 4.0):
122
  uaf_create_folder();
123
  uaf_move_file_to_newPath();
353
  $return['body'] = 'Font Deleted';
354
  uaf_write_css();
355
  return $return;
356
+ }
357
+
358
+ function uaf_get_language_selector(){
359
+ $enableMultiLang = '';
360
+ $returnSelectHTML = '';
361
+ if ($GLOBALS['uaf_enable_multi_lang_support'] == 1){
362
+ $enableMultiLang = TRUE;
363
+ $supported_multi_lang_plugins = $GLOBALS['supported_multi_lang_plugins'];
364
+ foreach ($supported_multi_lang_plugins as $key => $plugin_name) {
365
+ if (is_plugin_active($plugin_name)){
366
+ $active_multi_lang_plugin = $plugin_name;
367
+ }
368
+ //echo $active_multi_lang_plugin;
369
+ }
370
+
371
+ if (isset($active_multi_lang_plugin)){
372
+ switch ($active_multi_lang_plugin) {
373
+ case 'polylang/polylang.php': // WHEN POLYLANG PLUGIN IS ACTIVATED.
374
+ $active_languages = pll_languages_list(array('fields'=>''));
375
+ foreach ($active_languages as $key => $active_language) {
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) {
382
+ $lang_select_data[str_replace('_', '-',$active_language['default_locale'])] = $active_language['translated_name'].' ('.$active_language["native_name"].')';
383
+ }
384
+ break;
385
+ }
386
+
387
+ $returnSelectHTML = '<select style="width:200px;" class="required" name="language"><option selected="selected" value="">- Select - </option><option value="all_lang">All Languages</option>';
388
+ foreach ($lang_select_data as $locale => $lang_name) {
389
+ //$returnSelectHTML .= '<option value="body.language-'.$locale.'">'.$lang_name.'</option>';
390
+ $returnSelectHTML .= '<option value="html:lang('.$locale.')">'.$lang_name.'</option>';
391
+ }
392
+ $returnSelectHTML .= '</select>';
393
+ } else {
394
+ $returnSelectHTML = "You don't have multi lingual plugin active which is supported by Use Any Font.";
395
+ }
396
+ }
397
+
398
+
399
+ $return['enableMultiLang'] = $enableMultiLang;
400
+ $return['selectHTML'] = $returnSelectHTML;
401
+ return $return;
402
+ }
403
+
404
+ function uaf_langutizse_elements($finalElements){
405
+ if (isset($_POST['language']) && ($_POST['language'] != 'all_lang')){
406
+ $finalElementArray = explode(',', $finalElements);
407
+ $finalElementArray = array_map('trim', $finalElementArray);
408
+ $prefixed_array = preg_filter('/^/', $_POST['language'].' ', $finalElementArray);
409
+ $finalElements = join(', ', $prefixed_array);
410
+ }
411
+ return $finalElements;
412
+ }
413
+
414
+ function uaf_save_settings(){
415
+ if (isset($_POST['submit-uaf-settings'])){
416
+ if (isset($_POST['uaf_disbale_editor_font_list'])){
417
+ $uaf_disbale_editor_font_list = 1;
418
+ } else {
419
+ $uaf_disbale_editor_font_list = '';
420
+ }
421
+
422
+ if (isset($_POST['uaf_use_curl_uploader'])){
423
+ $uaf_use_curl_uploader = 1;
424
+ } else {
425
+ $uaf_use_curl_uploader = '';
426
+ }
427
+
428
+ if (isset($_POST['uaf_use_absolute_font_path'])){
429
+ $uaf_use_absolute_font_path = 1;
430
+ } else {
431
+ $uaf_use_absolute_font_path = '';
432
+ }
433
+
434
+ if (isset($_POST['uaf_use_alternative_server'])){
435
+ $uaf_use_alternative_server = 1;
436
+ } else {
437
+ $uaf_use_alternative_server = '';
438
+ }
439
+
440
+ if (isset($_POST['uaf_enable_multi_lang_support'])){
441
+ $uaf_enable_multi_lang_support = 1;
442
+ } else {
443
+ $uaf_enable_multi_lang_support = '';
444
+ }
445
+
446
+ update_option('uaf_disbale_editor_font_list', $uaf_disbale_editor_font_list);
447
+ update_option('uaf_use_curl_uploader', $uaf_use_curl_uploader);
448
+ update_option('uaf_use_absolute_font_path', $uaf_use_absolute_font_path);
449
+ update_option('uaf_use_alternative_server', $uaf_use_alternative_server);
450
+ update_option('uaf_enable_multi_lang_support', $uaf_enable_multi_lang_support);
451
+
452
+ $GLOBALS['uaf_disbale_editor_font_list'] = $uaf_disbale_editor_font_list;
453
+ $GLOBALS['uaf_use_curl_uploader'] = $uaf_use_curl_uploader;
454
+ $GLOBALS['uaf_use_absolute_font_path'] = $uaf_use_absolute_font_path;
455
+ $GLOBALS['uaf_use_alternative_server'] = $uaf_use_alternative_server;
456
+ $GLOBALS['uaf_enable_multi_lang_support'] = $uaf_enable_multi_lang_support;
457
+
458
+ $settings_message = 'Settings Saved';
459
+
460
+ uaf_write_css(); // Need to rewrite css for uaf_use_relative_font_path setting change
461
+ }
462
  }
plugin_interface.php CHANGED
@@ -1,64 +1,16 @@
1
  <?php
2
- if (isset($_POST['submit-uaf-settings'])){
3
- if (isset($_POST['uaf_disbale_editor_font_list'])){
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
- update_option('uaf_disbale_editor_font_list', $uaf_disbale_editor_font_list);
28
- update_option('uaf_use_curl_uploader', $uaf_use_curl_uploader);
29
- update_option('uaf_use_absolute_font_path', $uaf_use_absolute_font_path);
30
- update_option('uaf_use_alternative_server', $uaf_use_alternative_server);
31
- $settings_message = 'Settings Saved';
32
-
33
- uaf_write_css(); // Need to rewrite css for uaf_use_relative_font_path setting change
34
- }
35
-
36
-
37
  add_action('admin_menu', 'uaf_create_menu');
38
  add_action("admin_print_scripts", 'adminjslibs');
39
  add_action("admin_print_styles", 'adminCsslibs');
40
  add_action('wp_enqueue_scripts', 'uaf_client_css');
41
  add_action('plugins_loaded', 'uaf_update_check');
42
  add_action('init', 'uaf_editor_setup');
43
- //add_action('admin_notices', 'uaf_api_notification');
44
 
45
  if (isset($_GET['uaf_api_notification_hide']) == 1){
46
  update_option('uaf_api_notification_hide','yes_2');
47
  }
48
 
49
- /*
50
- function uaf_api_notification(){
51
- if (get_option('uaf_api_notification_hide') != 'yes_2'){
52
- echo '<div class="updated">
53
- <p style="color:#900;"><b>Use Any Font</b></p>
54
- <p>
55
- Premium Key that were bought before 24th Sep, 2018 will no longer work in Use Any Font 5.0. So please get your replacement key <a href="https://dineshkarki.com.np/use-any-font/api-key" target="_blank"><b>here</b></a>. You do not need to pay again. Use your old Premium Key as Discount Coupon and it will apply 100% discount. We are sorry for the inconvenience caused.</p><p>
56
- <a style="display:block;text-align:right;" href="admin.php?page=uaf_settings_page&uaf_api_notification_hide=1">Hide This Message</a></p>
57
- </div>';
58
- }
59
- }
60
- */
61
-
62
  $uaf_disbale_editor_font_list_value = get_option('uaf_disbale_editor_font_list');
63
  if ($uaf_disbale_editor_font_list_value != 1):
64
  add_filter('mce_buttons_2', 'wp_editor_fontsize_filter');
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');
6
  add_action('wp_enqueue_scripts', 'uaf_client_css');
7
  add_action('plugins_loaded', 'uaf_update_check');
8
  add_action('init', 'uaf_editor_setup');
 
9
 
10
  if (isset($_GET['uaf_api_notification_hide']) == 1){
11
  update_option('uaf_api_notification_hide','yes_2');
12
  }
13
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  $uaf_disbale_editor_font_list_value = get_option('uaf_disbale_editor_font_list');
15
  if ($uaf_disbale_editor_font_list_value != 1):
16
  add_filter('mce_buttons_2', 'wp_editor_fontsize_filter');
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === Use Any Font [ Freemium ] ===
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: 5.3.2
6
- Stable tag: 5.4
7
 
8
  Embed any custom font in your website. #1 Rated custom fonts plugin by WPMUDev.org.
9
 
@@ -31,6 +31,7 @@ Use Any Font gives you freedom to use custom fonts in your website. It is not li
31
  * Embed fonts using @font-face css. SEO friendly and quick loading due to woff2 compression.
32
  * Multiple custom fonts can be used.
33
  * Faster load time as your custom fonts are stored on your own server.
 
34
 
35
  <strong>Support</strong>
36
 
@@ -85,7 +86,10 @@ You can check video for more details.
85
 
86
  = Does it works with any theme ? =
87
 
88
- Its built in Font Upload and Font assign section allows you to assign custom fonts to any theme. However, for popular 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>, we have added extra features that allows you to assign the custom font to your theme using the theme options panel.
 
 
 
89
 
90
  = Where are my fonts stored ? =
91
 
@@ -113,6 +117,9 @@ No, our server is needed during font conversion only. After that all fonts are s
113
 
114
  == Changelog ==
115
 
 
 
 
116
  = 5.4 =
117
  * Font upload supported upto 25 MB.
118
  * Use of woff2 compression for better and faster font loading.
1
  === Use Any Font [ Freemium ] ===
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.3.2
6
+ Stable tag: 5.5
7
 
8
  Embed any custom font in your website. #1 Rated custom fonts plugin by WPMUDev.org.
9
 
31
  * Embed fonts using @font-face css. SEO friendly and quick loading due to woff2 compression.
32
  * Multiple custom fonts can be used.
33
  * Faster load time as your custom fonts are stored on your own server.
34
+ * Supports font assign based on language for WPML and Polylang multi language plugin.
35
 
36
  <strong>Support</strong>
37
 
86
 
87
  = Does it works with any theme ? =
88
 
89
+ Its built-in Font Upload and Font assign section allows you to assign custom fonts to any theme. However, for popular 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>, we have added extra features that allows you to assign the custom font to your theme using the theme options panel.
90
+
91
+ = Can I assign font based on language ? =
92
+ Ya, Our plugin allows you to assign font based on language. It currently supports WPML and Ploylang. If you are using some others multi lingual plugin, please do contact us and we will try to integrate with our plugin.
93
 
94
  = Where are my fonts stored ? =
95
 
117
 
118
  == Changelog ==
119
 
120
+ = 5.5 =
121
+ * Assign font based on language for WPML & Polylang multi lingual plugins.
122
+
123
  = 5.4 =
124
  * Font upload supported upto 25 MB.
125
  * Use of woff2 compression for better and faster font loading.
uaf_config.php CHANGED
@@ -3,7 +3,10 @@ $GLOBALS['allowedFontFormats'] = array ('ttf','otf','woff');
3
  $GLOBALS['allowedFontSize'] = 25;
4
  $GLOBALS['serverUrl']['default'] = 'https://server2.dnesscarkey.org';
5
  $GLOBALS['serverUrl']['alternative'] = 'https://server3.dnesscarkey.org';
6
-
 
 
 
7
 
8
  // FROM DATABASE RECORDS
9
  $GLOBALS['uaf_api_key'] = get_option('uaf_api_key');
@@ -11,6 +14,7 @@ $GLOBALS['uaf_disbale_editor_font_list'] = get_option('uaf_disbale_editor_font_l
11
  $GLOBALS['uaf_use_curl_uploader'] = get_option('uaf_use_curl_uploader');
12
  $GLOBALS['uaf_use_absolute_font_path'] = get_option('uaf_use_absolute_font_path');
13
  $GLOBALS['uaf_use_alternative_server'] = get_option('uaf_use_alternative_server');
 
14
  $GLOBALS['uaf_server_status'] = get_option('uaf_server_status');
15
  $GLOBALS['uaf_server_msg'] = get_option('uaf_server_msg');
16
  ?>
3
  $GLOBALS['allowedFontSize'] = 25;
4
  $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
 
11
  // FROM DATABASE RECORDS
12
  $GLOBALS['uaf_api_key'] = get_option('uaf_api_key');
14
  $GLOBALS['uaf_use_curl_uploader'] = get_option('uaf_use_curl_uploader');
15
  $GLOBALS['uaf_use_absolute_font_path'] = get_option('uaf_use_absolute_font_path');
16
  $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
  ?>
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.4
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.5
8
  Author URI: http://www.dineshkarki.com.np
9
  */
10