Changeset 19180


Ignore:
Timestamp:
Nov 26, 2012, 5:26:53 PM (11 years ago)
Author:
mistic100
Message:

add button 'Send copy to my email'

Location:
extensions/ContactForm
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • extensions/ContactForm/include/contact_form.inc.php

    r18331 r19180  
    2020    'subject' => trim($_POST['subject']),
    2121    'content' => $_POST['content'],
     22    'send_copy' => isset($_POST['send_copy']),
    2223   );
    2324 
  • extensions/ContactForm/include/functions.inc.php

    r18814 r19180  
    274274        $args
    275275      );
     276     
     277    if ( $comm['send_copy'] and !empty($comm['email']) )
     278    {
     279      trigger_event('send_mail',
     280        false, /* Result */
     281        trigger_event('send_mail_to', $args['from']),
     282        trigger_event('send_mail_subject', $subject),
     283        trigger_event('send_mail_content', $content),
     284        trigger_event('send_mail_headers', $headers),
     285        $args
     286      );
     287    }
    276288   
    277289    unset_make_full_url();
  • extensions/ContactForm/language/en_UK/plugin.lang.php

    r19119 r19180  
    5858$lang['Each category is displayed as a distinct "service" on the contact form (example: "Technical", "Commercial", "General question"). Using categories is not mandatory.'] = 'Each category is displayed as a distinct "service" on the contact form (example: "Technical", "Commercial", "General question"). Using categories is not mandatory.';
    5959$lang['Send'] = 'Send';
     60$lang['Send copy to my email'] = 'Send copy to my email';
    6061
    6162?>
  • extensions/ContactForm/language/fr_FR/plugin.lang.php

    r19119 r19180  
    5959$lang['Each category is displayed as a distinct "service" on the contact form (example: "Technical", "Commercial", "General question"). Using categories is not mandatory.'] = 'Chaque catégorie est affichée comme un "service" distinct sur la page de contact (exemple: "Technique", "Commercial", "Question générale"). Utiliser les catégories n\'est pas obligatoire.';
    6060$lang['Send'] = 'Envoyer';
     61$lang['Send copy to my email'] = 'Envoyer une copie à mon email';
    6162
    6263?>
  • extensions/ContactForm/template/contact_form.tpl

    r18814 r19180  
    5454
    5555<div class="contact">
    56   <form  method="post" action="{$F_ACTION}" class="filter">
     56  <form  method="post" action="{$F_ACTION}">
    5757    <table>
    5858      <tr>
     
    9999      <tr>
    100100        <td class="title">&nbsp;</td>
    101         <td><input class="submit" type="submit" name="send_mail" value="{'Send'|@translate}"></td>
     101        <td>
     102          <input class="submit" type="submit" name="send_mail" value="{'Send'|@translate}">
     103          <label><input type="checkbox" name="send_copy"> {'Send copy to my email'|@translate}</label>
     104        </td>
    102105      </tr>
    103106    </table>
  • extensions/ContactForm/template/mail/content_html.tpl

    r17662 r19180  
    1919<div id="the_content">
    2020  <p>
    21     {'Name'|@translate}: {$contact.author}<br>
    22     {'Email address'|@translate}: {$contact.email}
     21    <b>{'Name'|@translate}:</b> {$contact.author}<br>
     22    <b>{'Email address'|@translate}:</b> {$contact.email}
    2323    {if $contact.show_ip}<br>{'IP: %s'|@translate|@sprintf:$contact.ip}{/if}
    2424  </p>
Note: See TracChangeset for help on using the changeset viewer.