Use Any Font - Version 5.2

Version Description

  • Added menu option in elements list.
Download this release

Release Info

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

Code changes from version 5.1 to 5.2

includes/uaf_font_implement.php CHANGED
@@ -82,7 +82,8 @@ $fontsData = json_decode($fontsRawData, true);
82
  <tr>
83
  <td valign="top">Select elements to assign</td>
84
  <td>
85
- <input name="elements[]" value="body" type="checkbox" /> All (body tags)<br/>
 
86
  <input name="elements[]" value="h1" type="checkbox" /> Headline 1 (h1 tags)<br/>
87
  <input name="elements[]" value="h2" type="checkbox" /> Headline 2 (h2 tags)<br/>
88
  <input name="elements[]" value="h3" type="checkbox" /> Headline 3 (h3 tags)<br/>
@@ -92,7 +93,21 @@ $fontsData = json_decode($fontsRawData, true);
92
  <input name="elements[]" value="p" type="checkbox" /> Paragraphs (p tags)<br/>
93
  <input name="elements[]" value="blockquote" type="checkbox" /> Blockquotes<br/>
94
  <input name="elements[]" value="li" type="checkbox" /> Lists (li tags)<br/>
95
- <input name="elements[]" value="a" type="checkbox" /> Hyperlink (a tags)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
96
  </td>
97
  </tr>
98
  <tr>
82
  <tr>
83
  <td valign="top">Select elements to assign</td>
84
  <td>
85
+ <p><b>Normal Elements</b></p>
86
+ <input name="elements[]" value="body" type="checkbox" /> All (body tags)<br/>
87
  <input name="elements[]" value="h1" type="checkbox" /> Headline 1 (h1 tags)<br/>
88
  <input name="elements[]" value="h2" type="checkbox" /> Headline 2 (h2 tags)<br/>
89
  <input name="elements[]" value="h3" type="checkbox" /> Headline 3 (h3 tags)<br/>
93
  <input name="elements[]" value="p" type="checkbox" /> Paragraphs (p tags)<br/>
94
  <input name="elements[]" value="blockquote" type="checkbox" /> Blockquotes<br/>
95
  <input name="elements[]" value="li" type="checkbox" /> Lists (li tags)<br/>
96
+ <input name="elements[]" value="a" type="checkbox" /> Hyperlink (a tags)<br/><br/>
97
+
98
+ <p><b>Menus</b></p>
99
+ <?php
100
+ $menus = get_terms('nav_menu');
101
+ if (!empty($menus)){
102
+ foreach($menus as $menu){
103
+ ?>
104
+ <input name="elements[]" value="#menu-<?php echo $menu->slug; ?> li a, #menu-<?php echo $menu->slug; ?> li span" type="checkbox" /> <?php echo $menu->name; ?><br/>
105
+ <?php
106
+ }
107
+ } else {
108
+ echo 'No Menus Found<br/>';
109
+ }
110
+ ?>
111
  </td>
112
  </tr>
113
  <tr>
plugin_interface.php CHANGED
@@ -110,8 +110,8 @@ function uaf_activate(){
110
 
111
  function uaf_update_check() { // MUST CHANGE WITH EVERY VERSION
112
  $uaf_version_check = get_option('uaf_current_version');
113
- if ($uaf_version_check != '5.1'):
114
- update_option('uaf_current_version', '5.1');
115
  if ($uaf_version_check < 4.0):
116
  uaf_create_folder();
117
  uaf_move_file_to_newPath();
110
 
111
  function uaf_update_check() { // MUST CHANGE WITH EVERY VERSION
112
  $uaf_version_check = get_option('uaf_current_version');
113
+ if ($uaf_version_check != '5.2'):
114
+ update_option('uaf_current_version', '5.2');
115
  if ($uaf_version_check < 4.0):
116
  uaf_create_folder();
117
  uaf_move_file_to_newPath();
readme.txt CHANGED
@@ -3,7 +3,7 @@ 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.1.1
6
- Stable tag: 5.1
7
 
8
  Embed any custom font in your website. #1 Rated custom fonts plugin by WPMUDev.org.
9
 
@@ -113,6 +113,9 @@ No, our server is needed during font conversion only. After that all fonts are s
113
 
114
  == Changelog ==
115
 
 
 
 
116
  = 5.1 =
117
  * Fix url issue.
118
 
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.1.1
6
+ Stable tag: 5.2
7
 
8
  Embed any custom font in your website. #1 Rated custom fonts plugin by WPMUDev.org.
9
 
113
 
114
  == Changelog ==
115
 
116
+ = 5.2 =
117
+ * Added menu option in elements list.
118
+
119
  = 5.1 =
120
  * Fix url issue.
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: 5.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: 5.2
8
  Author URI: http://www.dineshkarki.com.np
9
  */
10