Changeset 647136
- Timestamp:
- 01/02/2013 06:54:53 PM (13 years ago)
- Location:
- wp-simple-forms/trunk
- Files:
-
- 6 edited
-
Controller.php (modified) (3 diffs)
-
functions.php (modified) (2 diffs)
-
shortcode.php (modified) (1 diff)
-
style.css (modified) (1 diff)
-
wp_simple_forms.php (modified) (1 diff)
-
wpsf_settings.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-simple-forms/trunk/Controller.php
r632501 r647136 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/trunk/functions.php
r632501 r647136 61 61 wp_enqueue_script( 62 62 "cd-deletable" 63 ,plugins_url('/wp _simple_forms/plugins/deletable.js')63 ,plugins_url('/wp-simple-forms/plugins/deletable.js') 64 64 ,array('jquery') 65 65 ,'' … … 68 68 wp_enqueue_script( 69 69 "cd-notify" 70 ,plugins_url('/wp _simple_forms/js/notify.js')70 ,plugins_url('/wp-simple-forms/js/notify.js') 71 71 ,array('jquery') 72 72 ); 73 73 wp_enqueue_script( 74 74 "cd-form-elements" 75 ,plugins_url('/wp _simple_forms/js/form.elements.js')75 ,plugins_url('/wp-simple-forms/js/form.elements.js') 76 76 ,array('jquery') 77 77 ); -
wp-simple-forms/trunk/shortcode.php
r632715 r647136 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/trunk/style.css
r632715 r647136 41 41 color:red; 42 42 } 43 .wpsf-submit{margin-bottom:24px;} -
wp-simple-forms/trunk/wp_simple_forms.php
r632716 r647136 4 4 Plugin URI: http://crossdistinction.com/wp-simple-forms 5 5 Description: Adding forms to a webpage has never been easier. Quickly create dropdowns, checkboxes, multiple choice, and text questions for any page on your site. 6 Version: 0.1. 16 Version: 0.1.3 7 7 Author: Pat Brown 8 8 Author URI: http://crossdistinction.com -
wp-simple-forms/trunk/wpsf_settings.php
r632715 r647136 36 36 </form> 37 37 <hr /> 38 <h2>Custom CheckoutTemplates</h2>38 <h2>Custom Question Templates</h2> 39 39 <p>Here you can create question templates. Add forms to pages using the [simpleform name="formname"] shortcode (where formname is the name of the form). </p> 40 40 <div class="user-controls"> … … 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.