Changeset 1790223
- Timestamp:
- 12/20/2017 07:05:44 PM (8 years ago)
- Location:
- wp-click-2-chat/trunk
- Files:
-
- 2 edited
-
css/wc2c.css (modified) (2 diffs)
-
wp-click-2-chat.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-click-2-chat/trunk/css/wc2c.css
r1789865 r1790223 18 18 /* Floating Circle */ 19 19 20 .wc2c-floating-circle {20 .wc2c-floating-circle-right { 21 21 right:25px; 22 22 width:60px; … … 31 31 } 32 32 33 .wc2c-floating-circle .wc2c-text { 33 .wc2c-floating-circle-left { 34 left:25px; 35 width:60px; 36 height:60px; 37 border-radius:50%; 38 bottom:25px; 39 text-align: center; 40 padding:9px; 41 -webkit-box-shadow: 3px 3px 12px 0px rgba(51,51,51,0.72); 42 -moz-box-shadow: 3px 3px 12px 0px rgba(51,51,51,0.72); 43 box-shadow: 3px 3px 12px 0px rgba(51,51,51,0.72); 44 } 45 46 .wc2c-floating-circle-right .wc2c-text, .wc2c-floating-circle-left .wc2c-text { 34 47 display: none; 35 48 } 36 49 37 .wc2c-floating-circle .wc2c-icon {50 .wc2c-floating-circle-right .wc2c-icon, .wc2c-floating-circle-left .wc2c-icon { 38 51 font-size:42px; 39 52 width:auto; -
wp-click-2-chat/trunk/wp-click-2-chat.php
r1790128 r1790223 33 33 $settings_arr['status'] = 'mobile_only'; 34 34 $settings_arr['status'] = 'mobile_only'; 35 $settings_arr['button_type'] = 'floating-circle ';35 $settings_arr['button_type'] = 'floating-circle-left'; 36 36 $settings_arr['display_in'] = 'all'; 37 37 $settings_arr['button_icon_color'] = '#fff'; … … 157 157 <option <?php if(wc2c_get_setting('button_type') == "top-right") {echo 'selected';} ?> value="top-right">Top Right</option> 158 158 <option <?php if(wc2c_get_setting('button_type') == "top-full-width") {echo 'selected';} ?> value="top-full-width">Top Full Width</option> 159 <option <?php if(wc2c_get_setting('button_type') == "floating-circle") {echo 'selected';} ?> value="floating-circle">Floating Circle</option> 159 <option <?php if(wc2c_get_setting('button_type') == "floating-circle-right") {echo 'selected';} ?> value="floating-circle-right">Floating Circle Right</option> 160 <option <?php if(wc2c_get_setting('button_type') == "floating-circle-left") {echo 'selected';} ?> value="floating-circle-left">Floating Circle Left</option> 160 161 </select> 161 162 <p class="description"><?php echo _e('The type of the button', 'wc2c') ?></p> … … 350 351 $button_text_color = wc2c_get_setting('button_text_color'); 351 352 $button_type = wc2c_get_setting('button_type'); 352 $share_text = str_replace("[post_title]",$post_title, $share_text);353 353 354 $phone_number = wc2c_get_setting('phone_number'); 354 355 $google_event_name = wc2c_get_setting('google_event_name'); 355 356 $facebook_event_name = wc2c_get_setting('facebook_event_name'); 356 357 357 $url_start = 'web';358 if(wp_is_mobile()) {359 $url_start = 'api';360 }361 $button_url = 'https://' . $url_start . '.whatsapp.com/send?phone='. $phone_number .'&text='. $share_text ;362 363 364 365 358 $queried_object = get_queried_object(); 366 359 if ( $queried_object ) { … … 369 362 $post_title = $queried_post->post_title; 370 363 } 371 372 364 $share_text = str_replace("[post_title]",$post_title, $share_text); 365 $url_start = 'web'; 366 if(wp_is_mobile()) { 367 $url_start = 'api'; 368 } 369 $button_url = 'https://' . $url_start . '.whatsapp.com/send?phone='. $phone_number .'&text='. $share_text ; 370 373 371 374 372 ?>
Note: See TracChangeset
for help on using the changeset viewer.