Changeset 398
- Timestamp:
- 04/06/08 18:15:52 (16 years ago)
- Location:
- plugins/myfavicon
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/myfavicon/CHANGELOG
r397 r398 1 06.04.2008 Oleksandr Syenchuk - Version 0.5.1 2 3 - Option "Compatibilité Internet Explorer 6" 4 - Oubli d'une traduction : corrigé 5 1 6 06.04.2008 Oleksandr Syenchuk - Version 0.4 2 7 3 Traduction en français8 - Traduction en français 4 9 5 10 05.04.2008 Oleksandr Syenchuk - Version 0.3 6 11 7 Un formulaire de configuration dans les préférences du blog est disponible12 - Un formulaire de configuration dans les préférences du blog est disponible 8 13 9 14 05.04.2008 Oleksandr Syenchuk - Version 0.2 10 15 11 La détection du type d'icône se fait automatiquement16 - La détection du type d'icône se fait automatiquement 12 17 13 18 05.04.2008 Oleksandr Syenchuk - Version 0.1 14 19 15 Première version paramètrable dans about:config20 - Première version paramètrable dans about:config -
plugins/myfavicon/_admin.php
r395 r398 34 34 35 35 $favicon_url = $settings->favicon_url; 36 $favicon_ie6 = $settings->favicon_ie6; 36 37 37 38 echo … … 40 41 form::checkbox('favicon_enable','1',!empty($favicon_url)). 41 42 __('Enable favicon').'</label></p>'. 42 '<p id="favicon_config"><label>'.__('Favicon URL:').' '. 43 '<div id="favicon_config">'. 44 '<p><label class="classic">'. 45 form::checkbox('favicon_ie6','1',$favicon_ie6). 46 __('Enable Internet Explorer 6 compatibility').'</label></p>'. 47 '<p><label>'.__('Favicon URL:').' '. 43 48 form::field('favicon_url',40,255,html::escapeHTML($favicon_url)).'</label></p>'. 44 '</fieldset>'; 49 '<p id="favicon_warn" class="form-note warn">' 50 .__('Please note, IE6 compatibility works only with ".ico" format.').'</p>'. 51 '</div></fieldset>'; 45 52 } 46 53 47 54 public static function adminBeforeBlogSettingsUpdate(&$settings) 48 55 { 56 $favicon_url = empty($_POST['favicon_enable']) ? '' : $_POST['favicon_url']; 57 $favicon_ie6 = !empty($_POST['favicon_ie6']); 58 49 59 $settings->setNameSpace('myfavicon'); 50 $settings->put('favicon_url',$_POST['favicon_url']); 60 $settings->put('favicon_url',$favicon_url); 61 $settings->put('favicon_ie6',$favicon_ie6); 51 62 $settings->setNameSpace('system'); 52 63 } -
plugins/myfavicon/_define.php
r397 r398 19 19 /* Description*/ "Add a customized favicon to your blog", 20 20 /* Author */ "Oleksandr Syenchuk", 21 /* Version */ '0. 4',21 /* Version */ '0.5.1', 22 22 /* Permissions */ 'contentadmin' 23 23 ); -
plugins/myfavicon/_install.php
r389 r398 30 30 # New install / update 31 31 $sets->put('favicon_url','','string','Favicon URL',false); 32 $sets->put('favicon_ie6',false,'boolean','Internet Explorer 6 compatibility',false); 32 33 33 34 # --SETTING NEW VERSION-- -
plugins/myfavicon/_public.php
r389 r398 54 54 { 55 55 $favicon_url = $settings->favicon_url; 56 $favicon_ie6 = $settings->favicon_ie6; 56 57 57 58 if (empty($favicon_url)) { … … 71 72 } 72 73 73 return '<link rel="icon" type="'.$mimetype. 74 $rel = ($favicon_ie6 ? 'shortcut ' : '').'icon'; 75 return '<link rel="'.$rel.'" type="'.$mimetype. 74 76 '" href="'.html::escapeHTML($favicon_url).'" />'; 75 77 } -
plugins/myfavicon/blog_pref.js
r395 r398 2 2 var favicon_url = ''; 3 3 4 // favicon_enable checkbox 4 5 $("#favicon_enable").change(function() 5 6 { … … 18 19 $("#favicon_config").hide(); 19 20 } 21 22 // favicon_ie6 checkbox 23 $("#favicon_ie6").change(function() 24 { 25 if (this.checked) { 26 $("#favicon_warn").show(); 27 } 28 else { 29 $("#favicon_warn").hide(); 30 } 31 }); 32 33 if (!document.getElementById('favicon_ie6').checked) { 34 $("#favicon_warn").hide(); 35 } 20 36 }); 21 37 -
plugins/myfavicon/locales/fr/main.po
r397 r398 6 6 msgstr "Content-Type: text/plain; charset=UTF-8" 7 7 8 msgid "Enable favicon" 9 msgstr "Activer le favicon" 10 11 msgid "Enable Internet Explorer 6 compatibility" 12 msgstr "Activer la compatibilité avec Internet Explorer 6" 13 8 14 msgid "Favicon URL:" 9 15 msgstr "URL du favicon :" 16 17 msgid "Please note, IE6 compatibility works only with \".ico\" format." 18 msgstr "Veuillez noter que la compatibilité IE6 fonctionne uniquement avec le format \".ico\"."
Note: See TracChangeset
for help on using the changeset viewer.