Skip to content

Commit 9e741d6

Browse files
committed
Rename user text Typekit Fonts to be Adobe fonts
1 parent 058bf81 commit 9e741d6

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

classes/class-custom-typekit-fonts-admin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public function set_custom_typekit_fonts_notice() {
103103
*/
104104
public function register_custom_fonts_menu() {
105105

106-
$title = apply_filters( 'custom_typekit_fonts_menu_title', __( 'Typekit Fonts', 'custom-typekit-fonts' ) );
106+
$title = apply_filters( 'custom_typekit_fonts_menu_title', __( 'Adobe Fonts', 'custom-typekit-fonts' ) );
107107

108108
add_submenu_page(
109109
'themes.php',

classes/class-typekit-fonts-white-label.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,13 @@ function plugins_page( $plugins ) {
117117
*/
118118
function white_label_custom_typekit_fonts_title( $title ) {
119119

120-
if ( is_callable( 'Astra_Ext_White_Label_Markup::get_whitelabel_string' ) ) {
120+
if ( is_callable( 'Astra_Ext_White_Label_Markup::get_whitelabel_string', true ) ) {
121121
$name = Astra_Ext_White_Label_Markup::get_whitelabel_string( 'custom-typekit-fonts', 'name' );
122122
if ( ! empty( $name ) ) {
123123
$title = $name;
124124
}
125125
}
126+
126127
return $title;
127128
}
128129

templates/custom-typekit-fonts-options.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
$kit_info = get_option( 'custom-typekit-fonts' );
99
?>
1010
<div class="wrap">
11-
<h2><?php esc_html_e( 'Typekit Fonts', 'custom-typekit-fonts' ); ?></h2>
11+
<h2><?php esc_html_e( apply_filters( 'custom_typekit_fonts_menu_title', __( 'Adobe Fonts', 'custom-typekit-fonts' ) ) ); ?></h2>
1212
<div id="poststuff">
1313
<div id="post-body" class="metabox-holder columns-2 typekit-custom-fonts-wrap">
1414
<div id="post-body-content">
@@ -21,18 +21,18 @@
2121
<tr valign="top">
2222
<th scope="row">
2323
<label
24-
for="typekit_id"> <?php esc_html_e( 'Kit ID:', 'custom-typekit-fonts' ); ?>
24+
for="typekit_id"> <?php esc_html_e( 'Project ID:', 'custom-typekit-fonts' ); ?>
2525
</label>
2626
<i class="custom-typekit-fonts-help dashicons dashicons-editor-help"
27-
title="<?php echo esc_attr__( 'Please Enter the Valid Kit ID to get the kit details.', 'custom-typekit-fonts' ); ?>"></i>
27+
title="<?php echo esc_attr__( 'Please Enter the Valid Project ID to get the kit details.', 'custom-typekit-fonts' ); ?>"></i>
2828
</th>
2929
<td><input
3030
style="display:<?php echo esc_attr( empty( $kit_info['custom-typekit-font-details'] ) ? 'inline-block' : 'none' ); ?>"
3131
type="text" name="custom-typekit-font-id" id="custom-typekit-font-id"
3232
value="<?php echo ( isset( $kit_info['custom-typekit-font-id'] ) ) ? esc_attr( $kit_info['custom-typekit-font-id'] ) : ''; ?>">
3333
<?php if ( ! empty( $kit_info['custom-typekit-font-details'] ) ) : ?>
3434
<a class="add-new-typekit button button-large"
35-
href="#"><?php echo esc_html__( 'Edit Kit ID', 'custom-typekit-fonts' ); ?></a>
35+
href="#"><?php echo esc_html__( 'Edit Project ID', 'custom-typekit-fonts' ); ?></a>
3636
<?php endif; ?>
3737

3838
<?php
@@ -109,7 +109,7 @@
109109
<p>
110110
<?php
111111
/* translators: %1$s: typekit site url. */
112-
printf( __( 'You can get the Kit ID <a href=%1$s target="_blank" >here</a> from your Typekit Account. <b>Kit ID</b> can be found next to the kit names.', 'custom-typekit-fonts' ), 'https://typekit.com/account/kits' );
112+
printf( __( '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' );
113113
?>
114114
</p>
115115

0 commit comments

Comments
 (0)