Version Description
Download this release
Release Info
Developer | Nikschavan |
Plugin | Custom Adobe Fonts (Typekit) |
Version | 1.0.11 |
Comparing to | |
See all releases |
Code changes from version 1.0.10 to 1.0.11
classes/class-custom-typekit-fonts-admin.php
CHANGED
@@ -103,7 +103,7 @@ if ( ! class_exists( 'Custom_Typekit_Fonts_Admin' ) ) :
|
|
103 |
*/
|
104 |
public function register_custom_fonts_menu() {
|
105 |
|
106 |
-
$title = apply_filters( 'custom_typekit_fonts_menu_title', __( '
|
107 |
|
108 |
add_submenu_page(
|
109 |
'themes.php',
|
103 |
*/
|
104 |
public function register_custom_fonts_menu() {
|
105 |
|
106 |
+
$title = apply_filters( 'custom_typekit_fonts_menu_title', __( 'Adobe Fonts', 'custom-typekit-fonts' ) );
|
107 |
|
108 |
add_submenu_page(
|
109 |
'themes.php',
|
classes/class-typekit-fonts-white-label.php
CHANGED
@@ -72,7 +72,7 @@ if ( ! class_exists( 'Typekit_Fonts_White_Label' ) ) :
|
|
72 |
*/
|
73 |
function plugins_page( $plugins ) {
|
74 |
|
75 |
-
if ( ! is_callable( 'Astra_Ext_White_Label_Markup::
|
76 |
return $plugins;
|
77 |
}
|
78 |
|
@@ -81,10 +81,10 @@ if ( ! class_exists( 'Typekit_Fonts_White_Label' ) ) :
|
|
81 |
}
|
82 |
|
83 |
// Set White Labels.
|
84 |
-
$name = Astra_Ext_White_Label_Markup::
|
85 |
-
$description = Astra_Ext_White_Label_Markup::
|
86 |
-
$author = Astra_Ext_White_Label_Markup::
|
87 |
-
$author_uri = Astra_Ext_White_Label_Markup::
|
88 |
|
89 |
if ( ! empty( $name ) ) {
|
90 |
$plugins[ CUSTOM_TYPEKIT_FONTS_BASE ]['Name'] = $name;
|
@@ -117,12 +117,13 @@ if ( ! class_exists( 'Typekit_Fonts_White_Label' ) ) :
|
|
117 |
*/
|
118 |
function white_label_custom_typekit_fonts_title( $title ) {
|
119 |
|
120 |
-
if ( is_callable( 'Astra_Ext_White_Label_Markup::
|
121 |
-
$name = Astra_Ext_White_Label_Markup::
|
122 |
if ( ! empty( $name ) ) {
|
123 |
$title = $name;
|
124 |
}
|
125 |
}
|
|
|
126 |
return $title;
|
127 |
}
|
128 |
|
@@ -138,11 +139,11 @@ if ( ! class_exists( 'Typekit_Fonts_White_Label' ) ) :
|
|
138 |
*/
|
139 |
public function plugin_links( $plugin_meta, $plugin_file, $plugin_data ) {
|
140 |
|
141 |
-
if ( is_callable( 'Astra_Ext_White_Label_Markup::
|
142 |
if ( CUSTOM_TYPEKIT_FONTS_BASE == $plugin_file ) {
|
143 |
// Set White Labels.
|
144 |
-
$name = Astra_Ext_White_Label_Markup::
|
145 |
-
$description = Astra_Ext_White_Label_Markup::
|
146 |
|
147 |
if ( ! empty( $name ) ) {
|
148 |
// Remove Plugin URI if Agency White Label name is set.
|
72 |
*/
|
73 |
function plugins_page( $plugins ) {
|
74 |
|
75 |
+
if ( ! is_callable( 'Astra_Ext_White_Label_Markup::get_whitelabel_string' ) ) {
|
76 |
return $plugins;
|
77 |
}
|
78 |
|
81 |
}
|
82 |
|
83 |
// Set White Labels.
|
84 |
+
$name = Astra_Ext_White_Label_Markup::get_whitelabel_string( 'custom-typekit-fonts', 'name' );
|
85 |
+
$description = Astra_Ext_White_Label_Markup::get_whitelabel_string( 'custom-typekit-fonts', 'description' );
|
86 |
+
$author = Astra_Ext_White_Label_Markup::get_whitelabel_string( 'astra-agency', 'author' );
|
87 |
+
$author_uri = Astra_Ext_White_Label_Markup::get_whitelabel_string( 'astra-agency', 'author_url' );
|
88 |
|
89 |
if ( ! empty( $name ) ) {
|
90 |
$plugins[ CUSTOM_TYPEKIT_FONTS_BASE ]['Name'] = $name;
|
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' );
|
122 |
if ( ! empty( $name ) ) {
|
123 |
$title = $name;
|
124 |
}
|
125 |
}
|
126 |
+
|
127 |
return $title;
|
128 |
}
|
129 |
|
139 |
*/
|
140 |
public function plugin_links( $plugin_meta, $plugin_file, $plugin_data ) {
|
141 |
|
142 |
+
if ( is_callable( 'Astra_Ext_White_Label_Markup::get_whitelabel_string' ) ) {
|
143 |
if ( CUSTOM_TYPEKIT_FONTS_BASE == $plugin_file ) {
|
144 |
// Set White Labels.
|
145 |
+
$name = Astra_Ext_White_Label_Markup::get_whitelabel_string( 'custom-typekit-fonts', 'name' );
|
146 |
+
$description = Astra_Ext_White_Label_Markup::get_whitelabel_string( 'custom-typekit-fonts', 'description' );
|
147 |
|
148 |
if ( ! empty( $name ) ) {
|
149 |
// Remove Plugin URI if Agency White Label name is set.
|
custom-typekit-fonts.php
CHANGED
@@ -1,12 +1,12 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
* Plugin Name: Custom
|
4 |
* Plugin URI: http://www.wpastra.com/
|
5 |
-
* Description: Custom
|
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 |
*/
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Plugin Name: Custom Adobe Fonts (Typekit)
|
4 |
* Plugin URI: http://www.wpastra.com/
|
5 |
+
* Description: Custom Adobe Fonts allows you to extends the fonts supports from the Typekit.
|
6 |
* Author: Brainstorm Force
|
7 |
* Author URI: http://www.brainstormforce.com
|
8 |
* Text Domain: custom-typekit-fonts
|
9 |
+
* Version: 1.0.11
|
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.11' );
|
29 |
/**
|
30 |
* BSF Custom Fonts
|
31 |
*/
|
languages/custom-typekit-fonts.pot
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
# Copyright (C) 2019 Brainstorm Force
|
2 |
-
# This file is distributed under the same license as the Custom
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Custom
|
6 |
"Report-Msgid-Bugs-To: "
|
7 |
"https://wordpress.org/support/plugin/custom-typekit-fonts\n"
|
8 |
-
"POT-Creation-Date: 2019-
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=utf-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -26,7 +26,6 @@ msgstr ""
|
|
26 |
"X-Generator: grunt-wp-i18n 1.0.3\n"
|
27 |
|
28 |
#: classes/class-custom-typekit-fonts-admin.php:80
|
29 |
-
#: templates/custom-typekit-fonts-options.php:27
|
30 |
msgid "Please Enter the Valid Kit ID to get the kit details."
|
31 |
msgstr ""
|
32 |
|
@@ -39,8 +38,11 @@ msgid "Custom Typekit Fonts settings have been successfully saved."
|
|
39 |
msgstr ""
|
40 |
|
41 |
#: classes/class-custom-typekit-fonts-admin.php:106
|
42 |
-
#: classes/class-custom-typekit-fonts-render.php:94
|
43 |
#: templates/custom-typekit-fonts-options.php:11
|
|
|
|
|
|
|
|
|
44 |
msgid "Typekit Fonts"
|
45 |
msgstr ""
|
46 |
|
@@ -49,11 +51,15 @@ msgid "Settings"
|
|
49 |
msgstr ""
|
50 |
|
51 |
#: templates/custom-typekit-fonts-options.php:24
|
52 |
-
msgid "
|
|
|
|
|
|
|
|
|
53 |
msgstr ""
|
54 |
|
55 |
#: templates/custom-typekit-fonts-options.php:35
|
56 |
-
msgid "Edit
|
57 |
msgstr ""
|
58 |
|
59 |
#: templates/custom-typekit-fonts-options.php:39
|
@@ -93,8 +99,8 @@ msgstr ""
|
|
93 |
#: templates/custom-typekit-fonts-options.php:112
|
94 |
#. translators: %1$s: typekit site url.
|
95 |
msgid ""
|
96 |
-
"You can get the
|
97 |
-
"Typekit Account. <b>
|
98 |
msgstr ""
|
99 |
|
100 |
#: templates/custom-typekit-fonts-options.php:123
|
@@ -117,20 +123,20 @@ msgstr ""
|
|
117 |
msgid "Go To Customizer"
|
118 |
msgstr ""
|
119 |
|
120 |
-
#: templates/white-label.php:
|
121 |
msgid "Custom Typekit Fonts Branding"
|
122 |
msgstr ""
|
123 |
|
124 |
-
#: templates/white-label.php:
|
125 |
msgid "Plugin Name:"
|
126 |
msgstr ""
|
127 |
|
128 |
-
#: templates/white-label.php:
|
129 |
msgid "Plugin Description:"
|
130 |
msgstr ""
|
131 |
|
132 |
#. Plugin Name of the plugin/theme
|
133 |
-
msgid "Custom
|
134 |
msgstr ""
|
135 |
|
136 |
#. Plugin URI of the plugin/theme
|
@@ -139,7 +145,7 @@ msgstr ""
|
|
139 |
|
140 |
#. Description of the plugin/theme
|
141 |
msgid ""
|
142 |
-
"Custom
|
143 |
"Typekit."
|
144 |
msgstr ""
|
145 |
|
1 |
# Copyright (C) 2019 Brainstorm Force
|
2 |
+
# This file is distributed under the same license as the Custom Adobe Fonts (Typekit) package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Custom Adobe Fonts (Typekit) 1.0.11\n"
|
6 |
"Report-Msgid-Bugs-To: "
|
7 |
"https://wordpress.org/support/plugin/custom-typekit-fonts\n"
|
8 |
+
"POT-Creation-Date: 2019-03-25 11:29:25+00:00\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=utf-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
26 |
"X-Generator: grunt-wp-i18n 1.0.3\n"
|
27 |
|
28 |
#: classes/class-custom-typekit-fonts-admin.php:80
|
|
|
29 |
msgid "Please Enter the Valid Kit ID to get the kit details."
|
30 |
msgstr ""
|
31 |
|
38 |
msgstr ""
|
39 |
|
40 |
#: classes/class-custom-typekit-fonts-admin.php:106
|
|
|
41 |
#: templates/custom-typekit-fonts-options.php:11
|
42 |
+
msgid "Adobe Fonts"
|
43 |
+
msgstr ""
|
44 |
+
|
45 |
+
#: classes/class-custom-typekit-fonts-render.php:94
|
46 |
msgid "Typekit Fonts"
|
47 |
msgstr ""
|
48 |
|
51 |
msgstr ""
|
52 |
|
53 |
#: templates/custom-typekit-fonts-options.php:24
|
54 |
+
msgid "Project ID:"
|
55 |
+
msgstr ""
|
56 |
+
|
57 |
+
#: templates/custom-typekit-fonts-options.php:27
|
58 |
+
msgid "Please Enter the Valid Project ID to get the kit details."
|
59 |
msgstr ""
|
60 |
|
61 |
#: templates/custom-typekit-fonts-options.php:35
|
62 |
+
msgid "Edit Project ID"
|
63 |
msgstr ""
|
64 |
|
65 |
#: templates/custom-typekit-fonts-options.php:39
|
99 |
#: templates/custom-typekit-fonts-options.php:112
|
100 |
#. translators: %1$s: typekit site url.
|
101 |
msgid ""
|
102 |
+
"You can get the Project ID <a href=%1$s target=\"_blank\" >here</a> from "
|
103 |
+
"your Typekit Account. <b>Project ID</b> can be found next to the kit names."
|
104 |
msgstr ""
|
105 |
|
106 |
#: templates/custom-typekit-fonts-options.php:123
|
123 |
msgid "Go To Customizer"
|
124 |
msgstr ""
|
125 |
|
126 |
+
#: templates/white-label.php:18 templates/white-label.php:23
|
127 |
msgid "Custom Typekit Fonts Branding"
|
128 |
msgstr ""
|
129 |
|
130 |
+
#: templates/white-label.php:29
|
131 |
msgid "Plugin Name:"
|
132 |
msgstr ""
|
133 |
|
134 |
+
#: templates/white-label.php:34
|
135 |
msgid "Plugin Description:"
|
136 |
msgstr ""
|
137 |
|
138 |
#. Plugin Name of the plugin/theme
|
139 |
+
msgid "Custom Adobe Fonts (Typekit)"
|
140 |
msgstr ""
|
141 |
|
142 |
#. Plugin URI of the plugin/theme
|
145 |
|
146 |
#. Description of the plugin/theme
|
147 |
msgid ""
|
148 |
+
"Custom Adobe Fonts allows you to extends the fonts supports from the "
|
149 |
"Typekit."
|
150 |
msgstr ""
|
151 |
|
readme.txt
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
-
=== Custom
|
2 |
Contributors: brainstormforce
|
3 |
-
Donate link: https://
|
4 |
-
Tags: custom
|
5 |
Requires at least: 4.4
|
6 |
Tested up to: 5.1
|
7 |
-
Stable tag: 1.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
-
Custom
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
-
This plugin helps you easily embed
|
16 |
|
17 |
Currently it works with:
|
18 |
|
@@ -24,7 +24,7 @@ Currently it works with:
|
|
24 |
How does it work?
|
25 |
|
26 |
1. Install the plugin
|
27 |
-
2. Enter the
|
28 |
3. And done. You will be able to see the fonts added in the settings of Astra / Beaver Builder / Elementor. Please refer screenshots.
|
29 |
|
30 |
If you're not using any of the supported plugins and theme, you can write the custom CSS to apply the fonts.
|
@@ -33,22 +33,25 @@ If you're not using any of the supported plugins and theme, you can write the cu
|
|
33 |
|
34 |
1. Upload the plugin files to the `/wp-content/plugins/custom-typekit-fonts` directory, or install the plugin through the WordPress plugins screen directly.
|
35 |
2. Activate the plugin through the 'Plugins' screen in WordPress.
|
36 |
-
3. Use the Appearance ->
|
37 |
4. If you are using [Astra](https://wpastra.com) then start using fonts from the customizer.
|
38 |
-
5. You can also select Font Family from Appearance ->
|
39 |
|
40 |
== Screenshots ==
|
41 |
|
42 |
-
1. Get your
|
43 |
-
2. Enter your
|
44 |
-
3. Get all published kit details from your
|
45 |
-
4. Select any
|
46 |
-
5. Select any
|
47 |
-
6. Select any
|
48 |
-
7. Select any
|
49 |
|
50 |
== Changelog ==
|
51 |
|
|
|
|
|
|
|
52 |
= v1.0.10 =
|
53 |
- Fix: Remove typekit font from the Astra Theme's google fonts URL.
|
54 |
|
1 |
+
=== Custom Adobe Fonts (Typekit) ===
|
2 |
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.1
|
7 |
+
Stable tag: 1.0.11
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
+
Custom Adobe Fonts allows you to extends the fonts supports from the Abobe Fonts.
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
+
This plugin helps you easily embed adobe fonts easily in your WordPress website.
|
16 |
|
17 |
Currently it works with:
|
18 |
|
24 |
How does it work?
|
25 |
|
26 |
1. Install the plugin
|
27 |
+
2. Enter the Project ID that you create in adobe fonts.
|
28 |
3. And done. You will be able to see the fonts added in the settings of Astra / Beaver Builder / Elementor. Please refer screenshots.
|
29 |
|
30 |
If you're not using any of the supported plugins and theme, you can write the custom CSS to apply the fonts.
|
33 |
|
34 |
1. Upload the plugin files to the `/wp-content/plugins/custom-typekit-fonts` directory, or install the plugin through the WordPress plugins screen directly.
|
35 |
2. Activate the plugin through the 'Plugins' screen in WordPress.
|
36 |
+
3. Use the Appearance -> Adobe Fonts -> Add Kit ID and get all Font list.
|
37 |
4. If you are using [Astra](https://wpastra.com) then start using fonts from the customizer.
|
38 |
+
5. You can also select Font Family from Appearance -> Adobe Fonts and start using it into your custom CSS.
|
39 |
|
40 |
== Screenshots ==
|
41 |
|
42 |
+
1. Get your Project ID
|
43 |
+
2. Enter your Project ID
|
44 |
+
3. Get all published kit details from your Adobe ID
|
45 |
+
4. Select any Adobe font from Astra Theme Customizer
|
46 |
+
5. Select any Adobe font from Elementor
|
47 |
+
6. Select any Adobe font from Beaver Builder
|
48 |
+
7. Select any Adobe font from Beaver Builder Theme Customizer
|
49 |
|
50 |
== Changelog ==
|
51 |
|
52 |
+
= v1.0.11 =
|
53 |
+
- Improvement: Allow whitelabel settings to be setup from using constants when using Astra Pro.
|
54 |
+
|
55 |
= v1.0.10 =
|
56 |
- Fix: Remove typekit font from the Astra Theme's google fonts URL.
|
57 |
|
templates/custom-typekit-fonts-options.php
CHANGED
@@ -8,7 +8,7 @@
|
|
8 |
$kit_info = get_option( 'custom-typekit-fonts' );
|
9 |
?>
|
10 |
<div class="wrap">
|
11 |
-
<h2><?php
|
12 |
<div id="poststuff">
|
13 |
<div id="post-body" class="metabox-holder columns-2 typekit-custom-fonts-wrap">
|
14 |
<div id="post-body-content">
|
@@ -21,10 +21,10 @@ $kit_info = get_option( 'custom-typekit-fonts' );
|
|
21 |
<tr valign="top">
|
22 |
<th scope="row">
|
23 |
<label
|
24 |
-
for="typekit_id"> <?php esc_html_e( '
|
25 |
</label>
|
26 |
<i class="custom-typekit-fonts-help dashicons dashicons-editor-help"
|
27 |
-
title="<?php echo esc_attr__( 'Please Enter the Valid
|
28 |
</th>
|
29 |
<td><input
|
30 |
style="display:<?php echo esc_attr( empty( $kit_info['custom-typekit-font-details'] ) ? 'inline-block' : 'none' ); ?>"
|
@@ -32,7 +32,7 @@ $kit_info = get_option( 'custom-typekit-fonts' );
|
|
32 |
value="<?php echo ( isset( $kit_info['custom-typekit-font-id'] ) ) ? esc_attr( $kit_info['custom-typekit-font-id'] ) : ''; ?>">
|
33 |
<?php if ( ! empty( $kit_info['custom-typekit-font-details'] ) ) : ?>
|
34 |
<a class="add-new-typekit button button-large"
|
35 |
-
href="#"><?php echo esc_html__( 'Edit
|
36 |
<?php endif; ?>
|
37 |
|
38 |
<?php
|
@@ -109,7 +109,7 @@ $kit_info = get_option( 'custom-typekit-fonts' );
|
|
109 |
<p>
|
110 |
<?php
|
111 |
/* translators: %1$s: typekit site url. */
|
112 |
-
printf( __( 'You can get the
|
113 |
?>
|
114 |
</p>
|
115 |
|
8 |
$kit_info = get_option( 'custom-typekit-fonts' );
|
9 |
?>
|
10 |
<div class="wrap">
|
11 |
+
<h2><?php echo esc_html( apply_filters( 'custom_typekit_fonts_menu_title', __( 'Adobe Fonts', 'custom-typekit-fonts' ) ) ); ?></h2>
|
12 |
<div id="poststuff">
|
13 |
<div id="post-body" class="metabox-holder columns-2 typekit-custom-fonts-wrap">
|
14 |
<div id="post-body-content">
|
21 |
<tr valign="top">
|
22 |
<th scope="row">
|
23 |
<label
|
24 |
+
for="typekit_id"> <?php esc_html_e( 'Project ID:', 'custom-typekit-fonts' ); ?>
|
25 |
</label>
|
26 |
<i class="custom-typekit-fonts-help dashicons dashicons-editor-help"
|
27 |
+
title="<?php echo esc_attr__( 'Please Enter the Valid Project ID to get the kit details.', 'custom-typekit-fonts' ); ?>"></i>
|
28 |
</th>
|
29 |
<td><input
|
30 |
style="display:<?php echo esc_attr( empty( $kit_info['custom-typekit-font-details'] ) ? 'inline-block' : 'none' ); ?>"
|
32 |
value="<?php echo ( isset( $kit_info['custom-typekit-font-id'] ) ) ? esc_attr( $kit_info['custom-typekit-font-id'] ) : ''; ?>">
|
33 |
<?php if ( ! empty( $kit_info['custom-typekit-font-details'] ) ) : ?>
|
34 |
<a class="add-new-typekit button button-large"
|
35 |
+
href="#"><?php echo esc_html__( 'Edit Project ID', 'custom-typekit-fonts' ); ?></a>
|
36 |
<?php endif; ?>
|
37 |
|
38 |
<?php
|
109 |
<p>
|
110 |
<?php
|
111 |
/* translators: %1$s: typekit site url. */
|
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' );
|
113 |
?>
|
114 |
</p>
|
115 |
|
templates/white-label.php
CHANGED
@@ -5,6 +5,12 @@
|
|
5 |
* @package Custom Typekit Fonts
|
6 |
*/
|
7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
?>
|
9 |
<li>
|
10 |
<div class="branding-form postbox">
|
@@ -21,12 +27,12 @@
|
|
21 |
<div class="form-wrap">
|
22 |
<div class="form-field">
|
23 |
<label><?php _e( 'Plugin Name:', 'custom-typekit-fonts' ); ?>
|
24 |
-
<input type="text" name="ast_white_label[custom-typekit-fonts][name]" class="placeholder placeholder-active" value="<?php echo esc_attr(
|
25 |
</label>
|
26 |
</div>
|
27 |
<div class="form-field">
|
28 |
<label><?php _e( 'Plugin Description:', 'custom-typekit-fonts' ); ?>
|
29 |
-
<textarea name="ast_white_label[custom-typekit-fonts][description]" class="placeholder placeholder-active" rows="2"><?php echo esc_attr(
|
30 |
</label>
|
31 |
</div>
|
32 |
<div class="clear"></div>
|
5 |
* @package Custom Typekit Fonts
|
6 |
*/
|
7 |
|
8 |
+
?>
|
9 |
+
<?php
|
10 |
+
// Bail from displaying settings screen if Astra Pro is older version.
|
11 |
+
if ( ! is_callable( 'Astra_Ext_White_Label_Markup::branding_key_to_constant' ) ) {
|
12 |
+
return;
|
13 |
+
}
|
14 |
?>
|
15 |
<li>
|
16 |
<div class="branding-form postbox">
|
27 |
<div class="form-wrap">
|
28 |
<div class="form-field">
|
29 |
<label><?php _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 _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>
|
38 |
<div class="clear"></div>
|