Changeset 1790038
- Timestamp:
- 12/20/2017 11:38:19 AM (8 years ago)
- Location:
- wp-click-2-chat/trunk
- Files:
-
- 2 edited
-
css/wc2c-admin.css (modified) (1 diff)
-
wp-click-2-chat.php (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-click-2-chat/trunk/css/wc2c-admin.css
r1789865 r1790038 11 11 font-size:15px; 12 12 } 13 14 15 .wc2c-regular-text { 16 width: 25em; 17 } -
wp-click-2-chat/trunk/wp-click-2-chat.php
r1789913 r1790038 118 118 <th><?php _e('Phone Number', 'wc2c') ?></th> 119 119 <td> 120 <input value="<?php echo esc_attr(wc2c_get_setting('phone_number')) ?>" name="wc2c_phone_number" id="wc2c_phone_number" type="text" class=" regular-text" />120 <input value="<?php echo esc_attr(wc2c_get_setting('phone_number')) ?>" name="wc2c_phone_number" id="wc2c_phone_number" type="text" class="wc2c-regular-text" /> 121 121 <p class="description"><?php echo _e('The recipient phone number - please use full number <br />(with country and area code)', 'wc2c') ?></p> 122 122 </td> … … 125 125 <th><?php _e('Share Text', 'wc2c') ?></th> 126 126 <td> 127 <textarea name="wc2c_share_text" id="wc2c_share_text" class=" regular-text"><?php echo wc2c_get_setting('share_text') ?></textarea>127 <textarea name="wc2c_share_text" id="wc2c_share_text" class="wc2c-regular-text"><?php echo wc2c_get_setting('share_text') ?></textarea> 128 128 <p class="description"><?php echo _e('The text that will be displayed in the WhatsApp message<br /> tip: You can use [post_title] placeholder in this text', 'wc2c') ?></p> 129 129 </td> … … 132 132 <th><?php _e('Status', 'wc2c') ?></th> 133 133 <td> 134 <select name="wc2c_status" id="wc2c_status" class="regular-text">134 <select name="wc2c_status" id="wc2c_status" class="wc2c-regular-text"> 135 135 <option <?php if(wc2c_get_setting('status') == "enabled" || wc2c_get_setting('status') == "") {echo 'selected';} ?> value="enabled">Enabled</option> 136 136 <option <?php if(wc2c_get_setting('status') == "disabled") {echo 'selected';} ?> value="disabled">Disabled</option> … … 149 149 <th><?php _e('Button Type', 'wc2c') ?></th> 150 150 <td> 151 <select name="wc2c_button_type" id="wc2c_button_type" class="regular-text">151 <select name="wc2c_button_type" id="wc2c_button_type" class="wc2c-regular-text"> 152 152 <option <?php if(wc2c_get_setting('button_type') == "bottom-left") {echo 'selected';} ?> value="bottom-left">Bottom Left</option> 153 153 <option <?php if(wc2c_get_setting('button_type') == "bottom-right") {echo 'selected';} ?> value="bottom-right">Bottom Right</option> … … 165 165 <th><?php _e('Button Text', 'wc2c') ?></th> 166 166 <td> 167 <input maxlength="25" value="<?php echo esc_attr(wc2c_get_setting('button_text')) ?>" name="wc2c_button_text" id="wc2c_button_text" type="text" class=" regular-text" />167 <input maxlength="25" value="<?php echo esc_attr(wc2c_get_setting('button_text')) ?>" name="wc2c_button_text" id="wc2c_button_text" type="text" class="wc2c-regular-text" /> 168 168 <p class="description"><?php echo _e('The text that appears on the button (max 25 characters)', 'wc2c') ?></p> 169 169 </td> … … 173 173 <th><?php _e('Button Background Color', 'wc2c') ?></th> 174 174 <td> 175 <input value="<?php echo esc_attr(wc2c_get_setting('button_bg_color')) ?>" name="wc2c_button_bg_color" id="wc2c_button_bg_color" type="text" class="color-picker-input regular-text" />175 <input value="<?php echo esc_attr(wc2c_get_setting('button_bg_color')) ?>" name="wc2c_button_bg_color" id="wc2c_button_bg_color" type="text" class="color-picker-input wc2c-regular-text" /> 176 176 <p class="description"><?php echo _e('The background color of the button', 'wc2c') ?></p> 177 177 </td> … … 181 181 <th><?php _e('Button Text Color', 'wc2c') ?></th> 182 182 <td> 183 <input value="<?php echo esc_attr(wc2c_get_setting('button_text_color')) ?>" name="wc2c_button_text_color" id="wc2c_button_text_color" type="text" class="color-picker-input regular-text" />183 <input value="<?php echo esc_attr(wc2c_get_setting('button_text_color')) ?>" name="wc2c_button_text_color" id="wc2c_button_text_color" type="text" class="color-picker-input wc2c-regular-text" /> 184 184 <p class="description"><?php echo _e('The text color of the button', 'wc2c') ?></p> 185 185 </td> … … 189 189 <th><?php _e('Button Icon Color', 'wc2c') ?></th> 190 190 <td> 191 <input value="<?php echo esc_attr(wc2c_get_setting('button_icon_color')) ?>" name="wc2c_button_icon_color" id="wc2c_button_icon_color" type="text" class="color-picker-input regular-text" />191 <input value="<?php echo esc_attr(wc2c_get_setting('button_icon_color')) ?>" name="wc2c_button_icon_color" id="wc2c_button_icon_color" type="text" class="color-picker-input wc2c-regular-text" /> 192 192 <p class="description"><?php echo _e('The color of the WhatsApp icon', 'wc2c') ?></p> 193 193 </td> … … 205 205 206 206 ?> 207 <select multiple="multiple" name="wc2c_display_in[]" id="wc2c_display_in" class=" regular-text select-2">207 <select multiple="multiple" name="wc2c_display_in[]" id="wc2c_display_in" class="wc2c-regular-text select-2"> 208 208 <option <?php if(in_array('all', $display_in)) { echo 'selected'; } ?> value="all">Entire Website</option> 209 209 <option <?php if(in_array('posts', $display_in)) { echo 'selected'; } ?> value="posts">Posts</option> … … 234 234 <th><?php _e('Facebook Event Name', 'wc2c') ?></th> 235 235 <td> 236 <input value="<?php echo esc_attr(wc2c_get_setting('facebook_event_name')) ?>" name="wc2c_facebook_event_name" id="wc2c_facebook_event_name" type="text" class=" regular-text" />236 <input value="<?php echo esc_attr(wc2c_get_setting('facebook_event_name')) ?>" name="wc2c_facebook_event_name" id="wc2c_facebook_event_name" type="text" class="wc2c-regular-text" /> 237 237 <p class="description"><?php echo _e('The name of the Facebook event that will be fired on button click', 'wc2c') ?></p> 238 238 </td> … … 242 242 <th><?php _e('Google Event Name', 'wc2c') ?></th> 243 243 <td> 244 <input value="<?php echo esc_attr(wc2c_get_setting('google_event_name')) ?>" name="wc2c_google_event_name" id="wc2c_google_event_name" type="text" class=" regular-text" />244 <input value="<?php echo esc_attr(wc2c_get_setting('google_event_name')) ?>" name="wc2c_google_event_name" id="wc2c_google_event_name" type="text" class="wc2c-regular-text" /> 245 245 <p class="description"><?php echo _e('The name of the Google event that will be fired on button click', 'wc2c') ?></p> 246 246 </td> … … 285 285 wp_register_script('wc2c-script', plugins_url('/js/wc2c.js', __FILE__ ) , array( 'jquery')); 286 286 wp_enqueue_style('wc2c-style'); 287 wp_enqueue_style('wc2c-fa-style'); 287 288 wp_enqueue_script('wc2c-script'); 288 289 }
Note: See TracChangeset
for help on using the changeset viewer.