Changeset 3148
- Timestamp:
- 08/01/13 11:34:50 (10 years ago)
- Location:
- plugins/contactMe
- Files:
-
- 2 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/contactMe/_define.php
r3061 r3148 16 16 /* Description*/ "Add a simple contact form on your blog", 17 17 /* Author */ "Olivier Meunier and contributors", 18 /* Version */ '1. 2',18 /* Version */ '1.3', 19 19 /* Permissions */ 'admin' 20 20 ); -
plugins/contactMe/_public.php
r3061 r3148 277 277 global $core; 278 278 279 if ($w->homeonly && $core->url->type != 'default') { 279 if (($w->homeonly == 1 && $core->url->type != 'default') || 280 ($w->homeonly == 2 && $core->url->type == 'default')) { 280 281 return; 281 282 } … … 286 287 287 288 $res = 288 '<div class="contact-me">'.289 ($w->content_only ? '' : '<div class="contact-me'.($w->class ? ' '.html::escapeHTML($w->class) : '').'">'). 289 290 ($w->title ? '<h2>'.html::escapeHTML($w->title).'</h2>' : ''). 290 291 '<p><a href="'.$core->blog->url.$core->url->getBase('contactme').'">'. 291 292 ($w->link_title ? html::escapeHTML($w->link_title) : __('Contact me')). 292 293 '</a></p>'. 293 '</div>';294 ($w->content_only ? '' : '</div>'); 294 295 295 296 return $res; -
plugins/contactMe/_widgets.php
r2121 r3148 18 18 public static function initWidgets($w) 19 19 { 20 $w->create('contactMe',__('Contact me'),array('tplContactMe','contactMeWidget') );20 $w->create('contactMe',__('Contact me'),array('tplContactMe','contactMeWidget'),null,__('Link to the contact form')); 21 21 $w->contactMe->setting('title',__('Title:'),__('Contact')); 22 22 $w->contactMe->setting('link_title',__('Link title:'),__('Contact me')); 23 $w->contactMe->setting('homeonly',__('Home page only'),0,'check'); 23 $w->contactMe->setting('homeonly',__('Display on:'),0,'combo', 24 array( 25 __('All pages') => 0, 26 __('Home page only') => 1, 27 __('Except on home page') => 2 28 ) 29 ); 30 $w->contactMe->setting('content_only',__('Content only'),0,'check'); 31 $w->contactMe->setting('class',__('CSS class:'),''); 24 32 } 25 33 } -
plugins/contactMe/index.php
r2354 r3148 110 110 111 111 if (!empty($_GET['upd'])) { 112 echo '<p class="message">'.__('Setting have been successfully updated.').'</p>';112 dcPage::message(__('Setting have been successfully updated.')); 113 113 } 114 114 … … 116 116 '<form action="'.$p_url.'" method="post">'. 117 117 '<fieldset><legend>'.__('E-Mail settings').'</legend>'. 118 '<p><label >'.__('Comma separated recipients list:').''.119 form::field('cm_recipients',30,512,html::escapeHTML($cm_recipients),'maximal').'</ label></p>'.118 '<p><label for="cm_recipients">'.__('Comma separated recipients list:').'</label> '. 119 form::field('cm_recipients',30,512,html::escapeHTML($cm_recipients),'maximal').'</p>'. 120 120 '<p class="form-note">'.__('Empty recipients list to disable contact page.').'</p>'. 121 '<p><label >'.__('E-Mail subject prefix:').''.122 form::field('cm_subject_prefix',30,128,html::escapeHTML($cm_subject_prefix)).'</ label></p>'.121 '<p><label for="cm_subject_prefix">'.__('E-Mail subject prefix:').'</label> '. 122 form::field('cm_subject_prefix',30,128,html::escapeHTML($cm_subject_prefix)).'</p>'. 123 123 '<p class="form-note">'.__('This will be prepend to e-mail subject').'</p>'; 124 124 … … 127 127 { 128 128 echo 129 '<p> <label class="classic">'.form::checkbox('cm_use_antispam',1,(boolean) $cm_use_antispam).130 ' '.__('Use comments spam filter').'</label></p>';129 '<p>'.form::checkbox('cm_use_antispam',1,(boolean) $cm_use_antispam). 130 ' <label for="cm_use_antispam" class="classic">'.__('Use comments spam filter').'</label></p>'; 131 131 } 132 132 … … 135 135 136 136 '<fieldset><legend>'.__('Presentation options').'</legend>'. 137 '<p><label class="required" title="'.__('Required field').'">'.__('Page title:').' '. 137 '<p><label for="cm_page_title" class="required" title="'.__('Required field').'"><abbr title="'.__('Required field').'">*</abbr> '. 138 __('Page title:').'</label> '. 138 139 form::field('cm_page_title',30,256,html::escapeHTML($cm_page_title)). 139 '</ label></p>'.140 '<p class="area"><label >'.__('Form caption:').''.140 '</p>'. 141 '<p class="area"><label for="cm_form_caption">'.__('Form caption:').'</label> '. 141 142 form::textarea('cm_form_caption',30,2,html::escapeHTML($cm_form_caption)). 142 '</label></p>'. 143 '<p class="area"><label class="required" title="'.__('Required field').'">'.__('Confirmation message:').' '. 143 '</p>'. 144 '<p class="area"><label for="cm_msg_success" class="required" title="'.__('Required field').'"><abbr title="'.__('Required field').'">*</abbr> '. 145 __('Confirmation message:').'</label> '. 144 146 form::textarea('cm_msg_success',30,2,html::escapeHTML($cm_msg_success)). 145 '</label></p>'. 146 '<p class="area"><label class="required" title="'.__('Required field').'">'.__('Error message:').' '. 147 '</p>'. 148 '<p class="area"><label for="cm_msg_error" class="required" title="'.__('Required field').'"><abbr title="'.__('Required field').'">*</abbr> '. 149 __('Error message:').'</label> '. 147 150 form::textarea('cm_msg_error',30,2,html::escapeHTML($cm_msg_error)). 148 '</ label></p>'.151 '</p>'. 149 152 '<p class="form-note">'.__('"%s" is the error message.').'</p>'. 150 153 '</fieldset>'. -
plugins/contactMe/locales/_pot/main.pot
r227 r3148 8 8 "Project-Id-Version: Dotclear 2 contactMe module\n" 9 9 "Report-Msgid-Bugs-To: \n" 10 "POT-Creation-Date: 20 08-08-14 12:12+0200\n"10 "POT-Creation-Date: 2012-11-05 16:52+0100\n" 11 11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 12 12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 13 13 "Language-Team: LANGUAGE <LL@li.org>\n" 14 "Language: \n" 14 15 "MIME-Version: 1.0\n" 15 16 "Content-Type: text/plain; charset=CHARSET\n" 16 17 "Content-Transfer-Encoding: 8bit\n" 17 18 18 #: plugins-test/contactMe//_admin.php:14 19 #: plugins-test/contactMe//_public.php:282 20 #: plugins-test/contactMe//_widgets.php:20 21 #: plugins-test/contactMe//_widgets.php:22 22 #: plugins-test/contactMe//index.php:24 plugins-test/contactMe//index.php:104 23 #: plugins-test/contactMe//index.php:109 19 #: ../hg-plugins/contactMe/__html_tpl_dummy.php:5 20 #: ../hg-plugins/contactMe/_public.php:16 21 msgid "Message" 22 msgstr "" 23 24 #: ../hg-plugins/contactMe/__html_tpl_dummy.php:7 25 #: ../hg-plugins/contactMe/_public.php:15 26 msgid "Subject" 27 msgstr "" 28 29 #: ../hg-plugins/contactMe/_admin.php:14 ../hg-plugins/contactMe/_admin.php:24 30 #: ../hg-plugins/contactMe/_admin.php:32 31 #: ../hg-plugins/contactMe/_public.php:37 32 #: ../hg-plugins/contactMe/_public.php:292 33 #: ../hg-plugins/contactMe/_widgets.php:20 34 #: ../hg-plugins/contactMe/_widgets.php:22 35 #: ../hg-plugins/contactMe/index.php:24 ../hg-plugins/contactMe/index.php:104 36 #: ../hg-plugins/contactMe/index.php:109 24 37 msgid "Contact me" 25 38 msgstr "" 26 39 27 #: plugins-test/contactMe//_public.php:1528 msgid " Subject"40 #: ../hg-plugins/contactMe/_admin.php:33 41 msgid "Mail contact form" 29 42 msgstr "" 30 43 31 #: plugins-test/contactMe//_public.php:1632 msgid " Message"44 #: ../hg-plugins/contactMe/_define.php:15 45 msgid "ContactMe" 33 46 msgstr "" 34 47 35 #: plugins-test/contactMe//_public.php:84 48 #: ../hg-plugins/contactMe/_define.php:16 49 msgid "Add a simple contact form on your blog" 50 msgstr "" 51 52 #: ../hg-plugins/contactMe/_public.php:93 36 53 msgid "You must provide a name." 37 54 msgstr "" 38 55 39 #: plugins-test/contactMe//_public.php:9256 #: ../hg-plugins/contactMe/_public.php:101 40 57 msgid "You must provide a subject." 41 58 msgstr "" 42 59 43 #: plugins-test/contactMe//_public.php:9660 #: ../hg-plugins/contactMe/_public.php:105 44 61 msgid "You must write a message." 45 62 msgstr "" 46 63 47 #: plugins-test/contactMe//_public.php:11264 #: ../hg-plugins/contactMe/_public.php:121 48 65 msgid "No valid contact recipient was found." 49 66 msgstr "" 50 67 51 #: plugins-test/contactMe//_public.php:13368 #: ../hg-plugins/contactMe/_public.php:142 52 69 msgid "Message seems to be a spam." 53 70 msgstr "" 54 71 55 #: plugins-test/contactMe//_public.php:15672 #: ../hg-plugins/contactMe/_public.php:165 56 73 msgid "" 57 74 "Hi there!\n" … … 60 77 msgstr "" 61 78 62 #: plugins-test/contactMe//_public.php:15879 #: ../hg-plugins/contactMe/_public.php:167 63 80 #, php-format 64 81 msgid "Blog: %s" 65 82 msgstr "" 66 83 67 #: plugins-test/contactMe//_public.php:15984 #: ../hg-plugins/contactMe/_public.php:168 68 85 #, php-format 69 86 msgid "Message from: %s <%s>" 70 87 msgstr "" 71 88 72 #: plugins-test/contactMe//_public.php:16089 #: ../hg-plugins/contactMe/_public.php:169 73 90 #, php-format 74 91 msgid "Website: %s" 75 92 msgstr "" 76 93 77 #: plugins-test/contactMe//_public.php:16194 #: ../hg-plugins/contactMe/_public.php:170 78 95 msgid "Message:" 79 96 msgstr "" 80 97 81 #: plugins-test/contactMe//_widgets.php:2198 #: ../hg-plugins/contactMe/_widgets.php:21 82 99 msgid "Contact" 83 100 msgstr "" 84 101 85 #: plugins-test/contactMe//_widgets.php:22 86 msgid "Link title:" 87 msgstr "" 88 89 #: plugins-test/contactMe//index.php:28 102 #: ../hg-plugins/contactMe/index.php:28 90 103 msgid "<p>You can use the following form to send me an e-mail.</p>" 91 104 msgstr "" 92 105 93 #: plugins-test/contactMe//index.php:32106 #: ../hg-plugins/contactMe/index.php:32 94 107 msgid "<p style=\"color:green\"><strong>Thank you for your message.</strong></p>" 95 108 msgstr "" 96 109 97 #: plugins-test/contactMe//index.php:36110 #: ../hg-plugins/contactMe/index.php:36 98 111 #, php-format 99 112 msgid "<p style=\"color:red\"><strong>An error occured:</strong> %s</p>" 100 113 msgstr "" 101 114 102 #: plugins-test/contactMe//index.php:52115 #: ../hg-plugins/contactMe/index.php:52 103 116 msgid "No page title." 104 117 msgstr "" 105 118 106 #: plugins-test/contactMe//index.php:56119 #: ../hg-plugins/contactMe/index.php:56 107 120 msgid "No success message." 108 121 msgstr "" 109 122 110 #: plugins-test/contactMe//index.php:60123 #: ../hg-plugins/contactMe/index.php:60 111 124 msgid "No error message." 112 125 msgstr "" 113 126 114 #: plugins-test/contactMe//index.php:73127 #: ../hg-plugins/contactMe/index.php:73 115 128 #, php-format 116 129 msgid "%s is not a valid e-mail address." 117 130 msgstr "" 118 131 119 #: plugins-test/contactMe//index.php:112132 #: ../hg-plugins/contactMe/index.php:112 120 133 msgid "Setting have been successfully updated." 121 134 msgstr "" 122 135 123 #: plugins-test/contactMe//index.php:117136 #: ../hg-plugins/contactMe/index.php:117 124 137 msgid "E-Mail settings" 125 138 msgstr "" 126 139 127 #: plugins-test/contactMe//index.php:118140 #: ../hg-plugins/contactMe/index.php:118 128 141 msgid "Comma separated recipients list:" 129 142 msgstr "" 130 143 131 #: plugins-test/contactMe//index.php:120144 #: ../hg-plugins/contactMe/index.php:120 132 145 msgid "Empty recipients list to disable contact page." 133 146 msgstr "" 134 147 135 #: plugins-test/contactMe//index.php:121148 #: ../hg-plugins/contactMe/index.php:121 136 149 msgid "E-Mail subject prefix:" 137 150 msgstr "" 138 151 139 #: plugins-test/contactMe//index.php:123152 #: ../hg-plugins/contactMe/index.php:123 140 153 msgid "This will be prepend to e-mail subject" 141 154 msgstr "" 142 155 143 #: plugins-test/contactMe//index.php:130156 #: ../hg-plugins/contactMe/index.php:130 144 157 msgid "Use comments spam filter" 145 158 msgstr "" 146 159 147 #: plugins-test/contactMe//index.php:136160 #: ../hg-plugins/contactMe/index.php:136 148 161 msgid "Presentation options" 149 162 msgstr "" 150 163 151 #: plugins-test/contactMe//index.php:137164 #: ../hg-plugins/contactMe/index.php:137 152 165 msgid "Page title:" 153 166 msgstr "" 154 167 155 #: plugins-test/contactMe//index.php:140168 #: ../hg-plugins/contactMe/index.php:140 156 169 msgid "Form caption:" 157 170 msgstr "" 158 171 159 #: plugins-test/contactMe//index.php:143172 #: ../hg-plugins/contactMe/index.php:143 160 173 msgid "Confirmation message:" 161 174 msgstr "" 162 175 163 #: plugins-test/contactMe//index.php:146176 #: ../hg-plugins/contactMe/index.php:146 164 177 msgid "Error message:" 165 178 msgstr "" 166 179 167 #: plugins-test/contactMe//index.php:149180 #: ../hg-plugins/contactMe/index.php:149 168 181 #, php-format 169 182 msgid "\"%s\" is the error message." 170 183 msgstr "" 171 184 172 #: plugins-test/contactMe//index.php:155 185 #: ../hg-plugins/contactMe/index.php:152 186 msgid "save" 187 msgstr "" 188 189 #: ../hg-plugins/contactMe/index.php:155 173 190 #, php-format 174 191 msgid "Don't forget to add a <a href=\"%s\">widget</a> linking to your contact page." -
plugins/contactMe/locales/fr/main.po
r267 r3148 7 7 "Project-Id-Version: Dotclear 2 contactMe module\n" 8 8 "Report-Msgid-Bugs-To: \n" 9 "POT-Creation-Date: 20 08-08-14 12:12+0200\n"10 "PO-Revision-Date: 20 08-11-27 09:01+0100\n"11 "Last-Translator: Kozlika <kozlika@free.fr>\n"9 "POT-Creation-Date: 2012-11-05 16:46+0100\n" 10 "PO-Revision-Date: 2012-11-05 16:48+0100\n" 11 "Last-Translator: Franck Paul <carnet.franck.paul@gmail.com>\n" 12 12 "Language-Team: \n" 13 "Language: fr\n" 13 14 "MIME-Version: 1.0\n" 14 15 "Content-Type: text/plain; charset=UTF-8\n" 15 16 "Content-Transfer-Encoding: 8bit\n" 16 "X-Poedit-Language: French\n" 17 "X-Generator: Poedit 1.5.4\n" 18 19 msgid "Message" 20 msgstr "Message" 21 22 msgid "Subject" 23 msgstr "Sujet" 17 24 18 25 msgid "Contact me" 19 26 msgstr "Contactez-moi" 20 27 21 msgid " Subject"22 msgstr " Sujet"28 msgid "Mail contact form" 29 msgstr "Formulaire de contact" 23 30 24 msgid "Message" 25 msgstr "Message" 31 msgid "ContactMe" 32 msgstr "Contact" 33 34 msgid "Add a simple contact form on your blog" 35 msgstr "Ajoute un formulaire simple de contact sur votre blog" 26 36 27 37 msgid "You must provide a name." … … 67 77 msgstr "Contact" 68 78 69 msgid "Link title:" 70 msgstr "Titre du lien :" 79 msgid "<p>You can use the following form to send me an e-mail.</p>" 80 msgstr "" 81 "<p>Vous pouvez utiliser le formulaire suivant pour m'envoyer un courrier " 82 "électronique.</p>" 71 83 72 msgid "<p>You can use the following form to send me an e-mail.</p>" 73 msgstr "<p>Vous pouvez utiliser le formulaire suivant pour m'envoyer un courrier électronique.</p>" 74 75 msgid "<p style=\"color:green\"><strong>Thank you for your message.</strong></p>" 76 msgstr "<p style=\"color:green\"><strong>Merci pour votre message.</strong></p>" 84 msgid "" 85 "<p style=\"color:green\"><strong>Thank you for your message.</strong></p>" 86 msgstr "" 87 "<p style=\"color:green\"><strong>Merci pour votre message.</strong></p>" 77 88 78 89 #, php-format 79 90 msgid "<p style=\"color:red\"><strong>An error occured:</strong> %s</p>" 80 msgstr "<p style=\"color:red\"><strong>Une erreur s'est produite :</strong> %s</p>" 91 msgstr "" 92 "<p style=\"color:red\"><strong>Une erreur s'est produite :</strong> %s</p>" 81 93 82 94 msgid "No page title." … … 133 145 msgstr "\"%s\" est le message d'erreur." 134 146 147 msgid "save" 148 msgstr "enregistrer" 149 135 150 #, php-format 136 msgid "Don't forget to add a <a href=\"%s\">widget</a> linking to your contact page." 137 msgstr "N'oubliez pas d'ajouter un <a href=\"%s\">widget</a> insérant un lien vers votre page de contact." 151 msgid "" 152 "Don't forget to add a <a href=\"%s\">widget</a> linking to your contact page." 153 msgstr "" 154 "N'oubliez pas d'ajouter un <a href=\"%s\">widget</a> insérant un lien vers " 155 "votre page de contact." 138 156 157 #~ msgid "Link title:" 158 #~ msgstr "Titre du lien :" 159 160 msgid "Link to the contact form" 161 msgstr "Lien vers le formulaire de contact"
Note: See TracChangeset
for help on using the changeset viewer.