Version Description
-Fixed conflicted function name -Added activation tab
=
Download this release
Release Info
Developer | killerdeveloper |
Plugin | Font – official webfonts plugin of Fonts For Web. NO CODING! Just click & change font size, color and font face visually! |
Version | 7.2.0 |
Comparing to | |
See all releases |
Code changes from version 7.1.9 to 7.2.0
- Font.php +7 -6
- js/jquery.fontPlugin.js +8 -4
- readme.txt +8 -1
Font.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Font
|
4 |
Plugin URI: http://fontsforweb.com
|
5 |
Description: Now go to your home page. And click on "Font settings" in admin bar and choose some exciting font out of 1000+ availabile! And that's just the beginning!
|
6 |
-
Version: 7.
|
7 |
Author: Paweł Misiurski
|
8 |
Author URI: http://fontsforweb.com
|
9 |
License: Copyright (C) 2012 Pawel Misiurski
|
@@ -23,7 +23,7 @@
|
|
23 |
class FontPlugin {
|
24 |
public $pluginName = 'Font';
|
25 |
public $baseUrl = 'http://fontsforweb.com';
|
26 |
-
public $version = '7.
|
27 |
//url parts for requesting css for elements
|
28 |
private $titleUrlPart;
|
29 |
private $headerUrlPart;
|
@@ -110,11 +110,12 @@ class FontPlugin {
|
|
110 |
wp_register_style('colorpicker2', plugins_url('/css/colorpicker.css', __FILE__));
|
111 |
|
112 |
// save activation output
|
113 |
-
add_action('activated_plugin','save_error');
|
114 |
-
|
115 |
-
update_option('plugin_error', 'Activation result: ' . ob_get_contents());
|
116 |
-
}
|
117 |
}
|
|
|
|
|
|
|
118 |
function getApikey () {
|
119 |
$settings = $this->getJsonSettings();
|
120 |
if(!isset($settings->apikey) || !$settings->apikey || $settings->apikey == '') {
|
3 |
Plugin Name: Font
|
4 |
Plugin URI: http://fontsforweb.com
|
5 |
Description: Now go to your home page. And click on "Font settings" in admin bar and choose some exciting font out of 1000+ availabile! And that's just the beginning!
|
6 |
+
Version: 7.2.0
|
7 |
Author: Paweł Misiurski
|
8 |
Author URI: http://fontsforweb.com
|
9 |
License: Copyright (C) 2012 Pawel Misiurski
|
23 |
class FontPlugin {
|
24 |
public $pluginName = 'Font';
|
25 |
public $baseUrl = 'http://fontsforweb.com';
|
26 |
+
public $version = '7.2.0';
|
27 |
//url parts for requesting css for elements
|
28 |
private $titleUrlPart;
|
29 |
private $headerUrlPart;
|
110 |
wp_register_style('colorpicker2', plugins_url('/css/colorpicker.css', __FILE__));
|
111 |
|
112 |
// save activation output
|
113 |
+
add_action('activated_plugin',array(&$this, 'save_error'));
|
114 |
+
|
|
|
|
|
115 |
}
|
116 |
+
function save_error(){
|
117 |
+
update_option('plugin_error', 'Activation result: ' . ob_get_contents());
|
118 |
+
}
|
119 |
function getApikey () {
|
120 |
$settings = $this->getJsonSettings();
|
121 |
if(!isset($settings->apikey) || !$settings->apikey || $settings->apikey == '') {
|
js/jquery.fontPlugin.js
CHANGED
@@ -252,7 +252,7 @@ Add all setting fields
|
|
252 |
// color and size window
|
253 |
//var colorsizeSettings = $('<button id="colorsizeSettings" class="toggleModal" data-modal-name="stdSettings">Color and Size</button>').appendTo(actions);
|
254 |
// PRO settings window
|
255 |
-
var proSettings = $('<a href="http://fontsforweb.com/purchase/
|
256 |
// extra fields
|
257 |
var extrafieldsSettings = $('<button id="extrafieldsSettings" class="toggleModal" data-modal-name="extrafields">PRO</button>').appendTo(actions);
|
258 |
// hide extra fields
|
@@ -1017,7 +1017,7 @@ Create effects modal
|
|
1017 |
// change
|
1018 |
dropdown.change(function () {
|
1019 |
if ($(this).val() == 'upgrade') {
|
1020 |
-
var link = $('<a href="http://fontsforweb.com/purchase/
|
1021 |
link.click();
|
1022 |
link.remove();
|
1023 |
return;
|
@@ -1704,12 +1704,16 @@ Create HTML markup
|
|
1704 |
*/
|
1705 |
self.createFontPanel = function () {
|
1706 |
var i;
|
|
|
|
|
1707 |
//create html withing font browser
|
1708 |
self.$el.show();
|
1709 |
self.$el.append($('<h1 class="draggableModalBar">Fonts browser<a class="closeModal" href="#">x</a></h1>'));
|
1710 |
-
self.$el.append('<div class="tablinks"><a class="tablink" href="fontslist">Fontsforweb.com</a><a class="tablink" href="uploaded">Upload</a></div>');
|
1711 |
self.$el.append('<div class="tab" id="fontslist"></div>');
|
1712 |
self.$el.append('<div class="tab" id="uploaded"><div class="loading"></div></div>');
|
|
|
|
|
1713 |
self.$el.find('.tab').hide();
|
1714 |
self.$el.find('.tab').eq(0).show();
|
1715 |
self.$el.find('.tablink').on('click', function (e) {
|
@@ -1988,7 +1992,7 @@ $('.fontUploading').hide();
|
|
1988 |
var selector = self.currentPreset.selector;
|
1989 |
//add cancel button
|
1990 |
if (!self.$cancelSelecting) {
|
1991 |
-
self.$cancelSelecting = $('<a href="#" class="cancelSelecting">
|
1992 |
$('body').append(self.$cancelSelecting);
|
1993 |
self.$cancelSelecting.data('cancelSelecting', true);
|
1994 |
//hide other elements
|
252 |
// color and size window
|
253 |
//var colorsizeSettings = $('<button id="colorsizeSettings" class="toggleModal" data-modal-name="stdSettings">Color and Size</button>').appendTo(actions);
|
254 |
// PRO settings window
|
255 |
+
var proSettings = $('<a href="http://fontsforweb.com/purchase/pluginupgradesubscribe?url=' + fontBlogUrl + '&name=' + fontBlogName + '" class="overlay_url" id="upgradeToProButton" data-upgrade="true">More</a>').appendTo(actions);
|
256 |
// extra fields
|
257 |
var extrafieldsSettings = $('<button id="extrafieldsSettings" class="toggleModal" data-modal-name="extrafields">PRO</button>').appendTo(actions);
|
258 |
// hide extra fields
|
1017 |
// change
|
1018 |
dropdown.change(function () {
|
1019 |
if ($(this).val() == 'upgrade') {
|
1020 |
+
var link = $('<a href="http://fontsforweb.com/purchase/pluginupgradesubscribe?url=' + fontBlogUrl + '&name=' + fontBlogName + '" class="overlay_url" id="upgradeToProButton" data-upgrade="true">More</a>').appendTo('body');
|
1021 |
link.click();
|
1022 |
link.remove();
|
1023 |
return;
|
1704 |
*/
|
1705 |
self.createFontPanel = function () {
|
1706 |
var i;
|
1707 |
+
var iframe = '<iframe style="width:98%; height:200px; border:none; margin: 10px 1%" frameBorder="0" src="http://fontsforweb.com/user/pluginactivate?apikey=' + self.options.apikey + '&blogurl=' + fontBlogUrl + '"></iframe>';
|
1708 |
+
|
1709 |
//create html withing font browser
|
1710 |
self.$el.show();
|
1711 |
self.$el.append($('<h1 class="draggableModalBar">Fonts browser<a class="closeModal" href="#">x</a></h1>'));
|
1712 |
+
self.$el.append('<div class="tablinks"><a class="tablink" href="fontslist">Fontsforweb.com</a><a class="tablink" href="uploaded">Upload</a><a class="tablink" href="pro">PRO</a></div>');
|
1713 |
self.$el.append('<div class="tab" id="fontslist"></div>');
|
1714 |
self.$el.append('<div class="tab" id="uploaded"><div class="loading"></div></div>');
|
1715 |
+
self.$el.append('<div class="tab" id="pro">' + iframe + '</div>');
|
1716 |
+
|
1717 |
self.$el.find('.tab').hide();
|
1718 |
self.$el.find('.tab').eq(0).show();
|
1719 |
self.$el.find('.tablink').on('click', function (e) {
|
1992 |
var selector = self.currentPreset.selector;
|
1993 |
//add cancel button
|
1994 |
if (!self.$cancelSelecting) {
|
1995 |
+
self.$cancelSelecting = $('<a href="#" class="cancelSelecting">Stop selecting</a>');
|
1996 |
$('body').append(self.$cancelSelecting);
|
1997 |
self.$cancelSelecting.data('cancelSelecting', true);
|
1998 |
//hide other elements
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://fontsforweb.com/
|
|
4 |
Tags: fonts, web fonts, font, fonts plugin, typekit, google webfont, TinyMCE plugin, ajax, webfonts
|
5 |
Requires at least: 2.8.0
|
6 |
Tested up to: 3.8.1
|
7 |
-
Stable tag: 7.
|
8 |
Finally official* web fonts plugin for wordpress. CLICK ON ANYTHING TO CHANGE IT(see screenshots)! Then change color, size and font face using sliders and color picker!
|
9 |
== Description ==
|
10 |
Finally official web fonts plugin for wordpress. No need for any coding at all! How? This plugin has an unique method of recognizing of what you click at!
|
@@ -166,6 +166,9 @@ Minor bug fixes
|
|
166 |
-fixed crashing on undefined jQuery.browser
|
167 |
= 7.1.9 =
|
168 |
-Fixed launching compatibility mode when jQuery completely overwritten
|
|
|
|
|
|
|
169 |
|
170 |
== Upgrade Notice ==
|
171 |
= 5.00 =
|
@@ -284,6 +287,10 @@ Fixed:
|
|
284 |
-fixed crashing on undefined jQuery.browser
|
285 |
= 7.1.9 =
|
286 |
-Fixed launching compatibility mode when jQuery completely overwritten
|
|
|
|
|
|
|
|
|
287 |
|
288 |
== Arbitrary section ==
|
289 |
== Source ==
|
4 |
Tags: fonts, web fonts, font, fonts plugin, typekit, google webfont, TinyMCE plugin, ajax, webfonts
|
5 |
Requires at least: 2.8.0
|
6 |
Tested up to: 3.8.1
|
7 |
+
Stable tag: 7.2.0
|
8 |
Finally official* web fonts plugin for wordpress. CLICK ON ANYTHING TO CHANGE IT(see screenshots)! Then change color, size and font face using sliders and color picker!
|
9 |
== Description ==
|
10 |
Finally official web fonts plugin for wordpress. No need for any coding at all! How? This plugin has an unique method of recognizing of what you click at!
|
166 |
-fixed crashing on undefined jQuery.browser
|
167 |
= 7.1.9 =
|
168 |
-Fixed launching compatibility mode when jQuery completely overwritten
|
169 |
+
= 7.2.0 =
|
170 |
+
-Fixed conflicted function name
|
171 |
+
-Added activation tab
|
172 |
|
173 |
== Upgrade Notice ==
|
174 |
= 5.00 =
|
287 |
-fixed crashing on undefined jQuery.browser
|
288 |
= 7.1.9 =
|
289 |
-Fixed launching compatibility mode when jQuery completely overwritten
|
290 |
+
= 7.2.0 =
|
291 |
+
-Fixed conflicted function name
|
292 |
+
-Added activation tab
|
293 |
+
|
294 |
|
295 |
== Arbitrary section ==
|
296 |
== Source ==
|