Changeset 3437497
- Timestamp:
- 01/12/2026 09:18:21 AM (6 weeks ago)
- Location:
- rapisafe-multi-file-cf7/trunk
- Files:
-
- 4 edited
-
rapisafe-multi-file-cf7.php (modified) (4 diffs)
-
readme.txt (modified) (5 diffs)
-
src/RSMFCF7_Helpers.php (modified) (1 diff)
-
src/settings/RSMFCF7_MultiFileTabSettings.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
rapisafe-multi-file-cf7/trunk/rapisafe-multi-file-cf7.php
r3437456 r3437497 5 5 * Description: Secure multiple file upload field for Contact Form 7. 6 6 * Text Domain: rapisafe-multi-file-cf7 7 * Version: 1.0. 07 * Version: 1.0.1 8 8 * Requires at least: 5.4 9 9 * Domain Path: /languages … … 15 15 * 16 16 */ 17 use RapiSafe\MultiFileCF7\RSMFCF7_Plugin; 17 18 defined( 'ABSPATH' ) || exit; 18 19 if ( function_exists( 'rsmfcf7_fs' ) ) { … … 56 57 do_action( 'rsmfcf7_fs_loaded' ); 57 58 } 58 use RapiSafe\MultiFileCF7\RSMFCF7_Plugin;59 59 require_once __DIR__ . '/src/RSMFCF7_Plugin.php'; 60 60 require_once __DIR__ . '/src/RSMFCF7_FormTagHandler.php'; … … 69 69 require_once __DIR__ . '/src/RSMFCF7_BeforeSendMail.php'; 70 70 require_once __DIR__ . '/src/RSMFCF7_Helpers.php'; 71 require_once __DIR__ . '/src/ Settings/RSMFCF7_MultiFileTabSettings.php';71 require_once __DIR__ . '/src/settings/RSMFCF7_MultiFileTabSettings.php'; 72 72 require_once __DIR__ . '/src/RSMFCF7_Assets.php'; 73 73 define( 'RSMFCF7_PATH', plugin_dir_path( __FILE__ ) ); -
rapisafe-multi-file-cf7/trunk/readme.txt
r3437472 r3437497 6 6 Requires at least: 5.4 7 7 Tested up to: 6.9 8 Stable tag: 1.0. 08 Stable tag: 1.0.1 9 9 Requires PHP: 7.2 10 10 License: GPLv2 or later … … 71 71 Add a multi-file upload field using the shortcode: 72 72 73 [multi_file_upload multi_file_upload-903 minFile:1 maxFile:3 maxFileSize:10mb fileTypes:jpeg|png attachmentMode:zip] 73 `[multi_file_upload multi_file_upload-903 minFile:1 maxFile:3 maxFileSize:10mb fileTypes:jpeg|png attachmentMode:zip zipPassword:Password]` 74 74 75 75 === Available parameters === … … 81 81 * mailBodyMode — Specifies how information about uploaded files will appear in the email body. You can choose either "file-list" or "zip-secure-link" (the "zip-secure-link" option is available in the Premium version only). To include this information in your email, insert the shortcode tag within the Body section on the Mail tab. 82 82 * attachmentMode — Upload mode: choose 'files' or 'zip'. To include uploaded files in emails, enter the shortcode tag in the "Mail" tab under the "Attachment" field. 83 * zipPassword — Optional password for ZIP file : only works if attachmentMode is zip or mailBodyMode is 'zip-secure-link' (this parameter is available in the Premium version only).83 * zipPassword — Optional password for ZIP file (only works if attachmentMode is zip or mailBodyMode is 'zip-secure-link') 84 84 85 85 … … 143 143 == Screenshots == 144 144 145 1. Upload Field145 1. Tag Generator 146 146 2. Multi File Settings - Style 147 147 3. Multi File Settings - General 148 4. Tag Generator148 4. Upload Field 149 149 5. Fast Demo 150 150 … … 161 161 == Upgrade Notice == 162 162 163 = 1.0.1 = 164 Fix settings and plugin required files 165 163 166 = 1.0.0 = 164 167 First public release. -
rapisafe-multi-file-cf7/trunk/src/RSMFCF7_Helpers.php
r3437456 r3437497 91 91 92 92 public static function sanitizeHexColorValue( $color ) { 93 $color = trim( $color ); 94 if ( preg_match( '/^#([A-Fa-f0-9]{3}){1,2}$/', $color ) ) { 95 return $color; 93 if ( !empty( $color ) ) { 94 $color = trim( $color ); 95 if ( preg_match( '/^#([A-Fa-f0-9]{3}){1,2}$/', $color ) ) { 96 return $color; 97 } 96 98 } 97 99 return ''; -
rapisafe-multi-file-cf7/trunk/src/settings/RSMFCF7_MultiFileTabSettings.php
r3437456 r3437497 61 61 $cf7_data = get_post_meta( $post_id, "multi-file-upload-contact-form-7", true ); 62 62 return ( is_array( $cf7_data ) && !empty( $cf7_data ) ? $cf7_data : [ 63 'bg-color' => '#FFFFFF', 64 'style' => 'file_list', 65 'border-style' => 'solid', 66 'font-color' => '#000000', 67 'border-color' => '#000000', 68 'max-ajax-sync-files' => 1, 63 'bg-color' => '#FFFFFF', 64 'style' => 'file_list', 65 'border-style' => 'solid', 66 'font-color' => '#000000', 67 'border-color' => '#000000', 68 'max-ajax-sync-files' => 1, 69 'enable-drag-and-drop' => 1, 70 'hide-svg-icon' => 0, 71 'hide-suggestion' => 0, 72 'box-preview-columns' => 3, 73 'enable-link-preview' => false, 69 74 ] ); 70 75 }
Note: See TracChangeset
for help on using the changeset viewer.