Changeset 625240
- Timestamp:
- 11/14/2012 03:39:24 PM (13 years ago)
- Location:
- multilang-contact-form/trunk
- Files:
-
- 2 edited
-
ml-contactform.php (modified) (4 diffs)
-
readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
multilang-contact-form/trunk/ml-contactform.php
r512325 r625240 3 3 Plugin Name: Multilang Contactform 4 4 Plugin URI: http://donkeymedia.eu/2010/08/26/worpress-multilingual-contactform/ 5 Description: Translatable Contacform Plugin. Based Ryan Duff and Peter Westwood WP-ContactForm (http://blog.ftwr.co.uk/wordpress/) on WP Contact Form is a drop in form for users to contact you. It can be implemented on a page or a post. It currently works with WordPress 2.0+5 Description: Fully Translatable Contacform Plugin. Based Ryan Duff and Peter Westwood WP-ContactForm. The Contact-Form can be implemented on a page or a post. It currently works with WordPress 2.0+ <strong>Update note:</strong> The tag has changed to <strong>[contact_form]</strong> 6 6 Author: Thorsten Krug 7 7 Author URI: http://donkeymedia.eu 8 Version: 1. 28 Version: 1.5 9 9 */ 10 10 … … 126 126 } 127 127 128 129 /* Wrapper function to use in a Template .*/ 130 function mlcf_form(){ 131 mlcf_callback($content, true); 132 } 133 134 128 /* Replace Conten Tag */ 129 function mclf_tag_replace( $atts ) { 130 return mlcf_form(); 131 } 135 132 /*Wrapper function which calls the form.*/ 136 function mlcf_ callback( $content , $templateTag=false) {133 function mlcf_form() { 137 134 global $mlcf_strings; 138 135 139 /* Run the input check. */140 if(false === strpos($content, '<!--contact form-->') and !$templateTag) {141 return $content;142 }143 144 136 //recaptcha 145 137 $recaptcha_html =''; … … 257 249 </form> 258 250 </div>'; 259 if ($templateTag){ 260 echo $form; 261 }else{ 262 return str_replace('<!--contact form-->', $form, $content); 263 } 251 return $form; 264 252 } 265 253 } … … 332 320 } 333 321 } 334 /* don't let Tinymce remove all comments */335 function mlcf_mce_valid_elements($init){336 $init['extended_valid_elements'] = '!--,'.$init['extended_valid_elements'];337 }338 322 339 323 /* Action calls for all functions */ 340 324 add_action('admin_menu', 'mlcf_add_options_page'); 341 add_filter('the_content', 'mlcf_callback', 7); 342 add_filter('tiny_mce_before_init', 'mlcf_mce_valid_elements'); 325 add_shortcode( 'contact_form', 'mclf_tag_replace' ); 343 326 344 327 ?> -
multilang-contact-form/trunk/readme.txt
r515820 r625240 1 1 === Multilang Contact Form === 2 Tags: contact, template 2 Tags: contact, template, multilang, qtranslate 3 3 Contributors: digitaldonkey, westi, ryanduff, firas 4 4 Requires at least: 1.5 5 Tested up to: 3. 3.16 Stable tag: 1.4.35 Tested up to: 3.4.2 6 Stable tag: Trunk 7 7 Donate link: http://donkeymedia.eu/2010/08/26/worpress-multilingual-contactform/ 8 8 … … 16 16 2. Activate the plugin on the plugin screen. 17 17 3. Configure the plugin on it's settings screen. Settings ... Contact Form 18 4. Add the ` < !--contact form-->`(without the space at before the exclamation mark!)to the body of the post/page in the editors HTML mode.18 4. Add the `[contact_form]` to the body of the post/page in the editors HTML mode. 19 19 20 20 … … 23 23 = How do I add the contact form to a post/page? = 24 24 25 You need to add the ` < !--contact form-->` (without the space at before the exclamation mark!)to the body of the post/page in the editors HTML mode.25 You need to add the `[contact_form]` to the body of the post/page in the editors HTML mode. 26 26 27 27 == Screenshots == … … 31 31 32 32 == Upgrade Notice == 33 34 = 1.5 = 35 Changed Tag-Replace to current Wordpress Standard. 36 This will fix the WYSISYG errors appearing in latest Wordpress versions 33 37 34 38 = 1.4 =
Note: See TracChangeset
for help on using the changeset viewer.