Version Description
- NEW: Initial release.
Download this release
Release Info
Developer | techotronic |
Plugin | All In One Favicon |
Version | 1.0 |
Comparing to | |
See all releases |
Version 1.0
- all-in-one-favicon.php +324 -0
- includes/header-admin.php +30 -0
- includes/header-blog.php +30 -0
- includes/settings-page.php +186 -0
- js/backend-min.js +1 -0
- js/backend.js +32 -0
- localization/aio-favicon-de_DE.mo +0 -0
- localization/aio-favicon-de_DE.po +151 -0
- localization/aio-favicon-en_EN.mo +0 -0
- localization/aio-favicon-en_EN.po +151 -0
- readme.txt +43 -0
all-in-one-favicon.php
ADDED
@@ -0,0 +1,324 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* @package Techotronic
|
4 |
+
* @subpackage All in one Favicon
|
5 |
+
*
|
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: 1.0
|
10 |
+
* Author: Arne Franken
|
11 |
+
* Author URI: http://www.techotronic.de/
|
12 |
+
* License: GPL
|
13 |
+
*
|
14 |
+
* This program is distributed in the hope that it will be useful,
|
15 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
16 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
17 |
+
* GNU General Public License for more details.
|
18 |
+
*/
|
19 |
+
?>
|
20 |
+
<?php
|
21 |
+
// define constants
|
22 |
+
define('AIOFAVICON_VERSION', '1.0');
|
23 |
+
|
24 |
+
if (!defined('AIOFAVICON_PLUGIN_BASENAME')) {
|
25 |
+
define('AIOFAVICON_PLUGIN_BASENAME', plugin_basename(__FILE__));
|
26 |
+
}
|
27 |
+
if (!defined('AIOFAVICON_PLUGIN_NAME')) {
|
28 |
+
define('AIOFAVICON_PLUGIN_NAME', trim(dirname(AIOFAVICON_PLUGIN_BASENAME), '/'));
|
29 |
+
}
|
30 |
+
if (!defined('AIOFAVICON_NAME')) {
|
31 |
+
define('AIOFAVICON_NAME', 'All in one Favicon');
|
32 |
+
}
|
33 |
+
if (!defined('AIOFAVICON_TEXTDOMAIN')) {
|
34 |
+
define('AIOFAVICON_TEXTDOMAIN', 'aio-favicon');
|
35 |
+
}
|
36 |
+
if (!defined('AIOFAVICON_PLUGIN_DIR')) {
|
37 |
+
if (is_dir(WPMU_PLUGIN_DIR)) {
|
38 |
+
// WP_MU plugin
|
39 |
+
define('AIOFAVICON_PLUGIN_DIR', WPMU_PLUGIN_DIR . '/' . AIOFAVICON_PLUGIN_NAME);
|
40 |
+
} else {
|
41 |
+
// WP regular plugin
|
42 |
+
define('AIOFAVICON_PLUGIN_DIR', WP_PLUGIN_DIR . '/' . AIOFAVICON_PLUGIN_NAME);
|
43 |
+
}
|
44 |
+
}
|
45 |
+
if (!defined('AIOFAVICON_PLUGIN_DIR')) {
|
46 |
+
if (is_dir(WPMU_PLUGIN_DIR)) {
|
47 |
+
define('AIOFAVICON_PLUGIN_DIR', ABSPATH . '/' . MUPLUGINDIR . '/' . AIOFAVICON_PLUGIN_NAME);
|
48 |
+
} else {
|
49 |
+
define('AIOFAVICON_PLUGIN_DIR', ABSPATH . '/' . PLUGINDIR . '/' . AIOFAVICON_PLUGIN_NAME);
|
50 |
+
}
|
51 |
+
}
|
52 |
+
if (!defined('AIOFAVICON_PLUGIN_URL')) {
|
53 |
+
if (is_dir(WPMU_PLUGIN_DIR)) {
|
54 |
+
define('AIOFAVICON_PLUGIN_URL', WPMU_PLUGIN_URL . '/' . AIOFAVICON_PLUGIN_NAME);
|
55 |
+
} else {
|
56 |
+
define('AIOFAVICON_PLUGIN_URL', WP_PLUGIN_URL . '/' . AIOFAVICON_PLUGIN_NAME);
|
57 |
+
}
|
58 |
+
}
|
59 |
+
if (!defined('AIOFAVICON_PLUGIN_LOCALIZATION_DIR')) {
|
60 |
+
define('AIOFAVICON_PLUGIN_LOCALIZATION_DIR', AIOFAVICON_PLUGIN_DIR . '/localization');
|
61 |
+
}
|
62 |
+
if (!defined('AIOFAVICON_SETTINGSNAME')) {
|
63 |
+
define('AIOFAVICON_SETTINGSNAME', 'aio-favicon_settings');
|
64 |
+
}
|
65 |
+
//define constants
|
66 |
+
|
67 |
+
class AllInOneFavicon {
|
68 |
+
|
69 |
+
var $aioFaviconSettings = array();
|
70 |
+
|
71 |
+
/**
|
72 |
+
* Plugin initialization
|
73 |
+
*
|
74 |
+
* @since 1.0
|
75 |
+
* @access private
|
76 |
+
* @author Arne Franken
|
77 |
+
*/
|
78 |
+
function allInOneFavicon(){
|
79 |
+
|
80 |
+
load_plugin_textdomain(AIOFAVICON_TEXTDOMAIN, false, '/all-in-one-favicon/localization/');
|
81 |
+
|
82 |
+
// add options page
|
83 |
+
add_action('admin_menu', array(& $this, 'registerAdminMenu'));
|
84 |
+
|
85 |
+
add_action('admin_post_aioFaviconDeleteSettings', array(& $this, 'aioFaviconDeleteSettings'));
|
86 |
+
add_action('admin_post_aioFaviconUpdateSettings', array(& $this, 'aioFaviconUpdateSettings'));
|
87 |
+
|
88 |
+
$this->aioFaviconSettings = (array)get_option(AIOFAVICON_SETTINGSNAME);
|
89 |
+
|
90 |
+
if(!is_admin()){
|
91 |
+
require_once AIOFAVICON_PLUGIN_DIR . '/includes/header-blog.php';
|
92 |
+
add_action( 'wp_head', 'aioFaviconRenderBlogHeader' );
|
93 |
+
} else if (is_admin()){
|
94 |
+
require_once AIOFAVICON_PLUGIN_DIR . '/includes/header-admin.php';
|
95 |
+
add_action( 'admin_head', 'aioFaviconRenderAdminHeader' );
|
96 |
+
}
|
97 |
+
|
98 |
+
// only register scripts and styles for this plugin page since JavaScript overwrites default WordPress behaviour
|
99 |
+
if (isset($_GET['page']) && $_GET['page'] == 'all-in-one-favicon/all-in-one-favicon.php') {
|
100 |
+
add_action('admin_print_scripts', array(& $this, 'registerAdminScripts'));
|
101 |
+
add_action('admin_print_styles', array(& $this, 'registerAdminStyles'));
|
102 |
+
}
|
103 |
+
|
104 |
+
add_action('wp_meta',array(& $this, 'renderMetaLink'));
|
105 |
+
}
|
106 |
+
|
107 |
+
// allInOneFavicon()
|
108 |
+
|
109 |
+
/**
|
110 |
+
* Renders plugin link in Meta widget
|
111 |
+
*
|
112 |
+
* @since 1.0
|
113 |
+
* @access private
|
114 |
+
* @author Arne Franken
|
115 |
+
*/
|
116 |
+
function renderMetaLink() { ?>
|
117 |
+
<li><?php _e('Using');?> <a href="http://www.techotronic.de/plugins/all-in-one-favicon/" title="<?php echo AIOFAVICON_NAME ?>"><?php echo AIOFAVICON_NAME ?></a></li>
|
118 |
+
<?php }
|
119 |
+
|
120 |
+
// renderMetaLink()
|
121 |
+
|
122 |
+
/**
|
123 |
+
* Register Settings page JavaScript files
|
124 |
+
*
|
125 |
+
* @since 1.0
|
126 |
+
* @access private
|
127 |
+
* @author Arne Franken
|
128 |
+
*/
|
129 |
+
function registerAdminScripts() {
|
130 |
+
wp_enqueue_script('media-upload');
|
131 |
+
wp_enqueue_script('thickbox');
|
132 |
+
wp_register_script('aioFaviconUpload', AIOFAVICON_PLUGIN_URL .'/js/backend.js', array('jquery','media-upload','thickbox'));
|
133 |
+
wp_enqueue_script('aioFaviconUpload');
|
134 |
+
}
|
135 |
+
|
136 |
+
// aioFaviconAdminScripts()
|
137 |
+
|
138 |
+
/**
|
139 |
+
* Register Settings page CSS styles
|
140 |
+
*
|
141 |
+
* @since 1.0
|
142 |
+
* @access private
|
143 |
+
* @author Arne Franken
|
144 |
+
*/
|
145 |
+
function registerAdminStyles() {
|
146 |
+
wp_enqueue_style('thickbox');
|
147 |
+
}
|
148 |
+
|
149 |
+
// aioFaviconAdminStyles()
|
150 |
+
|
151 |
+
/**
|
152 |
+
* Render Settings page
|
153 |
+
*
|
154 |
+
* @since 1.0
|
155 |
+
* @access private
|
156 |
+
* @author Arne Franken
|
157 |
+
*/
|
158 |
+
function renderSettingsPage() {
|
159 |
+
include_once 'includes/settings-page.php';
|
160 |
+
}
|
161 |
+
|
162 |
+
// renderSettingsPage()
|
163 |
+
|
164 |
+
/**
|
165 |
+
* Register the settings page in wordpress
|
166 |
+
*
|
167 |
+
* @since 1.0
|
168 |
+
* @access private
|
169 |
+
* @author Arne Franken
|
170 |
+
*/
|
171 |
+
function registerSettingsPage() {
|
172 |
+
if (current_user_can('manage_options')) {
|
173 |
+
add_options_page(AIOFAVICON_NAME, AIOFAVICON_NAME, 'manage_options', AIOFAVICON_PLUGIN_BASENAME, array(& $this, 'renderSettingsPage'));
|
174 |
+
}
|
175 |
+
}
|
176 |
+
|
177 |
+
// registerSettingsPage()
|
178 |
+
|
179 |
+
/**
|
180 |
+
* Registers the Settings Page in the Admin Menu
|
181 |
+
*
|
182 |
+
* @since 1.0
|
183 |
+
* @access private
|
184 |
+
* @author Arne Franken
|
185 |
+
*/
|
186 |
+
function registerAdminMenu() {
|
187 |
+
if (function_exists('add_management_page') && current_user_can('manage_options')) {
|
188 |
+
|
189 |
+
// update, uninstall message
|
190 |
+
if (strpos($_SERVER['REQUEST_URI'], 'all-in-one-favicon.php') && isset($_GET['aioFaviconUpdateSettings'])) {
|
191 |
+
$return_message = sprintf(__('Successfully updated %1$s settings.', AIOFAVICON_TEXTDOMAIN), AIOFAVICON_NAME);
|
192 |
+
} elseif (strpos($_SERVER['REQUEST_URI'], 'all-in-one-favicon.php') && isset($_GET['aioFaviconDeleteSettings'])) {
|
193 |
+
$return_message = sprintf(__('%1$s settings were successfully deleted.', AIOFAVICON_TEXTDOMAIN), AIOFAVICON_NAME);
|
194 |
+
} else {
|
195 |
+
$return_message = '';
|
196 |
+
}
|
197 |
+
}
|
198 |
+
$this->registerAdminNotice($return_message);
|
199 |
+
|
200 |
+
$this->registerSettingsPage();
|
201 |
+
}
|
202 |
+
|
203 |
+
// registerAdminMenu()
|
204 |
+
|
205 |
+
/**
|
206 |
+
* Registers Admin Notices
|
207 |
+
*
|
208 |
+
* @since 1.0
|
209 |
+
* @access private
|
210 |
+
* @author Arne Franken
|
211 |
+
*/
|
212 |
+
function registerAdminNotice($notice) {
|
213 |
+
if ($notice != '') {
|
214 |
+
$message = '<div class="updated fade"><p>' . $notice . '</p></div>';
|
215 |
+
add_action('admin_notices', create_function('', "echo '$message';"));
|
216 |
+
}
|
217 |
+
}
|
218 |
+
|
219 |
+
// registerAdminNotice()
|
220 |
+
|
221 |
+
/**
|
222 |
+
* Update jQuery Colorbox settings wrapper
|
223 |
+
*
|
224 |
+
* handles checks and redirect
|
225 |
+
*
|
226 |
+
* @since 1.0
|
227 |
+
* @access private
|
228 |
+
* @author Arne Franken
|
229 |
+
*/
|
230 |
+
function aioFaviconUpdateSettings() {
|
231 |
+
|
232 |
+
if (!current_user_can('manage_options'))
|
233 |
+
wp_die(__('Did not update settings, you do not have the necessary rights.', AIOFAVICON_TEXTDOMAIN));
|
234 |
+
|
235 |
+
//cross check the given referer for nonce set in settings form
|
236 |
+
check_admin_referer('aio-favicon-settings-form');
|
237 |
+
//get settings from plugins admin page
|
238 |
+
$this->aioFaviconSettings = $_POST[AIOFAVICON_SETTINGSNAME];
|
239 |
+
//have to add jQueryColorboxVersion here because it is not included in the HTML form
|
240 |
+
$this->aioFaviconSettings['aioFaviconVersion'] = AIOFAVICON_VERSION;
|
241 |
+
$this->updateSettingsInDatabase();
|
242 |
+
$referrer = str_replace(array('&aioFaviconUpdateSettings', '&aioFaviconDeleteSettings'), '', $_POST['_wp_http_referer']);
|
243 |
+
wp_redirect($referrer . '&aioFaviconUpdateSettings');
|
244 |
+
}
|
245 |
+
|
246 |
+
// aioFaviconUpdateSettings()
|
247 |
+
|
248 |
+
/**
|
249 |
+
* Update jQuery Colorbox settings
|
250 |
+
*
|
251 |
+
* handles updating settings in the WordPress database
|
252 |
+
*
|
253 |
+
* @since 1.0
|
254 |
+
* @access private
|
255 |
+
* @author Arne Franken
|
256 |
+
*/
|
257 |
+
function updateSettingsInDatabase() {
|
258 |
+
update_option(AIOFAVICON_SETTINGSNAME, $this->aioFaviconSettings);
|
259 |
+
}
|
260 |
+
|
261 |
+
//aioFaviconUpdateSettingsInDatabase()
|
262 |
+
|
263 |
+
|
264 |
+
/**
|
265 |
+
* Delete jQuery Colorbox settings wrapper
|
266 |
+
*
|
267 |
+
* handles checks and redirect
|
268 |
+
*
|
269 |
+
* @since 1.0
|
270 |
+
* @access private
|
271 |
+
* @author Arne Franken
|
272 |
+
*/
|
273 |
+
function aioFaviconDeleteSettings() {
|
274 |
+
|
275 |
+
if (current_user_can('manage_options') && isset($_POST['delete_settings-true'])) {
|
276 |
+
//cross check the given referer for nonce set in delete settings form
|
277 |
+
check_admin_referer('aio-favicon-delete_settings-form');
|
278 |
+
$this->deleteSettingsFromDatabase();
|
279 |
+
} else {
|
280 |
+
wp_die(sprintf(__('Did not delete %1$s settings. Either you dont have the nececssary rights or you didnt check the checkbox.', AIOFAVICON_TEXTDOMAIN), AIOFAVICON_NAME));
|
281 |
+
}
|
282 |
+
//clean up referrer
|
283 |
+
$referrer = str_replace(array('&aioFaviconUpdateSettings', '&aioFaviconDeleteSettings'), '', $_POST['_wp_http_referer']);
|
284 |
+
wp_redirect($referrer . '&aioFaviconDeleteSettings');
|
285 |
+
}
|
286 |
+
|
287 |
+
// aioFaviconDeleteSettings()
|
288 |
+
|
289 |
+
/**
|
290 |
+
* Delete jQuery Colorbox settings
|
291 |
+
*
|
292 |
+
* handles deletion from WordPress database
|
293 |
+
*
|
294 |
+
* @since 1.0
|
295 |
+
* @access private
|
296 |
+
* @author Arne Franken
|
297 |
+
*/
|
298 |
+
function deleteSettingsFromDatabase() {
|
299 |
+
delete_option(AIOFAVICON_SETTINGSNAME);
|
300 |
+
}
|
301 |
+
|
302 |
+
// aioFaviconDeleteSettingsFromDatabase()
|
303 |
+
|
304 |
+
}
|
305 |
+
|
306 |
+
?><?php
|
307 |
+
/**
|
308 |
+
* initialize plugin, call constructor
|
309 |
+
*
|
310 |
+
* @since 1.0
|
311 |
+
* @access public
|
312 |
+
* @author Arne Franken
|
313 |
+
*/
|
314 |
+
function allInOneFavicon() {
|
315 |
+
global
|
316 |
+
$allInOneFavicon;
|
317 |
+
$allInOneFavicon = new AllInOneFavicon();
|
318 |
+
}
|
319 |
+
|
320 |
+
//allInOneFavicon()
|
321 |
+
|
322 |
+
// add allInOneFavicon() to WordPress initialization
|
323 |
+
add_action('init', 'allInOneFavicon', 7);
|
324 |
+
?>
|
includes/header-admin.php
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* @package Techotronic
|
4 |
+
* @subpackage All In One Favicon
|
5 |
+
*
|
6 |
+
* @since 1.0
|
7 |
+
* @author Arne Franken
|
8 |
+
*
|
9 |
+
*/
|
10 |
+
?>
|
11 |
+
<?php
|
12 |
+
function aioFaviconRenderAdminHeader() {
|
13 |
+
$aioFaviconSettings = (array)get_option(AIOFAVICON_SETTINGSNAME);
|
14 |
+
if (! empty($aioFaviconSettings)) {
|
15 |
+
?><!-- <?php echo AIOFAVICON_NAME ?> <?php echo AIOFAVICON_VERSION ?> | by Arne Franken, http://www.techotronic.de/ --><?php
|
16 |
+
foreach ((array) $aioFaviconSettings as $type => $url) {
|
17 |
+
if(preg_match('/backend/i', $type)){
|
18 |
+
if(preg_match('/ico/i', $url)) {
|
19 |
+
?><link rel="shortcut icon" href="<?php echo htmlspecialchars($url)?>" /><?php
|
20 |
+
} else if (preg_match('/gif/i', $url)) {
|
21 |
+
?><link rel="icon" href="<?php echo htmlspecialchars($url)?>" type="image/gif" /><?php
|
22 |
+
} else if (preg_match('/png/i', $url)) {
|
23 |
+
?><link rel="icon" href="<?php echo htmlspecialchars($url)?>" type="image/png" /><?php
|
24 |
+
}
|
25 |
+
}
|
26 |
+
}
|
27 |
+
?><!-- <?php echo AIOFAVICON_NAME ?> <?php echo AIOFAVICON_VERSION ?> | by Arne Franken, http://www.techotronic.de/ --><?php
|
28 |
+
}
|
29 |
+
}
|
30 |
+
?>
|
includes/header-blog.php
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* @package Techotronic
|
4 |
+
* @subpackage All in one Favicon
|
5 |
+
*
|
6 |
+
* @since 1.0
|
7 |
+
* @author Arne Franken
|
8 |
+
*
|
9 |
+
*/
|
10 |
+
?>
|
11 |
+
<?php
|
12 |
+
function aioFaviconRenderBlogHeader() {
|
13 |
+
$aioFaviconSettings = (array)get_option(AIOFAVICON_SETTINGSNAME);
|
14 |
+
if (! empty($aioFaviconSettings)) {
|
15 |
+
?><!-- <?php echo AIOFAVICON_NAME ?> <?php echo AIOFAVICON_VERSION ?> | by Arne Franken, http://www.techotronic.de/ --><?php
|
16 |
+
foreach ((array) $aioFaviconSettings as $type => $url) {
|
17 |
+
if(preg_match('/frontend/i', $type)){
|
18 |
+
if(preg_match('/ico/i', $url)) {
|
19 |
+
?><link rel="shortcut icon" href="<?php echo htmlspecialchars($url)?>" /><?php
|
20 |
+
} else if (preg_match('/gif/i', $url)) {
|
21 |
+
?><link rel="icon" href="<?php echo htmlspecialchars($url)?>" type="image/gif" /><?php
|
22 |
+
} else if (preg_match('/png/i', $url)) {
|
23 |
+
?><link rel="icon" href="<?php echo htmlspecialchars($url)?>" type="image/png" /><?php
|
24 |
+
}
|
25 |
+
}
|
26 |
+
}
|
27 |
+
?><!-- <?php echo AIOFAVICON_NAME ?> <?php echo AIOFAVICON_VERSION ?> | by Arne Franken, http://www.techotronic.de/ --><?php
|
28 |
+
}
|
29 |
+
}
|
30 |
+
?>
|
includes/settings-page.php
ADDED
@@ -0,0 +1,186 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* @package Techotronic
|
4 |
+
* @subpackage All in one Favicon
|
5 |
+
*
|
6 |
+
* @since 1.0
|
7 |
+
* @author Arne Franken
|
8 |
+
*
|
9 |
+
*
|
10 |
+
*/
|
11 |
+
?>
|
12 |
+
<div class="wrap">
|
13 |
+
<?php screen_icon(); ?>
|
14 |
+
<h2><?php echo AIOFAVICON_NAME . ' ' . __('Settings', AIOFAVICON_TEXTDOMAIN); ?></h2>
|
15 |
+
<br class="clear"/>
|
16 |
+
|
17 |
+
<?php settings_fields(AIOFAVICON_SETTINGSNAME); ?>
|
18 |
+
|
19 |
+
<div id="poststuff" class="ui-sortable meta-box-sortables">
|
20 |
+
<div id="aio-favicon-settings" class="postbox">
|
21 |
+
<h3 id="settings"><?php _e('Settings', AIOFAVICON_TEXTDOMAIN); ?></h3>
|
22 |
+
|
23 |
+
<div class="inside">
|
24 |
+
<form name="aio-favicon-settings-update" method="post" action="admin-post.php">
|
25 |
+
<?php if (function_exists('wp_nonce_field') === true) wp_nonce_field('aio-favicon-settings-form'); ?>
|
26 |
+
|
27 |
+
<table class="form-table">
|
28 |
+
<tr>
|
29 |
+
<th scope="row">
|
30 |
+
<label for="<?php echo AIOFAVICON_SETTINGSNAME ?>-frontendICO"><?php printf(__('%1$s ICO', AIOFAVICON_TEXTDOMAIN), __('Frontend', AIOFAVICON_TEXTDOMAIN)); ?>:</label>
|
31 |
+
</th>
|
32 |
+
<td>
|
33 |
+
<input id="<?php echo AIOFAVICON_SETTINGSNAME ?>-frontendICO" class="aioFaviconUrl" type="text" size="50" name="<?php echo AIOFAVICON_SETTINGSNAME ?>[frontendICO]" value="<?php echo $this->aioFaviconSettings['frontendICO'] ?>" />
|
34 |
+
<input id="<?php echo AIOFAVICON_SETTINGSNAME ?>-frontendICO_button" class="button aioFaviconUpload" type="button" value="<?php echo htmlspecialchars(__('Upload Favicon',AIOFAVICON_TEXTDOMAIN)) ?>" />
|
35 |
+
<br /><?php _e('Enter a URL or upload a Favicon.',AIOFAVICON_TEXTDOMAIN) ?>
|
36 |
+
</td>
|
37 |
+
</tr>
|
38 |
+
<tr>
|
39 |
+
<th scope="row">
|
40 |
+
<label for="<?php echo AIOFAVICON_SETTINGSNAME ?>-frontendPNG"><?php printf(__('%1$s PNG', AIOFAVICON_TEXTDOMAIN), __('Frontend', AIOFAVICON_TEXTDOMAIN)); ?>:</label>
|
41 |
+
</th>
|
42 |
+
<td>
|
43 |
+
<input id="<?php echo AIOFAVICON_SETTINGSNAME ?>-frontendPNG" class="aioFaviconUrl" type="text" size="50" name="<?php echo AIOFAVICON_SETTINGSNAME ?>[frontendPNG]" value="<?php echo $this->aioFaviconSettings['frontendPNG'] ?>" />
|
44 |
+
<input id="<?php echo AIOFAVICON_SETTINGSNAME ?>-frontendPNG_button" class="button aioFaviconUpload" type="button" value="<?php echo htmlspecialchars(__('Upload Favicon',AIOFAVICON_TEXTDOMAIN)) ?>" />
|
45 |
+
<br /><?php _e('Enter a URL or upload a Favicon.',AIOFAVICON_TEXTDOMAIN) ?>
|
46 |
+
</td>
|
47 |
+
</tr>
|
48 |
+
|
49 |
+
<tr>
|
50 |
+
<th scope="row">
|
51 |
+
<label for="<?php echo AIOFAVICON_SETTINGSNAME ?>-frontendGIF"><?php printf(__('%1$s GIF', AIOFAVICON_TEXTDOMAIN), __('Frontend', AIOFAVICON_TEXTDOMAIN)); ?>:</label>
|
52 |
+
</th>
|
53 |
+
<td>
|
54 |
+
<input id="<?php echo AIOFAVICON_SETTINGSNAME ?>-frontendGIF" class="aioFaviconUrl" type="text" size="50" name="<?php echo AIOFAVICON_SETTINGSNAME ?>[frontendGIF]" value="<?php echo $this->aioFaviconSettings['frontendGIF'] ?>" />
|
55 |
+
<input id="<?php echo AIOFAVICON_SETTINGSNAME ?>-frontendGIF_button" class="button aioFaviconUpload" type="button" value="<?php echo htmlspecialchars(__('Upload Favicon',AIOFAVICON_TEXTDOMAIN)) ?>" />
|
56 |
+
<br /><?php _e('Enter a URL or upload a Favicon.',AIOFAVICON_TEXTDOMAIN) ?>
|
57 |
+
</td>
|
58 |
+
</tr>
|
59 |
+
<tr>
|
60 |
+
<th scope="row">
|
61 |
+
<label for="<?php echo AIOFAVICON_SETTINGSNAME ?>-backendICO"><?php printf(__('%1$s ICO', AIOFAVICON_TEXTDOMAIN), __('Backend', AIOFAVICON_TEXTDOMAIN)); ?>:</label>
|
62 |
+
</th>
|
63 |
+
<td>
|
64 |
+
<input id="<?php echo AIOFAVICON_SETTINGSNAME ?>-backendICO" class="aioFaviconUrl" type="text" size="50" name="<?php echo AIOFAVICON_SETTINGSNAME ?>[backendICO]" value="<?php echo $this->aioFaviconSettings['backendICO'] ?>" />
|
65 |
+
<input id="<?php echo AIOFAVICON_SETTINGSNAME ?>-backendICO_button" class="button aioFaviconUpload" type="button" value="<?php echo htmlspecialchars(__('Upload Favicon',AIOFAVICON_TEXTDOMAIN)) ?>" />
|
66 |
+
<br /><?php _e('Enter a URL or upload a Favicon.',AIOFAVICON_TEXTDOMAIN) ?>
|
67 |
+
</td>
|
68 |
+
</tr>
|
69 |
+
<tr>
|
70 |
+
<th scope="row">
|
71 |
+
<label for="<?php echo AIOFAVICON_SETTINGSNAME ?>-backendPNG"><?php printf(__('%1$s PNG', AIOFAVICON_TEXTDOMAIN), __('Backend', AIOFAVICON_TEXTDOMAIN)); ?>:</label>
|
72 |
+
</th>
|
73 |
+
<td>
|
74 |
+
<input id="<?php echo AIOFAVICON_SETTINGSNAME ?>-backendPNG" class="aioFaviconUrl" type="text" size="50" name="<?php echo AIOFAVICON_SETTINGSNAME ?>[backendPNG]" value="<?php echo $this->aioFaviconSettings['backendPNG'] ?>" />
|
75 |
+
<input id="<?php echo AIOFAVICON_SETTINGSNAME ?>-backendPNG_button" class="button aioFaviconUpload" type="button" value="<?php echo htmlspecialchars(__('Upload Favicon',AIOFAVICON_TEXTDOMAIN)) ?>" />
|
76 |
+
<br /><?php _e('Enter a URL or upload a Favicon.',AIOFAVICON_TEXTDOMAIN) ?>
|
77 |
+
</td>
|
78 |
+
</tr>
|
79 |
+
|
80 |
+
<tr>
|
81 |
+
<th scope="row">
|
82 |
+
<label for="<?php echo AIOFAVICON_SETTINGSNAME ?>-backendGIF"><?php printf(__('%1$s GIF', AIOFAVICON_TEXTDOMAIN), __('Backend', AIOFAVICON_TEXTDOMAIN)); ?>:</label>
|
83 |
+
</th>
|
84 |
+
<td>
|
85 |
+
<input id="<?php echo AIOFAVICON_SETTINGSNAME ?>-backendGIF" class="aioFaviconUrl" type="text" size="50" name="<?php echo AIOFAVICON_SETTINGSNAME ?>[backendGIF]" value="<?php echo $this->aioFaviconSettings['backendGIF'] ?>" />
|
86 |
+
<input id="<?php echo AIOFAVICON_SETTINGSNAME ?>-backendGIF_button" class="button aioFaviconUpload" type="button" value="<?php echo htmlspecialchars(__('Upload Favicon',AIOFAVICON_TEXTDOMAIN)) ?>" />
|
87 |
+
<br /><?php _e('Enter a URL or upload a Favicon.',AIOFAVICON_TEXTDOMAIN) ?>
|
88 |
+
</td>
|
89 |
+
</tr>
|
90 |
+
</table>
|
91 |
+
<p class="submit">
|
92 |
+
<input type="hidden" name="action" value="aioFaviconUpdateSettings"/>
|
93 |
+
<input type="submit" name="aioFaviconUpdateSettings" class="button-primary" value="<?php _e('Save Changes') ?>"/>
|
94 |
+
</p>
|
95 |
+
</form>
|
96 |
+
</div>
|
97 |
+
</div>
|
98 |
+
</div>
|
99 |
+
|
100 |
+
<div id="poststuff" class="ui-sortable meta-box-sortables">
|
101 |
+
<div id="aio-favicon-delete_settings" class="postbox">
|
102 |
+
<h3 id="delete_options"><?php _e('Delete Settings', AIOFAVICON_TEXTDOMAIN) ?></h3>
|
103 |
+
|
104 |
+
<div class="inside">
|
105 |
+
<p><?php _e('Check the box and click this button to delete settings of this plugin.', AIOFAVICON_TEXTDOMAIN); ?></p>
|
106 |
+
|
107 |
+
<form name="delete_settings" method="post" action="admin-post.php">
|
108 |
+
<?php if (function_exists('wp_nonce_field') === true) wp_nonce_field('aio-favicon-delete_settings-form'); ?>
|
109 |
+
<p id="submitbutton">
|
110 |
+
<input type="hidden" name="action" value="aioFaviconDeleteSettings"/>
|
111 |
+
<input type="submit" name="aioFaviconDeleteSettings" value="<?php _e('Delete Settings', AIOFAVICON_TEXTDOMAIN); ?> »" class="button-secondary"/>
|
112 |
+
<input type="checkbox" name="delete_settings-true"/>
|
113 |
+
</p>
|
114 |
+
</form>
|
115 |
+
</div>
|
116 |
+
</div>
|
117 |
+
</div>
|
118 |
+
|
119 |
+
<div id="poststuff" class="ui-sortable meta-box-sortables">
|
120 |
+
<div id="aio-favicon-tips" class="postbox">
|
121 |
+
<h3 id="tips"><?php _e('Tips', AIOFAVICON_TEXTDOMAIN) ?></h3>
|
122 |
+
|
123 |
+
<div class="inside">
|
124 |
+
<table class="form-table">
|
125 |
+
<tr>
|
126 |
+
<th scope="row">
|
127 |
+
<label for="faviconWikipedia"><?php _e('Favicon wikipedia entry', AIOFAVICON_TEXTDOMAIN); ?>:</label>
|
128 |
+
</th>
|
129 |
+
<td id="faviconWikipedia">
|
130 |
+
<?php _e('<a href="http://en.wikipedia.org/wiki/Favicon">Wikipedia</a> offers much information about favicon types and sizes.',AIOFAVICON_TEXTDOMAIN) ?>
|
131 |
+
</td>
|
132 |
+
</tr>
|
133 |
+
<tr>
|
134 |
+
<th scope="row">
|
135 |
+
<label for="faviconGenerator"><?php _e('Favicon generator', AIOFAVICON_TEXTDOMAIN); ?>:</label>
|
136 |
+
</th>
|
137 |
+
<td id="faviconGenerator">
|
138 |
+
<?php _e('<a href="http://www.html-kit.com/favicon/">HTML Kit</a> provides a favicon generator that is very easy to use.',AIOFAVICON_TEXTDOMAIN) ?>
|
139 |
+
</td>
|
140 |
+
</tr>
|
141 |
+
<tr>
|
142 |
+
<th scope="row">
|
143 |
+
<label for="faviconGenerator"><?php _e('Favicon validator', AIOFAVICON_TEXTDOMAIN); ?>:</label>
|
144 |
+
</th>
|
145 |
+
<td id="faviconValidator">
|
146 |
+
<?php _e('<a href="http://www.html-kit.com/favicon/validator">HTML Kit</a> provides a favicon validator that tells you whether your favicon is working and if it is compatible to all browsers.',AIOFAVICON_TEXTDOMAIN) ?>
|
147 |
+
</td>
|
148 |
+
</tr>
|
149 |
+
</table>
|
150 |
+
</div>
|
151 |
+
</div>
|
152 |
+
</div>
|
153 |
+
|
154 |
+
<div id="poststuff" class="ui-sortable meta-box-sortables">
|
155 |
+
<div id="aio-favicon-donate" class="postbox">
|
156 |
+
<h3 id="donate"><?php _e('Donate', AIOFAVICON_TEXTDOMAIN) ?></h3>
|
157 |
+
|
158 |
+
<div class="inside">
|
159 |
+
<p>
|
160 |
+
<span style="float: left;">
|
161 |
+
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
|
162 |
+
<input type="hidden" name="cmd" value="_s-xclick">
|
163 |
+
<input type="hidden" name="hosted_button_id" value="11235030">
|
164 |
+
<input type="image" src="https://www.paypal.com/en_GB/i/btn/btn_donate_SM.gif" name="submit" alt="PayPal - The safer, easier way to pay online.">
|
165 |
+
<img alt="" border="0" src="https://www.paypal.com/de_DE/i/scr/pixel.gif" width="1" height="1">
|
166 |
+
</form>
|
167 |
+
</span>
|
168 |
+
</p>
|
169 |
+
<p>
|
170 |
+
<?php _e('If you would like to make a small (or large) contribution towards future development please consider making a donation.', AIOFAVICON_TEXTDOMAIN) ?>
|
171 |
+
<br/>© Copyright 2009 - <?php echo date("Y"); ?> <a href="http://www.techotronic.de">Arne Franken</a>
|
172 |
+
</p>
|
173 |
+
</div>
|
174 |
+
</div>
|
175 |
+
</div>
|
176 |
+
|
177 |
+
<div id="poststuff" class="ui-sortable meta-box-sortables">
|
178 |
+
<div id="aio-favicon-translation" class="postbox">
|
179 |
+
<h3 id="translation"><?php _e('Translation', AIOFAVICON_TEXTDOMAIN) ?></h3>
|
180 |
+
|
181 |
+
<div class="inside">
|
182 |
+
<p><?php _e('The english translation was done by <a href="http://www.techotronic.de">Arne Franken</a>.', AIOFAVICON_TEXTDOMAIN); ?></p>
|
183 |
+
</div>
|
184 |
+
</div>
|
185 |
+
</div>
|
186 |
+
</div>
|
js/backend-min.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
jQuery(document).ready(function(a){a("td").each(function(d,e){var c;var b;$nestedElement=a(e).children("input.aioFaviconUpload");$nestedElement.click(function(){$textInput=a(this).siblings(".aioFaviconUrl");textInputId=$textInput.attr("id");tb_show("","media-upload.php?type=image&TB_iframe=true");return false})});window.send_to_editor=function(b){imgurl=jQuery("img",b).attr("src");$test=jQuery("#aio-favicon_settings-backendGIF").val();$textvalBefore=jQuery("input#"+textInputId).val();jQuery("input#"+textInputId).val(imgurl);$textvalAfter=jQuery("input#"+textInputId).val();$a="asdf";tb_remove()}});
|
js/backend.js
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
* @package Techotronic
|
3 |
+
* @subpackage All In One Favicon
|
4 |
+
*
|
5 |
+
* @since 1.0
|
6 |
+
* @author Arne Franken
|
7 |
+
*
|
8 |
+
*/
|
9 |
+
jQuery(document).ready(function($) {
|
10 |
+
|
11 |
+
$("td").each(function(index, obj) {
|
12 |
+
var $buttonId;
|
13 |
+
var $textId;
|
14 |
+
$nestedElement = $(obj).children("input.aioFaviconUpload");
|
15 |
+
$nestedElement.click(function(){
|
16 |
+
$textInput = $(this).siblings(".aioFaviconUrl");
|
17 |
+
textInputId = $textInput.attr("id");
|
18 |
+
tb_show('',"media-upload.php?type=image&TB_iframe=true");
|
19 |
+
return false;
|
20 |
+
});
|
21 |
+
});
|
22 |
+
|
23 |
+
window.send_to_editor = function(html) {
|
24 |
+
imgurl = jQuery('img',html).attr('src');
|
25 |
+
$test = jQuery("#aio-favicon_settings-backendGIF").val();
|
26 |
+
$textvalBefore = jQuery("input"+"#"+textInputId).val();
|
27 |
+
jQuery("input"+"#"+textInputId).val(imgurl);
|
28 |
+
$textvalAfter = jQuery("input"+"#"+textInputId).val();
|
29 |
+
$a = 'asdf';
|
30 |
+
tb_remove();
|
31 |
+
}
|
32 |
+
});
|
localization/aio-favicon-de_DE.mo
ADDED
Binary file
|
localization/aio-favicon-de_DE.po
ADDED
@@ -0,0 +1,151 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: All In One Favicon\n"
|
4 |
+
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2010-05-04 01:21+0100\n"
|
6 |
+
"PO-Revision-Date: 2010-05-04 01:21+0100\n"
|
7 |
+
"Last-Translator: \n"
|
8 |
+
"Language-Team: Techotronic <blog@techotronic.de>\n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Poedit-KeywordsList: __;_e\n"
|
13 |
+
"X-Poedit-Basepath: ..\n"
|
14 |
+
"X-Poedit-Language: English\n"
|
15 |
+
"X-Poedit-Country: UNITED KINGDOM\n"
|
16 |
+
"X-Poedit-SourceCharset: utf-8\n"
|
17 |
+
"X-Poedit-SearchPath-0: .\n"
|
18 |
+
|
19 |
+
#: all-in-one-favicon.php:115
|
20 |
+
msgid "Using"
|
21 |
+
msgstr "Verwendet"
|
22 |
+
|
23 |
+
#: all-in-one-favicon.php:189
|
24 |
+
#, php-format
|
25 |
+
msgid "Successfully updated %1$s settings."
|
26 |
+
msgstr "Änderungen der %1$s Einstellungen wurden erfolgreich gespeichert."
|
27 |
+
|
28 |
+
#: all-in-one-favicon.php:191
|
29 |
+
#, php-format
|
30 |
+
msgid "%1$s settings were successfully deleted."
|
31 |
+
msgstr "Die Einstellungen von %1$s wurden erfolgreich entfernt."
|
32 |
+
|
33 |
+
#: all-in-one-favicon.php:231
|
34 |
+
msgid "Did not update settings, you do not have the necessary rights."
|
35 |
+
msgstr "Einstellungen nicht aktualisiert, da Sie nicht die hierfür erforderlichen Rechte besitzen."
|
36 |
+
|
37 |
+
#: all-in-one-favicon.php:278
|
38 |
+
#, php-format
|
39 |
+
msgid "Did not delete %1$s settings. Either you dont have the nececssary rights or you didnt check the checkbox."
|
40 |
+
msgstr "Konnte die Einstellungen von %1$s nicht entfernen. Entweder besitzen Sie nicht die notwendigen Rechte, oder Sie haben vergessen, die Checkbox [x] zu aktivieren."
|
41 |
+
|
42 |
+
#: includes/settings-page.php:14
|
43 |
+
#: includes/settings-page.php:21
|
44 |
+
msgid "Settings"
|
45 |
+
msgstr "Einstellungen"
|
46 |
+
|
47 |
+
#: includes/settings-page.php:30
|
48 |
+
#: includes/settings-page.php:61
|
49 |
+
#, php-format
|
50 |
+
msgid "%1$s ICO"
|
51 |
+
msgstr ""
|
52 |
+
|
53 |
+
#: includes/settings-page.php:30
|
54 |
+
#: includes/settings-page.php:40
|
55 |
+
#: includes/settings-page.php:51
|
56 |
+
msgid "Frontend"
|
57 |
+
msgstr ""
|
58 |
+
|
59 |
+
#: includes/settings-page.php:34
|
60 |
+
#: includes/settings-page.php:44
|
61 |
+
#: includes/settings-page.php:55
|
62 |
+
#: includes/settings-page.php:65
|
63 |
+
#: includes/settings-page.php:75
|
64 |
+
#: includes/settings-page.php:86
|
65 |
+
msgid "Upload Favicon"
|
66 |
+
msgstr "Favicon hochladen"
|
67 |
+
|
68 |
+
#: includes/settings-page.php:35
|
69 |
+
#: includes/settings-page.php:45
|
70 |
+
#: includes/settings-page.php:56
|
71 |
+
#: includes/settings-page.php:66
|
72 |
+
#: includes/settings-page.php:76
|
73 |
+
#: includes/settings-page.php:87
|
74 |
+
msgid "Enter a URL or upload a Favicon."
|
75 |
+
msgstr "GIb die URL zu einem vorhandenen Favicon ein oder lade ein neues hoch."
|
76 |
+
|
77 |
+
#: includes/settings-page.php:40
|
78 |
+
#: includes/settings-page.php:71
|
79 |
+
#, php-format
|
80 |
+
msgid "%1$s PNG"
|
81 |
+
msgstr ""
|
82 |
+
|
83 |
+
#: includes/settings-page.php:51
|
84 |
+
#: includes/settings-page.php:82
|
85 |
+
#, php-format
|
86 |
+
msgid "%1$s GIF"
|
87 |
+
msgstr ""
|
88 |
+
|
89 |
+
#: includes/settings-page.php:61
|
90 |
+
#: includes/settings-page.php:71
|
91 |
+
#: includes/settings-page.php:82
|
92 |
+
msgid "Backend"
|
93 |
+
msgstr ""
|
94 |
+
|
95 |
+
#: includes/settings-page.php:93
|
96 |
+
msgid "Save Changes"
|
97 |
+
msgstr "Änderungen speichern"
|
98 |
+
|
99 |
+
#: includes/settings-page.php:102
|
100 |
+
#: includes/settings-page.php:111
|
101 |
+
msgid "Delete Settings"
|
102 |
+
msgstr "Einstellungen löschen"
|
103 |
+
|
104 |
+
#: includes/settings-page.php:105
|
105 |
+
msgid "Check the box and click this button to delete settings of this plugin."
|
106 |
+
msgstr "Aktivieren Sie die Checkbox und klicken Sie anschließend die folgende Schaltfläche, um die Einstellungen dieses Plugins zu entfernen."
|
107 |
+
|
108 |
+
#: includes/settings-page.php:121
|
109 |
+
msgid "Tips"
|
110 |
+
msgstr "Tipps"
|
111 |
+
|
112 |
+
#: includes/settings-page.php:127
|
113 |
+
msgid "Favicon wikipedia entry"
|
114 |
+
msgstr "Wikipedia Eintrag"
|
115 |
+
|
116 |
+
#: includes/settings-page.php:130
|
117 |
+
msgid "<a href=\"http://en.wikipedia.org/wiki/Favicon\">Wikipedia</a> offers much information about favicon types and sizes."
|
118 |
+
msgstr "<a href=\"http://de.wikipedia.org/wiki/Favicon\">Wikipedia</a> bietet viele Informationen über Favicons."
|
119 |
+
|
120 |
+
#: includes/settings-page.php:135
|
121 |
+
msgid "Favicon generator"
|
122 |
+
msgstr "Favicon Generator"
|
123 |
+
|
124 |
+
#: includes/settings-page.php:138
|
125 |
+
msgid "<a href=\"http://www.html-kit.com/favicon/\">HTML Kit</a> provides a favicon generator that is very easy to use."
|
126 |
+
msgstr "<a href=\"http://www.html-kit.com/favicon/\">HTML Kit</a> hat einen einfachen Favicon Generator."
|
127 |
+
|
128 |
+
#: includes/settings-page.php:143
|
129 |
+
msgid "Favicon validator"
|
130 |
+
msgstr "Favicon Validator"
|
131 |
+
|
132 |
+
#: includes/settings-page.php:146
|
133 |
+
msgid "<a href=\"http://www.html-kit.com/favicon/validator\">HTML Kit</a> provides a favicon validator that tells you whether your favicon is working and if it is compatible to all browsers."
|
134 |
+
msgstr "<a href=\"http://www.html-kit.com/favicon/validator\">HTML Kit</a> hat einen online Favicon Validator der Dir sagt, ob Dein Favicon richtig konfiguriert ist und ob es kompatibel zu allen Browsern ist."
|
135 |
+
|
136 |
+
#: includes/settings-page.php:156
|
137 |
+
msgid "Donate"
|
138 |
+
msgstr "Spenden"
|
139 |
+
|
140 |
+
#: includes/settings-page.php:170
|
141 |
+
msgid "If you would like to make a small (or large) contribution towards future development please consider making a donation."
|
142 |
+
msgstr "Wenn Du eine kleine (oder grosse) Spende für die Weiterentwicklung abgeben möchtest, kannst Du das per PayPal tun."
|
143 |
+
|
144 |
+
#: includes/settings-page.php:179
|
145 |
+
msgid "Translation"
|
146 |
+
msgstr "Übersetzung"
|
147 |
+
|
148 |
+
#: includes/settings-page.php:182
|
149 |
+
msgid "The english translation was done by <a href=\"http://www.techotronic.de\">Arne Franken</a>."
|
150 |
+
msgstr "Die Übersetzung ins Deutsche wurde von <a href=\"http://www.techotronic.de\">Arne Franken</a> durchgeführt."
|
151 |
+
|
localization/aio-favicon-en_EN.mo
ADDED
Binary file
|
localization/aio-favicon-en_EN.po
ADDED
@@ -0,0 +1,151 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: All In One Favicon\n"
|
4 |
+
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2010-05-04 01:15+0100\n"
|
6 |
+
"PO-Revision-Date: 2010-05-04 01:15+0100\n"
|
7 |
+
"Last-Translator: \n"
|
8 |
+
"Language-Team: Techotronic <blog@techotronic.de>\n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Poedit-KeywordsList: __;_e\n"
|
13 |
+
"X-Poedit-Basepath: ..\n"
|
14 |
+
"X-Poedit-Language: English\n"
|
15 |
+
"X-Poedit-Country: UNITED KINGDOM\n"
|
16 |
+
"X-Poedit-SourceCharset: utf-8\n"
|
17 |
+
"X-Poedit-SearchPath-0: .\n"
|
18 |
+
|
19 |
+
#: all-in-one-favicon.php:115
|
20 |
+
msgid "Using"
|
21 |
+
msgstr ""
|
22 |
+
|
23 |
+
#: all-in-one-favicon.php:189
|
24 |
+
#, php-format
|
25 |
+
msgid "Successfully updated %1$s settings."
|
26 |
+
msgstr ""
|
27 |
+
|
28 |
+
#: all-in-one-favicon.php:191
|
29 |
+
#, php-format
|
30 |
+
msgid "%1$s settings were successfully deleted."
|
31 |
+
msgstr ""
|
32 |
+
|
33 |
+
#: all-in-one-favicon.php:231
|
34 |
+
msgid "Did not update settings, you do not have the necessary rights."
|
35 |
+
msgstr ""
|
36 |
+
|
37 |
+
#: all-in-one-favicon.php:278
|
38 |
+
#, php-format
|
39 |
+
msgid "Did not delete %1$s settings. Either you dont have the nececssary rights or you didnt check the checkbox."
|
40 |
+
msgstr ""
|
41 |
+
|
42 |
+
#: includes/settings-page.php:14
|
43 |
+
#: includes/settings-page.php:21
|
44 |
+
msgid "Settings"
|
45 |
+
msgstr ""
|
46 |
+
|
47 |
+
#: includes/settings-page.php:30
|
48 |
+
#: includes/settings-page.php:61
|
49 |
+
#, php-format
|
50 |
+
msgid "%1$s ICO"
|
51 |
+
msgstr ""
|
52 |
+
|
53 |
+
#: includes/settings-page.php:30
|
54 |
+
#: includes/settings-page.php:40
|
55 |
+
#: includes/settings-page.php:51
|
56 |
+
msgid "Frontend"
|
57 |
+
msgstr ""
|
58 |
+
|
59 |
+
#: includes/settings-page.php:34
|
60 |
+
#: includes/settings-page.php:44
|
61 |
+
#: includes/settings-page.php:55
|
62 |
+
#: includes/settings-page.php:65
|
63 |
+
#: includes/settings-page.php:75
|
64 |
+
#: includes/settings-page.php:86
|
65 |
+
msgid "Upload Favicon"
|
66 |
+
msgstr ""
|
67 |
+
|
68 |
+
#: includes/settings-page.php:35
|
69 |
+
#: includes/settings-page.php:45
|
70 |
+
#: includes/settings-page.php:56
|
71 |
+
#: includes/settings-page.php:66
|
72 |
+
#: includes/settings-page.php:76
|
73 |
+
#: includes/settings-page.php:87
|
74 |
+
msgid "Enter a URL or upload a Favicon."
|
75 |
+
msgstr ""
|
76 |
+
|
77 |
+
#: includes/settings-page.php:40
|
78 |
+
#: includes/settings-page.php:71
|
79 |
+
#, php-format
|
80 |
+
msgid "%1$s PNG"
|
81 |
+
msgstr ""
|
82 |
+
|
83 |
+
#: includes/settings-page.php:51
|
84 |
+
#: includes/settings-page.php:82
|
85 |
+
#, php-format
|
86 |
+
msgid "%1$s GIF"
|
87 |
+
msgstr ""
|
88 |
+
|
89 |
+
#: includes/settings-page.php:61
|
90 |
+
#: includes/settings-page.php:71
|
91 |
+
#: includes/settings-page.php:82
|
92 |
+
msgid "Backend"
|
93 |
+
msgstr ""
|
94 |
+
|
95 |
+
#: includes/settings-page.php:93
|
96 |
+
msgid "Save Changes"
|
97 |
+
msgstr ""
|
98 |
+
|
99 |
+
#: includes/settings-page.php:102
|
100 |
+
#: includes/settings-page.php:111
|
101 |
+
msgid "Delete Settings"
|
102 |
+
msgstr ""
|
103 |
+
|
104 |
+
#: includes/settings-page.php:105
|
105 |
+
msgid "Check the box and click this button to delete settings of this plugin."
|
106 |
+
msgstr ""
|
107 |
+
|
108 |
+
#: includes/settings-page.php:121
|
109 |
+
msgid "Tips"
|
110 |
+
msgstr ""
|
111 |
+
|
112 |
+
#: includes/settings-page.php:127
|
113 |
+
msgid "Favicon wikipedia entry"
|
114 |
+
msgstr ""
|
115 |
+
|
116 |
+
#: includes/settings-page.php:130
|
117 |
+
msgid "<a href=\"http://en.wikipedia.org/wiki/Favicon\">Wikipedia</a> offers much information about favicon types and sizes."
|
118 |
+
msgstr ""
|
119 |
+
|
120 |
+
#: includes/settings-page.php:135
|
121 |
+
msgid "Favicon generator"
|
122 |
+
msgstr ""
|
123 |
+
|
124 |
+
#: includes/settings-page.php:138
|
125 |
+
msgid "<a href=\"http://www.html-kit.com/favicon/\">HTML Kit</a> provides a favicon generator that is very easy to use."
|
126 |
+
msgstr ""
|
127 |
+
|
128 |
+
#: includes/settings-page.php:143
|
129 |
+
msgid "Favicon validator"
|
130 |
+
msgstr ""
|
131 |
+
|
132 |
+
#: includes/settings-page.php:146
|
133 |
+
msgid "<a href=\"http://www.html-kit.com/favicon/validator\">HTML Kit</a> provides a favicon validator that tells you whether your favicon is working and if it is compatible to all browsers."
|
134 |
+
msgstr ""
|
135 |
+
|
136 |
+
#: includes/settings-page.php:156
|
137 |
+
msgid "Donate"
|
138 |
+
msgstr ""
|
139 |
+
|
140 |
+
#: includes/settings-page.php:170
|
141 |
+
msgid "If you would like to make a small (or large) contribution towards future development please consider making a donation."
|
142 |
+
msgstr ""
|
143 |
+
|
144 |
+
#: includes/settings-page.php:179
|
145 |
+
msgid "Translation"
|
146 |
+
msgstr ""
|
147 |
+
|
148 |
+
#: includes/settings-page.php:182
|
149 |
+
msgid "The english translation was done by <a href=\"http://www.techotronic.de\">Arne Franken</a>."
|
150 |
+
msgstr ""
|
151 |
+
|
readme.txt
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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, mu
|
5 |
+
Requires at least: 2.8
|
6 |
+
Tested up to: 3.0
|
7 |
+
Stable tag: 1.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 |
+
|
18 |
+
== Installation ==
|
19 |
+
|
20 |
+
###Updgrading From A Previous Version###
|
21 |
+
|
22 |
+
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.
|
23 |
+
|
24 |
+
###Installing The Plugin###
|
25 |
+
|
26 |
+
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/`. Then just visit your admin area and activate the plugin. That's it!
|
27 |
+
|
28 |
+
###Configuring The Plugin###
|
29 |
+
|
30 |
+
Go to the settings page and and upload your Favicon(s) or add the path/URL to already existing Favicon(s).
|
31 |
+
|
32 |
+
**See Also:** <a href="http://codex.wordpress.org/Managing_Plugins#Installing_Plugins">"Installing Plugins" article on the WP Codex</a>
|
33 |
+
|
34 |
+
== Frequently Asked Questions ==
|
35 |
+
|
36 |
+
== Screenshots ==
|
37 |
+
|
38 |
+
<a href="http://www.techotronic.de/plugins/jquery-colorbox/theme-screenshots/">Please visit my site for screenshots</a>.
|
39 |
+
|
40 |
+
== Changelog ==
|
41 |
+
|
42 |
+
= 1.0 =
|
43 |
+
* NEW: Initial release.
|