Changeset 3043
- Timestamp:
- 05/18/11 22:46:23 (12 years ago)
- Location:
- plugins/adminExample
- Files:
-
- 2 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/adminExample/_admin.php
r1719 r3043 8 8 # http://sam.zoy.org/wtfpl/COPYING for more details. 9 9 # 10 # Icon (icon.png) is from Silk Icons : 11 # http://www.famfamfam.com/lab/icons/silk/ 10 # Icons by http://dryicons.com 12 11 # 13 12 # ***** END LICENSE BLOCK ***** … … 32 31 # permissions nécessaires pour afficher le lien 33 32 $core->auth->check('usage,contentadmin',$core->blog->id)); 33 34 $core->addBehavior('adminDashboardFavs', 35 array('adminExampleBehaviors','adminDashboardFavs')); 36 37 $core->addBehavior('adminDashboardFavsIcon', 38 array('adminExampleBehaviors','adminDashboardFavsIcon')); 39 40 class adminExampleBehaviors 41 { 42 public static function adminDashboardFavs($core,$favs) 43 { 44 $favs['adminExample'] = new ArrayObject(array( 45 'adminExample', 46 __('Admin example'), 47 'plugin.php?p=adminExample', 48 'index.php?pf=adminExample/icon.png', 49 'index.php?pf=adminExample/icon-big.png', 50 'usage,contentadmin', 51 null, 52 null)); 53 } 54 55 public static function adminDashboardFavsIcon($core,$name,$icon) 56 { 57 if ($name == 'adminExample') 58 { 59 # this is an example to show how the icon, the URL and the URL 60 # can be changed with a test 61 # ceci est un un exemple pour montrer comment l'icône, l'URL et 62 # l'image peuvent être changées avec un test 63 if ($core->blog->settings->adminExample->adminexample_active) 64 { 65 $icon[0] = __('Admin example: active'); 66 $icon[1] = 'plugin.php?p=adminExample&tab=settings'; 67 $icon[2] = 'index.php?pf=adminExample/icon-big.png'; 68 } 69 else 70 { 71 $icon[0] = __('Admin example: inactive'); 72 $icon[1] = 'plugin.php?p=adminExample'; 73 $icon[2] = 'index.php?pf=adminExample/icon-block.png'; 74 } 75 } 76 } 77 } 78 34 79 ?> -
plugins/adminExample/_define.php
r3032 r3043 8 8 # http://sam.zoy.org/wtfpl/COPYING for more details. 9 9 # 10 # Icon (icon.png) is from Silk Icons : 11 # http://www.famfamfam.com/lab/icons/silk/ 10 # Icons by http://dryicons.com 12 11 # 13 12 # ***** END LICENSE BLOCK ***** … … 19 18 /* Description */ 'Admin Example', 20 19 /* Author */ 'Dotclear Documentation', 21 /* Version */ '0. 1.2',20 /* Version */ '0.2', 22 21 /* Permissions */ 'usage,contentadmin' 23 22 ); -
plugins/adminExample/index.php
r3032 r3043 8 8 # http://sam.zoy.org/wtfpl/COPYING for more details. 9 9 # 10 # Icon (icon.png) is from Silk Icons : 11 # http://www.famfamfam.com/lab/icons/silk/ 10 # Icons by http://dryicons.com 12 11 # 13 12 # ***** END LICENSE BLOCK ***** … … 82 81 83 82 <?php 84 /*85 For Dotclear 2.386 83 echo 87 84 '<p><label class="required" for="required_field_id"><abbr title="'. 88 85 __('Required field').'">*</abbr> '.__('A required field:').'</label> '. 89 86 form::field('required_field_id',30,32, 90 html::escapeHTML(__('Hello World !'))).'</p>';*/87 html::escapeHTML(__('Hello World'))).'</p>'; 91 88 ?> 92 89 </fieldset> -
plugins/adminExample/locales/fr/admin.lang.php
r1719 r3043 1 1 <?php 2 // Language: français3 // Module: adminExample - 0.1 4 // Date: 20 09-10-25 11:24:035 // Translated with dcTranslater - 1. 22 // Language: Français 3 // Module: adminExample - 0.1.2 4 // Date: 2011-05-18 20:42:27 5 // Translated with dcTranslater - 1.5 6 6 7 #index.php:41 7 #_admin.php:65 8 $GLOBALS['__l10n']['Admin example: active'] = 'Example d\'administration : actif'; 9 10 #_admin.php:71 11 $GLOBALS['__l10n']['Admin example: inactive'] = 'Example d\'administration : inactif'; 12 13 #index.php:38 8 14 $GLOBALS['__l10n']['Configuration successfully updated.'] = 'Configuration mise à jour avec succès.'; 9 15 10 #index.php:5 716 #index.php:53 11 17 $GLOBALS['__l10n']['Tab 1'] = 'Onglet 1'; 12 18 13 #index.php: 6219 #index.php:58 14 20 $GLOBALS['__l10n']['Numbers'] = 'Numéros'; 15 21 16 #index.php:92 22 #index.php:59 23 #index.php:97 17 24 $GLOBALS['__l10n']['one'] = 'un'; 18 25 19 #index.php:95 26 #index.php:60 27 #index.php:100 20 28 $GLOBALS['__l10n']['two'] = 'deux'; 21 29 22 #index.php:111 30 #index.php:64 31 #index.php:69 32 #index.php:79 33 #index.php:92 34 #index.php:116 23 35 $GLOBALS['__l10n']['Hello World!'] = 'Bonjour le monde !'; 24 36 25 #index.php:109 37 #index.php:73 38 #index.php:114 26 39 $GLOBALS['__l10n']['Enable'] = 'Activer'; 27 40 28 #index.php:89 41 #index.php:75 42 #index.php:94 29 43 $GLOBALS['__l10n']['Title:'] = 'Titre :'; 30 44 31 #index.php:104 45 #index.php:85 46 $GLOBALS['__l10n']['Required field'] = 'Champ obligatoire'; 47 48 #index.php:85 49 $GLOBALS['__l10n']['A required field:'] = 'Un champ obligatoire :'; 50 51 #index.php:87 52 $GLOBALS['__l10n']['Hello World'] = 'Bonjour le monde'; 53 54 #index.php:109 32 55 $GLOBALS['__l10n']['Settings'] = 'Paramètres'; 33 56 34 #index.php:1 1557 #index.php:120 35 58 $GLOBALS['__l10n']['Save configuration'] = 'Enregistrer la configuration'; 36 59 37 #index.php:12 060 #index.php:125 38 61 $GLOBALS['__l10n']['Columns'] = 'Colonnes'; 39 62 40 #index.php:131 63 #index.php:126 64 #index.php:136 41 65 $GLOBALS['__l10n']['%s columns'] = '%s colonnes'; 42 66 -
plugins/adminExample/locales/fr/admin.po
r1719 r3043 1 # Language: français2 # Module: adminExample - 0.1 3 # Date: 20 09-10-25 11:24:034 # Translated with dcTranslater - 1.21 # Language: Français 2 # Module: adminExample - 0.1.2 3 # Date: 2011-05-18 20:42:27 4 # Translated with translater 1.5 5 5 6 6 msgid "" 7 msgstr "Content-Type: text/plain; charset=UTF-8\n" 7 msgstr "" 8 "Content-Type: text/plain; charset=UTF-8\n" 9 "Project-Id-Version: adminExample 0.1.2\n" 10 "POT-Creation-Date: \n" 11 "PO-Revision-Date: 2011-05-18T20:42:27+00:00\n" 12 "MIME-Version: 1.0\n" 13 "Content-Transfer-Encoding: 8bit\n" 8 14 9 #: index.php:41 15 #: _admin.php:65 16 msgid "Admin example: active" 17 msgstr "Example d'administration : actif" 18 19 #: _admin.php:71 20 msgid "Admin example: inactive" 21 msgstr "Example d'administration : inactif" 22 23 #: index.php:38 10 24 msgid "Configuration successfully updated." 11 25 msgstr "Configuration mise à jour avec succès." 12 26 13 #: index.php:5 727 #: index.php:53 14 28 msgid "Tab 1" 15 29 msgstr "Onglet 1" 16 30 17 #: index.php: 6231 #: index.php:58 18 32 msgid "Numbers" 19 33 msgstr "Numéros" 20 34 21 #: index.php:92 35 #: index.php:59 36 #: index.php:97 22 37 msgid "one" 23 38 msgstr "un" 24 39 25 #: index.php:95 40 #: index.php:60 41 #: index.php:100 26 42 msgid "two" 27 43 msgstr "deux" 28 44 29 #: index.php:111 45 #: index.php:64 46 #: index.php:69 47 #: index.php:79 48 #: index.php:92 49 #: index.php:116 30 50 msgid "Hello World!" 31 51 msgstr "Bonjour le monde !" 32 52 33 #: index.php:109 53 #: index.php:73 54 #: index.php:114 34 55 msgid "Enable" 35 56 msgstr "Activer" 36 57 37 #: index.php:89 58 #: index.php:75 59 #: index.php:94 38 60 msgid "Title:" 39 61 msgstr "Titre :" 40 62 41 #: index.php:104 63 #: index.php:85 64 msgid "Required field" 65 msgstr "Champ obligatoire" 66 67 #: index.php:85 68 msgid "A required field:" 69 msgstr "Un champ obligatoire :" 70 71 #: index.php:87 72 msgid "Hello World" 73 msgstr "Bonjour le monde" 74 75 #: index.php:109 42 76 msgid "Settings" 43 77 msgstr "Paramètres" 44 78 45 #: index.php:1 1579 #: index.php:120 46 80 msgid "Save configuration" 47 81 msgstr "Enregistrer la configuration" 48 82 49 #: index.php:12 083 #: index.php:125 50 84 msgid "Columns" 51 85 msgstr "Colonnes" 52 86 53 #: index.php:131 87 #: index.php:126 88 #: index.php:136 54 89 msgid "%s columns" 55 90 msgstr "%s colonnes" -
plugins/adminExample/locales/fr/main.lang.php
r1719 r3043 1 1 <?php 2 // Language: français3 // Module: adminExample - 0.1 4 // Date: 20 09-10-25 11:24:035 // Translated with dcTranslater - 1. 22 // Language: Français 3 // Module: adminExample - 0.1.2 4 // Date: 2011-05-18 20:42:27 5 // Translated with dcTranslater - 1.5 6 6 7 #index.php:52 7 #_admin.php:19 8 #_admin.php:46 9 #index.php:43 10 #index.php:49 8 11 $GLOBALS['__l10n']['Admin example'] = 'Example d\'administration'; 9 12 -
plugins/adminExample/locales/fr/main.po
r1719 r3043 1 # Language: français2 # Module: adminExample - 0.1 3 # Date: 20 09-10-25 11:24:034 # Translated with dcTranslater - 1.21 # Language: Français 2 # Module: adminExample - 0.1.2 3 # Date: 2011-05-18 20:42:27 4 # Translated with translater 1.5 5 5 6 6 msgid "" 7 msgstr "Content-Type: text/plain; charset=UTF-8\n" 7 msgstr "" 8 "Content-Type: text/plain; charset=UTF-8\n" 9 "Project-Id-Version: adminExample 0.1.2\n" 10 "POT-Creation-Date: \n" 11 "PO-Revision-Date: 2011-05-18T20:42:27+00:00\n" 12 "MIME-Version: 1.0\n" 13 "Content-Transfer-Encoding: 8bit\n" 8 14 9 #: index.php:52 15 #: _admin.php:19 16 #: _admin.php:46 17 #: index.php:43 18 #: index.php:49 10 19 msgid "Admin example" 11 20 msgstr "Example d'administration"
Note: See TracChangeset
for help on using the changeset viewer.