Dotclear

Changeset 3148


Ignore:
Timestamp:
08/01/13 11:34:50 (10 years ago)
Author:
brol
Message:

upload de la v1.3 présente sur DA

Location:
plugins/contactMe
Files:
2 added
6 edited

Legend:

Unmodified
Added
Removed
  • plugins/contactMe/_define.php

    r3061 r3148  
    1616     /* Description*/    "Add a simple contact form on your blog", 
    1717     /* Author */        "Olivier Meunier and contributors", 
    18      /* Version */       '1.2', 
     18     /* Version */       '1.3', 
    1919     /* Permissions */   'admin' 
    2020); 
  • plugins/contactMe/_public.php

    r3061 r3148  
    277277          global $core; 
    278278           
    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')) { 
    280281               return; 
    281282          } 
     
    286287           
    287288          $res = 
    288           '<div class="contact-me">'. 
     289          ($w->content_only ? '' : '<div class="contact-me'.($w->class ? ' '.html::escapeHTML($w->class) : '').'">'). 
    289290          ($w->title ? '<h2>'.html::escapeHTML($w->title).'</h2>' : ''). 
    290291          '<p><a href="'.$core->blog->url.$core->url->getBase('contactme').'">'. 
    291292          ($w->link_title ? html::escapeHTML($w->link_title) : __('Contact me')). 
    292293          '</a></p>'. 
    293           '</div>'; 
     294          ($w->content_only ? '' : '</div>'); 
    294295           
    295296          return $res; 
  • plugins/contactMe/_widgets.php

    r2121 r3148  
    1818     public static function initWidgets($w) 
    1919     { 
    20           $w->create('contactMe',__('Contact me'),array('tplContactMe','contactMeWidget')); 
     20          $w->create('contactMe',__('Contact me'),array('tplContactMe','contactMeWidget'),null,__('Link to the contact form')); 
    2121          $w->contactMe->setting('title',__('Title:'),__('Contact')); 
    2222          $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:'),''); 
    2432     } 
    2533} 
  • plugins/contactMe/index.php

    r2354 r3148  
    110110 
    111111if (!empty($_GET['upd'])) { 
    112      echo '<p class="message">'.__('Setting have been successfully updated.').'</p>'; 
     112     dcPage::message(__('Setting have been successfully updated.')); 
    113113} 
    114114 
     
    116116'<form action="'.$p_url.'" method="post">'. 
    117117'<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> '. 
     119form::field('cm_recipients',30,512,html::escapeHTML($cm_recipients),'maximal').'</p>'. 
    120120'<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> '. 
     122form::field('cm_subject_prefix',30,128,html::escapeHTML($cm_subject_prefix)).'</p>'. 
    123123'<p class="form-note">'.__('This will be prepend to e-mail subject').'</p>'; 
    124124 
     
    127127{ 
    128128     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>'; 
    131131} 
    132132 
     
    135135 
    136136'<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> '. 
    138139form::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> '. 
    141142form::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> '. 
    144146form::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> '. 
    147150form::textarea('cm_msg_error',30,2,html::escapeHTML($cm_msg_error)). 
    148 '</label></p>'. 
     151'</p>'. 
    149152'<p class="form-note">'.__('"%s" is the error message.').'</p>'. 
    150153'</fieldset>'. 
  • plugins/contactMe/locales/_pot/main.pot

    r227 r3148  
    88"Project-Id-Version: Dotclear 2 contactMe module\n" 
    99"Report-Msgid-Bugs-To: \n" 
    10 "POT-Creation-Date: 2008-08-14 12:12+0200\n" 
     10"POT-Creation-Date: 2012-11-05 16:52+0100\n" 
    1111"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 
    1212"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 
    1313"Language-Team: LANGUAGE <LL@li.org>\n" 
     14"Language: \n" 
    1415"MIME-Version: 1.0\n" 
    1516"Content-Type: text/plain; charset=CHARSET\n" 
    1617"Content-Transfer-Encoding: 8bit\n" 
    1718 
    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 
     21msgid "Message" 
     22msgstr "" 
     23 
     24#: ../hg-plugins/contactMe/__html_tpl_dummy.php:7 
     25#: ../hg-plugins/contactMe/_public.php:15 
     26msgid "Subject" 
     27msgstr "" 
     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 
    2437msgid "Contact me" 
    2538msgstr "" 
    2639 
    27 #: plugins-test/contactMe//_public.php:15 
    28 msgid "Subject" 
     40#: ../hg-plugins/contactMe/_admin.php:33 
     41msgid "Mail contact form" 
    2942msgstr "" 
    3043 
    31 #: plugins-test/contactMe//_public.php:16 
    32 msgid "Message" 
     44#: ../hg-plugins/contactMe/_define.php:15 
     45msgid "ContactMe" 
    3346msgstr "" 
    3447 
    35 #: plugins-test/contactMe//_public.php:84 
     48#: ../hg-plugins/contactMe/_define.php:16 
     49msgid "Add a simple contact form on your blog" 
     50msgstr "" 
     51 
     52#: ../hg-plugins/contactMe/_public.php:93 
    3653msgid "You must provide a name." 
    3754msgstr "" 
    3855 
    39 #: plugins-test/contactMe//_public.php:92 
     56#: ../hg-plugins/contactMe/_public.php:101 
    4057msgid "You must provide a subject." 
    4158msgstr "" 
    4259 
    43 #: plugins-test/contactMe//_public.php:96 
     60#: ../hg-plugins/contactMe/_public.php:105 
    4461msgid "You must write a message." 
    4562msgstr "" 
    4663 
    47 #: plugins-test/contactMe//_public.php:112 
     64#: ../hg-plugins/contactMe/_public.php:121 
    4865msgid "No valid contact recipient was found." 
    4966msgstr "" 
    5067 
    51 #: plugins-test/contactMe//_public.php:133 
     68#: ../hg-plugins/contactMe/_public.php:142 
    5269msgid "Message seems to be a spam." 
    5370msgstr "" 
    5471 
    55 #: plugins-test/contactMe//_public.php:156 
     72#: ../hg-plugins/contactMe/_public.php:165 
    5673msgid "" 
    5774"Hi there!\n" 
     
    6077msgstr "" 
    6178 
    62 #: plugins-test/contactMe//_public.php:158 
     79#: ../hg-plugins/contactMe/_public.php:167 
    6380#, php-format 
    6481msgid "Blog: %s" 
    6582msgstr "" 
    6683 
    67 #: plugins-test/contactMe//_public.php:159 
     84#: ../hg-plugins/contactMe/_public.php:168 
    6885#, php-format 
    6986msgid "Message from: %s <%s>" 
    7087msgstr "" 
    7188 
    72 #: plugins-test/contactMe//_public.php:160 
     89#: ../hg-plugins/contactMe/_public.php:169 
    7390#, php-format 
    7491msgid "Website: %s" 
    7592msgstr "" 
    7693 
    77 #: plugins-test/contactMe//_public.php:161 
     94#: ../hg-plugins/contactMe/_public.php:170 
    7895msgid "Message:" 
    7996msgstr "" 
    8097 
    81 #: plugins-test/contactMe//_widgets.php:21 
     98#: ../hg-plugins/contactMe/_widgets.php:21 
    8299msgid "Contact" 
    83100msgstr "" 
    84101 
    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 
    90103msgid "<p>You can use the following form to send me an e-mail.</p>" 
    91104msgstr "" 
    92105 
    93 #: plugins-test/contactMe//index.php:32 
     106#: ../hg-plugins/contactMe/index.php:32 
    94107msgid "<p style=\"color:green\"><strong>Thank you for your message.</strong></p>" 
    95108msgstr "" 
    96109 
    97 #: plugins-test/contactMe//index.php:36 
     110#: ../hg-plugins/contactMe/index.php:36 
    98111#, php-format 
    99112msgid "<p style=\"color:red\"><strong>An error occured:</strong> %s</p>" 
    100113msgstr "" 
    101114 
    102 #: plugins-test/contactMe//index.php:52 
     115#: ../hg-plugins/contactMe/index.php:52 
    103116msgid "No page title." 
    104117msgstr "" 
    105118 
    106 #: plugins-test/contactMe//index.php:56 
     119#: ../hg-plugins/contactMe/index.php:56 
    107120msgid "No success message." 
    108121msgstr "" 
    109122 
    110 #: plugins-test/contactMe//index.php:60 
     123#: ../hg-plugins/contactMe/index.php:60 
    111124msgid "No error message." 
    112125msgstr "" 
    113126 
    114 #: plugins-test/contactMe//index.php:73 
     127#: ../hg-plugins/contactMe/index.php:73 
    115128#, php-format 
    116129msgid "%s is not a valid e-mail address." 
    117130msgstr "" 
    118131 
    119 #: plugins-test/contactMe//index.php:112 
     132#: ../hg-plugins/contactMe/index.php:112 
    120133msgid "Setting have been successfully updated." 
    121134msgstr "" 
    122135 
    123 #: plugins-test/contactMe//index.php:117 
     136#: ../hg-plugins/contactMe/index.php:117 
    124137msgid "E-Mail settings" 
    125138msgstr "" 
    126139 
    127 #: plugins-test/contactMe//index.php:118 
     140#: ../hg-plugins/contactMe/index.php:118 
    128141msgid "Comma separated recipients list:" 
    129142msgstr "" 
    130143 
    131 #: plugins-test/contactMe//index.php:120 
     144#: ../hg-plugins/contactMe/index.php:120 
    132145msgid "Empty recipients list to disable contact page." 
    133146msgstr "" 
    134147 
    135 #: plugins-test/contactMe//index.php:121 
     148#: ../hg-plugins/contactMe/index.php:121 
    136149msgid "E-Mail subject prefix:" 
    137150msgstr "" 
    138151 
    139 #: plugins-test/contactMe//index.php:123 
     152#: ../hg-plugins/contactMe/index.php:123 
    140153msgid "This will be prepend to e-mail subject" 
    141154msgstr "" 
    142155 
    143 #: plugins-test/contactMe//index.php:130 
     156#: ../hg-plugins/contactMe/index.php:130 
    144157msgid "Use comments spam filter" 
    145158msgstr "" 
    146159 
    147 #: plugins-test/contactMe//index.php:136 
     160#: ../hg-plugins/contactMe/index.php:136 
    148161msgid "Presentation options" 
    149162msgstr "" 
    150163 
    151 #: plugins-test/contactMe//index.php:137 
     164#: ../hg-plugins/contactMe/index.php:137 
    152165msgid "Page title:" 
    153166msgstr "" 
    154167 
    155 #: plugins-test/contactMe//index.php:140 
     168#: ../hg-plugins/contactMe/index.php:140 
    156169msgid "Form caption:" 
    157170msgstr "" 
    158171 
    159 #: plugins-test/contactMe//index.php:143 
     172#: ../hg-plugins/contactMe/index.php:143 
    160173msgid "Confirmation message:" 
    161174msgstr "" 
    162175 
    163 #: plugins-test/contactMe//index.php:146 
     176#: ../hg-plugins/contactMe/index.php:146 
    164177msgid "Error message:" 
    165178msgstr "" 
    166179 
    167 #: plugins-test/contactMe//index.php:149 
     180#: ../hg-plugins/contactMe/index.php:149 
    168181#, php-format 
    169182msgid "\"%s\" is the error message." 
    170183msgstr "" 
    171184 
    172 #: plugins-test/contactMe//index.php:155 
     185#: ../hg-plugins/contactMe/index.php:152 
     186msgid "save" 
     187msgstr "" 
     188 
     189#: ../hg-plugins/contactMe/index.php:155 
    173190#, php-format 
    174191msgid "Don't forget to add a <a href=\"%s\">widget</a> linking to your contact page." 
  • plugins/contactMe/locales/fr/main.po

    r267 r3148  
    77"Project-Id-Version: Dotclear 2 contactMe module\n" 
    88"Report-Msgid-Bugs-To: \n" 
    9 "POT-Creation-Date: 2008-08-14 12:12+0200\n" 
    10 "PO-Revision-Date: 2008-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" 
    1212"Language-Team: \n" 
     13"Language: fr\n" 
    1314"MIME-Version: 1.0\n" 
    1415"Content-Type: text/plain; charset=UTF-8\n" 
    1516"Content-Transfer-Encoding: 8bit\n" 
    16 "X-Poedit-Language: French\n" 
     17"X-Generator: Poedit 1.5.4\n" 
     18 
     19msgid "Message" 
     20msgstr "Message" 
     21 
     22msgid "Subject" 
     23msgstr "Sujet" 
    1724 
    1825msgid "Contact me" 
    1926msgstr "Contactez-moi" 
    2027 
    21 msgid "Subject" 
    22 msgstr "Sujet" 
     28msgid "Mail contact form" 
     29msgstr "Formulaire de contact" 
    2330 
    24 msgid "Message" 
    25 msgstr "Message" 
     31msgid "ContactMe" 
     32msgstr "Contact" 
     33 
     34msgid "Add a simple contact form on your blog" 
     35msgstr "Ajoute un formulaire simple de contact sur votre blog" 
    2636 
    2737msgid "You must provide a name." 
     
    6777msgstr "Contact" 
    6878 
    69 msgid "Link title:" 
    70 msgstr "Titre du lien :" 
     79msgid "<p>You can use the following form to send me an e-mail.</p>" 
     80msgstr "" 
     81"<p>Vous pouvez utiliser le formulaire suivant pour m'envoyer un courrier " 
     82"électronique.</p>" 
    7183 
    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>" 
     84msgid "" 
     85"<p style=\"color:green\"><strong>Thank you for your message.</strong></p>" 
     86msgstr "" 
     87"<p style=\"color:green\"><strong>Merci pour votre message.</strong></p>" 
    7788 
    7889#, php-format 
    7990msgid "<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>" 
     91msgstr "" 
     92"<p style=\"color:red\"><strong>Une erreur s'est produite :</strong> %s</p>" 
    8193 
    8294msgid "No page title." 
     
    133145msgstr "\"%s\" est le message d'erreur." 
    134146 
     147msgid "save" 
     148msgstr "enregistrer" 
     149 
    135150#, 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." 
     151msgid "" 
     152"Don't forget to add a <a href=\"%s\">widget</a> linking to your contact page." 
     153msgstr "" 
     154"N'oubliez pas d'ajouter un <a href=\"%s\">widget</a> insérant un lien vers " 
     155"votre page de contact." 
    138156 
     157#~ msgid "Link title:" 
     158#~ msgstr "Titre du lien :" 
     159 
     160msgid "Link to the contact form" 
     161msgstr "Lien vers le formulaire de contact" 
Note: See TracChangeset for help on using the changeset viewer.

Sites map