Plugin Directory

Changeset 3437497


Ignore:
Timestamp:
01/12/2026 09:18:21 AM (6 weeks ago)
Author:
pietror91
Message:

Fix settings and plugin required files

Location:
rapisafe-multi-file-cf7/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • rapisafe-multi-file-cf7/trunk/rapisafe-multi-file-cf7.php

    r3437456 r3437497  
    55 * Description: Secure multiple file upload field for Contact Form 7.
    66 * Text Domain: rapisafe-multi-file-cf7
    7  * Version: 1.0.0
     7 * Version: 1.0.1
    88 * Requires at least: 5.4
    99 * Domain Path: /languages
     
    1515 *
    1616 */
     17use RapiSafe\MultiFileCF7\RSMFCF7_Plugin;
    1718defined( 'ABSPATH' ) || exit;
    1819if ( function_exists( 'rsmfcf7_fs' ) ) {
     
    5657    do_action( 'rsmfcf7_fs_loaded' );
    5758}
    58 use RapiSafe\MultiFileCF7\RSMFCF7_Plugin;
    5959require_once __DIR__ . '/src/RSMFCF7_Plugin.php';
    6060require_once __DIR__ . '/src/RSMFCF7_FormTagHandler.php';
     
    6969require_once __DIR__ . '/src/RSMFCF7_BeforeSendMail.php';
    7070require_once __DIR__ . '/src/RSMFCF7_Helpers.php';
    71 require_once __DIR__ . '/src/Settings/RSMFCF7_MultiFileTabSettings.php';
     71require_once __DIR__ . '/src/settings/RSMFCF7_MultiFileTabSettings.php';
    7272require_once __DIR__ . '/src/RSMFCF7_Assets.php';
    7373define( 'RSMFCF7_PATH', plugin_dir_path( __FILE__ ) );
  • rapisafe-multi-file-cf7/trunk/readme.txt

    r3437472 r3437497  
    66Requires at least: 5.4
    77Tested up to: 6.9
    8 Stable tag: 1.0.0
     8Stable tag: 1.0.1
    99Requires PHP: 7.2
    1010License: GPLv2 or later
     
    7171Add a multi-file upload field using the shortcode:
    7272
    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]`
    7474
    7575=== Available parameters ===
     
    8181* 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.
    8282* 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')
    8484
    8585
     
    143143== Screenshots ==
    144144
    145 1. Upload Field
     1451. Tag Generator
    1461462. Multi File Settings - Style
    1471473. Multi File Settings - General
    148 4. Tag Generator
     1484. Upload Field
    1491495. Fast Demo
    150150
     
    161161== Upgrade Notice ==
    162162
     163= 1.0.1 =
     164Fix settings and plugin required files
     165
    163166= 1.0.0 =
    164167First public release.
  • rapisafe-multi-file-cf7/trunk/src/RSMFCF7_Helpers.php

    r3437456 r3437497  
    9191
    9292    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            }
    9698        }
    9799        return '';
  • rapisafe-multi-file-cf7/trunk/src/settings/RSMFCF7_MultiFileTabSettings.php

    r3437456 r3437497  
    6161        $cf7_data = get_post_meta( $post_id, "multi-file-upload-contact-form-7", true );
    6262        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,
    6974        ] );
    7075    }
Note: See TracChangeset for help on using the changeset viewer.