Version Description
Download this release
Release Info
Developer | DannyCooper |
Plugin | Google Fonts for WordPress |
Version | 1.9.1 |
Comparing to | |
See all releases |
Code changes from version 1.9.0 to 1.9.1
- changelog.txt +4 -0
- includes/class-ogf-classic-editor.php +8 -8
- includes/customizer/settings.php +1 -1
- languages/olympus-google-fonts.pot +7 -4
- olympus-google-fonts.php +2 -2
- readme.txt +1 -1
changelog.txt
CHANGED
@@ -1,3 +1,7 @@
|
|
|
|
|
|
|
|
|
|
1 |
= 1.9.0 =
|
2 |
|
3 |
* Update available fonts list
|
1 |
+
= 1.9.1 =
|
2 |
+
|
3 |
+
* Fix conflict with TinyMCE Advanced plugin
|
4 |
+
|
5 |
= 1.9.0 =
|
6 |
|
7 |
* Update available fonts list
|
includes/class-ogf-classic-editor.php
CHANGED
@@ -63,7 +63,7 @@ if ( ! class_exists( 'OGF_Classic_Editor' ) ) :
|
|
63 |
|
64 |
$opt['font_formats'] = apply_filters( 'ogf_classic_font_formats', 'Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book antiqua,palatino;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier;Georgia=georgia,palatino;Helvetica=helvetica;Impact=impact,chicago;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco;Times New Roman=times new roman,times;Trebuchet MS=trebuchet ms,geneva;Verdana=verdana,geneva;' );
|
65 |
|
66 |
-
$opt['fontsize_formats'] = apply_filters( 'ogf_classic_font_sizes', '8px 10px 12px 14px 16px 18px 24px 30px 36px 48px 60px 72px' );
|
67 |
|
68 |
return $opt;
|
69 |
}
|
@@ -74,14 +74,14 @@ if ( ! class_exists( 'OGF_Classic_Editor' ) ) :
|
|
74 |
* @param array $default The default fonts.
|
75 |
*/
|
76 |
public function tinymce_add_fonts( $default ) {
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
}
|
83 |
}
|
84 |
-
|
|
|
85 |
}
|
86 |
|
87 |
/**
|
63 |
|
64 |
$opt['font_formats'] = apply_filters( 'ogf_classic_font_formats', 'Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book antiqua,palatino;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier;Georgia=georgia,palatino;Helvetica=helvetica;Impact=impact,chicago;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco;Times New Roman=times new roman,times;Trebuchet MS=trebuchet ms,geneva;Verdana=verdana,geneva;' );
|
65 |
|
66 |
+
// $opt['fontsize_formats'] = apply_filters( 'ogf_classic_font_sizes', '8px 10px 12px 14px 16px 18px 24px 30px 36px 48px 60px 72px' );
|
67 |
|
68 |
return $opt;
|
69 |
}
|
74 |
* @param array $default The default fonts.
|
75 |
*/
|
76 |
public function tinymce_add_fonts( $default ) {
|
77 |
+
$default = '';
|
78 |
+
$choices = $this->ogf_fonts->choices;
|
79 |
+
foreach ( $choices as $font ) {
|
80 |
+
if ( ! ogf_is_system_font( $font ) ) {
|
81 |
+
$default .= $this->ogf_fonts->get_font_name( $font ) . '=' . $this->ogf_fonts->get_font_name( $font ) . ';';
|
|
|
82 |
}
|
83 |
+
}
|
84 |
+
return $default;
|
85 |
}
|
86 |
|
87 |
/**
|
includes/customizer/settings.php
CHANGED
@@ -53,7 +53,7 @@ function ogf_customize_register( $wp_customize ) {
|
|
53 |
$wp_customize,
|
54 |
'ogf_load_fonts',
|
55 |
array(
|
56 |
-
'label' => esc_html__( 'Load Fonts
|
57 |
'description' => esc_html__( 'Load fonts but don\'t automatically assign them to an element.', 'olympus-google-fonts' ),
|
58 |
'section' => 'ogf_advanced__css',
|
59 |
)
|
53 |
$wp_customize,
|
54 |
'ogf_load_fonts',
|
55 |
array(
|
56 |
+
'label' => esc_html__( 'Load Fonts Only', 'olympus-google-fonts' ),
|
57 |
'description' => esc_html__( 'Load fonts but don\'t automatically assign them to an element.', 'olympus-google-fonts' ),
|
58 |
'section' => 'ogf_advanced__css',
|
59 |
)
|
languages/olympus-google-fonts.pot
CHANGED
@@ -2,14 +2,14 @@
|
|
2 |
# This file is distributed under the same license as the Google Fonts Typography plugin.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Google Fonts Typography 1.9.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/olympus-google-fonts\n"
|
7 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
8 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"POT-Creation-Date: 2019-07-
|
13 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
14 |
"X-Generator: WP-CLI 2.1.0\n"
|
15 |
"X-Domain: olympus-google-fonts\n"
|
@@ -365,8 +365,7 @@ msgid "Custom Elements"
|
|
365 |
msgstr ""
|
366 |
|
367 |
#: includes/customizer/settings.php:56
|
368 |
-
|
369 |
-
msgid "Load Fonts for CSS"
|
370 |
msgstr ""
|
371 |
|
372 |
#: includes/customizer/settings.php:57
|
@@ -440,6 +439,10 @@ msgstr ""
|
|
440 |
msgid "Footer"
|
441 |
msgstr ""
|
442 |
|
|
|
|
|
|
|
|
|
443 |
#: includes/customizer/controls/class-ogf-customize-repeater-control.php:83
|
444 |
msgid "Add New"
|
445 |
msgstr ""
|
2 |
# This file is distributed under the same license as the Google Fonts Typography plugin.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Google Fonts Typography 1.9.1\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/olympus-google-fonts\n"
|
7 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
8 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"POT-Creation-Date: 2019-07-23T19:35:15+00:00\n"
|
13 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
14 |
"X-Generator: WP-CLI 2.1.0\n"
|
15 |
"X-Domain: olympus-google-fonts\n"
|
365 |
msgstr ""
|
366 |
|
367 |
#: includes/customizer/settings.php:56
|
368 |
+
msgid "Load Fonts Only"
|
|
|
369 |
msgstr ""
|
370 |
|
371 |
#: includes/customizer/settings.php:57
|
439 |
msgid "Footer"
|
440 |
msgstr ""
|
441 |
|
442 |
+
#: includes/customizer/panels.php:159
|
443 |
+
msgid "Load Fonts for CSS"
|
444 |
+
msgstr ""
|
445 |
+
|
446 |
#: includes/customizer/controls/class-ogf-customize-repeater-control.php:83
|
447 |
msgid "Add New"
|
448 |
msgstr ""
|
olympus-google-fonts.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Plugin Name: Google Fonts Typography
|
6 |
* Plugin URI: https://wordpress.org/plugins/olympus-google-fonts/
|
7 |
* Description: The easiest to use Google Fonts typography plugin. No coding required. 870+ font choices.
|
8 |
-
* Version: 1.9.
|
9 |
* Author: Fonts Plugin
|
10 |
* Author URI: https://fontsplugin.com/?utm_source=wporg&utm_campaign=heading
|
11 |
* Text Domain: olympus-google-fonts
|
@@ -18,7 +18,7 @@
|
|
18 |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
19 |
*/
|
20 |
|
21 |
-
define( 'OGF_VERSION', '1.9.
|
22 |
define( 'OGF_DIR_PATH', plugin_dir_path( __FILE__ ) );
|
23 |
define( 'OGF_DIR_URL', plugin_dir_url( __FILE__ ) );
|
24 |
|
5 |
* Plugin Name: Google Fonts Typography
|
6 |
* Plugin URI: https://wordpress.org/plugins/olympus-google-fonts/
|
7 |
* Description: The easiest to use Google Fonts typography plugin. No coding required. 870+ font choices.
|
8 |
+
* Version: 1.9.1
|
9 |
* Author: Fonts Plugin
|
10 |
* Author URI: https://fontsplugin.com/?utm_source=wporg&utm_campaign=heading
|
11 |
* Text Domain: olympus-google-fonts
|
18 |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
19 |
*/
|
20 |
|
21 |
+
define( 'OGF_VERSION', '1.9.1' );
|
22 |
define( 'OGF_DIR_PATH', plugin_dir_path( __FILE__ ) );
|
23 |
define( 'OGF_DIR_URL', plugin_dir_url( __FILE__ ) );
|
24 |
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Donate link: https://fontsplugin.com/#pricing
|
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 5.2
|
7 |
License: GPLv2 or later
|
8 |
-
Stable tag: 1.9.
|
9 |
|
10 |
The easiest to use Google Fonts Typography Plugin. No coding required. 870+ font choices.
|
11 |
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 5.2
|
7 |
License: GPLv2 or later
|
8 |
+
Stable tag: 1.9.1
|
9 |
|
10 |
The easiest to use Google Fonts Typography Plugin. No coding required. 870+ font choices.
|
11 |
|