All In One Favicon - Version 4.1

Version Description

(2012-11-17) = * NEW: Hebrew translation by Ahrale * CHANGE: favicon URLs can be copy'n'pasted again * CHANGE: upload form only accepts files of type "image" now. * CHANGE: use plugins_url to make links HTTPS aware * CHANGE: Viliam Brozman updated the Slovak translation * CHANGE: Tunghsiao Liu updated the Simplified Chinese translation * BUGFIX: switch declaration of 'NAME' and 'TEXTDOMAIN'

Download this release

Release Info

Developer techotronic
Plugin Icon 128x128 All In One Favicon
Version 4.1
Comparing to
See all releases

Code changes from version 4.0 to 4.1

README.md CHANGED
@@ -1,24 +1,24 @@
1
- === All In One Favicon ===
2
  Contributors: techotronic
3
  Donate link: http://www.techotronic.de/donate/
4
  Tags: theme, favicon, admin, blog, wordpress, image, images, graphic, graphics, icon, iphone, multisite
5
  Requires at least: 2.8
6
  Tested up to: 3.3
7
- Stable tag: 4.0
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
 
11
- == Description ==
12
 
13
  All In One Favicon adds favicons to your site and your admin pages.
14
- You can either use favicons you already uploaded or use the builtin upload mechanism to upload a favicon to your WordPress installation.
15
 
16
  All three favicon types are supported - .ico, .png and .gif (may be animated)
17
- Also, Apple Touch Icons are supported.
18
 
19
- See [plugin page](http://www.techotronic.de/plugins/all-in-one-favicon/) for more information, a "first steps" guide and screenshots.
20
 
21
- **Localization**
22
 
23
  * Bahasa Indonesia (`id_ID`) by [EKO](http://movableid.com/)
24
  * Czech (`cs_CZ`) by [Neteyes](http://www.neteyes.cz)
@@ -37,18 +37,18 @@ See [plugin page](http://www.techotronic.de/plugins/all-in-one-favicon/) for mor
37
 
38
  Is your native language missing?
39
  Translating the plugin is easy if you understand english and are fluent in another language.
40
- I described in the [FAQ](http://wordpress.org/extend/plugins/all-in-one-favicon/faq/) how the translation works.
41
 
42
- == Installation ==
43
 
44
- ###Updgrading From A Previous Version###
45
 
46
- To upgrade from a previous version of this plugin, use the built in update feature of WordPress or copy the files on top of the current installation.
47
 
48
  ###Installing The Plugin###
49
 
50
  Either use the built in plugin installation feature of WordPress, or extract all files from the ZIP file, making sure to keep the file structure intact, and then upload it to `/wp-content/plugins/`.
51
- Then just visit your admin area and activate the plugin. That's it!
52
 
53
  ###Configuring The Plugin###
54
 
@@ -56,7 +56,7 @@ Go to the settings page and and upload your Favicon(s) or add the path/URL to al
56
 
57
  **See Also:** ["Installing Plugins" article on the WP Codex](http://codex.wordpress.org/Managing_Plugins#Installing_Plugins)
58
 
59
- == Frequently Asked Questions ==
60
 
61
  * When I try to upload a favicon, I get the error: "File type does not meet security guidelines. Try another.”
62
  You are probably using a WordPress Multisite installation? Then you'll need to add "ico" to the allowed file types property on the "Super Admin -> Options" page.
@@ -70,7 +70,7 @@ Go to the settings page and and upload your Favicon(s) or add the path/URL to al
70
  Would you like to help? Translating the plugin is easy if you understand English and are fluent in another language.
71
 
72
  * How do I translate All In One Favicon?
73
- Take a look at the WordPress site and identify [your langyage code](http://codex.wordpress.org/WordPress_in_Your_Language):
74
  e.g. the language code for German is `de_DE`.
75
 
76
  1. download [POEdit](http://www.poedit.net/)
@@ -89,12 +89,21 @@ Go to the settings page and and upload your Favicon(s) or add the path/URL to al
89
  Feel free to open a thread at [the All In One Favicon WordPress.org forum](http://wordpress.org/tags/all-in-one-favicon?forum_id=10#postform).
90
  I'll include new FAQs in every new version.
91
 
92
- == Screenshots ==
93
 
94
  [Please visit my site for screenshots](http://www.techotronic.de/plugins/all-in-one-favicon/).
95
 
96
- == Changelog ==
97
- = 4.0 (2012-03-14) =
 
 
 
 
 
 
 
 
 
98
  * NEW: Simplified Chinese translation by Tunghsiao Liu
99
  * NEW: Czech translation by Neteyes
100
  * NEW: French translation by Christophe Guilloux
@@ -109,10 +118,10 @@ Go to the settings page and and upload your Favicon(s) or add the path/URL to al
109
  * CHANGE: fixed link to Apple Touch Icon howto
110
  * CHANGE: Major refactoring, hopefully speeds up frontend and backend rendering
111
 
112
- = 3.1 (2011-01-16) =
113
  * CHANGE: made plugin compatible to PHP4
114
 
115
- = 3.0 (2011-01-15) =
116
  * NEW: Added option to remove link from meta box.
117
  * BUGFIX: Fixed a bug where the plugin would break WordPress 3.0 with Multisite enabled.
118
  * NEW: Added latest donations and top donations to settings page
@@ -123,12 +132,12 @@ Go to the settings page and and upload your Favicon(s) or add the path/URL to al
123
  * NEW: Italian translation by Valerio Vendrame
124
  * NEW: Spanish translation by Juan Pablo Pérez Manes
125
 
126
- = 2.1 (2010-06-06) =
127
  * BUGFIX: Fixing bug where favicons would not be displayed in certain cases.
128
 
129
- = 2.0 (2010-06-03) =
130
  * NEW: now supports Apple Touch Icons for backend and frontend
131
  * NEW: more links to websites containing information.
132
 
133
- = 1.0 (2010-05-06) =
134
  * NEW: Initial release.
1
+ # All In One Favicon #
2
  Contributors: techotronic
3
  Donate link: http://www.techotronic.de/donate/
4
  Tags: theme, favicon, admin, blog, wordpress, image, images, graphic, graphics, icon, iphone, multisite
5
  Requires at least: 2.8
6
  Tested up to: 3.3
7
+ Stable tag: 4.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
 
11
+ ## Description ##
12
 
13
  All In One Favicon adds favicons to your site and your admin pages.
14
+ You can either use favicons you already uploaded or use the builtin upload mechanism to upload a favicon to your WordPress installation.
15
 
16
  All three favicon types are supported - .ico, .png and .gif (may be animated)
17
+ Also, Apple Touch Icons are supported.
18
 
19
+ See [plugin page](http://www.techotronic.de/plugins/all-in-one-favicon/) for more information, a "first steps" guide and screenshots.
20
 
21
+ **Localization**
22
 
23
  * Bahasa Indonesia (`id_ID`) by [EKO](http://movableid.com/)
24
  * Czech (`cs_CZ`) by [Neteyes](http://www.neteyes.cz)
37
 
38
  Is your native language missing?
39
  Translating the plugin is easy if you understand english and are fluent in another language.
40
+ I described in the [FAQ](http://wordpress.org/extend/plugins/all-in-one-favicon/faq/) how the translation works.
41
 
42
+ ## Installation ##
43
 
44
+ ###Upgrading From A Previous Version###
45
 
46
+ To upgrade from a previous version of this plugin, use the built in update feature of WordPress or copy the files on top of the current installation.
47
 
48
  ###Installing The Plugin###
49
 
50
  Either use the built in plugin installation feature of WordPress, or extract all files from the ZIP file, making sure to keep the file structure intact, and then upload it to `/wp-content/plugins/`.
51
+ Then just visit your admin area and activate the plugin. That's it!
52
 
53
  ###Configuring The Plugin###
54
 
56
 
57
  **See Also:** ["Installing Plugins" article on the WP Codex](http://codex.wordpress.org/Managing_Plugins#Installing_Plugins)
58
 
59
+ ## Frequently Asked Questions ##
60
 
61
  * When I try to upload a favicon, I get the error: "File type does not meet security guidelines. Try another.”
62
  You are probably using a WordPress Multisite installation? Then you'll need to add "ico" to the allowed file types property on the "Super Admin -> Options" page.
70
  Would you like to help? Translating the plugin is easy if you understand English and are fluent in another language.
71
 
72
  * How do I translate All In One Favicon?
73
+ Take a look at the WordPress site and identify [your language code](http://codex.wordpress.org/WordPress_in_Your_Language):
74
  e.g. the language code for German is `de_DE`.
75
 
76
  1. download [POEdit](http://www.poedit.net/)
89
  Feel free to open a thread at [the All In One Favicon WordPress.org forum](http://wordpress.org/tags/all-in-one-favicon?forum_id=10#postform).
90
  I'll include new FAQs in every new version.
91
 
92
+ ## Screenshots ##
93
 
94
  [Please visit my site for screenshots](http://www.techotronic.de/plugins/all-in-one-favicon/).
95
 
96
+ ## Changelog ##
97
+ ### 4.1 (2012-11-17) ###
98
+ * NEW: Hebrew translation by Ahrale
99
+ * CHANGE: favicon URLs can be copy'n'pasted again
100
+ * CHANGE: upload form only accepts files of type "image" now.
101
+ * CHANGE: use `plugins_url` to make links HTTPS aware
102
+ * CHANGE: Viliam Brozman updated the Slovak translation
103
+ * CHANGE: Tunghsiao Liu updated the Simplified Chinese translation
104
+ * BUGFIX: switch declaration of 'NAME' and 'TEXTDOMAIN'
105
+
106
+ ### 4.0 (2012-03-14) ###
107
  * NEW: Simplified Chinese translation by Tunghsiao Liu
108
  * NEW: Czech translation by Neteyes
109
  * NEW: French translation by Christophe Guilloux
118
  * CHANGE: fixed link to Apple Touch Icon howto
119
  * CHANGE: Major refactoring, hopefully speeds up frontend and backend rendering
120
 
121
+ ### 3.1 (2011-01-16) ###
122
  * CHANGE: made plugin compatible to PHP4
123
 
124
+ ### 3.0 (2011-01-15) ###
125
  * NEW: Added option to remove link from meta box.
126
  * BUGFIX: Fixed a bug where the plugin would break WordPress 3.0 with Multisite enabled.
127
  * NEW: Added latest donations and top donations to settings page
132
  * NEW: Italian translation by Valerio Vendrame
133
  * NEW: Spanish translation by Juan Pablo Pérez Manes
134
 
135
+ ### 2.1 (2010-06-06) ###
136
  * BUGFIX: Fixing bug where favicons would not be displayed in certain cases.
137
 
138
+ ### 2.0 (2010-06-03) ###
139
  * NEW: now supports Apple Touch Icons for backend and frontend
140
  * NEW: more links to websites containing information.
141
 
142
+ ### 1.0 (2010-05-06) ###
143
  * NEW: Initial release.
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: 4.0
10
  * Author: Arne Franken
11
  * Author URI: http://www.techotronic.de/
12
  * License: GPL
@@ -23,7 +23,7 @@ require_once (dirname (__FILE__) . '/includes/donationloader.php');
23
  require_once (dirname (__FILE__) . '/includes/debugger.php');
24
 
25
  // define constants
26
- define('AIOFAVICON_VERSION', '4.0');
27
 
28
  if (!defined('AIOFAVICON_PLUGIN_BASENAME')) {
29
  //all-in-one-favicon/all-in-one-favicon.php
@@ -33,19 +33,19 @@ if (!defined('AIOFAVICON_PLUGIN_NAME')) {
33
  //all-in-one-favicon
34
  define('AIOFAVICON_PLUGIN_NAME', trim(dirname(AIOFAVICON_PLUGIN_BASENAME), '/'));
35
  }
36
- if (!defined('AIOFAVICON_NAME')) {
37
- define('AIOFAVICON_NAME', __('All in one Favicon',AIOFAVICON_TEXTDOMAIN));
38
- }
39
  if (!defined('AIOFAVICON_TEXTDOMAIN')) {
40
  define('AIOFAVICON_TEXTDOMAIN', 'aio-favicon');
41
  }
 
 
 
42
  if (!defined('AIOFAVICON_PLUGIN_DIR')) {
43
  // /path/to/wordpress/wp-content/plugins/all-in-one-favicon
44
  define('AIOFAVICON_PLUGIN_DIR', dirname(__FILE__));
45
  }
46
  if (!defined('AIOFAVICON_PLUGIN_URL')) {
47
  // http://www.domain.com/wordpress/wp-content/plugins/all-in-one-favicon
48
- define('AIOFAVICON_PLUGIN_URL', WP_PLUGIN_URL . '/' . AIOFAVICON_PLUGIN_NAME);
49
  }
50
  if (!defined('AIOFAVICON_SETTINGSNAME')) {
51
  define('AIOFAVICON_SETTINGSNAME', 'aio-favicon_settings');
@@ -53,6 +53,12 @@ if (!defined('AIOFAVICON_SETTINGSNAME')) {
53
  if (!defined('AIOFAVICON_USERAGENT')) {
54
  define('AIOFAVICON_USERAGENT', 'All-in-One Favicon V' . AIOFAVICON_VERSION . '; (' . get_bloginfo('url') . ')');
55
  }
 
 
 
 
 
 
56
 
57
  /**
58
  * Main plugin class
@@ -63,13 +69,15 @@ if (!defined('AIOFAVICON_USERAGENT')) {
63
  class AllInOneFavicon {
64
 
65
  /**
 
66
  * Plugin initialization
67
  *
68
  * @since 1.0
69
  * @access public
 
70
  * @author Arne Franken
71
  */
72
- //public function AllInOneFavicon(){
73
  function AllInOneFavicon() {
74
  if (!function_exists('plugins_url')) {
75
  return;
@@ -90,7 +98,8 @@ class AllInOneFavicon {
90
  if (is_admin()) {
91
  $donationLoader = new AIOFaviconDonationLoader();
92
  new AioFaviconBackend($this->aioFaviconSettings, $this->aioFaviconDefaultSettings(),$donationLoader);
93
- } else if (!is_admin()) {
 
94
  new AioFaviconFrontend($this->aioFaviconSettings);
95
  }
96
 
@@ -179,4 +188,4 @@ add_action('init', 'initAioFavicon', 7);
179
 
180
  // register method for activation
181
  register_activation_hook(__FILE__, array('AllInOneFavicon', 'activateAioFavicon'));
182
- ?>
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: 4.1
10
  * Author: Arne Franken
11
  * Author URI: http://www.techotronic.de/
12
  * License: GPL
23
  require_once (dirname (__FILE__) . '/includes/debugger.php');
24
 
25
  // define constants
26
+ define('AIOFAVICON_VERSION', '4.1');
27
 
28
  if (!defined('AIOFAVICON_PLUGIN_BASENAME')) {
29
  //all-in-one-favicon/all-in-one-favicon.php
33
  //all-in-one-favicon
34
  define('AIOFAVICON_PLUGIN_NAME', trim(dirname(AIOFAVICON_PLUGIN_BASENAME), '/'));
35
  }
 
 
 
36
  if (!defined('AIOFAVICON_TEXTDOMAIN')) {
37
  define('AIOFAVICON_TEXTDOMAIN', 'aio-favicon');
38
  }
39
+ if (!defined('AIOFAVICON_NAME')) {
40
+ define('AIOFAVICON_NAME', __('All in one Favicon',AIOFAVICON_TEXTDOMAIN));
41
+ }
42
  if (!defined('AIOFAVICON_PLUGIN_DIR')) {
43
  // /path/to/wordpress/wp-content/plugins/all-in-one-favicon
44
  define('AIOFAVICON_PLUGIN_DIR', dirname(__FILE__));
45
  }
46
  if (!defined('AIOFAVICON_PLUGIN_URL')) {
47
  // http://www.domain.com/wordpress/wp-content/plugins/all-in-one-favicon
48
+ define('AIOFAVICON_PLUGIN_URL', plugins_url('', __FILE__));
49
  }
50
  if (!defined('AIOFAVICON_SETTINGSNAME')) {
51
  define('AIOFAVICON_SETTINGSNAME', 'aio-favicon_settings');
53
  if (!defined('AIOFAVICON_USERAGENT')) {
54
  define('AIOFAVICON_USERAGENT', 'All-in-One Favicon V' . AIOFAVICON_VERSION . '; (' . get_bloginfo('url') . ')');
55
  }
56
+ if (!defined('AIOFAVICON_FRONTEND')) {
57
+ define('AIOFAVICON_FRONTEND', 'frontend');
58
+ }
59
+ if (!defined('AIOFAVICON_BACKEND')) {
60
+ define('AIOFAVICON_BACKEND', 'backend');
61
+ }
62
 
63
  /**
64
  * Main plugin class
69
  class AllInOneFavicon {
70
 
71
  /**
72
+ * Constructor
73
  * Plugin initialization
74
  *
75
  * @since 1.0
76
  * @access public
77
+ * @access static
78
  * @author Arne Franken
79
  */
80
+ //public static function AllInOneFavicon() {
81
  function AllInOneFavicon() {
82
  if (!function_exists('plugins_url')) {
83
  return;
98
  if (is_admin()) {
99
  $donationLoader = new AIOFaviconDonationLoader();
100
  new AioFaviconBackend($this->aioFaviconSettings, $this->aioFaviconDefaultSettings(),$donationLoader);
101
+ }
102
+ else {
103
  new AioFaviconFrontend($this->aioFaviconSettings);
104
  }
105
 
188
 
189
  // register method for activation
190
  register_activation_hook(__FILE__, array('AllInOneFavicon', 'activateAioFavicon'));
191
+ ?>
includes/aio-favicon-backend.php CHANGED
@@ -8,6 +8,9 @@
8
  *
9
  * Object that handles all actions in the WordPress backend
10
  */
 
 
 
11
  class AioFaviconBackend {
12
 
13
  /**
@@ -20,6 +23,7 @@ class AioFaviconBackend {
20
  *
21
  * @param array $aioFaviconSettings user settings
22
  * @param array $aioFaviconDefaultSettings default plugin settings
 
23
  *
24
  * @return void
25
  */
@@ -30,7 +34,8 @@ class AioFaviconBackend {
30
  $this->aioFaviconDefaultSettings = $aioFaviconDefaultSettings;
31
  $this->donationLoader = $donationLoader;
32
 
33
- add_action('admin_head', array(& $this, 'aioFaviconRenderAdminHeader'));
 
34
 
35
  // add options page
36
  add_action('admin_menu', array(& $this, 'registerAdminMenu'));
@@ -40,8 +45,8 @@ class AioFaviconBackend {
40
 
41
  //only load JavaScript if we are on this plugin's settingspage
42
  if (isset($_GET['page']) && $_GET['page'] == AIOFAVICON_PLUGIN_BASENAME) {
43
- add_action('admin_print_scripts', array(& $donationLoader, 'registerDonationJavaScript'));
44
- add_action('admin_print_scripts', array(& $this, 'registerAdminScripts'));
45
  }
46
  }
47
 
@@ -77,55 +82,6 @@ class AioFaviconBackend {
77
 
78
  // registerAdminScripts()
79
 
80
- /**
81
- * Renders Favicon
82
- *
83
- * @since 1.0
84
- * @access public
85
- * @author Arne Franken
86
- *
87
- * @return void
88
- */
89
- //public function aioFaviconRenderAdminHeader() {
90
- function aioFaviconRenderAdminHeader() {
91
- if (!empty($this->aioFaviconSettings)) {
92
- foreach ((array)$this->aioFaviconSettings as $type => $url) {
93
- if (!empty($url)) {
94
- if (preg_match('/backend/i', $type)) {
95
- if (preg_match('/ico/i', $type)) {
96
- ?>
97
- <link rel="shortcut icon" href="<?php echo htmlspecialchars($url)?>"/><?php
98
-
99
- }
100
- else if (preg_match('/gif/i', $type)) {
101
- ?>
102
- <link rel="icon" href="<?php echo htmlspecialchars($url)?>" type="image/gif"/><?php
103
-
104
- }
105
- else if (preg_match('/png/i', $type)) {
106
- ?>
107
- <link rel="icon" href="<?php echo htmlspecialchars($url)?>" type="image/png"/><?php
108
-
109
- }
110
- else if (preg_match('/apple/i', $type)) {
111
- if ((isset($this->aioFaviconSettings['removeReflectiveShine']) && !$this->aioFaviconSettings['removeReflectiveShine'])) {
112
- ?>
113
- <link rel="apple-touch-icon" href="<?php echo htmlspecialchars($url)?>"/><?php
114
- }
115
- else {
116
- ?>
117
- <link rel="apple-touch-icon-precomposed" href="<?php echo htmlspecialchars($url)?>"/><?php
118
- }
119
-
120
- }
121
- }
122
- }
123
- }
124
- }
125
- }
126
-
127
- // aioFaviconRenderAdminHeader()
128
-
129
  /**
130
  * Render Settings page
131
  *
@@ -393,7 +349,7 @@ class AioFaviconBackend {
393
  *
394
  * @param string $url
395
  *
396
- * @return the response
397
  */
398
  //private function getRemoteContent($url) {
399
  function getRemoteContent($url) {
8
  *
9
  * Object that handles all actions in the WordPress backend
10
  */
11
+
12
+ require_once (dirname (__FILE__) . '/favicon-render-helper.php');
13
+
14
  class AioFaviconBackend {
15
 
16
  /**
23
  *
24
  * @param array $aioFaviconSettings user settings
25
  * @param array $aioFaviconDefaultSettings default plugin settings
26
+ * @param AIOFaviconDonationLoader $donationLoader the donationloader
27
  *
28
  * @return void
29
  */
34
  $this->aioFaviconDefaultSettings = $aioFaviconDefaultSettings;
35
  $this->donationLoader = $donationLoader;
36
 
37
+ $this->faviconRenderHelper = new FaviconRenderHelper($this->aioFaviconSettings,AIOFAVICON_BACKEND);
38
+ add_action('admin_head', array(& $this->faviconRenderHelper, 'renderFavicons'));
39
 
40
  // add options page
41
  add_action('admin_menu', array(& $this, 'registerAdminMenu'));
45
 
46
  //only load JavaScript if we are on this plugin's settingspage
47
  if (isset($_GET['page']) && $_GET['page'] == AIOFAVICON_PLUGIN_BASENAME) {
48
+ add_action('admin_enqueue_scripts', array(& $donationLoader, 'registerDonationJavaScript'));
49
+ add_action('admin_enqueue_scripts', array(& $this, 'registerAdminScripts'));
50
  }
51
  }
52
 
82
 
83
  // registerAdminScripts()
84
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
85
  /**
86
  * Render Settings page
87
  *
349
  *
350
  * @param string $url
351
  *
352
+ * @return string the response
353
  */
354
  //private function getRemoteContent($url) {
355
  function getRemoteContent($url) {
includes/aio-favicon-frontend.php CHANGED
@@ -8,6 +8,9 @@
8
  *
9
  * Object that handles all actions in the WordPress frontend
10
  */
 
 
 
11
  class AioFaviconFrontend {
12
 
13
  /**
@@ -25,7 +28,8 @@ class AioFaviconFrontend {
25
 
26
  $this->aioFaviconSettings = $aioFaviconSettings;
27
 
28
- add_action('wp_head', array(& $this, 'aioFaviconRenderBlogHeader'));
 
29
 
30
  //only add link to meta box
31
  if (isset($this->aioFaviconSettings['removeLinkFromMetaBox']) && !$this->aioFaviconSettings['removeLinkFromMetaBox']) {
@@ -36,53 +40,6 @@ class AioFaviconFrontend {
36
 
37
  // AioFaviconFrontend()
38
 
39
- /**
40
- * Renders Favicon
41
- *
42
- * @since 1.0
43
- * @access public
44
- * @author Arne Franken
45
- */
46
- //public function aioFaviconRenderBlogHeader() {
47
- function aioFaviconRenderBlogHeader() {
48
- if (!empty($this->aioFaviconSettings)) {
49
- foreach ((array)$this->aioFaviconSettings as $type => $url) {
50
- if (!empty($url)) {
51
- if (preg_match('/frontend/i', $type)) {
52
- if (preg_match('/ico/i', $type)) {
53
- ?>
54
- <link rel="shortcut icon" href="<?php echo htmlspecialchars($url)?>"/><?php
55
-
56
- }
57
- else if (preg_match('/gif/i', $type)) {
58
- ?>
59
- <link rel="icon" href="<?php echo htmlspecialchars($url)?>" type="image/gif"/><?php
60
-
61
- }
62
- else if (preg_match('/png/i', $type)) {
63
- ?>
64
- <link rel="icon" href="<?php echo htmlspecialchars($url)?>" type="image/png"/><?php
65
-
66
- }
67
- else if (preg_match('/apple/i', $type)) {
68
- if ((isset($this->aioFaviconSettings['removeReflectiveShine']) && !$this->aioFaviconSettings['removeReflectiveShine'])) {
69
- ?>
70
- <link rel="apple-touch-icon" href="<?php echo htmlspecialchars($url)?>"/><?php
71
- }
72
- else {
73
- ?>
74
- <link rel="apple-touch-icon-precomposed" href="<?php echo htmlspecialchars($url)?>"/><?php
75
- }
76
-
77
- }
78
- }
79
- }
80
- }
81
- }
82
- }
83
-
84
- // aioFaviconRenderBlogHeader()
85
-
86
  /**
87
  * Renders plugin link in Meta widget
88
  *
@@ -96,7 +53,7 @@ class AioFaviconFrontend {
96
  <li><?php _e('Using', AIOFAVICON_TEXTDOMAIN);?>
97
  <a href="http://www.techotronic.de/plugins/all-in-one-favicon/" target="_blank" title="<?php echo AIOFAVICON_NAME ?>"><?php echo AIOFAVICON_NAME ?></a>
98
  </li>
99
- <?php
100
  }
101
 
102
  // renderMetaLink()
8
  *
9
  * Object that handles all actions in the WordPress frontend
10
  */
11
+
12
+ require_once (dirname (__FILE__) . '/favicon-render-helper.php');
13
+
14
  class AioFaviconFrontend {
15
 
16
  /**
28
 
29
  $this->aioFaviconSettings = $aioFaviconSettings;
30
 
31
+ $this->faviconRenderHelper = new FaviconRenderHelper($this->aioFaviconSettings,AIOFAVICON_FRONTEND);
32
+ add_action('wp_head', array(& $this->faviconRenderHelper, 'renderFavicons'));
33
 
34
  //only add link to meta box
35
  if (isset($this->aioFaviconSettings['removeLinkFromMetaBox']) && !$this->aioFaviconSettings['removeLinkFromMetaBox']) {
40
 
41
  // AioFaviconFrontend()
42
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
  /**
44
  * Renders plugin link in Meta widget
45
  *
53
  <li><?php _e('Using', AIOFAVICON_TEXTDOMAIN);?>
54
  <a href="http://www.techotronic.de/plugins/all-in-one-favicon/" target="_blank" title="<?php echo AIOFAVICON_NAME ?>"><?php echo AIOFAVICON_NAME ?></a>
55
  </li>
56
+ <?php
57
  }
58
 
59
  // renderMetaLink()
includes/favicon-render-helper.php ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * @package Techotronic
5
+ * @subpackage All in one Favicon
6
+ *
7
+ * @since 4.0
8
+ * @author Arne Franken
9
+ *
10
+ * Help render uploaded Favicons
11
+ */
12
+ class FaviconRenderHelper {
13
+
14
+ /**
15
+ * Constructor
16
+ *
17
+ * @since 4.1
18
+ * @access public
19
+ * @access static
20
+ * @author Arne Franken
21
+ *
22
+ * @param Array $aioFaviconSettings user settings
23
+ * @param String $aioFaviconType either 'frontend' or 'backend'
24
+ */
25
+ //public static function FaviconRenderHelper($aioFaviconSettings, $aioFaviconType) {
26
+ function FaviconRenderHelper($aioFaviconSettings, $aioFaviconType) {
27
+
28
+ $this->aioFaviconSettings = $aioFaviconSettings;
29
+ $this->aioFaviconType = $aioFaviconType;
30
+
31
+ }
32
+
33
+ // FaviconRenderHelper()
34
+
35
+ /**
36
+ * Renders all different configured Favicons
37
+ *
38
+ * @since 4.1
39
+ * @access public
40
+ * @author Arne Franken
41
+ */
42
+ //public function renderFavicons() {
43
+ function renderFavicons() {
44
+ if (!empty($this->aioFaviconSettings)) {
45
+ //add comment to HTML
46
+ echo '<!-- '.AIOFAVICON_NAME.' '. AIOFAVICON_VERSION.' -->';
47
+
48
+ foreach ((array)$this->aioFaviconSettings as $favicon => $url) {
49
+ if (!empty($url)) {
50
+
51
+ if (preg_match('/' . $this->aioFaviconType . '/i', $favicon)) {
52
+
53
+ if (preg_match('/ico/i', $favicon)) {
54
+
55
+ $this->render('shortcut icon',$url,null);
56
+ }
57
+ else if (preg_match('/gif/i', $favicon)) {
58
+
59
+ $this->render('icon',$url,'image/gif');
60
+ }
61
+ else if (preg_match('/png/i', $favicon)) {
62
+
63
+ $this->render('icon',$url,'image/png');
64
+ }
65
+ else if (preg_match('/apple/i', $favicon)) {
66
+
67
+ if ((isset($this->aioFaviconSettings['removeReflectiveShine'])
68
+ && !$this->aioFaviconSettings['removeReflectiveShine'])) {
69
+
70
+ $this->render('apple-touch-icon',$url,null);
71
+ }
72
+ else {
73
+
74
+ $this->render('apple-touch-icon-precomposed',$url,null);
75
+ }
76
+ }
77
+ }
78
+ }
79
+ }
80
+ }
81
+ }
82
+
83
+ // renderFavicons()
84
+
85
+ /**
86
+ * Render <link> tag to HTML
87
+ *
88
+ * @since 4.1
89
+ * @access private
90
+ * @author Arne Franken
91
+ *
92
+ * @param $rel String value for the rel attribute
93
+ * @param $url String value for the href attribute
94
+ * @param $type String value for the type attribute. May be null.
95
+ */
96
+ //private function render($rel, $url, $type) {
97
+ function render($rel, $url, $type) {
98
+
99
+ ?><link rel="<?php echo $rel?>" href="<?php echo htmlspecialchars($url)?>" <?php if(!empty($type)) { echo 'type="' . $type . '"'; } ?>/>
100
+ <?php
101
+ }
102
+
103
+ // render()
104
+
105
+ }
106
+
107
+ // FaviconRenderHelper
includes/settings-page/sp-left-column.php CHANGED
@@ -10,11 +10,18 @@
10
  */
11
  ?>
12
  <div class="postbox-container" style="width: 69%;">
13
- <div id="poststuff">
 
 
 
14
  <?php
15
- require_once 'sp-plugin-settings.php';
16
- ?>
17
- </div>
 
 
 
 
18
  <?php
19
  require_once 'sp-tipps-box.php';
20
  require_once 'sp-delete-settings.php';
10
  */
11
  ?>
12
  <div class="postbox-container" style="width: 69%;">
13
+ <form id="aio-favicon-settings-update" name="aio-favicon-settings-update" enctype="multipart/form-data" method="post" action="admin-post.php">
14
+ <?php if (function_exists('wp_nonce_field') === true) wp_nonce_field('aio-favicon-settings-form'); ?>
15
+
16
+ <div id="poststuff">
17
  <?php
18
+ require_once 'sp-plugin-frontend-settings.php';
19
+ require_once 'sp-plugin-backend-settings.php';
20
+ require_once 'sp-plugin-meta-settings.php';
21
+ ?>
22
+ </div>
23
+ </form>
24
+
25
  <?php
26
  require_once 'sp-tipps-box.php';
27
  require_once 'sp-delete-settings.php';
includes/settings-page/sp-plugin-backend-settings.php ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @package Techotronic
4
+ * @subpackage All in one Favicon
5
+ *
6
+ * @since 4.1
7
+ * @author Arne Franken
8
+ *
9
+ * Backend Favicon Settings
10
+ */
11
+ ?>
12
+ <div id="aio-favicon-backend-settings" class="postbox">
13
+ <h3 id="backend-settings"><?php _e('Backend', AIOFAVICON_TEXTDOMAIN); echo " "; _e('Settings', AIOFAVICON_TEXTDOMAIN); ?></h3>
14
+
15
+ <div class="inside">
16
+ <table class="form-table">
17
+ <?php
18
+ // The icons that we can set.
19
+ $faviconMap = array(
20
+ 'backendICO' => 'ICO',
21
+ 'backendPNG' => 'PNG',
22
+ 'backendGIF' => 'GIF',
23
+ 'backendApple' => 'Apple Touch Icon');
24
+
25
+ // Loop over this list of icons.
26
+ foreach ($faviconMap as $iconName => $iconType) { ?>
27
+ <tr>
28
+ <th scope="row">
29
+ <label for="<?php echo AIOFAVICON_SETTINGSNAME .'-'. $iconName ?>"><?php printf(__('%1$s '.$iconType, AIOFAVICON_TEXTDOMAIN), __('Backend', AIOFAVICON_TEXTDOMAIN)); ?>:</label>
30
+ </th>
31
+ <td width="32">
32
+ <div id="<?php echo $iconName ?>-favicon"></div>
33
+ </td>
34
+ <td>
35
+ <input id="<?php echo AIOFAVICON_SETTINGSNAME .'-'. $iconName ?>" type="file" name="<?php echo $iconName ?>" size="50" maxlength="100000" accept="image/*" value="<?php echo $this->aioFaviconSettings[$iconName] ?>" style="display:none;"/>
36
+ <input id="<?php echo AIOFAVICON_SETTINGSNAME .'-'. $iconName ?>-text" type="text" name="<?php echo $iconName ?>-text" size="60" maxlength="100000" value="<?php echo $this->aioFaviconSettings[$iconName] ?>"/>
37
+ <input id="<?php echo AIOFAVICON_SETTINGSNAME .'-'. $iconName ?>-button" type="button" name="<?php echo $iconName ?>-button" class="button-secondary" value="<?php _e('Upload') ?>" />
38
+ <br />
39
+ <input type="checkbox" name="delete-<?php echo $iconName ?>"/><?php _e('Check box to delete favicon.',AIOFAVICON_TEXTDOMAIN) ?>
40
+ </td>
41
+ </tr>
42
+ <?php } ?>
43
+ </table>
44
+ <p class="submit">
45
+ <input type="hidden" name="action" value="aioFaviconUpdateSettings"/>
46
+ <input type="submit" name="aioFaviconUpdateSettings" class="button-primary" value="<?php _e('Save Changes') ?>"/>
47
+ </p>
48
+ </div>
49
+ </div>
includes/settings-page/sp-plugin-frontend-settings.php ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @package Techotronic
4
+ * @subpackage All in one Favicon
5
+ *
6
+ * @since 4.1
7
+ * @author Arne Franken
8
+ *
9
+ * Frontend Favicon Settings
10
+ */
11
+ ?>
12
+ <div id="aio-favicon-frontend-settings" class="postbox">
13
+ <h3 id="frontend-settings"><?php _e('Frontend', AIOFAVICON_TEXTDOMAIN); echo " "; _e('Settings', AIOFAVICON_TEXTDOMAIN); ?></h3>
14
+
15
+ <div class="inside">
16
+ <table class="form-table">
17
+ <?php
18
+ // The icons that we can set.
19
+ $faviconMap = array(
20
+ 'frontendICO' => 'ICO',
21
+ 'frontendPNG' => 'PNG',
22
+ 'frontendGIF' => 'GIF',
23
+ 'frontendApple' => 'Apple Touch Icon');
24
+
25
+ // Loop over this list of icons.
26
+ foreach ($faviconMap as $iconName => $iconType) { ?>
27
+ <tr>
28
+ <th scope="row">
29
+ <label for="<?php echo AIOFAVICON_SETTINGSNAME .'-'. $iconName ?>"><?php printf(__('%1$s '.$iconType, AIOFAVICON_TEXTDOMAIN), __('Frontend', AIOFAVICON_TEXTDOMAIN)); ?>:</label>
30
+ </th>
31
+ <td width="32">
32
+ <div id="<?php echo $iconName ?>-favicon"></div>
33
+ </td>
34
+ <td>
35
+ <input id="<?php echo AIOFAVICON_SETTINGSNAME .'-'. $iconName ?>" type="file" name="<?php echo $iconName ?>" size="50" maxlength="100000" accept="image/*" value="<?php echo $this->aioFaviconSettings[$iconName] ?>" style="display:none;"/>
36
+ <input id="<?php echo AIOFAVICON_SETTINGSNAME .'-'. $iconName ?>-text" type="text" name="<?php echo $iconName ?>-text" size="60" maxlength="100000" value="<?php echo $this->aioFaviconSettings[$iconName] ?>"/>
37
+ <input id="<?php echo AIOFAVICON_SETTINGSNAME .'-'. $iconName ?>-button" type="button" name="<?php echo $iconName ?>-button" class="button-secondary" value="<?php _e('Upload') ?>" />
38
+ <br />
39
+ <input type="checkbox" name="delete-<?php echo $iconName ?>"/><?php _e('Check box to delete favicon.',AIOFAVICON_TEXTDOMAIN) ?>
40
+ </td>
41
+ </tr>
42
+ <?php } ?>
43
+ </table>
44
+ <p class="submit">
45
+ <input type="hidden" name="action" value="aioFaviconUpdateSettings"/>
46
+ <input type="submit" name="aioFaviconUpdateSettings" class="button-primary" value="<?php _e('Save Changes') ?>"/>
47
+ </p>
48
+ </div>
49
+ </div>
includes/settings-page/sp-plugin-meta-settings.php ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @package Techotronic
4
+ * @subpackage All in one Favicon
5
+ *
6
+ * @since 4.1
7
+ * @author Arne Franken
8
+ *
9
+ * Meta Settings
10
+ */
11
+ ?>
12
+ <div id="aio-favicon-meta-settings" class="postbox">
13
+ <h3 id="meta-settings"><?php _e('Settings', AIOFAVICON_TEXTDOMAIN); ?></h3>
14
+
15
+ <div class="inside">
16
+ <table class="form-table">
17
+ <tr>
18
+ <th scope="row">
19
+ <label for="<?php echo AIOFAVICON_SETTINGSNAME ?>-removeReflectiveShine"><?php _e('Don\'t add reflective shine', AIOFAVICON_TEXTDOMAIN); ?>:</label>
20
+ </th>
21
+ <td width="32"></td>
22
+ <td>
23
+ <input type="checkbox" name="<?php echo AIOFAVICON_SETTINGSNAME ?>[removeReflectiveShine]" id="<?php echo AIOFAVICON_SETTINGSNAME ?>-removeReflectiveShine" value="true" <?php echo ($this->aioFaviconSettings['removeReflectiveShine'])
24
+ ? 'checked="checked"' : '';?>/>
25
+ <br/><?php _e('Don\'t add reflective shine to Apple Touch Icon', AIOFAVICON_TEXTDOMAIN); ?>
26
+ </td>
27
+ </tr>
28
+ <tr>
29
+ <th scope="row">
30
+ <label for="<?php echo AIOFAVICON_SETTINGSNAME ?>-removeLinkFromMetaBox"><?php _e('Remove link from Meta-box', AIOFAVICON_TEXTDOMAIN); ?>:</label>
31
+ </th>
32
+ <td width="32"></td>
33
+ <td>
34
+ <input type="checkbox" name="<?php echo AIOFAVICON_SETTINGSNAME ?>[removeLinkFromMetaBox]" id="<?php echo AIOFAVICON_SETTINGSNAME ?>-removeLinkFromMetaBox" value="true" <?php echo ($this->aioFaviconSettings['removeLinkFromMetaBox'])
35
+ ? 'checked="checked"' : '';?>/>
36
+ <br/><?php _e('Remove the link to the developers site from the WordPress meta-box.', AIOFAVICON_TEXTDOMAIN); ?>
37
+ </td>
38
+ </tr>
39
+ </table>
40
+ <p class="submit">
41
+ <input type="hidden" name="action" value="aioFaviconUpdateSettings"/>
42
+ <input type="submit" name="aioFaviconUpdateSettings" class="button-primary" value="<?php _e('Save Changes') ?>"/>
43
+ </p>
44
+ </div>
45
+ </div>
includes/settings-page/sp-plugin-settings.php DELETED
@@ -1,169 +0,0 @@
1
- <?php
2
- /**
3
- * @package Techotronic
4
- * @subpackage All in one Favicon
5
- *
6
- * @since 4.0
7
- * @author Arne Franken
8
- *
9
- * Plugin Settings for settings page
10
- */
11
- ?>
12
- <div id="aio-favicon-settings" class="postbox">
13
- <h3 id="settings"><?php _e('Settings', AIOFAVICON_TEXTDOMAIN); ?></h3>
14
-
15
- <div class="inside">
16
- <form name="aio-favicon-settings-update" enctype="multipart/form-data" method="post" action="admin-post.php">
17
- <?php if (function_exists('wp_nonce_field') === true) wp_nonce_field('aio-favicon-settings-form'); ?>
18
-
19
- <table class="form-table">
20
- <tr>
21
- <th scope="row">
22
- <label for="<?php echo AIOFAVICON_SETTINGSNAME ?>-frontendICO"><?php printf(__('%1$s ICO', AIOFAVICON_TEXTDOMAIN), __('Frontend', AIOFAVICON_TEXTDOMAIN)); ?>:</label>
23
- </th>
24
- <td width="32">
25
- <div id="frontendICO-favicon"></div>
26
- </td>
27
- <td>
28
- <input id="<?php echo AIOFAVICON_SETTINGSNAME ?>-frontendICO" type="file" size="50" maxlength="100000" accept="text/*" name="frontendICO" value="<?php echo $this->aioFaviconSettings['frontendICO'] ?>" src="<?php echo $this->aioFaviconSettings['frontendICO'] ?>"/>
29
- <br />
30
- <?php echo $this->aioFaviconSettings['frontendICO'] ?>
31
- <br />
32
- <input type="checkbox" name="delete-frontendICO"/><?php _e('Check box to delete favicon.',AIOFAVICON_TEXTDOMAIN) ?>
33
- </td>
34
- </tr>
35
- <tr>
36
- <th scope="row">
37
- <label for="<?php echo AIOFAVICON_SETTINGSNAME ?>-frontendPNG"><?php printf(__('%1$s PNG', AIOFAVICON_TEXTDOMAIN), __('Frontend', AIOFAVICON_TEXTDOMAIN)); ?>:</label>
38
- </th>
39
- <td width="32">
40
- <div id="frontendPNG-favicon"></div>
41
- </td>
42
- <td>
43
- <input id="<?php echo AIOFAVICON_SETTINGSNAME ?>-frontendPNG" type="file" size="50" maxlength="100000" accept="text/*" name="frontendPNG" value="<?php echo $this->aioFaviconSettings['frontendPNG'] ?>"/>
44
- <br />
45
- <?php echo $this->aioFaviconSettings['frontendPNG'] ?>
46
- <br />
47
- <input type="checkbox" name="delete-frontendPNG"/><?php _e('Check box to delete favicon.',AIOFAVICON_TEXTDOMAIN) ?>
48
- </td>
49
- </tr>
50
- <tr>
51
- <th scope="row">
52
- <label for="<?php echo AIOFAVICON_SETTINGSNAME ?>-frontendGIF"><?php printf(__('%1$s GIF', AIOFAVICON_TEXTDOMAIN), __('Frontend', AIOFAVICON_TEXTDOMAIN)); ?>:</label>
53
- </th>
54
- <td width="32">
55
- <div id="frontendGIF-favicon"></div>
56
- </td>
57
- <td>
58
- <input id="<?php echo AIOFAVICON_SETTINGSNAME ?>-frontendGIF" type="file" size="50" maxlength="100000" accept="text/*" name="frontendGIF" value="<?php echo $this->aioFaviconSettings['frontendGIF'] ?>"/>
59
- <br />
60
- <?php echo $this->aioFaviconSettings['frontendGIF'] ?>
61
- <br />
62
- <input type="checkbox" name="delete-frontendGIF"/><?php _e('Check box to delete favicon.',AIOFAVICON_TEXTDOMAIN) ?>
63
- </td>
64
- </tr>
65
- <tr>
66
- <th scope="row">
67
- <label for="<?php echo AIOFAVICON_SETTINGSNAME ?>-frontendApple"><?php printf(__('%1$s Apple Touch Icon', AIOFAVICON_TEXTDOMAIN), __('Frontend', AIOFAVICON_TEXTDOMAIN)); ?>:</label>
68
- </th>
69
- <td width="32">
70
- <div id="frontendApple-favicon"></div>
71
- </td>
72
- <td>
73
- <input id="<?php echo AIOFAVICON_SETTINGSNAME ?>-frontendApple" type="file" size="50" maxlength="100000" accept="text/*" name="frontendApple" value="<?php echo $this->aioFaviconSettings['frontendApple'] ?>"/>
74
- <br />
75
- <?php echo $this->aioFaviconSettings['frontendApple'] ?>
76
- <br />
77
- <input type="checkbox" name="delete-frontendApple"/><?php _e('Check box to delete favicon.',AIOFAVICON_TEXTDOMAIN) ?>
78
- </td>
79
- </tr>
80
- <tr>
81
- <th scope="row">
82
- <label for="<?php echo AIOFAVICON_SETTINGSNAME ?>-backendICO"><?php printf(__('%1$s ICO', AIOFAVICON_TEXTDOMAIN), __('Backend', AIOFAVICON_TEXTDOMAIN)); ?>:</label>
83
- </th>
84
- <td width="32">
85
- <div id="backendICO-favicon"></div>
86
- </td>
87
- <td>
88
- <input id="<?php echo AIOFAVICON_SETTINGSNAME ?>-backendICO" type="file" size="50" maxlength="100000" accept="text/*" name="backendICO" value="<?php echo $this->aioFaviconSettings['backendICO'] ?>"/>
89
- <br />
90
- <?php echo $this->aioFaviconSettings['backendICO'] ?>
91
- <br />
92
- <input type="checkbox" name="delete-backendICO"/><?php _e('Check box to delete favicon.',AIOFAVICON_TEXTDOMAIN) ?>
93
- </td>
94
- </tr>
95
- <tr>
96
- <th scope="row">
97
- <label for="<?php echo AIOFAVICON_SETTINGSNAME ?>-backendPNG"><?php printf(__('%1$s PNG', AIOFAVICON_TEXTDOMAIN), __('Backend', AIOFAVICON_TEXTDOMAIN)); ?>:</label>
98
- </th>
99
- <td width="32">
100
- <div id="backendPNG-favicon"></div>
101
- </td>
102
- <td>
103
- <input id="<?php echo AIOFAVICON_SETTINGSNAME ?>-backendPNG" type="file" size="50" maxlength="100000" accept="text/*" name="backendPNG" value="<?php echo $this->aioFaviconSettings['backendPNG'] ?>"/>
104
- <br />
105
- <?php echo $this->aioFaviconSettings['backendPNG'] ?>
106
- <br />
107
- <input type="checkbox" name="delete-backendPNG"/><?php _e('Check box to delete favicon.',AIOFAVICON_TEXTDOMAIN) ?>
108
- </td>
109
- </tr>
110
- <tr>
111
- <th scope="row">
112
- <label for="<?php echo AIOFAVICON_SETTINGSNAME ?>-backendGIF"><?php printf(__('%1$s GIF', AIOFAVICON_TEXTDOMAIN), __('Backend', AIOFAVICON_TEXTDOMAIN)); ?>:</label>
113
- </th>
114
- <td width="32">
115
- <div id="backendGIF-favicon"></div>
116
- </td>
117
- <td>
118
- <input id="<?php echo AIOFAVICON_SETTINGSNAME ?>-backendGIF" type="file" size="50" maxlength="100000" accept="text/*" name="backendGIF" value="<?php echo $this->aioFaviconSettings['backendGIF'] ?>"/>
119
- <br />
120
- <?php echo $this->aioFaviconSettings['backendGIF'] ?>
121
- <br />
122
- <input type="checkbox" name="delete-backendGIF"/><?php _e('Check box to delete favicon.',AIOFAVICON_TEXTDOMAIN) ?>
123
- </td>
124
- </tr>
125
- <tr>
126
- <th scope="row">
127
- <label for="<?php echo AIOFAVICON_SETTINGSNAME ?>-backendApple"><?php printf(__('%1$s Apple Touch Icon', AIOFAVICON_TEXTDOMAIN), __('Backend', AIOFAVICON_TEXTDOMAIN)); ?>:</label>
128
- </th>
129
- <td width="32">
130
- <div id="backendApple-favicon"></div>
131
- </td>
132
- <td>
133
- <input id="<?php echo AIOFAVICON_SETTINGSNAME ?>-backendApple" type="file" size="50" maxlength="100000" accept="text/*" name="backendApple" value="<?php echo $this->aioFaviconSettings['backendApple'] ?>"/>
134
- <br />
135
- <?php echo $this->aioFaviconSettings['backendApple'] ?>
136
- <br />
137
- <input type="checkbox" name="delete-backendApple"/><?php _e('Check box to delete favicon.',AIOFAVICON_TEXTDOMAIN) ?>
138
- </td>
139
- </tr>
140
- <tr>
141
- <th scope="row">
142
- <label for="<?php echo AIOFAVICON_SETTINGSNAME ?>-removeReflectiveShine"><?php _e('Don\'t add reflective shine', AIOFAVICON_TEXTDOMAIN); ?>:</label>
143
- </th>
144
- <td width="32"></td>
145
- <td>
146
- <input type="checkbox" name="<?php echo AIOFAVICON_SETTINGSNAME ?>[removeReflectiveShine]" id="<?php echo AIOFAVICON_SETTINGSNAME ?>-removeReflectiveShine" value="true" <?php echo ($this->aioFaviconSettings['removeReflectiveShine'])
147
- ? 'checked="checked"' : '';?>/>
148
- <br/><?php _e('Don\'t add reflective shine to Apple Touch Icon', AIOFAVICON_TEXTDOMAIN); ?>
149
- </td>
150
- </tr>
151
- <tr>
152
- <th scope="row">
153
- <label for="<?php echo AIOFAVICON_SETTINGSNAME ?>-removeLinkFromMetaBox"><?php _e('Remove link from Meta-box', AIOFAVICON_TEXTDOMAIN); ?>:</label>
154
- </th>
155
- <td width="32"></td>
156
- <td>
157
- <input type="checkbox" name="<?php echo AIOFAVICON_SETTINGSNAME ?>[removeLinkFromMetaBox]" id="<?php echo AIOFAVICON_SETTINGSNAME ?>-removeLinkFromMetaBox" value="true" <?php echo ($this->aioFaviconSettings['removeLinkFromMetaBox'])
158
- ? 'checked="checked"' : '';?>/>
159
- <br/><?php _e('Remove the link to the developers site from the WordPress meta-box.', AIOFAVICON_TEXTDOMAIN); ?>
160
- </td>
161
- </tr>
162
- </table>
163
- <p class="submit">
164
- <input type="hidden" name="action" value="aioFaviconUpdateSettings"/>
165
- <input type="submit" name="aioFaviconUpdateSettings" class="button-primary" value="<?php _e('Save Changes') ?>"/>
166
- </p>
167
- </form>
168
- </div>
169
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
js/aiofavicon-min.js CHANGED
@@ -1 +1 @@
1
- jQuery(document).ready(function(){faviconLoader()});(function(a){faviconLoader=function(){a.each(Aiofavicon,function(c,d){var e='<img src="'+d+'" />';var b="#"+c+"-favicon";a(b).empty().html(e).fadeIn()})}})(jQuery);
1
+ jQuery(document).ready(function(){loadFavicons();bindEventTriggers();bindChangeHandlers()});(function(a){loadFavicons=function(){a.each(Aiofavicon,function(c,d){var e='<img src="'+d+'" />';var b="#"+c+"-favicon";a(b).empty().html(e).fadeIn()})}})(jQuery);(function(a){bindEventTriggers=function(){var b=a("form#aio-favicon-settings-update");var c=b.find('input[type="button"]');c.click(function(){a(this).siblings('input[type="file"]').trigger("click")})}})(jQuery);(function(a){bindChangeHandlers=function(){var c=a("form#aio-favicon-settings-update");var b=c.find('input[type="file"]');b.change(function(){a(this).siblings('input[type="text"]').val(a(this).val())})}})(jQuery);
js/aiofavicon.js CHANGED
@@ -12,16 +12,19 @@
12
  * call favicon loader on page load.
13
  */
14
  jQuery(document).ready(function() {
15
- faviconLoader();
 
 
16
  });
17
 
18
  /**
19
- * faviconLoader
20
- *
21
  * load all uploaded favicons
 
 
 
22
  */
23
  (function(jQuery) {
24
- faviconLoader = function() {
25
  jQuery.each(Aiofavicon, function(key, value) {
26
  var $imgTag = "<img src=\"" + value + "\" />";
27
  var selector = "#"+key+"-favicon";
@@ -30,4 +33,57 @@ jQuery(document).ready(function() {
30
  }
31
  })(jQuery);
32
 
33
- // faviconLoader()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  * call favicon loader on page load.
13
  */
14
  jQuery(document).ready(function() {
15
+ loadFavicons();
16
+ bindEventTriggers();
17
+ bindChangeHandlers();
18
  });
19
 
20
  /**
 
 
21
  * load all uploaded favicons
22
+ *
23
+ * @since 3.2
24
+ * @author Arne Franken
25
  */
26
  (function(jQuery) {
27
+ loadFavicons = function() {
28
  jQuery.each(Aiofavicon, function(key, value) {
29
  var $imgTag = "<img src=\"" + value + "\" />";
30
  var selector = "#"+key+"-favicon";
33
  }
34
  })(jQuery);
35
 
36
+ // loadFavicons()
37
+
38
+ /**
39
+ * Find all buttons, attach a click event.
40
+ * Event triggers a click event on the hidden "file" input field
41
+ * which displays the file selector dialog.
42
+ *
43
+ * @since 4.1
44
+ * @author Arne Franken
45
+ */
46
+ (function(jQuery) {
47
+ bindEventTriggers = function() {
48
+
49
+ var form = jQuery("form#aio-favicon-settings-update");
50
+
51
+ var buttonInputs = form.find('input[type="button"]');
52
+
53
+ buttonInputs.click(function () {
54
+ jQuery(this)
55
+ .siblings('input[type="file"]')
56
+ .trigger('click');
57
+ });
58
+
59
+ }
60
+ })(jQuery);
61
+
62
+ // bindEventTriggers()
63
+
64
+
65
+ /**
66
+ * Attach change event handler to all hidden "file" inputs.
67
+ * Value will be copied to "text" input when user selects a file.
68
+ * Only the filename will be displayed.
69
+ *
70
+ * @since 4.1
71
+ * @author Arne Franken
72
+ */
73
+ (function(jQuery) {
74
+ bindChangeHandlers = function() {
75
+
76
+ var form = jQuery("form#aio-favicon-settings-update");
77
+
78
+ var fileInputs = form.find('input[type="file"]');
79
+
80
+ fileInputs.change(function () {
81
+ jQuery(this)
82
+ .siblings('input[type="text"]')
83
+ .val(jQuery(this)
84
+ .val());
85
+ });
86
+ }
87
+ })(jQuery);
88
+
89
+ // bindChangeHandlers()
localization/aio-favicon-he_IL.mo ADDED
Binary file
localization/aio-favicon-he_IL.po ADDED
@@ -0,0 +1,282 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: All in one Favicon v4.0\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: 2012-04-15 00:55+0100\n"
7
+ "Last-Translator: \n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-SourceCharset: utf-8\n"
14
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
15
+ "X-Poedit-Basepath: ../\n"
16
+ "X-Textdomain-Support: yes\n"
17
+ "X-Poedit-SearchPath-0: .\n"
18
+
19
+ # @ aio-favicon
20
+ #: all-in-one-favicon.php:37
21
+ msgid "All in one Favicon"
22
+ msgstr "פאביקון"
23
+
24
+ # @ aio-favicon
25
+ #: includes/aio-favicon-backend.php:158
26
+ #: includes/settings-page/sp-plugin-settings.php:13
27
+ #: includes/settings-page.php:15
28
+ msgid "Settings"
29
+ msgstr "הגדרות"
30
+
31
+ # @ aio-favicon
32
+ #: includes/aio-favicon-backend.php:183
33
+ #, php-format
34
+ msgid "Successfully updated %1$s settings."
35
+ msgstr "עדכנתי בהצלחה %1$s את ההגדרות."
36
+
37
+ # @ aio-favicon
38
+ #: includes/aio-favicon-backend.php:185
39
+ #, php-format
40
+ msgid "%1$s settings were successfully deleted."
41
+ msgstr "%1$s הגדרות נמחקו בהצלחה."
42
+
43
+ # @ aio-favicon
44
+ #: includes/aio-favicon-backend.php:209
45
+ msgid "Did not update settings, you do not have the necessary rights."
46
+ msgstr "לא עדכנתי את ההגדרות, אין לך את ההרשאות המתאימות."
47
+
48
+ # @ aio-favicon
49
+ #: includes/aio-favicon-backend.php:270
50
+ #, php-format
51
+ msgid "Did not delete %1$s settings. Either you dont have the nececssary rights or you didnt check the checkbox."
52
+ msgstr "לא מחקתי %1$s הגדרות. או שאין לך את ההרשאות המתאימות או שלא סימנת את תיבת הסימון.."
53
+
54
+ # @ aio-favicon
55
+ #: includes/aio-favicon-frontend.php:96
56
+ msgid "Using"
57
+ msgstr "משתמש"
58
+
59
+ # @ aio-favicon
60
+ #: includes/settings-page/sp-delete-settings.php:14
61
+ #: includes/settings-page/sp-delete-settings.php:23
62
+ msgid "Delete Settings"
63
+ msgstr "מחק הגדרות"
64
+
65
+ # @ aio-favicon
66
+ #: includes/settings-page/sp-delete-settings.php:17
67
+ msgid "Check the box and click this button to delete settings of this plugin."
68
+ msgstr "סמן את התיבה ולחץ על כפתור זה כדי למחוק את ההגדרות של תוסף זה."
69
+
70
+ # @ aio-favicon
71
+ #: includes/settings-page/sp-donate-box.php:14
72
+ msgid "Donate"
73
+ msgstr "תרום"
74
+
75
+ # @ aio-favicon
76
+ #: includes/settings-page/sp-donate-box.php:18
77
+ msgid "If you would like to make a small (or large) contribution towards future development please consider making a donation."
78
+ msgstr "אם תרצה לתרום מעט (או הרבה) לטובת המשך הפיתוח, בבקשה שקול לבצע תרומה."
79
+
80
+ # @ aio-favicon
81
+ #: includes/settings-page/sp-donate-box.php:24
82
+ msgid "Techotronic Development Support"
83
+ msgstr "שירותי התמיכה של פיתוח טטרוניקס"
84
+
85
+ # @ aio-favicon
86
+ #: includes/settings-page/sp-donate-box.php:28
87
+ msgid "Please enter the URL you'd like me to link to in the donors lists"
88
+ msgstr "בבקשה הזן כתובת URL שתרצה שאקשר אליה מרשימת התורמים"
89
+
90
+ # @ aio-favicon
91
+ #: includes/settings-page/sp-donate-box.php:30
92
+ msgid "Return to Your Dashboard"
93
+ msgstr "חזור אל לוח הבקרה שלך"
94
+
95
+ # @ aio-favicon
96
+ #: includes/settings-page/sp-donate-box.php:34
97
+ msgid "Select Preset Amount"
98
+ msgstr "בחר סכום קבוע מראש"
99
+
100
+ # @ aio-favicon
101
+ #: includes/settings-page/sp-donate-box.php:42
102
+ #: includes/settings-page/sp-donate-box.php:46
103
+ msgid "USD"
104
+ msgstr "דולר"
105
+
106
+ # @ aio-favicon
107
+ #: includes/settings-page/sp-donate-box.php:43
108
+ msgid "Or"
109
+ msgstr "או"
110
+
111
+ # @ aio-favicon
112
+ #: includes/settings-page/sp-donate-box.php:44
113
+ msgid "Enter Custom Amount"
114
+ msgstr "הזן סכום מותאם אישית"
115
+
116
+ # @ aio-favicon
117
+ #: includes/settings-page/sp-donate-box.php:48
118
+ msgid "Submit"
119
+ msgstr "שלח"
120
+
121
+ # @ aio-favicon
122
+ #: includes/settings-page/sp-donations.php:14
123
+ msgid "Top donations"
124
+ msgstr "התרומות הגדולות ביותר"
125
+
126
+ # @ aio-favicon
127
+ #: includes/settings-page/sp-donations.php:20
128
+ #: includes/settings-page/sp-donations.php:33
129
+ msgid "Thank you for your donation."
130
+ msgstr "תודה רבה על תרומתך."
131
+
132
+ # @ aio-favicon
133
+ #: includes/settings-page/sp-donations.php:27
134
+ msgid "Latest donations"
135
+ msgstr "תרומות אחרונות"
136
+
137
+ # @ aio-favicon
138
+ #: includes/settings-page/sp-plugin-settings.php:22
139
+ #: includes/settings-page/sp-plugin-settings.php:82
140
+ #, php-format
141
+ msgid "%1$s ICO"
142
+ msgstr "%1$s ICO"
143
+
144
+ # @ aio-favicon
145
+ #: includes/settings-page/sp-plugin-settings.php:22
146
+ #: includes/settings-page/sp-plugin-settings.php:37
147
+ #: includes/settings-page/sp-plugin-settings.php:52
148
+ #: includes/settings-page/sp-plugin-settings.php:67
149
+ msgid "Frontend"
150
+ msgstr "קצה משתמש"
151
+
152
+ # @ aio-favicon
153
+ #: includes/settings-page/sp-plugin-settings.php:32
154
+ #: includes/settings-page/sp-plugin-settings.php:47
155
+ #: includes/settings-page/sp-plugin-settings.php:62
156
+ #: includes/settings-page/sp-plugin-settings.php:77
157
+ #: includes/settings-page/sp-plugin-settings.php:92
158
+ #: includes/settings-page/sp-plugin-settings.php:107
159
+ #: includes/settings-page/sp-plugin-settings.php:122
160
+ #: includes/settings-page/sp-plugin-settings.php:137
161
+ msgid "Check box to delete favicon."
162
+ msgstr "סמן את התיבה כדי למחוק את הפאביקון."
163
+
164
+ # @ aio-favicon
165
+ #: includes/settings-page/sp-plugin-settings.php:37
166
+ #: includes/settings-page/sp-plugin-settings.php:97
167
+ #, php-format
168
+ msgid "%1$s PNG"
169
+ msgstr "%1$s PNG"
170
+
171
+ # @ aio-favicon
172
+ #: includes/settings-page/sp-plugin-settings.php:52
173
+ #: includes/settings-page/sp-plugin-settings.php:112
174
+ #, php-format
175
+ msgid "%1$s GIF"
176
+ msgstr "%1$s GIF"
177
+
178
+ # @ aio-favicon
179
+ #: includes/settings-page/sp-plugin-settings.php:67
180
+ #: includes/settings-page/sp-plugin-settings.php:127
181
+ #, php-format
182
+ msgid "%1$s Apple Touch Icon"
183
+ msgstr "%1$s Apple Touch Icon"
184
+
185
+ # @ aio-favicon
186
+ #: includes/settings-page/sp-plugin-settings.php:82
187
+ #: includes/settings-page/sp-plugin-settings.php:97
188
+ #: includes/settings-page/sp-plugin-settings.php:112
189
+ #: includes/settings-page/sp-plugin-settings.php:127
190
+ msgid "Backend"
191
+ msgstr "קצה אחורי"
192
+
193
+ # @ aio-favicon
194
+ #: includes/settings-page/sp-plugin-settings.php:142
195
+ msgid "Don't add reflective shine"
196
+ msgstr "אל תוסיף מחזיר ברק"
197
+
198
+ # @ aio-favicon
199
+ #: includes/settings-page/sp-plugin-settings.php:148
200
+ msgid "Don't add reflective shine to Apple Touch Icon"
201
+ msgstr "אל תוסיף ברק לאייקון של Apple Touch"
202
+
203
+ # @ aio-favicon
204
+ #: includes/settings-page/sp-plugin-settings.php:153
205
+ msgid "Remove link from Meta-box"
206
+ msgstr "הסר קישור מ Meta-box"
207
+
208
+ # @ aio-favicon
209
+ #: includes/settings-page/sp-plugin-settings.php:159
210
+ msgid "Remove the link to the developers site from the WordPress meta-box."
211
+ msgstr "הסר את הקישור לאתר המפתחים מ Meta-box של וורדפרס"
212
+
213
+ # @ default
214
+ #: includes/settings-page/sp-plugin-settings.php:165
215
+ msgid "Save Changes"
216
+ msgstr "שמור שינויים"
217
+
218
+ # @ aio-favicon
219
+ #: includes/settings-page/sp-tipps-box.php:14
220
+ msgid "Tips"
221
+ msgstr "טיפים"
222
+
223
+ # @ aio-favicon
224
+ #: includes/settings-page/sp-tipps-box.php:20
225
+ msgid "Favicon wikipedia entry"
226
+ msgstr "ערך פאביקון בויקיפדיה"
227
+
228
+ # @ aio-favicon
229
+ #: includes/settings-page/sp-tipps-box.php:23
230
+ msgid "<a href=\"http://en.wikipedia.org/wiki/Favicon\" target=\"_blank\">Wikipedia</a> offers much information about favicon types and sizes."
231
+ msgstr "<a href=\"http://en.wikipedia.org/wiki/Favicon\" target=\"_blank\">Wikipedia</a> מציע מידע רב על סוגי פאביקון וגדלים."
232
+
233
+ # @ aio-favicon
234
+ #: includes/settings-page/sp-tipps-box.php:28
235
+ msgid "Favicon generator"
236
+ msgstr "יצרן פאביקון"
237
+
238
+ # @ aio-favicon
239
+ #: includes/settings-page/sp-tipps-box.php:31
240
+ msgid "<a href=\"http://www.html-kit.com/favicon/\" target=\"_blank\">HTML Kit</a> provides a favicon generator that is very easy to use."
241
+ msgstr "<a href=\"http://www.html-kit.com/favicon/\" target=\"_blank\">HTML Kit</a> מספק מנוע קל לשימוש לייצור פאביקון."
242
+
243
+ # @ aio-favicon
244
+ #: includes/settings-page/sp-tipps-box.php:36
245
+ msgid "Favicon CC editor"
246
+ msgstr "עורך Favicon CC"
247
+
248
+ # @ aio-favicon
249
+ #: includes/settings-page/sp-tipps-box.php:39
250
+ msgid "<a href=\"http://www.favicon.cc/\" target=\"_blank\">Favicon CC</a> provides a favicon editor that is very easy to use."
251
+ msgstr "<a href=\"http://www.favicon.cc/\" target=\"_blank\">Favicon CC</a> מספק עורך פאביקון קל לשימוש."
252
+
253
+ # @ aio-favicon
254
+ #: includes/settings-page/sp-tipps-box.php:44
255
+ msgid "Favicon validator"
256
+ msgstr "מאמת פאביקון"
257
+
258
+ # @ aio-favicon
259
+ #: includes/settings-page/sp-tipps-box.php:47
260
+ msgid "<a href=\"http://www.html-kit.com/favicon/validator\" target=\"_blank\">HTML Kit</a> provides a favicon validator that tells you whether your favicon is working and if it is compatible to all browsers."
261
+ msgstr "<a href=\"http://www.html-kit.com/favicon/validator\" target=\"_blank\">HTML Kit</a> מספק מאמת פאביקון האומר לכם אם הפאביקון שלכם עובד ואם הוא תואם לכל הדפדפנים."
262
+
263
+ # @ aio-favicon
264
+ #: includes/settings-page/sp-tipps-box.php:52
265
+ msgid "Apple Touch Icon Howto"
266
+ msgstr "מדריך יצירת אייקון ל Apple Touch"
267
+
268
+ # @ aio-favicon
269
+ #: includes/settings-page/sp-tipps-box.php:55
270
+ msgid "<a href=\"http://developer.apple.com/library/safari/#documentation/appleapplications/reference/safariwebcontent/ConfiguringWebApplications/ConfiguringWebApplications.html\" target=\"_blank\">Apple</a> provides a howto on how to create a PNG to use as an Apple Touch Icon."
271
+ msgstr "<a href=\"http://developer.apple.com/library/safari/#documentation/appleapplications/reference/safariwebcontent/ConfiguringWebApplications/ConfiguringWebApplications.html\" target=\"_blank\">Apple</a> מספק מדריך ליצירת קובץ PNG לשימוש כאייקון של Apple Touch."
272
+
273
+ # @ aio-favicon
274
+ #: includes/settings-page/sp-translation.php:14
275
+ msgid "Translation"
276
+ msgstr "תרגום"
277
+
278
+ # @ aio-favicon
279
+ #: includes/settings-page/sp-translation.php:17
280
+ msgid "The english translation was done by <a href=\"http://www.techotronic.de\" target=\"_blank\">Arne Franken</a>."
281
+ msgstr "התרגום לעברית נעשה על ידי <a href=\"http://atar4u.com\" target=\"_blank\">אהרל'ה שרים</a>."
282
+
localization/aio-favicon-sk_SK.mo CHANGED
Binary file
localization/aio-favicon-sk_SK.po CHANGED
@@ -2,14 +2,14 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: All in one Favicon v3.1\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2012-03-15 00:37+0100\n"
6
- "PO-Revision-Date: 2012-03-15 00:38+0100\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
  "X-Poedit-Language: Slovak\n"
14
  "X-Poedit-Country: SLOVAKIA\n"
15
  "X-Poedit-SourceCharset: utf-8\n"
@@ -21,34 +21,34 @@ msgstr ""
21
  # @ aio-favicon
22
  #: all-in-one-favicon.php:37
23
  msgid "All in one Favicon"
24
- msgstr ""
25
 
26
  # @ aio-favicon
27
- #: includes/aio-favicon-backend.php:158
28
  #: includes/settings-page.php:15
29
  #: includes/settings-page/sp-plugin-settings.php:13
30
  msgid "Settings"
31
  msgstr "Nastavenia"
32
 
33
  # @ aio-favicon
34
- #: includes/aio-favicon-backend.php:183
35
  #, php-format
36
  msgid "Successfully updated %1$s settings."
37
  msgstr "Úspešne aktualizovaných %1$s nastavení."
38
 
39
  # @ aio-favicon
40
- #: includes/aio-favicon-backend.php:185
41
  #, php-format
42
  msgid "%1$s settings were successfully deleted."
43
  msgstr "%1$s nastavení úspešene vymazaných."
44
 
45
  # @ aio-favicon
46
- #: includes/aio-favicon-backend.php:209
47
  msgid "Did not update settings, you do not have the necessary rights."
48
  msgstr "Nastavenia neboli zmenené, nemáte potrebné práva."
49
 
50
  # @ aio-favicon
51
- #: includes/aio-favicon-backend.php:270
52
  #, php-format
53
  msgid "Did not delete %1$s settings. Either you dont have the nececssary rights or you didnt check the checkbox."
54
  msgstr "%1$s Nastavení sa nevymazalo. Buď nemáte potrebné práva, alebo ste nezaškrtli políčko."
@@ -125,10 +125,11 @@ msgstr "Odoslať"
125
  msgid "Top donations"
126
  msgstr "Najväčšie príspevky"
127
 
 
128
  #: includes/settings-page/sp-donations.php:20
129
  #: includes/settings-page/sp-donations.php:33
130
  msgid "Thank you for your donation."
131
- msgstr ""
132
 
133
  # @ aio-favicon
134
  #: includes/settings-page/sp-donations.php:27
@@ -148,8 +149,9 @@ msgstr "%1$s ICO"
148
  #: includes/settings-page/sp-plugin-settings.php:52
149
  #: includes/settings-page/sp-plugin-settings.php:67
150
  msgid "Frontend"
151
- msgstr "Vstup"
152
 
 
153
  #: includes/settings-page/sp-plugin-settings.php:32
154
  #: includes/settings-page/sp-plugin-settings.php:47
155
  #: includes/settings-page/sp-plugin-settings.php:62
@@ -159,7 +161,7 @@ msgstr "Vstup"
159
  #: includes/settings-page/sp-plugin-settings.php:122
160
  #: includes/settings-page/sp-plugin-settings.php:137
161
  msgid "Check box to delete favicon."
162
- msgstr ""
163
 
164
  # @ aio-favicon
165
  #: includes/settings-page/sp-plugin-settings.php:37
@@ -188,15 +190,17 @@ msgstr "%1$s Apple touch ikonka"
188
  #: includes/settings-page/sp-plugin-settings.php:112
189
  #: includes/settings-page/sp-plugin-settings.php:127
190
  msgid "Backend"
191
- msgstr "Výstup"
192
 
 
193
  #: includes/settings-page/sp-plugin-settings.php:142
194
  msgid "Don't add reflective shine"
195
- msgstr ""
196
 
 
197
  #: includes/settings-page/sp-plugin-settings.php:148
198
  msgid "Don't add reflective shine to Apple Touch Icon"
199
- msgstr ""
200
 
201
  # @ aio-favicon
202
  #: includes/settings-page/sp-plugin-settings.php:153
@@ -221,7 +225,7 @@ msgstr "Tipy"
221
  # @ aio-favicon
222
  #: includes/settings-page/sp-tipps-box.php:20
223
  msgid "Favicon wikipedia entry"
224
- msgstr "Faficon na wikipedii"
225
 
226
  # @ aio-favicon
227
  #: includes/settings-page/sp-tipps-box.php:23
2
  msgstr ""
3
  "Project-Id-Version: All in one Favicon v3.1\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2012-04-15 21:51+0100\n"
6
+ "PO-Revision-Date: 2012-04-15 21:51+0100\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=3; plural=(n==1) ? 1 : (n>=2 && n<=4) ? 2 : 0;\n"
13
  "X-Poedit-Language: Slovak\n"
14
  "X-Poedit-Country: SLOVAKIA\n"
15
  "X-Poedit-SourceCharset: utf-8\n"
21
  # @ aio-favicon
22
  #: all-in-one-favicon.php:37
23
  msgid "All in one Favicon"
24
+ msgstr "All in one Favicon"
25
 
26
  # @ aio-favicon
27
+ #: includes/aio-favicon-backend.php:159
28
  #: includes/settings-page.php:15
29
  #: includes/settings-page/sp-plugin-settings.php:13
30
  msgid "Settings"
31
  msgstr "Nastavenia"
32
 
33
  # @ aio-favicon
34
+ #: includes/aio-favicon-backend.php:184
35
  #, php-format
36
  msgid "Successfully updated %1$s settings."
37
  msgstr "Úspešne aktualizovaných %1$s nastavení."
38
 
39
  # @ aio-favicon
40
+ #: includes/aio-favicon-backend.php:186
41
  #, php-format
42
  msgid "%1$s settings were successfully deleted."
43
  msgstr "%1$s nastavení úspešene vymazaných."
44
 
45
  # @ aio-favicon
46
+ #: includes/aio-favicon-backend.php:210
47
  msgid "Did not update settings, you do not have the necessary rights."
48
  msgstr "Nastavenia neboli zmenené, nemáte potrebné práva."
49
 
50
  # @ aio-favicon
51
+ #: includes/aio-favicon-backend.php:271
52
  #, php-format
53
  msgid "Did not delete %1$s settings. Either you dont have the nececssary rights or you didnt check the checkbox."
54
  msgstr "%1$s Nastavení sa nevymazalo. Buď nemáte potrebné práva, alebo ste nezaškrtli políčko."
125
  msgid "Top donations"
126
  msgstr "Najväčšie príspevky"
127
 
128
+ # @ aio-favicon
129
  #: includes/settings-page/sp-donations.php:20
130
  #: includes/settings-page/sp-donations.php:33
131
  msgid "Thank you for your donation."
132
+ msgstr "Ďakujeme Vám za finančný príspevok."
133
 
134
  # @ aio-favicon
135
  #: includes/settings-page/sp-donations.php:27
149
  #: includes/settings-page/sp-plugin-settings.php:52
150
  #: includes/settings-page/sp-plugin-settings.php:67
151
  msgid "Frontend"
152
+ msgstr "Frontend"
153
 
154
+ # @ aio-favicon
155
  #: includes/settings-page/sp-plugin-settings.php:32
156
  #: includes/settings-page/sp-plugin-settings.php:47
157
  #: includes/settings-page/sp-plugin-settings.php:62
161
  #: includes/settings-page/sp-plugin-settings.php:122
162
  #: includes/settings-page/sp-plugin-settings.php:137
163
  msgid "Check box to delete favicon."
164
+ msgstr "Zaškrtnite pre zmazanie favicon."
165
 
166
  # @ aio-favicon
167
  #: includes/settings-page/sp-plugin-settings.php:37
190
  #: includes/settings-page/sp-plugin-settings.php:112
191
  #: includes/settings-page/sp-plugin-settings.php:127
192
  msgid "Backend"
193
+ msgstr "Backend"
194
 
195
+ # @ aio-favicon
196
  #: includes/settings-page/sp-plugin-settings.php:142
197
  msgid "Don't add reflective shine"
198
+ msgstr "Nepridávať reflexný odraz"
199
 
200
+ # @ aio-favicon
201
  #: includes/settings-page/sp-plugin-settings.php:148
202
  msgid "Don't add reflective shine to Apple Touch Icon"
203
+ msgstr "Nepridávať reflexný odraz pre Apple Touch ikonku"
204
 
205
  # @ aio-favicon
206
  #: includes/settings-page/sp-plugin-settings.php:153
225
  # @ aio-favicon
226
  #: includes/settings-page/sp-tipps-box.php:20
227
  msgid "Favicon wikipedia entry"
228
+ msgstr "Favicon na wikipedii"
229
 
230
  # @ aio-favicon
231
  #: includes/settings-page/sp-tipps-box.php:23
localization/aio-favicon-zh_CN.mo CHANGED
Binary file
localization/aio-favicon-zh_CN.po CHANGED
@@ -13,140 +13,142 @@ msgstr ""
13
  "X-Poedit-Language: Chinese\n"
14
  "X-Poedit-Country: PEOPLE'S REPUBLIC OF CHINA\n"
15
  "X-Poedit-SourceCharset: utf-8\n"
16
- "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
17
  "X-Poedit-Basepath: ../\n"
18
- "X-Textdomain-Support: yes\n"
19
  "X-Poedit-SearchPath-0: .\n"
 
20
 
21
- # @ aio-favicon
22
  #: all-in-one-favicon.php:37
 
23
  msgid "All in one Favicon"
24
- msgstr ""
25
 
26
- # @ aio-favicon
27
  #: includes/aio-favicon-backend.php:158
28
- #: includes/settings-page.php:15
29
  #: includes/settings-page/sp-plugin-settings.php:13
 
 
30
  msgid "Settings"
31
  msgstr "设置"
32
 
33
- # @ aio-favicon
34
  #: includes/aio-favicon-backend.php:183
35
  #, php-format
 
36
  msgid "Successfully updated %1$s settings."
37
  msgstr "成功更新 %1$s 设置。"
38
 
39
- # @ aio-favicon
40
  #: includes/aio-favicon-backend.php:185
41
  #, php-format
 
42
  msgid "%1$s settings were successfully deleted."
43
  msgstr "%1$s 设置已成功删除"
44
 
45
- # @ aio-favicon
46
  #: includes/aio-favicon-backend.php:209
 
47
  msgid "Did not update settings, you do not have the necessary rights."
48
  msgstr "设置未更新,您没有足够的权限。"
49
 
50
- # @ aio-favicon
51
  #: includes/aio-favicon-backend.php:270
52
  #, php-format
 
53
  msgid "Did not delete %1$s settings. Either you dont have the nececssary rights or you didnt check the checkbox."
54
  msgstr "未删除 %1$s 设置,您没有勾选相应图标,或没有足够的权限。"
55
 
56
- # @ aio-favicon
57
  #: includes/aio-favicon-frontend.php:96
 
58
  msgid "Using"
59
  msgstr "正在使用"
60
 
61
- # @ aio-favicon
62
  #: includes/settings-page/sp-delete-settings.php:14
63
  #: includes/settings-page/sp-delete-settings.php:23
 
64
  msgid "Delete Settings"
65
  msgstr "移除设置"
66
 
67
- # @ aio-favicon
68
  #: includes/settings-page/sp-delete-settings.php:17
 
69
  msgid "Check the box and click this button to delete settings of this plugin."
70
  msgstr "勾选右侧复选框来确认删除设置。"
71
 
72
- # @ aio-favicon
73
  #: includes/settings-page/sp-donate-box.php:14
 
74
  msgid "Donate"
75
  msgstr "捐赠"
76
 
77
- # @ aio-favicon
78
  #: includes/settings-page/sp-donate-box.php:18
 
79
  msgid "If you would like to make a small (or large) contribution towards future development please consider making a donation."
80
  msgstr "如果您喜欢这个小插件,想支持开发者并给予开发者动力,那么您可以考虑进行捐赠"
81
 
82
- # @ aio-favicon
83
  #: includes/settings-page/sp-donate-box.php:24
 
84
  msgid "Techotronic Development Support"
85
  msgstr "Techotronic Development Support"
86
 
87
- # @ aio-favicon
88
  #: includes/settings-page/sp-donate-box.php:28
 
89
  msgid "Please enter the URL you'd like me to link to in the donors lists"
90
  msgstr "请输入您想在捐赠者名单中显示的链接"
91
 
92
- # @ aio-favicon
93
  #: includes/settings-page/sp-donate-box.php:30
 
94
  msgid "Return to Your Dashboard"
95
  msgstr "返回您的控制面板"
96
 
97
- # @ aio-favicon
98
  #: includes/settings-page/sp-donate-box.php:34
 
99
  msgid "Select Preset Amount"
100
  msgstr "选择预置金额"
101
 
102
- # @ aio-favicon
103
  #: includes/settings-page/sp-donate-box.php:42
104
  #: includes/settings-page/sp-donate-box.php:46
 
105
  msgid "USD"
106
  msgstr "美元 (USD)"
107
 
108
- # @ aio-favicon
109
  #: includes/settings-page/sp-donate-box.php:43
 
110
  msgid "Or"
111
  msgstr "或者"
112
 
113
- # @ aio-favicon
114
  #: includes/settings-page/sp-donate-box.php:44
 
115
  msgid "Enter Custom Amount"
116
  msgstr "输入自定义金额"
117
 
118
- # @ aio-favicon
119
  #: includes/settings-page/sp-donate-box.php:48
 
120
  msgid "Submit"
121
  msgstr "提交"
122
 
123
- # @ aio-favicon
124
  #: includes/settings-page/sp-donations.php:14
 
125
  msgid "Top donations"
126
  msgstr "捐赠排行"
127
 
128
  #: includes/settings-page/sp-donations.php:20
129
  #: includes/settings-page/sp-donations.php:33
 
130
  msgid "Thank you for your donation."
131
- msgstr ""
132
 
133
- # @ aio-favicon
134
  #: includes/settings-page/sp-donations.php:27
 
135
  msgid "Latest donations"
136
  msgstr "最新捐赠"
137
 
138
- # @ aio-favicon
139
  #: includes/settings-page/sp-plugin-settings.php:22
140
  #: includes/settings-page/sp-plugin-settings.php:82
141
  #, php-format
 
142
  msgid "%1$s ICO"
143
  msgstr "%1$s ICO"
144
 
145
- # @ aio-favicon
146
  #: includes/settings-page/sp-plugin-settings.php:22
147
  #: includes/settings-page/sp-plugin-settings.php:37
148
  #: includes/settings-page/sp-plugin-settings.php:52
149
  #: includes/settings-page/sp-plugin-settings.php:67
 
150
  msgid "Frontend"
151
  msgstr "前台"
152
 
@@ -158,124 +160,127 @@ msgstr "前台"
158
  #: includes/settings-page/sp-plugin-settings.php:107
159
  #: includes/settings-page/sp-plugin-settings.php:122
160
  #: includes/settings-page/sp-plugin-settings.php:137
 
161
  msgid "Check box to delete favicon."
162
- msgstr ""
163
 
164
- # @ aio-favicon
165
  #: includes/settings-page/sp-plugin-settings.php:37
166
  #: includes/settings-page/sp-plugin-settings.php:97
167
  #, php-format
 
168
  msgid "%1$s PNG"
169
  msgstr "%1$s PNG"
170
 
171
- # @ aio-favicon
172
  #: includes/settings-page/sp-plugin-settings.php:52
173
  #: includes/settings-page/sp-plugin-settings.php:112
174
  #, php-format
 
175
  msgid "%1$s GIF"
176
  msgstr "%1$s GIF"
177
 
178
- # @ aio-favicon
179
  #: includes/settings-page/sp-plugin-settings.php:67
180
  #: includes/settings-page/sp-plugin-settings.php:127
181
  #, php-format
 
182
  msgid "%1$s Apple Touch Icon"
183
- msgstr ""
184
 
185
- # @ aio-favicon
186
  #: includes/settings-page/sp-plugin-settings.php:82
187
  #: includes/settings-page/sp-plugin-settings.php:97
188
  #: includes/settings-page/sp-plugin-settings.php:112
189
  #: includes/settings-page/sp-plugin-settings.php:127
 
190
  msgid "Backend"
191
  msgstr "后台"
192
 
193
  #: includes/settings-page/sp-plugin-settings.php:142
 
194
  msgid "Don't add reflective shine"
195
- msgstr ""
196
 
197
  #: includes/settings-page/sp-plugin-settings.php:148
 
198
  msgid "Don't add reflective shine to Apple Touch Icon"
199
- msgstr ""
200
 
201
- # @ aio-favicon
202
  #: includes/settings-page/sp-plugin-settings.php:153
 
203
  msgid "Remove link from Meta-box"
204
  msgstr "删除侧栏中的推广链接"
205
 
206
- # @ aio-favicon
207
  #: includes/settings-page/sp-plugin-settings.php:159
 
208
  msgid "Remove the link to the developers site from the WordPress meta-box."
209
  msgstr "从 WordPress 的「功能」侧边栏中去除推广链接"
210
 
211
- # @ default
212
  #: includes/settings-page/sp-plugin-settings.php:165
 
213
  msgid "Save Changes"
214
  msgstr "保存更改"
215
 
216
- # @ aio-favicon
217
  #: includes/settings-page/sp-tipps-box.php:14
 
218
  msgid "Tips"
219
  msgstr "小提示"
220
 
221
- # @ aio-favicon
222
  #: includes/settings-page/sp-tipps-box.php:20
 
223
  msgid "Favicon wikipedia entry"
224
  msgstr "维基百科中的站点图标(Favicon)条目"
225
 
226
- # @ aio-favicon
227
  #: includes/settings-page/sp-tipps-box.php:23
 
228
  msgid "<a href=\"http://en.wikipedia.org/wiki/Favicon\" target=\"_blank\">Wikipedia</a> offers much information about favicon types and sizes."
229
  msgstr "<a href=\"http://zh.wikipedia.org/wiki/Favicon\"target=\"_blank\">维基百科</a> 中提供了关于站点图标(Favicon)相当多的信息,包括各式和尺寸。"
230
 
231
- # @ aio-favicon
232
  #: includes/settings-page/sp-tipps-box.php:28
 
233
  msgid "Favicon generator"
234
  msgstr "站点图标生成器"
235
 
236
- # @ aio-favicon
237
  #: includes/settings-page/sp-tipps-box.php:31
 
238
  msgid "<a href=\"http://www.html-kit.com/favicon/\" target=\"_blank\">HTML Kit</a> provides a favicon generator that is very easy to use."
239
  msgstr "<a href=\"http://www.html-kit.com/favicon/\" target=\"_blank\">HTML Kit</a> 提供了一个非常易于使用的站点图标生成器"
240
 
241
- # @ aio-favicon
242
  #: includes/settings-page/sp-tipps-box.php:36
243
  #, fuzzy
 
244
  msgid "Favicon CC editor"
245
  msgstr "站点图标生成器"
246
 
247
- # @ aio-favicon
248
  #: includes/settings-page/sp-tipps-box.php:39
 
249
  msgid "<a href=\"http://www.favicon.cc/\" target=\"_blank\">Favicon CC</a> provides a favicon editor that is very easy to use."
250
  msgstr "<a href=\"http://www.favicon.cc/\" target=\"_blank\">Favicon CC</a> 提供了一个非常易于使用的站点图标生成器"
251
 
252
- # @ aio-favicon
253
  #: includes/settings-page/sp-tipps-box.php:44
 
254
  msgid "Favicon validator"
255
  msgstr "站点图标验证器"
256
 
257
- # @ aio-favicon
258
  #: includes/settings-page/sp-tipps-box.php:47
 
259
  msgid "<a href=\"http://www.html-kit.com/favicon/validator\" target=\"_blank\">HTML Kit</a> provides a favicon validator that tells you whether your favicon is working and if it is compatible to all browsers."
260
  msgstr "<a href=\"http://www.html-kit.com/favicon/validator\" target=\"_blank\">HTML Kit</a> 提供了站点图表的验证器用来验证您的站点图标是否正常并兼容所有浏览器。"
261
 
262
- # @ aio-favicon
263
  #: includes/settings-page/sp-tipps-box.php:52
 
264
  msgid "Apple Touch Icon Howto"
265
  msgstr "如何制作 Apple Touch Icon"
266
 
267
- # @ aio-favicon
268
  #: includes/settings-page/sp-tipps-box.php:55
 
269
  msgid "<a href=\"http://developer.apple.com/library/safari/#documentation/appleapplications/reference/safariwebcontent/ConfiguringWebApplications/ConfiguringWebApplications.html\" target=\"_blank\">Apple</a> provides a howto on how to create a PNG to use as an Apple Touch Icon."
270
  msgstr "<a href=\"http://developer.apple.com/library/safari/#documentation/appleapplications/reference/safariwebcontent/ConfiguringWebApplications/ConfiguringWebApplications.html\" target=\"_blank\">Apple</a> 提供了如何把 PNG 图片作为 Apple Touch Icon 的方法。"
271
 
272
- # @ aio-favicon
273
  #: includes/settings-page/sp-translation.php:14
 
274
  msgid "Translation"
275
  msgstr "翻译"
276
 
277
- # @ aio-favicon
278
  #: includes/settings-page/sp-translation.php:17
 
279
  msgid "The english translation was done by <a href=\"http://www.techotronic.de\" target=\"_blank\">Arne Franken</a>."
280
  msgstr "简体中文由 <a href=\"http://sparanoid.com/\" target=\"_blank\">Tunghsiao Liu</a> 翻译。"
281
 
13
  "X-Poedit-Language: Chinese\n"
14
  "X-Poedit-Country: PEOPLE'S REPUBLIC OF CHINA\n"
15
  "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
17
  "X-Poedit-Basepath: ../\n"
18
+ "X-Poedit-Bookmarks: \n"
19
  "X-Poedit-SearchPath-0: .\n"
20
+ "X-Textdomain-Support: yes"
21
 
 
22
  #: all-in-one-favicon.php:37
23
+ #@ aio-favicon
24
  msgid "All in one Favicon"
25
+ msgstr "站点图标"
26
 
 
27
  #: includes/aio-favicon-backend.php:158
 
28
  #: includes/settings-page/sp-plugin-settings.php:13
29
+ #: includes/settings-page.php:15
30
+ #@ aio-favicon
31
  msgid "Settings"
32
  msgstr "设置"
33
 
 
34
  #: includes/aio-favicon-backend.php:183
35
  #, php-format
36
+ #@ aio-favicon
37
  msgid "Successfully updated %1$s settings."
38
  msgstr "成功更新 %1$s 设置。"
39
 
 
40
  #: includes/aio-favicon-backend.php:185
41
  #, php-format
42
+ #@ aio-favicon
43
  msgid "%1$s settings were successfully deleted."
44
  msgstr "%1$s 设置已成功删除"
45
 
 
46
  #: includes/aio-favicon-backend.php:209
47
+ #@ aio-favicon
48
  msgid "Did not update settings, you do not have the necessary rights."
49
  msgstr "设置未更新,您没有足够的权限。"
50
 
 
51
  #: includes/aio-favicon-backend.php:270
52
  #, php-format
53
+ #@ aio-favicon
54
  msgid "Did not delete %1$s settings. Either you dont have the nececssary rights or you didnt check the checkbox."
55
  msgstr "未删除 %1$s 设置,您没有勾选相应图标,或没有足够的权限。"
56
 
 
57
  #: includes/aio-favicon-frontend.php:96
58
+ #@ aio-favicon
59
  msgid "Using"
60
  msgstr "正在使用"
61
 
 
62
  #: includes/settings-page/sp-delete-settings.php:14
63
  #: includes/settings-page/sp-delete-settings.php:23
64
+ #@ aio-favicon
65
  msgid "Delete Settings"
66
  msgstr "移除设置"
67
 
 
68
  #: includes/settings-page/sp-delete-settings.php:17
69
+ #@ aio-favicon
70
  msgid "Check the box and click this button to delete settings of this plugin."
71
  msgstr "勾选右侧复选框来确认删除设置。"
72
 
 
73
  #: includes/settings-page/sp-donate-box.php:14
74
+ #@ aio-favicon
75
  msgid "Donate"
76
  msgstr "捐赠"
77
 
 
78
  #: includes/settings-page/sp-donate-box.php:18
79
+ #@ aio-favicon
80
  msgid "If you would like to make a small (or large) contribution towards future development please consider making a donation."
81
  msgstr "如果您喜欢这个小插件,想支持开发者并给予开发者动力,那么您可以考虑进行捐赠"
82
 
 
83
  #: includes/settings-page/sp-donate-box.php:24
84
+ #@ aio-favicon
85
  msgid "Techotronic Development Support"
86
  msgstr "Techotronic Development Support"
87
 
 
88
  #: includes/settings-page/sp-donate-box.php:28
89
+ #@ aio-favicon
90
  msgid "Please enter the URL you'd like me to link to in the donors lists"
91
  msgstr "请输入您想在捐赠者名单中显示的链接"
92
 
 
93
  #: includes/settings-page/sp-donate-box.php:30
94
+ #@ aio-favicon
95
  msgid "Return to Your Dashboard"
96
  msgstr "返回您的控制面板"
97
 
 
98
  #: includes/settings-page/sp-donate-box.php:34
99
+ #@ aio-favicon
100
  msgid "Select Preset Amount"
101
  msgstr "选择预置金额"
102
 
 
103
  #: includes/settings-page/sp-donate-box.php:42
104
  #: includes/settings-page/sp-donate-box.php:46
105
+ #@ aio-favicon
106
  msgid "USD"
107
  msgstr "美元 (USD)"
108
 
 
109
  #: includes/settings-page/sp-donate-box.php:43
110
+ #@ aio-favicon
111
  msgid "Or"
112
  msgstr "或者"
113
 
 
114
  #: includes/settings-page/sp-donate-box.php:44
115
+ #@ aio-favicon
116
  msgid "Enter Custom Amount"
117
  msgstr "输入自定义金额"
118
 
 
119
  #: includes/settings-page/sp-donate-box.php:48
120
+ #@ aio-favicon
121
  msgid "Submit"
122
  msgstr "提交"
123
 
 
124
  #: includes/settings-page/sp-donations.php:14
125
+ #@ aio-favicon
126
  msgid "Top donations"
127
  msgstr "捐赠排行"
128
 
129
  #: includes/settings-page/sp-donations.php:20
130
  #: includes/settings-page/sp-donations.php:33
131
+ #@ aio-favicon
132
  msgid "Thank you for your donation."
133
+ msgstr "感谢您的捐赠!"
134
 
 
135
  #: includes/settings-page/sp-donations.php:27
136
+ #@ aio-favicon
137
  msgid "Latest donations"
138
  msgstr "最新捐赠"
139
 
 
140
  #: includes/settings-page/sp-plugin-settings.php:22
141
  #: includes/settings-page/sp-plugin-settings.php:82
142
  #, php-format
143
+ #@ aio-favicon
144
  msgid "%1$s ICO"
145
  msgstr "%1$s ICO"
146
 
 
147
  #: includes/settings-page/sp-plugin-settings.php:22
148
  #: includes/settings-page/sp-plugin-settings.php:37
149
  #: includes/settings-page/sp-plugin-settings.php:52
150
  #: includes/settings-page/sp-plugin-settings.php:67
151
+ #@ aio-favicon
152
  msgid "Frontend"
153
  msgstr "前台"
154
 
160
  #: includes/settings-page/sp-plugin-settings.php:107
161
  #: includes/settings-page/sp-plugin-settings.php:122
162
  #: includes/settings-page/sp-plugin-settings.php:137
163
+ #@ aio-favicon
164
  msgid "Check box to delete favicon."
165
+ msgstr "勾选此复选框删除该站点图标"
166
 
 
167
  #: includes/settings-page/sp-plugin-settings.php:37
168
  #: includes/settings-page/sp-plugin-settings.php:97
169
  #, php-format
170
+ #@ aio-favicon
171
  msgid "%1$s PNG"
172
  msgstr "%1$s PNG"
173
 
 
174
  #: includes/settings-page/sp-plugin-settings.php:52
175
  #: includes/settings-page/sp-plugin-settings.php:112
176
  #, php-format
177
+ #@ aio-favicon
178
  msgid "%1$s GIF"
179
  msgstr "%1$s GIF"
180
 
 
181
  #: includes/settings-page/sp-plugin-settings.php:67
182
  #: includes/settings-page/sp-plugin-settings.php:127
183
  #, php-format
184
+ #@ aio-favicon
185
  msgid "%1$s Apple Touch Icon"
186
+ msgstr "%1$s Apple Touch Icon"
187
 
 
188
  #: includes/settings-page/sp-plugin-settings.php:82
189
  #: includes/settings-page/sp-plugin-settings.php:97
190
  #: includes/settings-page/sp-plugin-settings.php:112
191
  #: includes/settings-page/sp-plugin-settings.php:127
192
+ #@ aio-favicon
193
  msgid "Backend"
194
  msgstr "后台"
195
 
196
  #: includes/settings-page/sp-plugin-settings.php:142
197
+ #@ aio-favicon
198
  msgid "Don't add reflective shine"
199
+ msgstr "不添加高光效果"
200
 
201
  #: includes/settings-page/sp-plugin-settings.php:148
202
+ #@ aio-favicon
203
  msgid "Don't add reflective shine to Apple Touch Icon"
204
+ msgstr "不为 Apple Touch Icon 添加高光效果"
205
 
 
206
  #: includes/settings-page/sp-plugin-settings.php:153
207
+ #@ aio-favicon
208
  msgid "Remove link from Meta-box"
209
  msgstr "删除侧栏中的推广链接"
210
 
 
211
  #: includes/settings-page/sp-plugin-settings.php:159
212
+ #@ aio-favicon
213
  msgid "Remove the link to the developers site from the WordPress meta-box."
214
  msgstr "从 WordPress 的「功能」侧边栏中去除推广链接"
215
 
 
216
  #: includes/settings-page/sp-plugin-settings.php:165
217
+ #@ default
218
  msgid "Save Changes"
219
  msgstr "保存更改"
220
 
 
221
  #: includes/settings-page/sp-tipps-box.php:14
222
+ #@ aio-favicon
223
  msgid "Tips"
224
  msgstr "小提示"
225
 
 
226
  #: includes/settings-page/sp-tipps-box.php:20
227
+ #@ aio-favicon
228
  msgid "Favicon wikipedia entry"
229
  msgstr "维基百科中的站点图标(Favicon)条目"
230
 
 
231
  #: includes/settings-page/sp-tipps-box.php:23
232
+ #@ aio-favicon
233
  msgid "<a href=\"http://en.wikipedia.org/wiki/Favicon\" target=\"_blank\">Wikipedia</a> offers much information about favicon types and sizes."
234
  msgstr "<a href=\"http://zh.wikipedia.org/wiki/Favicon\"target=\"_blank\">维基百科</a> 中提供了关于站点图标(Favicon)相当多的信息,包括各式和尺寸。"
235
 
 
236
  #: includes/settings-page/sp-tipps-box.php:28
237
+ #@ aio-favicon
238
  msgid "Favicon generator"
239
  msgstr "站点图标生成器"
240
 
 
241
  #: includes/settings-page/sp-tipps-box.php:31
242
+ #@ aio-favicon
243
  msgid "<a href=\"http://www.html-kit.com/favicon/\" target=\"_blank\">HTML Kit</a> provides a favicon generator that is very easy to use."
244
  msgstr "<a href=\"http://www.html-kit.com/favicon/\" target=\"_blank\">HTML Kit</a> 提供了一个非常易于使用的站点图标生成器"
245
 
 
246
  #: includes/settings-page/sp-tipps-box.php:36
247
  #, fuzzy
248
+ #@ aio-favicon
249
  msgid "Favicon CC editor"
250
  msgstr "站点图标生成器"
251
 
 
252
  #: includes/settings-page/sp-tipps-box.php:39
253
+ #@ aio-favicon
254
  msgid "<a href=\"http://www.favicon.cc/\" target=\"_blank\">Favicon CC</a> provides a favicon editor that is very easy to use."
255
  msgstr "<a href=\"http://www.favicon.cc/\" target=\"_blank\">Favicon CC</a> 提供了一个非常易于使用的站点图标生成器"
256
 
 
257
  #: includes/settings-page/sp-tipps-box.php:44
258
+ #@ aio-favicon
259
  msgid "Favicon validator"
260
  msgstr "站点图标验证器"
261
 
 
262
  #: includes/settings-page/sp-tipps-box.php:47
263
+ #@ aio-favicon
264
  msgid "<a href=\"http://www.html-kit.com/favicon/validator\" target=\"_blank\">HTML Kit</a> provides a favicon validator that tells you whether your favicon is working and if it is compatible to all browsers."
265
  msgstr "<a href=\"http://www.html-kit.com/favicon/validator\" target=\"_blank\">HTML Kit</a> 提供了站点图表的验证器用来验证您的站点图标是否正常并兼容所有浏览器。"
266
 
 
267
  #: includes/settings-page/sp-tipps-box.php:52
268
+ #@ aio-favicon
269
  msgid "Apple Touch Icon Howto"
270
  msgstr "如何制作 Apple Touch Icon"
271
 
 
272
  #: includes/settings-page/sp-tipps-box.php:55
273
+ #@ aio-favicon
274
  msgid "<a href=\"http://developer.apple.com/library/safari/#documentation/appleapplications/reference/safariwebcontent/ConfiguringWebApplications/ConfiguringWebApplications.html\" target=\"_blank\">Apple</a> provides a howto on how to create a PNG to use as an Apple Touch Icon."
275
  msgstr "<a href=\"http://developer.apple.com/library/safari/#documentation/appleapplications/reference/safariwebcontent/ConfiguringWebApplications/ConfiguringWebApplications.html\" target=\"_blank\">Apple</a> 提供了如何把 PNG 图片作为 Apple Touch Icon 的方法。"
276
 
 
277
  #: includes/settings-page/sp-translation.php:14
278
+ #@ aio-favicon
279
  msgid "Translation"
280
  msgstr "翻译"
281
 
 
282
  #: includes/settings-page/sp-translation.php:17
283
+ #@ aio-favicon
284
  msgid "The english translation was done by <a href=\"http://www.techotronic.de\" target=\"_blank\">Arne Franken</a>."
285
  msgstr "简体中文由 <a href=\"http://sparanoid.com/\" target=\"_blank\">Tunghsiao Liu</a> 翻译。"
286
 
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: techotronic
3
  Donate link: http://www.techotronic.de/donate/
4
  Tags: theme, favicon, admin, blog, wordpress, image, images, graphic, graphics, icon, iphone, multisite
5
  Requires at least: 2.8
6
- Tested up to: 3.3
7
- Stable tag: 4.0
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
 
@@ -27,6 +27,7 @@ See [plugin page](http://www.techotronic.de/plugins/all-in-one-favicon/) for mor
27
  * English (`en_EN`) by [Arne Franken](http://www.techotronic.de/)
28
  * French (`fr_FR`) by Christophe Guilloux
29
  * German (`de_DE`) by [Arne Franken](http://www.techotronic.de/)
 
30
  * Italian (`it_IT`) by [Valerio Vendrame](http://www.valeriovendrame.it/)
31
  * Polish (`pl_PL`) by [Piotr Czarnecki](http://www.facebook.com/piniu69/)
32
  * Serbian (`sr_RS`) by [Balkanboy Media team](http://dralvaro.com/)
@@ -41,7 +42,7 @@ I described in the [FAQ](http://wordpress.org/extend/plugins/all-in-one-favicon/
41
 
42
  == Installation ==
43
 
44
- ###Updgrading From A Previous Version###
45
 
46
  To upgrade from a previous version of this plugin, use the built in update feature of WordPress or copy the files on top of the current installation.
47
 
@@ -70,7 +71,7 @@ Go to the settings page and and upload your Favicon(s) or add the path/URL to al
70
  Would you like to help? Translating the plugin is easy if you understand English and are fluent in another language.
71
 
72
  * How do I translate All In One Favicon?
73
- Take a look at the WordPress site and identify [your langyage code](http://codex.wordpress.org/WordPress_in_Your_Language):
74
  e.g. the language code for German is `de_DE`.
75
 
76
  1. download [POEdit](http://www.poedit.net/)
@@ -94,6 +95,15 @@ Go to the settings page and and upload your Favicon(s) or add the path/URL to al
94
  [Please visit my site for screenshots](http://www.techotronic.de/plugins/all-in-one-favicon/).
95
 
96
  == Changelog ==
 
 
 
 
 
 
 
 
 
97
  = 4.0 (2012-03-14) =
98
  * NEW: Simplified Chinese translation by Tunghsiao Liu
99
  * NEW: Czech translation by Neteyes
3
  Donate link: http://www.techotronic.de/donate/
4
  Tags: theme, favicon, admin, blog, wordpress, image, images, graphic, graphics, icon, iphone, multisite
5
  Requires at least: 2.8
6
+ Tested up to: 3.4
7
+ Stable tag: 4.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
 
27
  * English (`en_EN`) by [Arne Franken](http://www.techotronic.de/)
28
  * French (`fr_FR`) by Christophe Guilloux
29
  * German (`de_DE`) by [Arne Franken](http://www.techotronic.de/)
30
+ * Hebrew (`he_IL`) by [Ahrale](http://www.atar4u.com)
31
  * Italian (`it_IT`) by [Valerio Vendrame](http://www.valeriovendrame.it/)
32
  * Polish (`pl_PL`) by [Piotr Czarnecki](http://www.facebook.com/piniu69/)
33
  * Serbian (`sr_RS`) by [Balkanboy Media team](http://dralvaro.com/)
42
 
43
  == Installation ==
44
 
45
+ ###Upgrading From A Previous Version###
46
 
47
  To upgrade from a previous version of this plugin, use the built in update feature of WordPress or copy the files on top of the current installation.
48
 
71
  Would you like to help? Translating the plugin is easy if you understand English and are fluent in another language.
72
 
73
  * How do I translate All In One Favicon?
74
+ Take a look at the WordPress site and identify [your language code](http://codex.wordpress.org/WordPress_in_Your_Language):
75
  e.g. the language code for German is `de_DE`.
76
 
77
  1. download [POEdit](http://www.poedit.net/)
95
  [Please visit my site for screenshots](http://www.techotronic.de/plugins/all-in-one-favicon/).
96
 
97
  == Changelog ==
98
+ = 4.1 (2012-11-17) =
99
+ * NEW: Hebrew translation by Ahrale
100
+ * CHANGE: favicon URLs can be copy'n'pasted again
101
+ * CHANGE: upload form only accepts files of type "image" now.
102
+ * CHANGE: use `plugins_url` to make links HTTPS aware
103
+ * CHANGE: Viliam Brozman updated the Slovak translation
104
+ * CHANGE: Tunghsiao Liu updated the Simplified Chinese translation
105
+ * BUGFIX: switch declaration of 'NAME' and 'TEXTDOMAIN'
106
+
107
  = 4.0 (2012-03-14) =
108
  * NEW: Simplified Chinese translation by Tunghsiao Liu
109
  * NEW: Czech translation by Neteyes