This commit is contained in:
2026-04-26 23:47:49 +02:00
parent 1b95f03d1e
commit b073e009d8
5288 changed files with 1112699 additions and 55536 deletions

View File

@@ -0,0 +1,44 @@
<?php
/*
Plugin Name: Fonts
Plugin URI: http://wpsites.net/plugins/fonts/
Description: Premium Upgrades: <a href="http://wpsites.net/wordpress-admin/add-google-web-fonts-to-your-wordpress-editor/">Add Google Fonts</a> | <a href="http://wpsites.net/wordpress-themes/add-custom-fonts-to-the-wordpress-editor/">Add custom fonts</a> | <a href="https://www.facebook.com/wpsites.net/messages/">Support</a> | <a href="https://wordpress.org/support/plugin/fonts/reviews/?filter=5">Click here to leave a review</a>
Version: 2.3
Author: Brad Dalton - WP Sites
Author URI: http://wpsites.net/wordpress-admin/add-google-web-fonts-to-your-wordpress-editor/
License: GPL2
*/
if ( ! defined( 'ABSPATH' ) ) {
die( 'Sorry, you are not allowed to access this page directly.' );
}
function add_more_buttons($buttons) {
$buttons[] = 'fontselect';
$buttons[] = 'fontsizeselect';
return $buttons;
}
add_filter("mce_buttons_3", "add_more_buttons");
add_action('admin_notices', 'wpsites_fonts_plugin_notice');
function wpsites_fonts_plugin_notice() {
global $current_user ;
$user_id = $current_user->ID;
/* Check that the user hasn't already clicked to ignore the message */
if ( ! get_user_meta($user_id, 'example_ignore_notice') ) {
echo '<div class="updated"><p>';
printf(__('Please support fonts by leaving a review : <a href="https://wordpress.org/support/plugin/fonts/reviews/?filter=5">Click here to leave a quick review</a> | <a href="%1$s">Hide Notice</a>'), '?example_nag_ignore=0');
echo "</p></div>";
}
}
add_action('admin_init', 'example_nag_ignore');
function example_nag_ignore() {
global $current_user;
$user_id = $current_user->ID;
/* If user clicks to ignore the notice, add that to their user meta */
if ( isset($_GET['example_nag_ignore']) && '0' == $_GET['example_nag_ignore'] ) {
add_user_meta($user_id, 'example_ignore_notice', 'true', true);
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View File

@@ -0,0 +1,42 @@
=== Fonts ===
Contributors: wordpresssites
Donate link: http://wpsites.net/donate-to-wp-sites/
Tags: fonts,font plugin, editor fonts
Requires at least: 3
Tested up to: 6.0.1
Stable tag: 5.8.3
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Add More Font Styles & Sizes To Your Visual Editor in WordPress
== Gutenberg ==
Works with the latest version of Gutenberg
== Description ==
This plugin adds 2 drop down menus to your visual editor with additional sizes and fonts:
1. A button for Styles
2. A button for Sizes
New: You can also add your own selection of Google or Custom fonts including premium fonts, to your editor by purchasing a premium upgrade.
== Support ==
New <a href="https://www.facebook.com/wpsites.net/messages/">Support - Start Live Chat</a>
<p><strong>Premium Upgrades:</strong></p>
<ul>
<li>Add Google fonts http://wpsites.net/wordpress-admin/add-google-web-fonts-to-your-wordpress-editor/</li>
<li>Add custom fonts http://wpsites.net/wordpress-themes/add-custom-fonts-to-the-wordpress-editor/</li>
</ul>
== Screenshots ==
1. This is the Font Family menu
2. This is the Font Sizes menu