Plugin Directory

Changeset 3109374

Timestamp:
06/28/2024 04:56:26 PM (4 weeks ago)
Author:
alikhallad
Message:

Bug fixes for the "email" action

Location:
mega-forms
Files:
466 added
5 edited

Legend:

Unmodified
Added
Removed
  • mega-forms/trunk/README.txt

    r3031844 r3109374  
    44Tags: drag and drop form builder, ajax forms, contact form recaptcha, multi step ajax form, file upload forms, contact form, forms, custom form, contact form plugin, wordpress form plugin, message form
    55Requires at least: 5.6
    6 Tested up to: 6.4.3
    7 Stable tag: 1.4.3
     6Tested up to: 6.
     7Stable tag: 1.4.
    88Requires PHP: 7.4
    99License: GPLv2 or later
     
    350350= 1.4.3 =
    351351- Bug fixes ( date range field validation error + others )
     352
     353
  • mega-forms/trunk/common/partials/form/actions/class-mega-forms-action-email.php

    r2954046 r3109374  
    7373            $from_name = mfget_option('email_from_name', get_bloginfo('name'));
    7474        }
    75         if (empty($from_email) || (!is_email($from_email) && strpos($from_email, '{mf:') !== false)) {
    76             $from_email =  mfget_option('email_from_address', get_bloginfo('admin_email'));
     75
     76        if (strpos($from_email, '{mf:wp') !== false) {
     77            $from_email = $this->process_merge_tags($from_email, $postedFields);
     78        }
     79
     80        if (empty($from_email) || !is_email($from_email)) {
     81            $from_email = mfget_option('email_from_address', get_bloginfo('admin_email'));
    7782        }
    7883
     
    147152        $args['default'] = '';
    148153        $args['placeholder'] = htmlspecialchars_decode($default_from_address);
    149         $args['inline_modal'] = array('fields', 'form', 'wp', 'misc');
     154        $args['inline_modal'] = array('');
    150155
    151156        return mfinput('text', $args, true);
  • mega-forms/trunk/common/partials/form/fields/base/class-mega-forms-field-choice.php

    r3021998 r3109374  
    3131      'field_choices'
    3232    ),
     33
     34
     35
     36
    3337  );
    3438  public $editorExceptions = array(
     
    169173    return $input;
    170174  }
    171 
     175  /**
     176   * Returns the field for the choice alignment.
     177   *
     178   * @return string
     179   */
     180  // protected function field_alignment()
     181  // {
     182
     183  //   $label     = __('Alignment', 'megaforms');
     184  //   $field_key = 'field_alignment';
     185  //   $type     = $this->type == 'checkboxes' ? 'checkbox' : 'radio';
     186  //   $value    = $this->get_setting_value($field_key);
     187  //   $desc     = __('Add choices to this field using the repeatable inputs below.', 'megaforms');
     188
     189  //   $args['id'] = $this->get_field_key('options', $field_key);
     190  //   $args['label'] = $label;
     191  //   $args['after_label'] = $this->get_description_tip_markup($label, $desc);
     192  //   $args['value'] = $value;
     193  //   $args['options'] = array(
     194  //     'vertical'   => __('Vertical', 'megaforms'),
     195  //     'horizontal' => __('Horizontal', 'megaforms'),
     196  //     'grid'       => __('Grid', 'megaforms'),
     197  //   );
     198  //   $args['default'] = 'vertical';
     199  //   $args['onchange_preview'] = $this->get_js_helper_rules('none', 'update_choice_alignment');
     200
     201  //   $input = mfinput('radio', $args, true);
     202  //   return $input;
     203  // }
     204  /**
     205   * Returns the field for the choice alignment.
     206   *
     207   * @return string
     208   */
     209  // protected function field_style()
     210  // {
     211
     212  //   $label     = __('Style', 'megaforms');
     213  //   $field_key = 'field_style';
     214  //   $type     = $this->type == 'checkboxes' ? 'checkbox' : 'radio';
     215  //   $value    = $this->get_setting_value($field_key);
     216  //   $desc     = __('Add choices to this field using the repeatable inputs below.', 'megaforms');
     217
     218  //   $args['id'] = $this->get_field_key('options', $field_key);
     219  //   $args['label'] = $label;
     220  //   $args['after_label'] = $this->get_description_tip_markup($label, $desc);
     221  //   $args['value'] = $value;
     222  //   $args['options'] = array(
     223  //     'standard' => __('Standard', 'megaforms'),
     224  //     'boxed' => __('Boxed', 'megaforms'),
     225  //   );
     226  //   $args['default'] = 'vertical';
     227  //   $args['onchange_preview'] = $this->get_js_helper_rules('none', 'update_choice_style');
     228
     229  //   $input = mfinput('radio', $args, true);
     230  //   return $input;
     231  // }
     232
     233  /**********************************************************************
     234   ***************************** Helpers ********************************
     235   **********************************************************************/
    172236  /**
    173237   * Returns an array of default choices to be used when none are provided.
  • mega-forms/trunk/common/partials/form/fields/class-mega-forms-field-address.php

    r2954046 r3109374  
    219219
    220220    /**********************************************************************
    221      ************************* Helpers ******************************
     221     *******************************************************
    222222     **********************************************************************/
    223223    public function get_us_states()
  • mega-forms/trunk/mega-forms.php

    r3031844 r3109374  
    66 * Plugin URI:        http://wpmegaforms.com/
    77 * Description:       Megaforms is an easy to use, feature rich, drag and drop form builder for WordPress.
    8  * Version:           1.4.3
     8 * Version:           1.4.
    99 * Author:            Ali Khallad
    1010 * Author URI:        https://alikhallad.com
     
    2121}
    2222
    23 define('MEGAFORMS', '1.4.3');
     23define('MEGAFORMS', '1.4.');
    2424define('MEGAFORMS_DIR_URL', plugin_dir_url(__FILE__));
    2525define('MEGAFORMS_DIR_PATH', plugin_dir_path(__FILE__));
Note: See TracChangeset for help on using the changeset viewer.