Changeset 3333079
- Timestamp:
- 07/23/2025 04:55:27 PM (7 months ago)
- Location:
- simple-redirect-contact-form-7
- Files:
-
- 4 edited
- 1 copied
-
tags/1.0.4 (copied) (copied from simple-redirect-contact-form-7/trunk)
-
tags/1.0.4/readme.txt (modified) (2 diffs)
-
tags/1.0.4/simple-redirect-contact-form-7.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/simple-redirect-contact-form-7.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
simple-redirect-contact-form-7/tags/1.0.4/readme.txt
r2917584 r3333079 4 4 Tags: mulika, contact form 7 redirect, contact form 7, cf7, redirect settings 5 5 Requires at least: 4.7 6 Tested up to: 6.2.2 7 Requires PHP: 7.0 8 Stable tag: 1.0.3 6 Tested up to: 6.8 7 Requires PHP: 7.4 8 Stable tag: 1.0.4 9 Requires Plugins: contact-form-7 9 10 License: GPLv2 or later 10 11 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 34 35 == Changelog == 35 36 36 = 1.0.0 = 37 * Added redirect settings. 37 = 1.0.4 = 38 * Updated for version compatibility. 39 40 41 = 1.0.3 = 42 * Small fixes, 43 44 45 = 1.0.2 = 46 * Updated for version compatibility. 47 38 48 39 49 = 1.0.1 = 40 50 * Added new redirect settings for on form submit. 41 51 42 = 1.0.2 = 43 * Updated for version compatibility. 52 53 = 1.0.0 = 54 * Added redirect settings. -
simple-redirect-contact-form-7/tags/1.0.4/simple-redirect-contact-form-7.php
r2917584 r3333079 2 2 /** 3 3 * Plugin Name: Simple Redirect - Contact Form 7 4 * Plugin URI: 4 * Plugin URI: https://wordpress.org/plugins/simple-redirect-contact-form-7/ 5 5 * Description: Redirect settings for Contact Form 7, Redirect after mail sent or form submit, Add settings line in form "Additional Settings" tab, <strong>on_mailsent_redirect_to: REDIRECT_URL</strong>, <strong>on_submit_redirect_to: REDIRECT_URL</strong> 6 * Version: 1.0. 36 * Version: 1.0.4 7 7 * Requires at least: 4.7 8 8 * Requires PHP: 7.0 … … 79 79 <!-- Simple Redirect - Contact Form 7 --> 80 80 <script> 81 <?php 82 foreach($micf7_settings as $form_id => $form_settings){ 83 foreach($form_settings as $setting_key=>$redirect_url){ 84 if( empty($redirect_url) ){ continue; } 85 $form_event = ''; 86 if( $setting_key == 'on_mailsent_redirect_url' || $setting_key == 'on_mailsent_redirect_to' ){ 87 $form_event = 'wpcf7mailsent'; 88 } 89 if( $setting_key == 'on_submit_redirect_to' ){ 90 $form_event = 'wpcf7submit'; 91 } 92 if( $form_event == '' ){ continue; } 93 ?> 94 document.addEventListener( '<?php echo $form_event;?>', function( event ) { 95 if('<?php echo $form_id;?>' == event.detail.contactFormId){ 96 window.location = '<?php echo $redirect_url;?>'; 97 } 98 }, false); 81 99 <?php 82 foreach($micf7_settings as $form_id => $form_settings){83 foreach($form_settings as $setting_key=>$redirect_url){84 if( empty($redirect_url) ){ continue; }85 $form_event = '';86 if( $setting_key == 'on_mailsent_redirect_url' || $setting_key == 'on_mailsent_redirect_to' ){87 $form_event = 'wpcf7mailsent';88 }89 if( $setting_key == 'on_submit_redirect_to' ){90 $form_event = 'wpcf7submit';91 }92 if( $form_event == '' ){ continue; }93 ?>94 document.addEventListener( '<?php echo $form_event;?>', function( event ) {95 if('<?php echo $form_id;?>' == event.detail.contactFormId){96 window.location = '<?php echo $redirect_url;?>';97 100 } 98 }, false); 99 <?php 100 } 101 } 102 ?> 101 } 102 ?> 103 103 </script> 104 104 <?php -
simple-redirect-contact-form-7/trunk/readme.txt
r2917584 r3333079 4 4 Tags: mulika, contact form 7 redirect, contact form 7, cf7, redirect settings 5 5 Requires at least: 4.7 6 Tested up to: 6.2.2 7 Requires PHP: 7.0 8 Stable tag: 1.0.3 6 Tested up to: 6.8 7 Requires PHP: 7.4 8 Stable tag: 1.0.4 9 Requires Plugins: contact-form-7 9 10 License: GPLv2 or later 10 11 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 34 35 == Changelog == 35 36 36 = 1.0.0 = 37 * Added redirect settings. 37 = 1.0.4 = 38 * Updated for version compatibility. 39 40 41 = 1.0.3 = 42 * Small fixes, 43 44 45 = 1.0.2 = 46 * Updated for version compatibility. 47 38 48 39 49 = 1.0.1 = 40 50 * Added new redirect settings for on form submit. 41 51 42 = 1.0.2 = 43 * Updated for version compatibility. 52 53 = 1.0.0 = 54 * Added redirect settings. -
simple-redirect-contact-form-7/trunk/simple-redirect-contact-form-7.php
r2917584 r3333079 2 2 /** 3 3 * Plugin Name: Simple Redirect - Contact Form 7 4 * Plugin URI: 4 * Plugin URI: https://wordpress.org/plugins/simple-redirect-contact-form-7/ 5 5 * Description: Redirect settings for Contact Form 7, Redirect after mail sent or form submit, Add settings line in form "Additional Settings" tab, <strong>on_mailsent_redirect_to: REDIRECT_URL</strong>, <strong>on_submit_redirect_to: REDIRECT_URL</strong> 6 * Version: 1.0. 36 * Version: 1.0.4 7 7 * Requires at least: 4.7 8 8 * Requires PHP: 7.0 … … 79 79 <!-- Simple Redirect - Contact Form 7 --> 80 80 <script> 81 <?php 82 foreach($micf7_settings as $form_id => $form_settings){ 83 foreach($form_settings as $setting_key=>$redirect_url){ 84 if( empty($redirect_url) ){ continue; } 85 $form_event = ''; 86 if( $setting_key == 'on_mailsent_redirect_url' || $setting_key == 'on_mailsent_redirect_to' ){ 87 $form_event = 'wpcf7mailsent'; 88 } 89 if( $setting_key == 'on_submit_redirect_to' ){ 90 $form_event = 'wpcf7submit'; 91 } 92 if( $form_event == '' ){ continue; } 93 ?> 94 document.addEventListener( '<?php echo $form_event;?>', function( event ) { 95 if('<?php echo $form_id;?>' == event.detail.contactFormId){ 96 window.location = '<?php echo $redirect_url;?>'; 97 } 98 }, false); 81 99 <?php 82 foreach($micf7_settings as $form_id => $form_settings){83 foreach($form_settings as $setting_key=>$redirect_url){84 if( empty($redirect_url) ){ continue; }85 $form_event = '';86 if( $setting_key == 'on_mailsent_redirect_url' || $setting_key == 'on_mailsent_redirect_to' ){87 $form_event = 'wpcf7mailsent';88 }89 if( $setting_key == 'on_submit_redirect_to' ){90 $form_event = 'wpcf7submit';91 }92 if( $form_event == '' ){ continue; }93 ?>94 document.addEventListener( '<?php echo $form_event;?>', function( event ) {95 if('<?php echo $form_id;?>' == event.detail.contactFormId){96 window.location = '<?php echo $redirect_url;?>';97 100 } 98 }, false); 99 <?php 100 } 101 } 102 ?> 101 } 102 ?> 103 103 </script> 104 104 <?php
Note: See TracChangeset
for help on using the changeset viewer.