Changeset 17491
- Timestamp:
- Aug 9, 2012, 3:31:15 PM (12 years ago)
- Location:
- extensions/ContactForm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/ContactForm/include/functions.inc.php
r17483 r17491 9 9 global $tokens, $page, $conf; 10 10 11 define('CONTACT_FORM_PUBLIC', make_index_url(array('section' => 'contact')) . '/');11 if (!defined('CONTACT_FORM_PUBLIC')) define('CONTACT_FORM_PUBLIC', make_index_url(array('section' => 'contact')) . '/'); 12 12 13 13 if ($tokens[0] == 'contact') … … 42 42 if ( !count(get_contact_emails()) ) return; 43 43 44 if (!defined('CONTACT_FORM_PUBLIC')) define('CONTACT_FORM_PUBLIC', make_index_url(array('section' => 'contact 2')) . '/');44 if (!defined('CONTACT_FORM_PUBLIC')) define('CONTACT_FORM_PUBLIC', make_index_url(array('section' => 'contact')) . '/'); 45 45 46 46 $menu = &$menu_ref_arr[0]; … … 64 64 )); 65 65 return $menu; 66 } 67 68 /** 69 * change contact on link on footer 70 */ 71 function contact_form_footer_link($content, &$smarty) 72 { 73 $search = '<a href="mailto:{$CONTACT_MAIL}?subject={\'A comment on your site\'|@translate|@escape:url}">'; 74 $replace = '<a href="'.CONTACT_FORM_PUBLIC.'">'; 75 return str_replace($search, $replace, $content); 66 76 } 67 77 -
extensions/ContactForm/language/fr_FR/plugin.lang.php
r17483 r17491 33 33 $lang['E-mail address is mandatory'] = 'Présence de l\'e-mail obligatoire'; 34 34 $lang['Name is mandatory'] = 'Présence du nom obligatoire'; 35 $lang['E-mail configuration'] = ' E-mail configuration';35 $lang['E-mail configuration'] = 'Configuration des e-mails'; 36 36 $lang['E-mail format :'] = 'Format des e-mails :'; 37 37 $lang['Plain text'] = 'Texte brut'; -
extensions/ContactForm/main.inc.php
r17483 r17491 22 22 { 23 23 add_event_handler('get_admin_plugin_menu_links', 'contact_form_admin_menu'); 24 define('CONTACT_FORM_PUBLIC', make_index_url(array('section' => 'contact')) . '/'); 24 25 } 25 26 … … 29 30 function contact_form_init() 30 31 { 31 global $conf ;32 global $conf, $template; 32 33 $conf['ContactForm'] = unserialize($conf['ContactForm']); 33 34 … … 38 39 contact_form_initialize_emails(); 39 40 } 41 42 $template->set_prefilter('tail', 'contact_form_footer_link'); 40 43 } 41 44
Note: See TracChangeset
for help on using the changeset viewer.