Changeset 3029533
- Timestamp:
- 01/31/2024 01:43:43 PM (2 years ago)
- Location:
- mailcamp/trunk
- Files:
-
- 4 edited
-
includes/class-mailcamp-api.php (modified) (2 diffs)
-
includes/core-functions.php (modified) (2 diffs)
-
public/class-mailcamp-public.php (modified) (1 diff)
-
public/css/mailcamp-public.css (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
mailcamp/trunk/includes/class-mailcamp-api.php
r2915770 r3029533 137 137 * 138 138 * @since 1.0.0 139 * @updated 1.5. 7139 * @updated 1.5.12 140 140 * @param string $to_email 141 141 * @param $from_details … … 143 143 * @return mixed 144 144 */ 145 public function m ail( $to_email = '', $from_details = [], $html = '' ) {145 public function mc_mail( $to_email = '', $from_details = [], $html = '' ) { 146 146 147 147 $this->xml_data = ' -
mailcamp/trunk/includes/core-functions.php
r2965335 r3029533 119 119 break; 120 120 default: 121 $html_form .= '<input type="text" name="CustomFields[' . $field->fieldid . ']" id="CustomFields_' . $field->fieldid . '" ' . ((bool) $field->required ? ' aria-required="true" required' : '') . '>'; 121 $fieldtype = ($field->fieldid === 'email' ? 'email' : 'text'); 122 $html_form .= '<input type="' . $fieldtype . '" name="CustomFields[' . $field->fieldid . ']" id="CustomFields_' . $field->fieldid . '" ' . ((bool) $field->required ? ' aria-required="true" required' : '') . '>'; 122 123 } 123 124 $html_form .= '</p>' . "\n"; … … 151 152 $options['widget_gdpr_url'] 152 153 ) . '</label>'; 153 $html_form .= '<br /><label class="mailcamp-form-captcha-sum mc-inline" for="captcha"></label><input class="mailcamp-form-captcha-field" id="captcha" type=" text" size="4" maxlength="3" name="" value="" />';154 $html_form .= '<br /><label class="mailcamp-form-captcha-sum mc-inline" for="captcha"></label><input class="mailcamp-form-captcha-field" id="captcha" type="number" size="4" maxlength="3" min="0" max="100" name="captcha" value="" />'; 154 155 $html_form .= '<input type="submit" disabled value="' . $submit_text . '" class="mc-btn-submit">'; 155 156 $html_form .= '<br /><br /><div class="mailcamp-form-confirm" aria-live="polite"></div>'; -
mailcamp/trunk/public/class-mailcamp-public.php
r2965335 r3029533 238 238 } 239 239 240 $mc_api->m ail( $to_email, $details, $html );240 $mc_api->mc_mail( $to_email, $details, $html ); 241 241 242 242 $result = [ -
mailcamp/trunk/public/css/mailcamp-public.css
r2959912 r3029533 16 16 form.mailcamp-subscribe-form .mailcamp-form-captcha-field{ 17 17 float:left; 18 width: 50px !important;18 width: 80px !important; 19 19 } 20 20
Note: See TracChangeset
for help on using the changeset viewer.