Plugin Directory

Changeset 1790223


Ignore:
Timestamp:
12/20/2017 07:05:44 PM (8 years ago)
Author:
weblife
Message:

fixes

Location:
wp-click-2-chat/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-click-2-chat/trunk/css/wc2c.css

    r1789865 r1790223  
    1818/* Floating Circle */
    1919
    20 .wc2c-floating-circle {
     20.wc2c-floating-circle-right {
    2121    right:25px;
    2222    width:60px;
     
    3131}
    3232
    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 {
    3447    display: none;
    3548}
    3649
    37 .wc2c-floating-circle .wc2c-icon {
     50.wc2c-floating-circle-right .wc2c-icon, .wc2c-floating-circle-left .wc2c-icon {
    3851    font-size:42px;
    3952    width:auto;
  • wp-click-2-chat/trunk/wp-click-2-chat.php

    r1790128 r1790223  
    3333        $settings_arr['status'] = 'mobile_only';
    3434        $settings_arr['status'] = 'mobile_only';
    35         $settings_arr['button_type'] = 'floating-circle';
     35        $settings_arr['button_type'] = 'floating-circle-left';
    3636        $settings_arr['display_in'] = 'all';
    3737        $settings_arr['button_icon_color'] = '#fff';
     
    157157                                    <option <?php if(wc2c_get_setting('button_type') == "top-right") {echo 'selected';}  ?> value="top-right">Top Right</option>
    158158                                    <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>
    160161                                </select>
    161162                                <p class="description"><?php echo _e('The type of the button', 'wc2c') ?></p>
     
    350351    $button_text_color = wc2c_get_setting('button_text_color');
    351352    $button_type = wc2c_get_setting('button_type');
    352     $share_text = str_replace("[post_title]",$post_title, $share_text);
     353   
    353354    $phone_number = wc2c_get_setting('phone_number');
    354355    $google_event_name = wc2c_get_setting('google_event_name');
    355356    $facebook_event_name = wc2c_get_setting('facebook_event_name');
    356357   
    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 
    365358    $queried_object = get_queried_object();
    366359    if ( $queried_object ) {
     
    369362        $post_title = $queried_post->post_title;
    370363    }
    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
    373371   
    374372    ?>
Note: See TracChangeset for help on using the changeset viewer.