Version Description
(2010-06-06) = * BUGFIX: Fixing bug where favicons would not be displayed in certain cases.
Download this release
Release Info
| Developer | techotronic |
| Plugin | |
| Version | 2.1 |
| Comparing to | |
| See all releases | |
Code changes from version 2.0 to 2.1
- all-in-one-favicon.php +2 -2
- includes/header-admin.php +23 -11
- includes/header-blog.php +23 -11
- readme.txt +6 -3
all-in-one-favicon.php
CHANGED
|
@@ -6,7 +6,7 @@
|
|
| 6 |
* Plugin Name: All in one Favicon
|
| 7 |
* Plugin URI: http://www.techotronic.de/plugins/all-in-one-favicon/
|
| 8 |
* Description: All in one Favicon management. Easily add a Favicon to your site and the WordPress admin pages. Complete with upload functionality. Supports all three Favicon types (ico,png,gif)
|
| 9 |
-
* Version: 2.
|
| 10 |
* Author: Arne Franken
|
| 11 |
* Author URI: http://www.techotronic.de/
|
| 12 |
* License: GPL
|
|
@@ -18,7 +18,7 @@
|
|
| 18 |
*/
|
| 19 |
|
| 20 |
// define constants
|
| 21 |
-
define('AIOFAVICON_VERSION', '2.
|
| 22 |
|
| 23 |
if (!defined('AIOFAVICON_PLUGIN_BASENAME')) {
|
| 24 |
define('AIOFAVICON_PLUGIN_BASENAME', plugin_basename(__FILE__));
|
| 6 |
* Plugin Name: All in one Favicon
|
| 7 |
* Plugin URI: http://www.techotronic.de/plugins/all-in-one-favicon/
|
| 8 |
* Description: All in one Favicon management. Easily add a Favicon to your site and the WordPress admin pages. Complete with upload functionality. Supports all three Favicon types (ico,png,gif)
|
| 9 |
+
* Version: 2.1
|
| 10 |
* Author: Arne Franken
|
| 11 |
* Author URI: http://www.techotronic.de/
|
| 12 |
* License: GPL
|
| 18 |
*/
|
| 19 |
|
| 20 |
// define constants
|
| 21 |
+
define('AIOFAVICON_VERSION', '2.1');
|
| 22 |
|
| 23 |
if (!defined('AIOFAVICON_PLUGIN_BASENAME')) {
|
| 24 |
define('AIOFAVICON_PLUGIN_BASENAME', plugin_basename(__FILE__));
|
includes/header-admin.php
CHANGED
|
@@ -9,23 +9,35 @@
|
|
| 9 |
*/
|
| 10 |
|
| 11 |
function aioFaviconRenderAdminHeader() {
|
| 12 |
-
$aioFaviconSettings = (array)get_option(AIOFAVICON_SETTINGSNAME);
|
| 13 |
-
if (!
|
| 14 |
?><!-- <?php echo AIOFAVICON_NAME ?> <?php echo AIOFAVICON_VERSION ?> | by Arne Franken, http://www.techotronic.de/ --><?php
|
| 15 |
foreach ((array) $aioFaviconSettings as $type => $url) {
|
| 16 |
-
if(
|
| 17 |
-
if(preg_match('/
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
}
|
| 26 |
}
|
| 27 |
}
|
| 28 |
?><!-- <?php echo AIOFAVICON_NAME ?> <?php echo AIOFAVICON_VERSION ?> | by Arne Franken, http://www.techotronic.de/ --><?php
|
|
|
|
| 29 |
}
|
| 30 |
}
|
|
|
|
| 31 |
?>
|
| 9 |
*/
|
| 10 |
|
| 11 |
function aioFaviconRenderAdminHeader() {
|
| 12 |
+
$aioFaviconSettings = (array) get_option(AIOFAVICON_SETTINGSNAME);
|
| 13 |
+
if (!empty($aioFaviconSettings)) {
|
| 14 |
?><!-- <?php echo AIOFAVICON_NAME ?> <?php echo AIOFAVICON_VERSION ?> | by Arne Franken, http://www.techotronic.de/ --><?php
|
| 15 |
foreach ((array) $aioFaviconSettings as $type => $url) {
|
| 16 |
+
if (!empty($url)) {
|
| 17 |
+
if (preg_match('/backend/i', $type)) {
|
| 18 |
+
if (preg_match('/ico/i', $type)) {
|
| 19 |
+
?>
|
| 20 |
+
<link rel="shortcut icon" href="<?php echo htmlspecialchars($url)?>"/><?php
|
| 21 |
+
|
| 22 |
+
} else if (preg_match('/gif/i', $type)) {
|
| 23 |
+
?>
|
| 24 |
+
<link rel="icon" href="<?php echo htmlspecialchars($url)?>" type="image/gif"/><?php
|
| 25 |
+
|
| 26 |
+
} else if (preg_match('/png/i', $type)) {
|
| 27 |
+
?>
|
| 28 |
+
<link rel="icon" href="<?php echo htmlspecialchars($url)?>" type="image/png"/><?php
|
| 29 |
+
|
| 30 |
+
} else if (preg_match('/apple/i', $type)) {
|
| 31 |
+
?>
|
| 32 |
+
<link rel="apple-touch-icon" href="<?php echo htmlspecialchars($url)?>"/><?php
|
| 33 |
+
|
| 34 |
+
}
|
| 35 |
}
|
| 36 |
}
|
| 37 |
}
|
| 38 |
?><!-- <?php echo AIOFAVICON_NAME ?> <?php echo AIOFAVICON_VERSION ?> | by Arne Franken, http://www.techotronic.de/ --><?php
|
| 39 |
+
|
| 40 |
}
|
| 41 |
}
|
| 42 |
+
|
| 43 |
?>
|
includes/header-blog.php
CHANGED
|
@@ -9,23 +9,35 @@
|
|
| 9 |
*/
|
| 10 |
|
| 11 |
function aioFaviconRenderBlogHeader() {
|
| 12 |
-
$aioFaviconSettings = (array)get_option(AIOFAVICON_SETTINGSNAME);
|
| 13 |
-
if (!
|
| 14 |
?><!-- <?php echo AIOFAVICON_NAME ?> <?php echo AIOFAVICON_VERSION ?> | by Arne Franken, http://www.techotronic.de/ --><?php
|
| 15 |
foreach ((array) $aioFaviconSettings as $type => $url) {
|
| 16 |
-
if(
|
| 17 |
-
if(preg_match('/
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
}
|
| 26 |
}
|
| 27 |
}
|
| 28 |
?><!-- <?php echo AIOFAVICON_NAME ?> <?php echo AIOFAVICON_VERSION ?> | by Arne Franken, http://www.techotronic.de/ --><?php
|
|
|
|
| 29 |
}
|
| 30 |
}
|
|
|
|
| 31 |
?>
|
| 9 |
*/
|
| 10 |
|
| 11 |
function aioFaviconRenderBlogHeader() {
|
| 12 |
+
$aioFaviconSettings = (array) get_option(AIOFAVICON_SETTINGSNAME);
|
| 13 |
+
if (!empty($aioFaviconSettings)) {
|
| 14 |
?><!-- <?php echo AIOFAVICON_NAME ?> <?php echo AIOFAVICON_VERSION ?> | by Arne Franken, http://www.techotronic.de/ --><?php
|
| 15 |
foreach ((array) $aioFaviconSettings as $type => $url) {
|
| 16 |
+
if (!empty($url)) {
|
| 17 |
+
if (preg_match('/frontend/i', $type)) {
|
| 18 |
+
if (preg_match('/ico/i', $type)) {
|
| 19 |
+
?>
|
| 20 |
+
<link rel="shortcut icon" href="<?php echo htmlspecialchars($url)?>"/><?php
|
| 21 |
+
|
| 22 |
+
} else if (preg_match('/gif/i', $type)) {
|
| 23 |
+
?>
|
| 24 |
+
<link rel="icon" href="<?php echo htmlspecialchars($url)?>" type="image/gif"/><?php
|
| 25 |
+
|
| 26 |
+
} else if (preg_match('/png/i', $type)) {
|
| 27 |
+
?>
|
| 28 |
+
<link rel="icon" href="<?php echo htmlspecialchars($url)?>" type="image/png"/><?php
|
| 29 |
+
|
| 30 |
+
} else if (preg_match('/apple/i', $type)) {
|
| 31 |
+
?>
|
| 32 |
+
<link rel="apple-touch-icon" href="<?php echo htmlspecialchars($url)?>"/><?php
|
| 33 |
+
|
| 34 |
+
}
|
| 35 |
}
|
| 36 |
}
|
| 37 |
}
|
| 38 |
?><!-- <?php echo AIOFAVICON_NAME ?> <?php echo AIOFAVICON_VERSION ?> | by Arne Franken, http://www.techotronic.de/ --><?php
|
| 39 |
+
|
| 40 |
}
|
| 41 |
}
|
| 42 |
+
|
| 43 |
?>
|
readme.txt
CHANGED
|
@@ -4,7 +4,7 @@ Donate link: http://www.techotronic.de/donate/
|
|
| 4 |
Tags: theme, favicon, admin, blog, wordpress, image, images, graphic, graphics, icon, mu, iphone
|
| 5 |
Requires at least: 2.8
|
| 6 |
Tested up to: 3.0
|
| 7 |
-
Stable tag: 2.
|
| 8 |
|
| 9 |
Easily add a Favicon to your site and the WordPress admin pages. Complete with upload functionality. Supports all three Favicon types (ico,png,gif).
|
| 10 |
|
|
@@ -105,9 +105,12 @@ I'll include new FAQs in every new version. Promise.
|
|
| 105 |
<a href="http://www.techotronic.de/plugins/all-in-one-favicon/">Please visit my site for screenshots</a>.
|
| 106 |
|
| 107 |
== Changelog ==
|
| 108 |
-
= 2.
|
|
|
|
|
|
|
|
|
|
| 109 |
* NEW: now supports Apple Touch Icons for backend and frontend
|
| 110 |
* NEW: more links to websites containing information.
|
| 111 |
|
| 112 |
-
= 1.0 =
|
| 113 |
* NEW: Initial release.
|
| 4 |
Tags: theme, favicon, admin, blog, wordpress, image, images, graphic, graphics, icon, mu, iphone
|
| 5 |
Requires at least: 2.8
|
| 6 |
Tested up to: 3.0
|
| 7 |
+
Stable tag: 2.1
|
| 8 |
|
| 9 |
Easily add a Favicon to your site and the WordPress admin pages. Complete with upload functionality. Supports all three Favicon types (ico,png,gif).
|
| 10 |
|
| 105 |
<a href="http://www.techotronic.de/plugins/all-in-one-favicon/">Please visit my site for screenshots</a>.
|
| 106 |
|
| 107 |
== Changelog ==
|
| 108 |
+
= 2.1 (2010-06-06) =
|
| 109 |
+
* BUGFIX: Fixing bug where favicons would not be displayed in certain cases.
|
| 110 |
+
|
| 111 |
+
= 2.0 (2010-06-03) =
|
| 112 |
* NEW: now supports Apple Touch Icons for backend and frontend
|
| 113 |
* NEW: more links to websites containing information.
|
| 114 |
|
| 115 |
+
= 1.0 (2010-05-06) =
|
| 116 |
* NEW: Initial release.
|
