Changeset 1481448
- Timestamp:
- 08/23/2016 10:39:34 AM (10 years ago)
- Location:
- sendmachine
- Files:
-
- 6 edited
- 3 copied
-
tags/1.0.10 (copied) (copied from sendmachine/trunk)
-
tags/1.0.10/includes/sendmachine_subscribe_manager.php (modified) (7 diffs)
-
tags/1.0.10/readme.txt (copied) (copied from sendmachine/trunk/readme.txt) (2 diffs)
-
tags/1.0.10/sendmachine_wp.php (copied) (copied from sendmachine/trunk/sendmachine_wp.php) (1 diff)
-
tags/1.0.10/static/css/sm-widget.css (modified) (1 diff)
-
trunk/includes/sendmachine_subscribe_manager.php (modified) (7 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/sendmachine_wp.php (modified) (1 diff)
-
trunk/static/css/sm-widget.css (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sendmachine/tags/1.0.10/includes/sendmachine_subscribe_manager.php
r1332124 r1481448 31 31 $out .= $instance['description'] ? "<p>".$instance['description']."</p>" : ""; 32 32 33 $out .= $this->build_form( );33 $out .= $this->build_form($args['id']); 34 34 35 35 $out .= $args['after_widget']; … … 72 72 } 73 73 74 private function build_form( ) {74 private function build_form($instance_id = "") { 75 75 76 76 $this->form_count++; … … 100 100 101 101 $required = ($list_field['required']) ? "*" : ""; 102 103 $list_fields .= $list_field['form_name'] . " $required<br>"; 102 $element_id = strtolower("form_input_{$list_field['form_name']}_$instance_id"); 103 104 $list_fields .= "<div class='sm_wp_input_group'><label for='$element_id' class='sm_wp_form_label'>" . $list_field['form_name'] . " $required</label>"; 104 105 105 106 if (in_array($list_field['cf_type'], array("text", "number", "email","date","birthday"))) { … … 109 110 elseif($list_field['cf_type'] == "birthday") $placeholder = "mm/dd"; 110 111 111 $list_fields .= "<input placeholder='$placeholder' type='text' name='" . $list_field['name'] . "'/><br><br>";112 $list_fields .= "<input id='$element_id' class='sm_wp_form_input_text' placeholder='$placeholder' type='text' name='" . $list_field['name'] . "'/>"; 112 113 } 113 114 elseif ($list_field['cf_type'] == "radiobutton") { … … 115 116 foreach ($list_field['options'] as $option) { 116 117 117 $list_fields .= "<label ><inputtype='radio' value='" . $option . "' name='" . $list_field['name'] . "' /> " . $option . "</label><br>";118 $list_fields .= "<label class='sm_wp_form_radio_label'><input class='sm_wp_form_input_radio' type='radio' value='" . $option . "' name='" . $list_field['name'] . "' /> " . $option . "</label><br>"; 118 119 } 119 $list_fields .="<br>";120 120 } 121 121 elseif ($list_field['cf_type'] == "dropdown") { 122 122 123 $list_fields .= "<select class='sm_list_dropdown ' name='" . $list_field['name'] . "'>";123 $list_fields .= "<select class='sm_list_dropdown sm_wp_form_select' name='" . $list_field['name'] . "'>"; 124 124 $list_fields .= "<option></option>"; 125 125 … … 129 129 } 130 130 131 $list_fields .= "</select> <br><br>";131 $list_fields .= "</select>"; 132 132 } 133 $list_fields .= "</div>"; 133 134 } 134 135 } … … 145 146 . '<input type="hidden" name="sm_form_nr" value="'.$this->form_count.'"/> ' 146 147 . $list_fields 147 . '< input type="submit" value="'.__('Subscribe', SM_LANGUAGE_DOMAIN).'" />'148 . '<div class="sm_wp_form_submit_button_wrapper"><input class="sm_wp_form_submit_button" type="submit" value="'.__('Subscribe', SM_LANGUAGE_DOMAIN).'" /></div>' 148 149 . '<div class="sm_wp_sub_req_resp" >' . $notices . '</div>' 149 150 . '</form>' -
sendmachine/tags/1.0.10/readme.txt
r1400969 r1481448 3 3 Tags: sendmachine,newsletter,campaigns,subscribers,sign-up,email marketing 4 4 Requires at least: 3.2.1 5 Tested up to: 4. 55 Tested up to: 4.6 6 6 Stable tag: 1.0.9 7 7 License: GPLv2 or later … … 96 96 == Changelog == 97 97 98 = 1.0.10 = 99 * Tested plugin up to WP v4.6 100 * Added widget html classes 101 98 102 = 1.0.9 = 99 103 * Tested up to 4.5 -
sendmachine/tags/1.0.10/sendmachine_wp.php
r1400969 r1481448 5 5 Plugin URI: https://www.sendmachine.com 6 6 Description: The official Sendmachine plugin featuring subscribe forms, users sync, news feed, email sending and transactional campaigns. 7 Version: 1.0. 97 Version: 1.0.10 8 8 Author: Sendmachine team 9 9 Author URI: http://developers.sendmachine.com/ -
sendmachine/tags/1.0.10/static/css/sm-widget.css
r1226818 r1481448 13 13 background-color: pink; 14 14 } 15 .s m_list_dropdown{15 .sendmachine_wp_subscribe .sm_list_dropdown{ 16 16 width:100%; 17 17 } 18 .sendmachine_wp_subscribe .sm_wp_form_label{ 19 display: block; 20 } 21 .sendmachine_wp_subscribe .sm_wp_input_group{ 22 margin-bottom: 20px; 23 } -
sendmachine/trunk/includes/sendmachine_subscribe_manager.php
r1332124 r1481448 31 31 $out .= $instance['description'] ? "<p>".$instance['description']."</p>" : ""; 32 32 33 $out .= $this->build_form( );33 $out .= $this->build_form($args['id']); 34 34 35 35 $out .= $args['after_widget']; … … 72 72 } 73 73 74 private function build_form( ) {74 private function build_form($instance_id = "") { 75 75 76 76 $this->form_count++; … … 100 100 101 101 $required = ($list_field['required']) ? "*" : ""; 102 103 $list_fields .= $list_field['form_name'] . " $required<br>"; 102 $element_id = strtolower("form_input_{$list_field['form_name']}_$instance_id"); 103 104 $list_fields .= "<div class='sm_wp_input_group'><label for='$element_id' class='sm_wp_form_label'>" . $list_field['form_name'] . " $required</label>"; 104 105 105 106 if (in_array($list_field['cf_type'], array("text", "number", "email","date","birthday"))) { … … 109 110 elseif($list_field['cf_type'] == "birthday") $placeholder = "mm/dd"; 110 111 111 $list_fields .= "<input placeholder='$placeholder' type='text' name='" . $list_field['name'] . "'/><br><br>";112 $list_fields .= "<input id='$element_id' class='sm_wp_form_input_text' placeholder='$placeholder' type='text' name='" . $list_field['name'] . "'/>"; 112 113 } 113 114 elseif ($list_field['cf_type'] == "radiobutton") { … … 115 116 foreach ($list_field['options'] as $option) { 116 117 117 $list_fields .= "<label ><inputtype='radio' value='" . $option . "' name='" . $list_field['name'] . "' /> " . $option . "</label><br>";118 $list_fields .= "<label class='sm_wp_form_radio_label'><input class='sm_wp_form_input_radio' type='radio' value='" . $option . "' name='" . $list_field['name'] . "' /> " . $option . "</label><br>"; 118 119 } 119 $list_fields .="<br>";120 120 } 121 121 elseif ($list_field['cf_type'] == "dropdown") { 122 122 123 $list_fields .= "<select class='sm_list_dropdown ' name='" . $list_field['name'] . "'>";123 $list_fields .= "<select class='sm_list_dropdown sm_wp_form_select' name='" . $list_field['name'] . "'>"; 124 124 $list_fields .= "<option></option>"; 125 125 … … 129 129 } 130 130 131 $list_fields .= "</select> <br><br>";131 $list_fields .= "</select>"; 132 132 } 133 $list_fields .= "</div>"; 133 134 } 134 135 } … … 145 146 . '<input type="hidden" name="sm_form_nr" value="'.$this->form_count.'"/> ' 146 147 . $list_fields 147 . '< input type="submit" value="'.__('Subscribe', SM_LANGUAGE_DOMAIN).'" />'148 . '<div class="sm_wp_form_submit_button_wrapper"><input class="sm_wp_form_submit_button" type="submit" value="'.__('Subscribe', SM_LANGUAGE_DOMAIN).'" /></div>' 148 149 . '<div class="sm_wp_sub_req_resp" >' . $notices . '</div>' 149 150 . '</form>' -
sendmachine/trunk/readme.txt
r1400969 r1481448 3 3 Tags: sendmachine,newsletter,campaigns,subscribers,sign-up,email marketing 4 4 Requires at least: 3.2.1 5 Tested up to: 4. 55 Tested up to: 4.6 6 6 Stable tag: 1.0.9 7 7 License: GPLv2 or later … … 96 96 == Changelog == 97 97 98 = 1.0.10 = 99 * Tested plugin up to WP v4.6 100 * Added widget html classes 101 98 102 = 1.0.9 = 99 103 * Tested up to 4.5 -
sendmachine/trunk/sendmachine_wp.php
r1400969 r1481448 5 5 Plugin URI: https://www.sendmachine.com 6 6 Description: The official Sendmachine plugin featuring subscribe forms, users sync, news feed, email sending and transactional campaigns. 7 Version: 1.0. 97 Version: 1.0.10 8 8 Author: Sendmachine team 9 9 Author URI: http://developers.sendmachine.com/ -
sendmachine/trunk/static/css/sm-widget.css
r1226818 r1481448 13 13 background-color: pink; 14 14 } 15 .s m_list_dropdown{15 .sendmachine_wp_subscribe .sm_list_dropdown{ 16 16 width:100%; 17 17 } 18 .sendmachine_wp_subscribe .sm_wp_form_label{ 19 display: block; 20 } 21 .sendmachine_wp_subscribe .sm_wp_input_group{ 22 margin-bottom: 20px; 23 }
Note: See TracChangeset
for help on using the changeset viewer.