Version Description
Download this release
Release Info
Developer | brainstormworg |
Plugin | Custom Adobe Fonts (Typekit) |
Version | 1.0.14 |
Comparing to | |
See all releases |
Code changes from version 1.0.13 to 1.0.14
- classes/class-custom-typekit-fonts-admin.php +10 -10
- classes/class-custom-typekit-fonts-render.php +9 -9
- classes/class-custom-typekit-fonts.php +3 -3
- classes/class-typekit-fonts-white-label.php +3 -3
- custom-typekit-fonts.php +2 -2
- readme.txt +6 -2
- templates/custom-typekit-fonts-options.php +5 -5
- templates/white-label.php +4 -4
classes/class-custom-typekit-fonts-admin.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* @package Bsf_Custom_Fonts
|
7 |
*/
|
8 |
|
9 |
-
defined( 'ABSPATH' )
|
10 |
|
11 |
if ( ! class_exists( 'Custom_Typekit_Fonts_Admin' ) ) :
|
12 |
|
@@ -21,7 +21,7 @@ if ( ! class_exists( 'Custom_Typekit_Fonts_Admin' ) ) :
|
|
21 |
* @since 1.0.0
|
22 |
* @var (Object) Custom_Typekit_Fonts_Admin
|
23 |
*/
|
24 |
-
private static $
|
25 |
|
26 |
/**
|
27 |
* Parent Menu Slug
|
@@ -39,11 +39,11 @@ if ( ! class_exists( 'Custom_Typekit_Fonts_Admin' ) ) :
|
|
39 |
* @return object Class object.
|
40 |
*/
|
41 |
public static function get_instance() {
|
42 |
-
if ( ! isset( self::$
|
43 |
-
self::$
|
44 |
}
|
45 |
|
46 |
-
return self::$
|
47 |
}
|
48 |
|
49 |
/**
|
@@ -65,7 +65,7 @@ if ( ! class_exists( 'Custom_Typekit_Fonts_Admin' ) ) :
|
|
65 |
*/
|
66 |
public function set_custom_typekit_fonts_notice() {
|
67 |
|
68 |
-
// Notice for Custom Typekit Fonts action.
|
69 |
if ( isset( $_POST['custom-typekit-fonts-nonce'] ) && wp_verify_nonce( $_POST['custom-typekit-fonts-nonce'], 'custom-typekit-fonts' ) ) {
|
70 |
|
71 |
if ( isset( $_POST['custom-typekit-fonts-submitted'] ) ) {
|
@@ -77,17 +77,17 @@ if ( ! class_exists( 'Custom_Typekit_Fonts_Admin' ) ) :
|
|
77 |
if ( isset( $_POST['custom-typekit-id-notice'] ) && $_POST['custom-typekit-id-notice'] ) {
|
78 |
?>
|
79 |
<div class="notice notice-error is-dismissible">
|
80 |
-
<p><?php
|
81 |
</div>
|
82 |
<?php
|
83 |
} elseif ( isset( $_POST['custom-typekit-empty-notice'] ) && $_POST['custom-typekit-empty-notice'] ) {
|
84 |
?>
|
85 |
<div class="notice notice-warning is-dismissible">
|
86 |
-
<p><?php
|
87 |
</div>
|
88 |
<?php } else { ?>
|
89 |
<div class="notice notice-success is-dismissible">
|
90 |
-
<p><?php
|
91 |
</div>
|
92 |
<?php
|
93 |
}
|
@@ -138,7 +138,7 @@ if ( ! class_exists( 'Custom_Typekit_Fonts_Admin' ) ) :
|
|
138 |
|
139 |
wp_enqueue_style( 'custom-typekit-fonts-css', CUSTOM_TYPEKIT_FONTS_URI . 'assets/css/custom-typekit-fonts.css', array(), CUSTOM_TYPEKIT_FONTS_VER );
|
140 |
|
141 |
-
wp_enqueue_script( 'custom-typekit-fonts-js', CUSTOM_TYPEKIT_FONTS_URI . 'assets/js/custom-typekit-fonts.js', array( 'jquery-ui-tooltip' ), CUSTOM_TYPEKIT_FONTS_VER );
|
142 |
|
143 |
}
|
144 |
|
6 |
* @package Bsf_Custom_Fonts
|
7 |
*/
|
8 |
|
9 |
+
defined( 'ABSPATH' ) || exit;
|
10 |
|
11 |
if ( ! class_exists( 'Custom_Typekit_Fonts_Admin' ) ) :
|
12 |
|
21 |
* @since 1.0.0
|
22 |
* @var (Object) Custom_Typekit_Fonts_Admin
|
23 |
*/
|
24 |
+
private static $instance = null;
|
25 |
|
26 |
/**
|
27 |
* Parent Menu Slug
|
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 |
/**
|
65 |
*/
|
66 |
public function set_custom_typekit_fonts_notice() {
|
67 |
|
68 |
+
// Notice for the Custom Typekit Fonts action.
|
69 |
if ( isset( $_POST['custom-typekit-fonts-nonce'] ) && wp_verify_nonce( $_POST['custom-typekit-fonts-nonce'], 'custom-typekit-fonts' ) ) {
|
70 |
|
71 |
if ( isset( $_POST['custom-typekit-fonts-submitted'] ) ) {
|
77 |
if ( isset( $_POST['custom-typekit-id-notice'] ) && $_POST['custom-typekit-id-notice'] ) {
|
78 |
?>
|
79 |
<div class="notice notice-error is-dismissible">
|
80 |
+
<p><?php esc_html_e( 'Please Enter the Valid Kit ID to get the kit details.', 'custom-typekit-fonts' ); ?></p>
|
81 |
</div>
|
82 |
<?php
|
83 |
} elseif ( isset( $_POST['custom-typekit-empty-notice'] ) && $_POST['custom-typekit-empty-notice'] ) {
|
84 |
?>
|
85 |
<div class="notice notice-warning is-dismissible">
|
86 |
+
<p><?php esc_html_e( 'This Kit is empty. Please add some fonts in it.', 'custom-typekit-fonts' ); ?></p>
|
87 |
</div>
|
88 |
<?php } else { ?>
|
89 |
<div class="notice notice-success is-dismissible">
|
90 |
+
<p><?php esc_html_e( 'Custom Typekit Fonts settings have been successfully saved.', 'custom-typekit-fonts' ); ?></p>
|
91 |
</div>
|
92 |
<?php
|
93 |
}
|
138 |
|
139 |
wp_enqueue_style( 'custom-typekit-fonts-css', CUSTOM_TYPEKIT_FONTS_URI . 'assets/css/custom-typekit-fonts.css', array(), CUSTOM_TYPEKIT_FONTS_VER );
|
140 |
|
141 |
+
wp_enqueue_script( 'custom-typekit-fonts-js', CUSTOM_TYPEKIT_FONTS_URI . 'assets/js/custom-typekit-fonts.js', array( 'jquery-ui-tooltip' ), CUSTOM_TYPEKIT_FONTS_VER, false );
|
142 |
|
143 |
}
|
144 |
|
classes/class-custom-typekit-fonts-render.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* @package Bsf_Custom_Fonts
|
7 |
*/
|
8 |
|
9 |
-
defined( 'ABSPATH' )
|
10 |
|
11 |
if ( ! class_exists( 'Custom_Typekit_Fonts_Render' ) ) :
|
12 |
|
@@ -23,7 +23,7 @@ if ( ! class_exists( 'Custom_Typekit_Fonts_Render' ) ) :
|
|
23 |
* @since 1.0.0
|
24 |
* @var (Object) Custom_Typekit_Fonts_Render
|
25 |
*/
|
26 |
-
private static $
|
27 |
|
28 |
/**
|
29 |
* Member Varible
|
@@ -50,11 +50,11 @@ if ( ! class_exists( 'Custom_Typekit_Fonts_Render' ) ) :
|
|
50 |
* @return object Class object.
|
51 |
*/
|
52 |
public static function get_instance() {
|
53 |
-
if ( ! isset( self::$
|
54 |
-
self::$
|
55 |
}
|
56 |
|
57 |
-
return self::$
|
58 |
}
|
59 |
|
60 |
/**
|
@@ -127,7 +127,7 @@ if ( ! class_exists( 'Custom_Typekit_Fonts_Render' ) ) :
|
|
127 |
public function typekit_embed_css() {
|
128 |
|
129 |
if ( false !== $this->get_typekit_embed_url() ) {
|
130 |
-
wp_enqueue_style( 'custom-typekit-css', $this->get_typekit_embed_url(), array() );
|
131 |
}
|
132 |
|
133 |
}
|
@@ -153,7 +153,7 @@ if ( ! class_exists( 'Custom_Typekit_Fonts_Render' ) ) :
|
|
153 |
*
|
154 |
* @param array $custom_fonts custom fonts.
|
155 |
*/
|
156 |
-
function add_typekit_fonts( $custom_fonts ) {
|
157 |
|
158 |
$kit_info = get_option( 'custom-typekit-fonts' );
|
159 |
if ( empty( $kit_info['custom-typekit-font-details'] ) ) {
|
@@ -217,7 +217,7 @@ if ( ! class_exists( 'Custom_Typekit_Fonts_Render' ) ) :
|
|
217 |
* @since 1.0.3
|
218 |
* @param array $bb_fonts font families added by bb.
|
219 |
*/
|
220 |
-
function bb_custom_fonts( $bb_fonts ) {
|
221 |
|
222 |
$kit_list = get_option( 'custom-typekit-fonts' );
|
223 |
$fonts = $kit_list['custom-typekit-font-details'];
|
@@ -243,7 +243,7 @@ if ( ! class_exists( 'Custom_Typekit_Fonts_Render' ) ) :
|
|
243 |
* @since 1.1.0
|
244 |
* @param array $fonts font families selected.
|
245 |
*/
|
246 |
-
function remove_typekit_font_google_url( $fonts ) {
|
247 |
|
248 |
$kit_list = get_option( 'custom-typekit-fonts', array() );
|
249 |
if ( ! empty( $kit_list['custom-typekit-font-details'] ) ) {
|
6 |
* @package Bsf_Custom_Fonts
|
7 |
*/
|
8 |
|
9 |
+
defined( 'ABSPATH' ) || exit;
|
10 |
|
11 |
if ( ! class_exists( 'Custom_Typekit_Fonts_Render' ) ) :
|
12 |
|
23 |
* @since 1.0.0
|
24 |
* @var (Object) Custom_Typekit_Fonts_Render
|
25 |
*/
|
26 |
+
private static $instance = null;
|
27 |
|
28 |
/**
|
29 |
* Member Varible
|
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 |
/**
|
127 |
public function typekit_embed_css() {
|
128 |
|
129 |
if ( false !== $this->get_typekit_embed_url() ) {
|
130 |
+
wp_enqueue_style( 'custom-typekit-css', $this->get_typekit_embed_url(), array(), CUSTOM_TYPEKIT_FONTS_VER );
|
131 |
}
|
132 |
|
133 |
}
|
153 |
*
|
154 |
* @param array $custom_fonts custom fonts.
|
155 |
*/
|
156 |
+
public function add_typekit_fonts( $custom_fonts ) {
|
157 |
|
158 |
$kit_info = get_option( 'custom-typekit-fonts' );
|
159 |
if ( empty( $kit_info['custom-typekit-font-details'] ) ) {
|
217 |
* @since 1.0.3
|
218 |
* @param array $bb_fonts font families added by bb.
|
219 |
*/
|
220 |
+
public function bb_custom_fonts( $bb_fonts ) {
|
221 |
|
222 |
$kit_list = get_option( 'custom-typekit-fonts' );
|
223 |
$fonts = $kit_list['custom-typekit-font-details'];
|
243 |
* @since 1.1.0
|
244 |
* @param array $fonts font families selected.
|
245 |
*/
|
246 |
+
public function remove_typekit_font_google_url( $fonts ) {
|
247 |
|
248 |
$kit_list = get_option( 'custom-typekit-fonts', array() );
|
249 |
if ( ! empty( $kit_list['custom-typekit-font-details'] ) ) {
|
classes/class-custom-typekit-fonts.php
CHANGED
@@ -26,7 +26,7 @@ if ( ! class_exists( 'Custom_Typekit_Fonts' ) ) {
|
|
26 |
*/
|
27 |
public static function get_instance() {
|
28 |
if ( ! isset( self::$instance ) ) {
|
29 |
-
self::$instance = new self;
|
30 |
}
|
31 |
|
32 |
return self::$instance;
|
@@ -104,7 +104,7 @@ if ( ! class_exists( 'Custom_Typekit_Fonts' ) ) {
|
|
104 |
*
|
105 |
* @param string $kit_id Typekit ID.
|
106 |
*/
|
107 |
-
function get_custom_typekit_details( $kit_id ) {
|
108 |
|
109 |
$typekit_info = array();
|
110 |
$typekit_uri = 'https://typekit.com/api/v1/json/kits/' . $kit_id . '/published';
|
@@ -178,7 +178,7 @@ if ( ! class_exists( 'Custom_Typekit_Fonts' ) ) {
|
|
178 |
*
|
179 |
* @since 1.0.0
|
180 |
*/
|
181 |
-
function load_textdomain() {
|
182 |
load_plugin_textdomain( 'custom-typekit-fonts' );
|
183 |
}
|
184 |
|
26 |
*/
|
27 |
public static function get_instance() {
|
28 |
if ( ! isset( self::$instance ) ) {
|
29 |
+
self::$instance = new self();
|
30 |
}
|
31 |
|
32 |
return self::$instance;
|
104 |
*
|
105 |
* @param string $kit_id Typekit ID.
|
106 |
*/
|
107 |
+
public function get_custom_typekit_details( $kit_id ) {
|
108 |
|
109 |
$typekit_info = array();
|
110 |
$typekit_uri = 'https://typekit.com/api/v1/json/kits/' . $kit_id . '/published';
|
178 |
*
|
179 |
* @since 1.0.0
|
180 |
*/
|
181 |
+
public function load_textdomain() {
|
182 |
load_plugin_textdomain( 'custom-typekit-fonts' );
|
183 |
}
|
184 |
|
classes/class-typekit-fonts-white-label.php
CHANGED
@@ -41,7 +41,7 @@ if ( ! class_exists( 'Typekit_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( 'Typekit_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( 'Typekit_Fonts_White_Label' ) ) :
|
|
115 |
* @param string $title custom typekit fonts menu title.
|
116 |
* @return string $title updated custom typekit fonts menu
|
117 |
*/
|
118 |
-
function white_label_custom_typekit_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( 'custom-typekit-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 typekit fonts menu title.
|
116 |
* @return string $title updated custom typekit fonts menu
|
117 |
*/
|
118 |
+
public function white_label_custom_typekit_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( 'custom-typekit-fonts', 'name' );
|
custom-typekit-fonts.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* Author: Brainstorm Force
|
7 |
* Author URI: http://www.brainstormforce.com
|
8 |
* Text Domain: custom-typekit-fonts
|
9 |
-
* Version: 1.0.
|
10 |
*
|
11 |
* @package Typekit_Custom_Fonts
|
12 |
*/
|
@@ -25,7 +25,7 @@ define( 'CUSTOM_TYPEKIT_FONTS_FILE', __FILE__ );
|
|
25 |
define( 'CUSTOM_TYPEKIT_FONTS_BASE', plugin_basename( CUSTOM_TYPEKIT_FONTS_FILE ) );
|
26 |
define( 'CUSTOM_TYPEKIT_FONTS_DIR', plugin_dir_path( CUSTOM_TYPEKIT_FONTS_FILE ) );
|
27 |
define( 'CUSTOM_TYPEKIT_FONTS_URI', plugins_url( '/', CUSTOM_TYPEKIT_FONTS_FILE ) );
|
28 |
-
define( 'CUSTOM_TYPEKIT_FONTS_VER', '1.0.
|
29 |
/**
|
30 |
* BSF Custom Fonts
|
31 |
*/
|
6 |
* Author: Brainstorm Force
|
7 |
* Author URI: http://www.brainstormforce.com
|
8 |
* Text Domain: custom-typekit-fonts
|
9 |
+
* Version: 1.0.14
|
10 |
*
|
11 |
* @package Typekit_Custom_Fonts
|
12 |
*/
|
25 |
define( 'CUSTOM_TYPEKIT_FONTS_BASE', plugin_basename( CUSTOM_TYPEKIT_FONTS_FILE ) );
|
26 |
define( 'CUSTOM_TYPEKIT_FONTS_DIR', plugin_dir_path( CUSTOM_TYPEKIT_FONTS_FILE ) );
|
27 |
define( 'CUSTOM_TYPEKIT_FONTS_URI', plugins_url( '/', CUSTOM_TYPEKIT_FONTS_FILE ) );
|
28 |
+
define( 'CUSTOM_TYPEKIT_FONTS_VER', '1.0.14' );
|
29 |
/**
|
30 |
* BSF Custom Fonts
|
31 |
*/
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: brainstormforce
|
|
3 |
Donate link: https://www.paypal.me/BrainstormForce
|
4 |
Tags: custom adobe fonts, theme custom fonts, unlimited typekit custom fonts
|
5 |
Requires at least: 4.4
|
6 |
-
Tested up to: 5.2
|
7 |
-
Stable tag: 1.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -49,6 +49,10 @@ If you're not using any of the supported plugins and theme, you can write the cu
|
|
49 |
|
50 |
== Changelog ==
|
51 |
|
|
|
|
|
|
|
|
|
52 |
= v1.0.13 =
|
53 |
- Fix: Console errors in customizer & frontend on adobe font(TypeKit) selection.
|
54 |
|
3 |
Donate link: https://www.paypal.me/BrainstormForce
|
4 |
Tags: custom adobe fonts, theme custom fonts, unlimited typekit custom fonts
|
5 |
Requires at least: 4.4
|
6 |
+
Tested up to: 5.3.2
|
7 |
+
Stable tag: 1.0.14
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
49 |
|
50 |
== Changelog ==
|
51 |
|
52 |
+
= v1.0.14 =
|
53 |
+
- Improvement: Hardened the security of plugin
|
54 |
+
- Improvement: Compatibility with latest WordPress PHP_CodeSniffer rules
|
55 |
+
|
56 |
= v1.0.13 =
|
57 |
- Fix: Console errors in customizer & frontend on adobe font(TypeKit) selection.
|
58 |
|
templates/custom-typekit-fonts-options.php
CHANGED
@@ -72,14 +72,14 @@ $kit_info = get_option( 'custom-typekit-fonts' );
|
|
72 |
foreach ( $kit_info['custom-typekit-font-details'] as $font ) :
|
73 |
|
74 |
echo '<tr>';
|
75 |
-
echo '<td>' . $font['family'] . '</td>';
|
76 |
-
echo '<td>' . $font['fallback'] . '</td>';
|
77 |
echo '<td>';
|
78 |
$comma_sep_arr = array();
|
79 |
foreach ( $font['weights'] as $weight ) :
|
80 |
$comma_sep_arr[] = $weight;
|
81 |
endforeach;
|
82 |
-
echo join( ', ', $comma_sep_arr );
|
83 |
echo '</td>';
|
84 |
echo '</tr>';
|
85 |
|
@@ -109,7 +109,7 @@ $kit_info = get_option( 'custom-typekit-fonts' );
|
|
109 |
<p>
|
110 |
<?php
|
111 |
/* translators: %1$s: typekit site url. */
|
112 |
-
printf(
|
113 |
?>
|
114 |
</p>
|
115 |
|
@@ -127,7 +127,7 @@ $kit_info = get_option( 'custom-typekit-fonts' );
|
|
127 |
<p>
|
128 |
<?php
|
129 |
/* translators: %1$s: Astra Theme url. */
|
130 |
-
printf(
|
131 |
?>
|
132 |
</p>
|
133 |
<p>
|
72 |
foreach ( $kit_info['custom-typekit-font-details'] as $font ) :
|
73 |
|
74 |
echo '<tr>';
|
75 |
+
echo '<td>' . esc_html( $font['family'] ) . '</td>';
|
76 |
+
echo '<td>' . esc_html( $font['fallback'] ) . '</td>';
|
77 |
echo '<td>';
|
78 |
$comma_sep_arr = array();
|
79 |
foreach ( $font['weights'] as $weight ) :
|
80 |
$comma_sep_arr[] = $weight;
|
81 |
endforeach;
|
82 |
+
echo esc_html( join( ', ', $comma_sep_arr ) );
|
83 |
echo '</td>';
|
84 |
echo '</tr>';
|
85 |
|
109 |
<p>
|
110 |
<?php
|
111 |
/* translators: %1$s: typekit site url. */
|
112 |
+
printf( esc_html__( 'You can get the Project ID <a href=%1$s target="_blank" >here</a> from your Typekit Account. <b>Project ID</b> can be found next to the kit names.', 'custom-typekit-fonts' ), 'https://fonts.adobe.com/my_fonts?browse_mode=all#web_projects-section' );
|
113 |
?>
|
114 |
</p>
|
115 |
|
127 |
<p>
|
128 |
<?php
|
129 |
/* translators: %1$s: Astra Theme url. */
|
130 |
+
printf( esc_html__( '1) Once you get the Kit Details, all the fonts will be listed in the customizer under typography for only <a href="%1$s" target="_blank" rel="noopener"> Astra </a> WordPress Theme users', 'custom-typekit-fonts' ), 'https://wpastra.com' );
|
131 |
?>
|
132 |
</p>
|
133 |
<p>
|
templates/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
|
19 |
<span class="toggle-indicator" aria-hidden="true"></span>
|
20 |
</button>
|
21 |
|
22 |
<h2 class="hndle ui-sortable-handle">
|
23 |
-
<span><?php
|
24 |
</h2>
|
25 |
|
26 |
<div class="inside">
|
27 |
<div class="form-wrap">
|
28 |
<div class="form-field">
|
29 |
-
<label><?php
|
30 |
<input type="text" name="ast_white_label[custom-typekit-fonts][name]" class="placeholder placeholder-active" <?php disabled( defined( Astra_Ext_White_Label_Markup::branding_key_to_constant( 'custom-typekit-fonts', 'name' ) ), true, true ); ?> value="<?php echo esc_attr( Astra_Ext_White_Label_Markup::get_whitelabel_string( 'custom-typekit-fonts', 'name' ) ); ?>">
|
31 |
</label>
|
32 |
</div>
|
33 |
<div class="form-field">
|
34 |
-
<label><?php
|
35 |
<textarea name="ast_white_label[custom-typekit-fonts][description]" class="placeholder placeholder-active" <?php disabled( defined( Astra_Ext_White_Label_Markup::branding_key_to_constant( 'custom-typekit-fonts', 'description' ) ), true, true ); ?> rows="2"><?php echo esc_attr( Astra_Ext_White_Label_Markup::get_whitelabel_string( 'custom-typekit-fonts', '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 Typekit Fonts Branding', 'custom-typekit-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 Typekit Fonts Branding', 'custom-typekit-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-typekit-fonts' ); ?>
|
30 |
<input type="text" name="ast_white_label[custom-typekit-fonts][name]" class="placeholder placeholder-active" <?php disabled( defined( Astra_Ext_White_Label_Markup::branding_key_to_constant( 'custom-typekit-fonts', 'name' ) ), true, true ); ?> value="<?php echo esc_attr( Astra_Ext_White_Label_Markup::get_whitelabel_string( 'custom-typekit-fonts', 'name' ) ); ?>">
|
31 |
</label>
|
32 |
</div>
|
33 |
<div class="form-field">
|
34 |
+
<label><?php esc_html_e( 'Plugin Description:', 'custom-typekit-fonts' ); ?>
|
35 |
<textarea name="ast_white_label[custom-typekit-fonts][description]" class="placeholder placeholder-active" <?php disabled( defined( Astra_Ext_White_Label_Markup::branding_key_to_constant( 'custom-typekit-fonts', 'description' ) ), true, true ); ?> rows="2"><?php echo esc_attr( Astra_Ext_White_Label_Markup::get_whitelabel_string( 'custom-typekit-fonts', 'description' ) ); ?></textarea>
|
36 |
</label>
|
37 |
</div>
|