Changeset 647122
- Timestamp:
- 01/02/2013 06:37:19 PM (13 years ago)
- Location:
- wp-simple-forms/tags/0.1.3
- Files:
-
- 6 edited
-
Controller.php (modified) (3 diffs)
-
helpers/email_helper.php (modified) (1 diff)
-
js/form.elements.js (modified) (2 diffs)
-
shortcode.php (modified) (1 diff)
-
style.css (modified) (1 diff)
-
wpsf_settings.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-simple-forms/tags/0.1.3/Controller.php
r632905 r647122 44 44 function submit($value = null){ 45 45 $value = $value ? $value : 'Submit'; 46 $html = "<input type='submit' name='submit' value='$value' />\n";46 $html = "<input type='submit' name='submit' class='wpsf-submit' value='$value' />\n"; 47 47 return $html; 48 48 } … … 152 152 $html .= "<label class='q-title'>$this->title" . $this->check_required() . "</label><label class='q-help'>$this->help_text</label>\n"; 153 153 $html .= "<select class='dropdown-options' name='$name'>\n"; 154 $html .= "<ul>\n";155 154 foreach($this->options as $option){ 156 $html .= "<li><option value='$option'" . $this->set_select($name, $option) . ">$option</option></li>\n"; 157 } 158 $html .= "</ul>\n"; 155 $html .= "<option value='$option'" . $this->set_select($name, $option) . ">$option</option>\n"; 156 } 159 157 $html .= "</select>\n"; 160 158 $html .= "<input type='hidden' name='titles[]' value='$this->title'/>\n"; … … 190 188 $name = "question" . $this->q_index . $required; 191 189 $html .= "<label class='q-title'>$this->title" . $this->check_required() . "</label><label class='q-help'>$this->help_text</label>\n"; 192 $html .= "</ul>\n"; 193 foreach($this->options as $option){ 194 $html .= "<li><label><textarea name='$name'>" . $this->set_value($name, $option) . "</textarea></label></li>\n"; 195 } 196 $html .= "</ul>\n"; 190 $html .= "<textarea name='$name'>" . $this->set_value($name, '') . "</textarea>\n"; 197 191 $html .= "<input type='hidden' name='titles[]' value='$this->title'/>\n"; 198 192 -
wp-simple-forms/tags/0.1.3/helpers/email_helper.php
r632905 r647122 5 5 { 6 6 //$headers .= 'Content-type: text/html; charset=iso-8859-1 \r\n'; 7 return mail($recipient, $subject, $message, $headers); 7 add_filter('wp_mail_content_type',create_function('', 'return "text/html";')); 8 wp_mail($recipient, $subject, $message); 9 return; 8 10 } 9 11 } -
wp-simple-forms/tags/0.1.3/js/form.elements.js
r632905 r647122 145 145 _SelectTypeBox: function (selected) { 146 146 //console.log('selected:' + selected); 147 this._html = $('<select name="question_types[]"><option value="text">Text</option><option value="dropdown">Dropdown</option><option value="check-boxes">Check Boxes</option><option value="mult-choice">Multiple Choice</option><option value="textarea"> TextBox</option></select>');147 this._html = $('<select name="question_types[]"><option value="text">Text</option><option value="dropdown">Dropdown</option><option value="check-boxes">Check Boxes</option><option value="mult-choice">Multiple Choice</option><option value="textarea">Message Box</option></select>'); 148 148 this._html.find('option[value="' + selected + '"]').attr('selected', 'selected'); 149 149 //console.log(test.length); … … 508 508 textarea.change(function () { 509 509 el.answer = $(this).val(); 510 console.log($(this).val());511 console.log(el.answer);512 510 }); 513 511 el._wrapper.append(textarea); 514 512 //set answer on load 515 513 el.answer = textarea.val(); 516 console.log(el.answer);517 514 }//end text 518 515 //fill el.m.options if not set -
wp-simple-forms/tags/0.1.3/shortcode.php
r632913 r647122 38 38 wp_enqueue_style( 39 39 'simpleForm-style' 40 , plugins_url( ) . '/wp-simple-forms/style.css'40 , plugins_url('/wp-simple-forms/style.css') 41 41 ); 42 42 -
wp-simple-forms/tags/0.1.3/style.css
r632905 r647122 41 41 color:red; 42 42 } 43 .wpsf-submit{margin-bottom:24px;} -
wp-simple-forms/tags/0.1.3/wpsf_settings.php
r632905 r647122 46 46 <option value="check-boxes">Check Boxes</option> 47 47 <option value="mult-choice">Multiple Choice</option> 48 <option value="textarea"> TextBox</option>48 <option value="textarea">Message Box</option> 49 49 </select> 50 50 <a href="#" id="save-question-order">Save Question Order</a>
Note: See TracChangeset
for help on using the changeset viewer.