Version Description
- Option to not rewrite the favicon files URL, even when this is possible.
Download this release
Release Info
Developer | phbernard |
Plugin | Favicon by RealFaviconGenerator |
Version | 1.0.4 |
Comparing to | |
See all releases |
Code changes from version 1.0.3 to 1.0.4
README.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: phbernard
|
|
3 |
Tags: favicon, apple-touch-icon, realfavicongenerator
|
4 |
Requires at least: 3.5
|
5 |
Tested up to: 3.9.1
|
6 |
-
Stable tag: 1.0.
|
7 |
License: GPLv2
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -11,9 +11,9 @@ Create and install your favicon for all platforms: PC/Mac of course, but also iP
|
|
11 |
|
12 |
== Description ==
|
13 |
|
14 |
-
Favicon is not just a single `favicon.ico` file dropped in the middle of your site. Nowadays, with so many different platforms and devices, you need a bunch of pictures to get the job done.
|
15 |
|
16 |
-
iOS devices use a high resolution Apple touch icon to illustrate bookmarks and home screen shortcuts. A first generation iPhone needs a 57x57 picture, whereas a brand new iPad with Retina screen looks for a 152x152 picture. Android Chrome also use
|
17 |
|
18 |
Favicon is not only a matter of pictures with different resolutions. The various platforms coms with different UI guidelines. For example, the classic desktop favicons often use transparency. But iOS requires opaque icons. And Windows 8 has its own recommendations.
|
19 |
|
@@ -61,6 +61,10 @@ This screen presents you a preview of the favicon you various platforms, so you
|
|
61 |
|
62 |
== Changelog ==
|
63 |
|
|
|
|
|
|
|
|
|
64 |
= 1.0.3 =
|
65 |
|
66 |
- Plugin code syntax changed to fit older versions of PHP.
|
3 |
Tags: favicon, apple-touch-icon, realfavicongenerator
|
4 |
Requires at least: 3.5
|
5 |
Tested up to: 3.9.1
|
6 |
+
Stable tag: 1.0.4
|
7 |
License: GPLv2
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
11 |
|
12 |
== Description ==
|
13 |
|
14 |
+
Favicon is not just a single `favicon.ico` file dropped in the middle of your site. Nowadays, with so many different platforms and devices, you need a bunch of pictures to get the job done. With RealFaviconGenerator, generate all the icons you need for desktop browsers, iPhone/iPad, Android devices, Windows 8 devices, and more.
|
15 |
|
16 |
+
iOS devices use a high resolution Apple touch icon to illustrate bookmarks and home screen shortcuts. A first generation iPhone needs a 57x57 picture, whereas a brand new iPad with Retina screen looks for a 152x152 picture. Android Chrome also use these pictures if it finds them. Windows 8 takes another route with a dedicated set of icons and HTML declarations.
|
17 |
|
18 |
Favicon is not only a matter of pictures with different resolutions. The various platforms coms with different UI guidelines. For example, the classic desktop favicons often use transparency. But iOS requires opaque icons. And Windows 8 has its own recommendations.
|
19 |
|
61 |
|
62 |
== Changelog ==
|
63 |
|
64 |
+
= 1.0.4 =
|
65 |
+
|
66 |
+
- Option to not rewrite the favicon files URL, even when this is possible.
|
67 |
+
|
68 |
= 1.0.3 =
|
69 |
|
70 |
- Plugin code syntax changed to fit older versions of PHP.
|
admin/class-favicon-by-realfavicongenerator-admin.php
CHANGED
@@ -55,11 +55,9 @@ class Favicon_By_RealFaviconGenerator_Admin extends Favicon_By_RealFaviconGenera
|
|
55 |
|
56 |
// Prepare settings page
|
57 |
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
$pic_path = $this->get_full_picture_path();
|
62 |
-
}
|
63 |
|
64 |
$favicon_configured = $this->is_favicon_configured();
|
65 |
|
@@ -248,7 +246,7 @@ class Favicon_By_RealFaviconGenerator_Admin extends Favicon_By_RealFaviconGenera
|
|
248 |
public function can_access_pics_with_url_rewrite() {
|
249 |
global $wp_rewrite;
|
250 |
|
251 |
-
// If blog is in root AND
|
252 |
// we can produce URLs such as /favicon.ico
|
253 |
return ( $this->wp_in_root() && $wp_rewrite->using_permalinks() );
|
254 |
}
|
55 |
|
56 |
// Prepare settings page
|
57 |
|
58 |
+
// Option to allow user to not use the Rewrite API: display it only when the Rewrite API is available
|
59 |
+
$can_rewrite = $this->can_access_pics_with_url_rewrite();
|
60 |
+
$pic_path = $this->get_full_picture_path();
|
|
|
|
|
61 |
|
62 |
$favicon_configured = $this->is_favicon_configured();
|
63 |
|
246 |
public function can_access_pics_with_url_rewrite() {
|
247 |
global $wp_rewrite;
|
248 |
|
249 |
+
// If blog is in root AND rewriting is available (http://wordpress.stackexchange.com/questions/142273/checking-that-the-rewrite-api-is-available),
|
250 |
// we can produce URLs such as /favicon.ico
|
251 |
return ( $this->wp_in_root() && $wp_rewrite->using_permalinks() );
|
252 |
}
|
admin/views/settings.php
CHANGED
@@ -12,7 +12,7 @@
|
|
12 |
</div>
|
13 |
|
14 |
<div id="install_completed_message" class="updated" style="display:none">
|
15 |
-
<p
|
16 |
</div>
|
17 |
<div id="install_error_message" class="error" style="display:none"><p></p></div>
|
18 |
|
@@ -47,7 +47,7 @@
|
|
47 |
<form role="form" method="post" action="http://realfavicongenerator.net/api/favicon_generator" id="favicon_form">
|
48 |
<input type="hidden" name="json_params" id="json_params"/>
|
49 |
<table class="form-table"><tbody>
|
50 |
-
<tr>
|
51 |
<th scope="row">
|
52 |
<label for="master_picture_url"><?php _e( 'Master picture URL', FBRFG_PLUGIN_SLUG ) ?></label>
|
53 |
</th>
|
@@ -63,6 +63,23 @@
|
|
63 |
</p>
|
64 |
</td>
|
65 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
66 |
</tbody></table>
|
67 |
|
68 |
<p class="submit">
|
@@ -108,8 +125,14 @@
|
|
108 |
params.favicon_generation.master_picture.url = jQuery('#master_picture_url').val();
|
109 |
}
|
110 |
|
111 |
-
<?php if ( $
|
112 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
113 |
<?php } else { ?>
|
114 |
params.favicon_generation.files_location.type = 'path';
|
115 |
params.favicon_generation.files_location.path = '<?php echo $pic_path ?>';
|
12 |
</div>
|
13 |
|
14 |
<div id="install_completed_message" class="updated" style="display:none">
|
15 |
+
<p><?php _e( 'Favicon installed!', FBRFG_PLUGIN_SLUG ) ?></p>
|
16 |
</div>
|
17 |
<div id="install_error_message" class="error" style="display:none"><p></p></div>
|
18 |
|
47 |
<form role="form" method="post" action="http://realfavicongenerator.net/api/favicon_generator" id="favicon_form">
|
48 |
<input type="hidden" name="json_params" id="json_params"/>
|
49 |
<table class="form-table"><tbody>
|
50 |
+
<tr valign="top">
|
51 |
<th scope="row">
|
52 |
<label for="master_picture_url"><?php _e( 'Master picture URL', FBRFG_PLUGIN_SLUG ) ?></label>
|
53 |
</th>
|
63 |
</p>
|
64 |
</td>
|
65 |
</tr>
|
66 |
+
|
67 |
+
<?php if ( $can_rewrite ) { ?>
|
68 |
+
<tr valign="top">
|
69 |
+
<th scope="row">
|
70 |
+
<label for="rewrite"><?php _e( 'Favicon files in root directory', FBRFG_PLUGIN_SLUG ) ?></label>
|
71 |
+
</th>
|
72 |
+
<td>
|
73 |
+
<input type="checkbox" name="rewrite" id="rewrite" checked="true">
|
74 |
+
<p class="description">
|
75 |
+
<?php _e( 'The plugin always stores the favicon files in a dedicated directory.', FBRFG_PLUGIN_SLUG ) ?>
|
76 |
+
<br>
|
77 |
+
<?php _e( 'However, if this option is enabled, the plugin takes advantage of the permalink feature and the favicon files appear to be in the root directory', FBRFG_PLUGIN_SLUG ) ?>
|
78 |
+
(<a href="http://realfavicongenerator.net/faq#why_icons_in_root"><?php _e( 'recommended', FBRFG_PLUGIN_SLUG ) ?></a>)
|
79 |
+
</p>
|
80 |
+
</td>
|
81 |
+
</tr>
|
82 |
+
<?php } ?>
|
83 |
</tbody></table>
|
84 |
|
85 |
<p class="submit">
|
125 |
params.favicon_generation.master_picture.url = jQuery('#master_picture_url').val();
|
126 |
}
|
127 |
|
128 |
+
<?php if ( $can_rewrite ) { ?>
|
129 |
+
if ( jQuery("#rewrite").is(':checked') ) {
|
130 |
+
params.favicon_generation.files_location.type = 'root';
|
131 |
+
}
|
132 |
+
else {
|
133 |
+
params.favicon_generation.files_location.type = 'path';
|
134 |
+
params.favicon_generation.files_location.path = '<?php echo $pic_path ?>';
|
135 |
+
}
|
136 |
<?php } else { ?>
|
137 |
params.favicon_generation.files_location.type = 'path';
|
138 |
params.favicon_generation.files_location.path = '<?php echo $pic_path ?>';
|
favicon-by-realfavicongenerator.php
CHANGED
@@ -12,7 +12,7 @@
|
|
12 |
* Plugin Name: Favicon by RealFaviconGenerator
|
13 |
* Plugin URI: http://realfavicongenerator.net/extensions/wordpress
|
14 |
* Description: Create and install your favicon for all platforms: PC/Mac of course, but also iPhone/iPad, Android devices, Windows 8 tablets, etc.
|
15 |
-
* Version: 1.0.
|
16 |
* Author: Philippe Bernard
|
17 |
* Author URI: http://realfavicongenerator.net/
|
18 |
* License: GPLv2
|
12 |
* Plugin Name: Favicon by RealFaviconGenerator
|
13 |
* Plugin URI: http://realfavicongenerator.net/extensions/wordpress
|
14 |
* Description: Create and install your favicon for all platforms: PC/Mac of course, but also iPhone/iPad, Android devices, Windows 8 tablets, etc.
|
15 |
+
* Version: 1.0.4
|
16 |
* Author: Philippe Bernard
|
17 |
* Author URI: http://realfavicongenerator.net/
|
18 |
* License: GPLv2
|
languages/favicon-by-realfavicongenerator-fr_FR.mo
CHANGED
Binary file
|
languages/favicon-by-realfavicongenerator-fr_FR.po
CHANGED
@@ -2,65 +2,68 @@
|
|
2 |
# This file is distributed under the same license as the Favicon by RealFaviconGenerator package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Favicon by RealFaviconGenerator 1.0\n"
|
6 |
-
"Report-Msgid-Bugs-To: http://wordpress.org/
|
7 |
"realfavicongenerator\n"
|
8 |
-
"POT-Creation-Date: 2014-
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"PO-Revision-Date: 2014-
|
13 |
-
"Last-Translator:
|
14 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
15 |
"Language: fr_FR\n"
|
16 |
-
"X-Generator: Poedit 1.6.5\n"
|
17 |
|
18 |
-
#: admin/class-favicon-by-realfavicongenerator-admin.php:
|
19 |
msgid "Favicon Settings"
|
20 |
msgstr "Réglages du favicon"
|
21 |
|
22 |
-
#: admin/class-favicon-by-realfavicongenerator-admin.php:
|
23 |
msgid "Favicon"
|
24 |
msgstr "Favicon"
|
25 |
|
26 |
-
#: admin/views/settings.php:
|
27 |
msgid "Favicon installation in progress. Please wait..."
|
28 |
msgstr "Installation du favicon en cours. Veuillez patienter..."
|
29 |
-
|
30 |
-
#: admin/views/settings.php:
|
|
|
|
|
|
|
|
|
31 |
msgid "Current favicon"
|
32 |
msgstr "Favicon actuel"
|
33 |
|
34 |
-
#: admin/views/settings.php:
|
35 |
msgid "The favicon is up and ready."
|
36 |
msgstr "Le favicon est installé."
|
37 |
|
38 |
-
#: admin/views/settings.php:
|
39 |
msgid "No favicon has been configured yet."
|
40 |
msgstr "Aucun favicon n'a été configuré pour le moment."
|
41 |
|
42 |
-
#: admin/views/settings.php:
|
43 |
msgid "Favicon generation"
|
44 |
msgstr "Génération du favicon"
|
45 |
|
46 |
-
#: admin/views/settings.php:
|
47 |
msgid "You can replace the existing favicon."
|
48 |
msgstr "Vous pouvez remplacer le favicon existant."
|
49 |
|
50 |
-
#: admin/views/settings.php:
|
51 |
msgid "Master picture URL"
|
52 |
msgstr "URL de l'image de base"
|
53 |
|
54 |
-
#: admin/views/settings.php:
|
55 |
msgid "Select from the Media Library"
|
56 |
msgstr "Sélectionner dans la Bibliothèque de médias"
|
57 |
|
58 |
-
#: admin/views/settings.php:
|
59 |
msgid "Submit a square picture, at least 70x70 (recommended: 260x260 or more)"
|
60 |
msgstr ""
|
61 |
"Utilisez une image carrée en 70x70 minimum (recommandé: 260x260 ou plus)"
|
62 |
|
63 |
-
#: admin/views/settings.php:
|
64 |
msgid ""
|
65 |
"If the picture is on your hard drive, you can leave this field blank and "
|
66 |
"upload the picture from RealFaviconGenerator."
|
@@ -68,7 +71,28 @@ msgstr ""
|
|
68 |
"Si l'image est sur votre disque dur, vous pouvez laisser ce champ vide et "
|
69 |
"envoyer une image depuis l'interface de RealFaviconGenerator"
|
70 |
|
|
|
|
|
|
|
|
|
71 |
#: admin/views/settings.php:75
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
msgid "Generate favicon"
|
73 |
msgstr "Générer le favicon"
|
74 |
|
@@ -76,6 +100,10 @@ msgstr "Générer le favicon"
|
|
76 |
msgid "Favicon by RealFaviconGenerator"
|
77 |
msgstr "Favicon par RealFaviconGenerator"
|
78 |
|
|
|
|
|
|
|
|
|
79 |
#. Description of the plugin/theme
|
80 |
msgid ""
|
81 |
"Create and install your favicon for all platforms: PC/Mac of course, but "
|
@@ -88,3 +116,7 @@ msgstr ""
|
|
88 |
#. Author of the plugin/theme
|
89 |
msgid "Philippe Bernard"
|
90 |
msgstr "Philippe Bernard"
|
|
|
|
|
|
|
|
2 |
# This file is distributed under the same license as the Favicon by RealFaviconGenerator package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Favicon by RealFaviconGenerator 1.0.4\n"
|
6 |
+
"Report-Msgid-Bugs-To: http://wordpress.org/support/plugin/favicon-by-"
|
7 |
"realfavicongenerator\n"
|
8 |
+
"POT-Creation-Date: 2014-05-23 13:22:05+00:00\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"PO-Revision-Date: 2014-MO-DA HO:MI+ZONE\n"
|
13 |
+
"Last-Translator: Philippe Bernard <philippe@realfavicongenerator.net>\n"
|
14 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
15 |
"Language: fr_FR\n"
|
|
|
16 |
|
17 |
+
#: admin/class-favicon-by-realfavicongenerator-admin.php:48
|
18 |
msgid "Favicon Settings"
|
19 |
msgstr "Réglages du favicon"
|
20 |
|
21 |
+
#: admin/class-favicon-by-realfavicongenerator-admin.php:49
|
22 |
msgid "Favicon"
|
23 |
msgstr "Favicon"
|
24 |
|
25 |
+
#: admin/views/settings.php:11
|
26 |
msgid "Favicon installation in progress. Please wait..."
|
27 |
msgstr "Installation du favicon en cours. Veuillez patienter..."
|
28 |
+
|
29 |
+
#: admin/views/settings.php:15
|
30 |
+
msgid "Favicon installed!"
|
31 |
+
msgstr "Favicon installé !"
|
32 |
+
|
33 |
+
#: admin/views/settings.php:20 admin/views/settings.php:25
|
34 |
msgid "Current favicon"
|
35 |
msgstr "Favicon actuel"
|
36 |
|
37 |
+
#: admin/views/settings.php:21 admin/views/settings.php:28
|
38 |
msgid "The favicon is up and ready."
|
39 |
msgstr "Le favicon est installé."
|
40 |
|
41 |
+
#: admin/views/settings.php:30
|
42 |
msgid "No favicon has been configured yet."
|
43 |
msgstr "Aucun favicon n'a été configuré pour le moment."
|
44 |
|
45 |
+
#: admin/views/settings.php:43
|
46 |
msgid "Favicon generation"
|
47 |
msgstr "Génération du favicon"
|
48 |
|
49 |
+
#: admin/views/settings.php:45
|
50 |
msgid "You can replace the existing favicon."
|
51 |
msgstr "Vous pouvez remplacer le favicon existant."
|
52 |
|
53 |
+
#: admin/views/settings.php:52
|
54 |
msgid "Master picture URL"
|
55 |
msgstr "URL de l'image de base"
|
56 |
|
57 |
+
#: admin/views/settings.php:56 admin/views/settings.php:57
|
58 |
msgid "Select from the Media Library"
|
59 |
msgstr "Sélectionner dans la Bibliothèque de médias"
|
60 |
|
61 |
+
#: admin/views/settings.php:60
|
62 |
msgid "Submit a square picture, at least 70x70 (recommended: 260x260 or more)"
|
63 |
msgstr ""
|
64 |
"Utilisez une image carrée en 70x70 minimum (recommandé: 260x260 ou plus)"
|
65 |
|
66 |
+
#: admin/views/settings.php:62
|
67 |
msgid ""
|
68 |
"If the picture is on your hard drive, you can leave this field blank and "
|
69 |
"upload the picture from RealFaviconGenerator."
|
71 |
"Si l'image est sur votre disque dur, vous pouvez laisser ce champ vide et "
|
72 |
"envoyer une image depuis l'interface de RealFaviconGenerator"
|
73 |
|
74 |
+
#: admin/views/settings.php:70
|
75 |
+
msgid "Favicon files in root directory"
|
76 |
+
msgstr "Fichiers du favicon dans le répertoire racine"
|
77 |
+
|
78 |
#: admin/views/settings.php:75
|
79 |
+
msgid "The plugin always stores the favicon files in a dedicated directory."
|
80 |
+
msgstr "Le plugin conserve toujours les fichiers du favicon dans un répertoire dédié."
|
81 |
+
|
82 |
+
#: admin/views/settings.php:77
|
83 |
+
msgid ""
|
84 |
+
"However, if this option is enabled, the plugin takes advantage of the "
|
85 |
+
"permalink feature and the favicon files appear to be in the root directory"
|
86 |
+
msgstr ""
|
87 |
+
"Cependant, si cette option est activée, "
|
88 |
+
"le plugin tire parti des permaliens "
|
89 |
+
"pour faire apparaitre les fichiers du favicon dans le répertoire racine"
|
90 |
+
|
91 |
+
#: admin/views/settings.php:78
|
92 |
+
msgid "recommended"
|
93 |
+
msgstr "recommandé"
|
94 |
+
|
95 |
+
#: admin/views/settings.php:87
|
96 |
msgid "Generate favicon"
|
97 |
msgstr "Générer le favicon"
|
98 |
|
100 |
msgid "Favicon by RealFaviconGenerator"
|
101 |
msgstr "Favicon par RealFaviconGenerator"
|
102 |
|
103 |
+
#. Plugin URI of the plugin/theme
|
104 |
+
msgid "http://realfavicongenerator.net/extensions/wordpress"
|
105 |
+
msgstr "http://realfavicongenerator.net/extensions/wordpress"
|
106 |
+
|
107 |
#. Description of the plugin/theme
|
108 |
msgid ""
|
109 |
"Create and install your favicon for all platforms: PC/Mac of course, but "
|
116 |
#. Author of the plugin/theme
|
117 |
msgid "Philippe Bernard"
|
118 |
msgstr "Philippe Bernard"
|
119 |
+
|
120 |
+
#. Author URI of the plugin/theme
|
121 |
+
msgid "http://realfavicongenerator.net/"
|
122 |
+
msgstr "http://realfavicongenerator.net/"
|