Plugin Directory

Changeset 647122


Ignore:
Timestamp:
01/02/2013 06:37:19 PM (13 years ago)
Author:
delaney.p.brown
Message:
  • Style issues fixed.
  • Message box issue has been fixed.
  • Minor UI tweaks.
Location:
wp-simple-forms/tags/0.1.3
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • wp-simple-forms/tags/0.1.3/Controller.php

    r632905 r647122  
    4444    function submit($value = null){
    4545        $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";
    4747        return $html;
    4848    }
     
    152152                $html .=  "<label class='q-title'>$this->title" . $this->check_required() . "</label><label class='q-help'>$this->help_text</label>\n";
    153153                $html .=  "<select class='dropdown-options' name='$name'>\n";
    154                 $html .= "<ul>\n";
    155154                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                }
    159157                $html .=  "</select>\n";
    160158                $html .= "<input type='hidden' name='titles[]' value='$this->title'/>\n";
     
    190188                $name = "question" . $this->q_index . $required;
    191189                $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";
    197191                $html .= "<input type='hidden' name='titles[]' value='$this->title'/>\n";
    198192               
  • wp-simple-forms/tags/0.1.3/helpers/email_helper.php

    r632905 r647122  
    55    {
    66        //$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;
    810    }
    911}
  • wp-simple-forms/tags/0.1.3/js/form.elements.js

    r632905 r647122  
    145145        _SelectTypeBox: function (selected) {
    146146            //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">Text Box</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>');
    148148            this._html.find('option[value="' + selected + '"]').attr('selected', 'selected');
    149149            //console.log(test.length);
     
    508508                textarea.change(function () {
    509509                    el.answer = $(this).val();
    510                     console.log($(this).val());
    511                 console.log(el.answer);
    512510                });
    513511                el._wrapper.append(textarea);
    514512                //set answer on load
    515513                el.answer = textarea.val();
    516                 console.log(el.answer);
    517514            }//end text
    518515            //fill el.m.options if not set
  • wp-simple-forms/tags/0.1.3/shortcode.php

    r632913 r647122  
    3838    wp_enqueue_style(
    3939     'simpleForm-style'
    40     , plugins_url() . '/wp-simple-forms/style.css'
     40    , plugins_url('/wp-simple-forms/style.css')
    4141);
    4242   
  • wp-simple-forms/tags/0.1.3/style.css

    r632905 r647122  
    4141    color:red;
    4242}
     43.wpsf-submit{margin-bottom:24px;}
  • wp-simple-forms/tags/0.1.3/wpsf_settings.php

    r632905 r647122  
    4646                <option value="check-boxes">Check Boxes</option>
    4747                <option value="mult-choice">Multiple Choice</option>
    48                 <option value="textarea">Text Box</option>
     48                <option value="textarea">Message Box</option>
    4949            </select>
    5050            <a href="#" id="save-question-order">Save Question Order</a>
Note: See TracChangeset for help on using the changeset viewer.