Custom Fonts - Version 1.2.1

Version Description

  • Improvement: Hardened the security of plugin
  • Improvement: Compatibility with latest WordPress PHP_CodeSniffer rules
Download this release

Release Info

Developer brainstormworg
Plugin Icon 128x128 Custom Fonts
Version 1.2.1
Comparing to
See all releases

Code changes from version 1.2.0 to 1.2.1

classes/class-bsf-custom-fonts-render.php CHANGED
@@ -6,7 +6,9 @@
6
* @package Bsf_Custom_Fonts
7
*/
8
9
- defined( 'ABSPATH' ) or exit;
10
11
if ( ! class_exists( 'Bsf_Custom_Fonts_Render' ) ) :
12
@@ -21,7 +23,7 @@ if ( ! class_exists( 'Bsf_Custom_Fonts_Render' ) ) :
21
* @since 1.0.0
22
* @var (Object) Bsf_Custom_Fonts_Render
23
*/
24
- private static $_instance = null;
25
26
/**
27
* Font base.
@@ -48,11 +50,11 @@ if ( ! class_exists( 'Bsf_Custom_Fonts_Render' ) ) :
48
* @return object Class object.
49
*/
50
public static function get_instance() {
51
- if ( ! isset( self::$_instance ) ) {
52
- self::$_instance = new self();
53
}
54
55
- return self::$_instance;
56
}
57
58
/**
@@ -133,7 +135,7 @@ if ( ! class_exists( 'Bsf_Custom_Fonts_Render' ) ) :
133
* @since 1.0.4
134
* @param array $bb_fonts font families added by bb.
135
*/
136
- function bb_custom_fonts( $bb_fonts ) {
137
138
$fonts = Bsf_Custom_Fonts_Taxonomy::get_fonts();
139
$custom_fonts = array();
@@ -162,7 +164,7 @@ if ( ! class_exists( 'Bsf_Custom_Fonts_Render' ) ) :
162
}
163
?>
164
<style type="text/css">
165
- <?php echo strip_tags( $this->font_css ); ?>
166
</style>
167
<?php
168
}
@@ -194,7 +196,7 @@ if ( ! class_exists( 'Bsf_Custom_Fonts_Render' ) ) :
194
195
wp_enqueue_style( 'bsf-custom-fonts-css', BSF_CUSTOM_FONTS_URI . 'assets/css/bsf-custom-fonts.css', array(), BSF_CUSTOM_FONTS_VER );
196
wp_enqueue_media();
197
- wp_enqueue_script( 'bsf-custom-fonts-js', BSF_CUSTOM_FONTS_URI . 'assets/js/bsf-custom-fonts.js', array(), BSF_CUSTOM_FONTS_VER );
198
199
}
200
@@ -263,7 +265,7 @@ if ( ! class_exists( 'Bsf_Custom_Fonts_Render' ) ) :
263
* @param mixed $deleted_term deleted term.
264
* @param object $object_ids objects ids.
265
*/
266
- function delete_custom_fonts_fallback_astra( $term, $tt_id, $taxonomy, $deleted_term, $object_ids ) {
267
268
if ( defined( 'ASTRA_THEME_SETTINGS' ) ) {
269
// get astra options.
@@ -284,7 +286,7 @@ if ( ! class_exists( 'Bsf_Custom_Fonts_Render' ) ) :
284
*
285
* @since 1.0.0
286
*/
287
- function theme_update_notice() {
288
if ( defined( 'ASTRA_THEME_VERSION' ) ) {
289
if ( version_compare( ASTRA_THEME_VERSION, '1.0.16', '<' ) ) {
290
?>
@@ -293,7 +295,7 @@ if ( ! class_exists( 'Bsf_Custom_Fonts_Render' ) ) :
293
<?php
294
printf(
295
/* translators: 1: Astra theme from wordpress.org*/
296
- __( 'Custom Fonts Plugin requires minimum 1.0.16 version of the Astra Theme.', 'custom-fonts' ),
297
esc_url( 'https://downloads.wordpress.org/theme/astra.zip' )
298
);
299
?>
@@ -309,7 +311,7 @@ if ( ! class_exists( 'Bsf_Custom_Fonts_Render' ) ) :
309
*
310
* @since 1.0.0
311
*/
312
- function load_textdomain() {
313
load_plugin_textdomain( 'custom-fonts' );
314
}
315
}
6
* @package Bsf_Custom_Fonts
7
*/
8
9
+ if ( ! defined( 'ABSPATH' ) ) {
10
+ exit();
11
+ }
12
13
if ( ! class_exists( 'Bsf_Custom_Fonts_Render' ) ) :
14
23
* @since 1.0.0
24
* @var (Object) Bsf_Custom_Fonts_Render
25
*/
26
+ private static $instance = null;
27
28
/**
29
* Font base.
50
* @return object Class object.
51
*/
52
public static function get_instance() {
53
+ if ( ! isset( self::$instance ) ) {
54
+ self::$instance = new self();
55
}
56
57
+ return self::$instance;
58
}
59
60
/**
135
* @since 1.0.4
136
* @param array $bb_fonts font families added by bb.
137
*/
138
+ public function bb_custom_fonts( $bb_fonts ) {
139
140
$fonts = Bsf_Custom_Fonts_Taxonomy::get_fonts();
141
$custom_fonts = array();
164
}
165
?>
166
<style type="text/css">
167
+ <?php echo wp_strip_all_tags( $this->font_css ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
168
</style>
169
<?php
170
}
196
197
wp_enqueue_style( 'bsf-custom-fonts-css', BSF_CUSTOM_FONTS_URI . 'assets/css/bsf-custom-fonts.css', array(), BSF_CUSTOM_FONTS_VER );
198
wp_enqueue_media();
199
+ wp_enqueue_script( 'bsf-custom-fonts-js', BSF_CUSTOM_FONTS_URI . 'assets/js/bsf-custom-fonts.js', array(), BSF_CUSTOM_FONTS_VER, false );
200
201
}
202
265
* @param mixed $deleted_term deleted term.
266
* @param object $object_ids objects ids.
267
*/
268
+ public function delete_custom_fonts_fallback_astra( $term, $tt_id, $taxonomy, $deleted_term, $object_ids ) {
269
270
if ( defined( 'ASTRA_THEME_SETTINGS' ) ) {
271
// get astra options.
286
*
287
* @since 1.0.0
288
*/
289
+ public function theme_update_notice() {
290
if ( defined( 'ASTRA_THEME_VERSION' ) ) {
291
if ( version_compare( ASTRA_THEME_VERSION, '1.0.16', '<' ) ) {
292
?>
295
<?php
296
printf(
297
/* translators: 1: Astra theme from wordpress.org*/
298
+ esc_html__( 'Custom Fonts Plugin requires minimum 1.0.16 version of the Astra Theme.', 'custom-fonts' ),
299
esc_url( 'https://downloads.wordpress.org/theme/astra.zip' )
300
);
301
?>
311
*
312
* @since 1.0.0
313
*/
314
+ public function load_textdomain() {
315
load_plugin_textdomain( 'custom-fonts' );
316
}
317
}
classes/class-bsf-custom-fonts-white-label.php CHANGED
@@ -41,7 +41,7 @@ if ( ! class_exists( 'Bsf_Custom_Fonts_White_Label' ) ) :
41
*/
42
public static function set_instance() {
43
if ( ! isset( self::$instance ) ) {
44
- self::$instance = new self;
45
}
46
return self::$instance;
47
}
@@ -70,7 +70,7 @@ if ( ! class_exists( 'Bsf_Custom_Fonts_White_Label' ) ) :
70
* @param array $plugins Plugins Array.
71
* @return array
72
*/
73
- function plugins_page( $plugins ) {
74
75
if ( ! is_callable( 'Astra_Ext_White_Label_Markup::get_whitelabel_string' ) ) {
76
return $plugins;
@@ -115,7 +115,7 @@ if ( ! class_exists( 'Bsf_Custom_Fonts_White_Label' ) ) :
115
* @param string $title custom fonts menu title.
116
* @return string $title updated custom fonts menu title.
117
*/
118
- function white_label_custom_fonts_title( $title ) {
119
120
if ( is_callable( 'Astra_Ext_White_Label_Markup::get_whitelabel_string' ) ) {
121
$name = Astra_Ext_White_Label_Markup::get_whitelabel_string( 'bsf-custom-fonts', 'name' );
41
*/
42
public static function set_instance() {
43
if ( ! isset( self::$instance ) ) {
44
+ self::$instance = new self();
45
}
46
return self::$instance;
47
}
70
* @param array $plugins Plugins Array.
71
* @return array
72
*/
73
+ public function plugins_page( $plugins ) {
74
75
if ( ! is_callable( 'Astra_Ext_White_Label_Markup::get_whitelabel_string' ) ) {
76
return $plugins;
115
* @param string $title custom fonts menu title.
116
* @return string $title updated custom fonts menu title.
117
*/
118
+ public function white_label_custom_fonts_title( $title ) {
119
120
if ( is_callable( 'Astra_Ext_White_Label_Markup::get_whitelabel_string' ) ) {
121
$name = Astra_Ext_White_Label_Markup::get_whitelabel_string( 'bsf-custom-fonts', 'name' );
classes/class-bsf-custom-fonts.php CHANGED
@@ -26,7 +26,7 @@ if ( ! class_exists( 'Bsf_Custom_Fonts' ) ) {
26
*/
27
public static function get_instance() {
28
if ( ! isset( self::$instance ) ) {
29
- self::$instance = new self;
30
}
31
return self::$instance;
32
}
26
*/
27
public static function get_instance() {
28
if ( ! isset( self::$instance ) ) {
29
+ self::$instance = new self();
30
}
31
return self::$instance;
32
}
custom-fonts.php CHANGED
@@ -6,7 +6,7 @@
6
* Author: Brainstorm Force
7
* Author URI: http://www.brainstormforce.com
8
* Text Domain: custom-fonts
9
- * Version: 1.2.0
10
*
11
* @package Bsf_Custom_Fonts
12
*/
@@ -25,7 +25,7 @@ define( 'BSF_CUSTOM_FONTS_FILE', __FILE__ );
25
define( 'BSF_CUSTOM_FONTS_BASE', plugin_basename( BSF_CUSTOM_FONTS_FILE ) );
26
define( 'BSF_CUSTOM_FONTS_DIR', plugin_dir_path( BSF_CUSTOM_FONTS_FILE ) );
27
define( 'BSF_CUSTOM_FONTS_URI', plugins_url( '/', BSF_CUSTOM_FONTS_FILE ) );
28
- define( 'BSF_CUSTOM_FONTS_VER', '1.2.0' );
29
30
/**
31
* BSF Custom Fonts
6
* Author: Brainstorm Force
7
* Author URI: http://www.brainstormforce.com
8
* Text Domain: custom-fonts
9
+ * Version: 1.2.1
10
*
11
* @package Bsf_Custom_Fonts
12
*/
25
define( 'BSF_CUSTOM_FONTS_BASE', plugin_basename( BSF_CUSTOM_FONTS_FILE ) );
26
define( 'BSF_CUSTOM_FONTS_DIR', plugin_dir_path( BSF_CUSTOM_FONTS_FILE ) );
27
define( 'BSF_CUSTOM_FONTS_URI', plugins_url( '/', BSF_CUSTOM_FONTS_FILE ) );
28
+ define( 'BSF_CUSTOM_FONTS_VER', '1.2.1' );
29
30
/**
31
* BSF Custom Fonts
includes/class-bsf-custom-fonts-admin.php CHANGED
@@ -6,7 +6,9 @@
6
* @package Bsf_Custom_Fonts
7
*/
8
9
- defined( 'ABSPATH' ) or exit;
10
11
if ( ! class_exists( 'Bsf_Custom_Fonts_Admin' ) ) :
12
@@ -21,7 +23,7 @@ if ( ! class_exists( 'Bsf_Custom_Fonts_Admin' ) ) :
21
* @since 1.0.0
22
* @var (Object) Bsf_Custom_Fonts_Admin
23
*/
24
- private static $_instance = null;
25
26
/**
27
* Parent Menu Slug
@@ -39,11 +41,11 @@ if ( ! class_exists( 'Bsf_Custom_Fonts_Admin' ) ) :
39
* @return object Class object.
40
*/
41
public static function get_instance() {
42
- if ( ! isset( self::$_instance ) ) {
43
- self::$_instance = new self();
44
}
45
46
- return self::$_instance;
47
}
48
49
/**
@@ -93,7 +95,7 @@ if ( ! class_exists( 'Bsf_Custom_Fonts_Admin' ) ) :
93
global $parent_file, $submenu_file;
94
95
if ( 'edit-tags.php?taxonomy=' . Bsf_Custom_Fonts_Taxonomy::$register_taxonomy_slug === $submenu_file ) {
96
- $parent_file = $this->parent_menu_slug;
97
}
98
if ( get_current_screen()->id != 'edit-' . Bsf_Custom_Fonts_Taxonomy::$register_taxonomy_slug ) {
99
return;
@@ -201,7 +203,7 @@ if ( ! class_exists( 'Bsf_Custom_Fonts_Admin' ) ) :
201
<div class="bsf-custom-fonts-file-wrap form-field term-<?php echo esc_attr( $id ); ?>-wrap" >
202
203
<label for="font-<?php echo esc_attr( $id ); ?>"><?php echo esc_html( $title ); ?></label>
204
- <input type="text" id="font-<?php echo esc_attr( $id ); ?>" class="bsf-custom-fonts-link <?php echo esc_attr( $id ); ?>" name="<?php echo Bsf_Custom_Fonts_Taxonomy::$register_taxonomy_slug; ?>[<?php echo esc_attr( $id ); ?>]" value="<?php echo esc_attr( $value ); ?>" />
205
<a href="#" class="bsf-custom-fonts-upload button" data-upload-type="<?php echo esc_attr( $id ); ?>"><?php esc_html_e( 'Upload', 'custom-fonts' ); ?></a>
206
<p><?php echo esc_html( $description ); ?></p>
207
</div>
@@ -221,7 +223,7 @@ if ( ! class_exists( 'Bsf_Custom_Fonts_Admin' ) ) :
221
?>
222
<div class="bsf-custom-fonts-file-wrap form-field term-<?php echo esc_attr( $id ); ?>-wrap" >
223
<label for="font-<?php echo esc_attr( $id ); ?>"><?php echo esc_html( $title ); ?></label>
224
- <select type="select" id="font-<?php echo esc_attr( $id ); ?>" class="bsf-custom-font-select-field <?php echo esc_attr( $id ); ?>" name="<?php echo Bsf_Custom_Fonts_Taxonomy::$register_taxonomy_slug; ?>[<?php echo esc_attr( $id ); ?>]" />
225
<?php
226
foreach ( $select_fields as $key => $value ) {
227
?>
@@ -251,7 +253,7 @@ if ( ! class_exists( 'Bsf_Custom_Fonts_Admin' ) ) :
251
</label>
252
</th>
253
<td>
254
- <select type="select" id="font-<?php echo esc_attr( $id ); ?>" class="bsf-custom-font-select-field <?php echo esc_attr( $id ); ?>" name="<?php echo Bsf_Custom_Fonts_Taxonomy::$register_taxonomy_slug; ?>[<?php echo esc_attr( $id ); ?>]" />
255
<?php
256
foreach ( $select_fields as $key => $value ) {
257
?>
@@ -282,7 +284,7 @@ if ( ! class_exists( 'Bsf_Custom_Fonts_Admin' ) ) :
282
</label>
283
</th>
284
<td>
285
- <input id="metadata-<?php echo esc_attr( $id ); ?>" type="text" class="bsf-custom-fonts-link <?php echo esc_attr( $id ); ?>" name="<?php echo Bsf_Custom_Fonts_Taxonomy::$register_taxonomy_slug; ?>[<?php echo esc_attr( $id ); ?>]" value="<?php echo esc_attr( $value ); ?>" />
286
<a href="#" class="bsf-custom-fonts-upload button" data-upload-type="<?php echo esc_attr( $id ); ?>"><?php esc_html_e( 'Upload', 'custom-fonts' ); ?></a>
287
<p><?php echo esc_html( $description ); ?></p>
288
</td>
@@ -297,9 +299,8 @@ if ( ! class_exists( 'Bsf_Custom_Fonts_Admin' ) ) :
297
* @param int $term_id current term id.
298
*/
299
public function save_metadata( $term_id ) {
300
-
301
- if ( isset( $_POST[ Bsf_Custom_Fonts_Taxonomy::$register_taxonomy_slug ] ) ) {
302
- $value = array_map( 'esc_attr', $_POST[ Bsf_Custom_Fonts_Taxonomy::$register_taxonomy_slug ] );
303
Bsf_Custom_Fonts_Taxonomy::update_font_links( $value, $term_id );
304
}
305
}
6
* @package Bsf_Custom_Fonts
7
*/
8
9
+ if ( ! defined( 'ABSPATH' ) ) {
10
+ exit();
11
+ }
12
13
if ( ! class_exists( 'Bsf_Custom_Fonts_Admin' ) ) :
14
23
* @since 1.0.0
24
* @var (Object) Bsf_Custom_Fonts_Admin
25
*/
26
+ private static $instance = null;
27
28
/**
29
* Parent Menu Slug
41
* @return object Class object.
42
*/
43
public static function get_instance() {
44
+ if ( ! isset( self::$instance ) ) {
45
+ self::$instance = new self();
46
}
47
48
+ return self::$instance;
49
}
50
51
/**
95
global $parent_file, $submenu_file;
96
97
if ( 'edit-tags.php?taxonomy=' . Bsf_Custom_Fonts_Taxonomy::$register_taxonomy_slug === $submenu_file ) {
98
+ $parent_file = $this->parent_menu_slug; // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited
99
}
100
if ( get_current_screen()->id != 'edit-' . Bsf_Custom_Fonts_Taxonomy::$register_taxonomy_slug ) {
101
return;
203
<div class="bsf-custom-fonts-file-wrap form-field term-<?php echo esc_attr( $id ); ?>-wrap" >
204
205
<label for="font-<?php echo esc_attr( $id ); ?>"><?php echo esc_html( $title ); ?></label>
206
+ <input type="text" id="font-<?php echo esc_attr( $id ); ?>" class="bsf-custom-fonts-link <?php echo esc_attr( $id ); ?>" name="<?php echo esc_attr( Bsf_Custom_Fonts_Taxonomy::$register_taxonomy_slug ); ?>[<?php echo esc_attr( $id ); ?>]" value="<?php echo esc_attr( $value ); ?>" />
207
<a href="#" class="bsf-custom-fonts-upload button" data-upload-type="<?php echo esc_attr( $id ); ?>"><?php esc_html_e( 'Upload', 'custom-fonts' ); ?></a>
208
<p><?php echo esc_html( $description ); ?></p>
209
</div>
223
?>
224
<div class="bsf-custom-fonts-file-wrap form-field term-<?php echo esc_attr( $id ); ?>-wrap" >
225
<label for="font-<?php echo esc_attr( $id ); ?>"><?php echo esc_html( $title ); ?></label>
226
+ <select type="select" id="font-<?php echo esc_attr( $id ); ?>" class="bsf-custom-font-select-field <?php echo esc_attr( $id ); ?>" name="<?php echo esc_attr( Bsf_Custom_Fonts_Taxonomy::$register_taxonomy_slug ); ?>[<?php echo esc_attr( $id ); ?>]" />
227
<?php
228
foreach ( $select_fields as $key => $value ) {
229
?>
253
</label>
254
</th>
255
<td>
256
+ <select type="select" id="font-<?php echo esc_attr( $id ); ?>" class="bsf-custom-font-select-field <?php echo esc_attr( $id ); ?>" name="<?php echo esc_attr( Bsf_Custom_Fonts_Taxonomy::$register_taxonomy_slug ); ?>[<?php echo esc_attr( $id ); ?>]" />
257
<?php
258
foreach ( $select_fields as $key => $value ) {
259
?>
284
</label>
285
</th>
286
<td>
287
+ <input id="metadata-<?php echo esc_attr( $id ); ?>" type="text" class="bsf-custom-fonts-link <?php echo esc_attr( $id ); ?>" name="<?php echo esc_attr( Bsf_Custom_Fonts_Taxonomy::$register_taxonomy_slug ); ?>[<?php echo esc_attr( $id ); ?>]" value="<?php echo esc_attr( $value ); ?>" />
288
<a href="#" class="bsf-custom-fonts-upload button" data-upload-type="<?php echo esc_attr( $id ); ?>"><?php esc_html_e( 'Upload', 'custom-fonts' ); ?></a>
289
<p><?php echo esc_html( $description ); ?></p>
290
</td>
299
* @param int $term_id current term id.
300
*/
301
public function save_metadata( $term_id ) {
302
+ if ( isset( $_POST[ Bsf_Custom_Fonts_Taxonomy::$register_taxonomy_slug ] ) ) {// phpcs:ignore WordPress.Security.NonceVerification.Missing
303
+ $value = array_map( 'esc_attr', $_POST[ Bsf_Custom_Fonts_Taxonomy::$register_taxonomy_slug ] ); // phpcs:ignore WordPress.Security.NonceVerification.Missing
304
Bsf_Custom_Fonts_Taxonomy::update_font_links( $value, $term_id );
305
}
306
}
includes/class-bsf-custom-fonts-taxonomy.php CHANGED
@@ -6,7 +6,9 @@
6
* @package Bsf_Custom_Fonts
7
*/
8
9
- defined( 'ABSPATH' ) or exit;
10
11
if ( ! class_exists( 'Bsf_Custom_Fonts_Taxonomy' ) ) :
12
@@ -20,7 +22,7 @@ if ( ! class_exists( 'Bsf_Custom_Fonts_Taxonomy' ) ) :
20
* @since 1.0.0
21
* @var (Object) Bsf_Custom_Fonts_Taxonomy
22
*/
23
- private static $_instance = null;
24
25
/**
26
* Fonts
@@ -54,11 +56,11 @@ if ( ! class_exists( 'Bsf_Custom_Fonts_Taxonomy' ) ) :
54
* @return object Class object.
55
*/
56
public static function get_instance() {
57
- if ( ! isset( self::$_instance ) ) {
58
- self::$_instance = new self();
59
}
60
61
- return self::$_instance;
62
}
63
64
/**
6
* @package Bsf_Custom_Fonts
7
*/
8
9
+ if ( ! defined( 'ABSPATH' ) ) {
10
+ exit();
11
+ }
12
13
if ( ! class_exists( 'Bsf_Custom_Fonts_Taxonomy' ) ) :
14
22
* @since 1.0.0
23
* @var (Object) Bsf_Custom_Fonts_Taxonomy
24
*/
25
+ private static $instance = null;
26
27
/**
28
* Fonts
56
* @return object Class object.
57
*/
58
public static function get_instance() {
59
+ if ( ! isset( self::$instance ) ) {
60
+ self::$instance = new self();
61
}
62
63
+ return self::$instance;
64
}
65
66
/**
includes/white-label.php CHANGED
@@ -15,23 +15,23 @@ if ( ! is_callable( 'Astra_Ext_White_Label_Markup::branding_key_to_constant' ) )
15
<li>
16
<div class="branding-form postbox">
17
<button type="button" class="handlediv button-link" aria-expanded="true">
18
- <span class="screen-reader-text"><?php _e( 'Custom Fonts Branding', 'custom-fonts' ); ?></span>
19
<span class="toggle-indicator" aria-hidden="true"></span>
20
</button>
21
22
<h2 class="hndle ui-sortable-handle">
23
- <span><?php _e( 'Custom Fonts Branding', 'custom-fonts' ); ?></span>
24
</h2>
25
26
<div class="inside">
27
<div class="form-wrap">
28
<div class="form-field">
29
- <label><?php _e( 'Plugin Name:', 'custom-fonts' ); ?>
30
<input type="text" name="ast_white_label[bsf-custom-fonts][name]" class="placeholder placeholder-active" <?php disabled( defined( Astra_Ext_White_Label_Markup::branding_key_to_constant( 'bsf-custom-fonts', 'name' ) ), true, true ); ?> value="<?php echo esc_attr( Astra_Ext_White_Label_Markup::get_whitelabel_string( 'bsf-custom-fonts', 'name' ) ); ?>">
31
</label>
32
</div>
33
<div class="form-field">
34
- <label><?php _e( 'Plugin Description:', 'custom-fonts' ); ?>
35
<textarea name="ast_white_label[bsf-custom-fonts][description]" class="placeholder placeholder-active" <?php disabled( defined( Astra_Ext_White_Label_Markup::branding_key_to_constant( 'bsf-custom-fonts', 'description' ) ), true, true ); ?> rows="2"><?php echo esc_attr( Astra_Ext_White_Label_Markup::get_whitelabel_string( 'astra-sites', 'description' ) ); ?></textarea>
36
</label>
37
</div>
15
<li>
16
<div class="branding-form postbox">
17
<button type="button" class="handlediv button-link" aria-expanded="true">
18
+ <span class="screen-reader-text"><?php esc_html_e( 'Custom Fonts Branding', 'custom-fonts' ); ?></span>
19
<span class="toggle-indicator" aria-hidden="true"></span>
20
</button>
21
22
<h2 class="hndle ui-sortable-handle">
23
+ <span><?php esc_html_e( 'Custom Fonts Branding', 'custom-fonts' ); ?></span>
24
</h2>
25
26
<div class="inside">
27
<div class="form-wrap">
28
<div class="form-field">
29
+ <label><?php esc_html_e( 'Plugin Name:', 'custom-fonts' ); ?>
30
<input type="text" name="ast_white_label[bsf-custom-fonts][name]" class="placeholder placeholder-active" <?php disabled( defined( Astra_Ext_White_Label_Markup::branding_key_to_constant( 'bsf-custom-fonts', 'name' ) ), true, true ); ?> value="<?php echo esc_attr( Astra_Ext_White_Label_Markup::get_whitelabel_string( 'bsf-custom-fonts', 'name' ) ); ?>">
31
</label>
32
</div>
33
<div class="form-field">
34
+ <label><?php esc_html_e( 'Plugin Description:', 'custom-fonts' ); ?>
35
<textarea name="ast_white_label[bsf-custom-fonts][description]" class="placeholder placeholder-active" <?php disabled( defined( Astra_Ext_White_Label_Markup::branding_key_to_constant( 'bsf-custom-fonts', 'description' ) ), true, true ); ?> rows="2"><?php echo esc_attr( Astra_Ext_White_Label_Markup::get_whitelabel_string( 'astra-sites', 'description' ) ); ?></textarea>
36
</label>
37
</div>
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: brainstormforce
3
Donate link: https://www.paypal.me/BrainstormForce
4
Tags: Beaver Builder, Elementor, Astra, woff2, woff, ttf, svg, eot, otf, Custom Fonts, Font, Typography
5
Requires at least: 4.4
6
- Tested up to: 5.2
7
- Stable tag: 1.2.0
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
@@ -43,6 +43,10 @@ If you're not using any of the supported plugins and theme, you can write the cu
43
44
== Changelog ==
45
46
= 1.2.0 =
47
- Improvement: Displaying Menu after Astra options Menu.
48
3
Donate link: https://www.paypal.me/BrainstormForce
4
Tags: Beaver Builder, Elementor, Astra, woff2, woff, ttf, svg, eot, otf, Custom Fonts, Font, Typography
5
Requires at least: 4.4
6
+ Tested up to: 5.4
7
+ Stable tag: 1.2.1
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
43
44
== Changelog ==
45
46
+ = 1.2.1 =
47
+ - Improvement: Hardened the security of plugin
48
+ - Improvement: Compatibility with latest WordPress PHP_CodeSniffer rules
49
+
50
= 1.2.0 =
51
- Improvement: Displaying Menu after Astra options Menu.
52