Plugin Directory

Changeset 2369740


Ignore:
Timestamp:
08/26/2020 07:34:00 PM (5 years ago)
Author:
digitalblue
Message:

CSS and icons changes.
WhatsApp link change.

Location:
click-to-call-or-chat-buttons/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • click-to-call-or-chat-buttons/trunk/ctcocb-front.css

    r2364061 r2369740  
    11.ctcocb {
    22    display: none;
    3     margin:0px;
    43    position: fixed;
    54    text-decoration: none;
    6     text-align: center;
    7     justify-content: center;
    85}
    9 .ctcocb>div,.ctcocb a,.ctcocb span{
    10     display: inline-block;vertical-align:middle;text-align:center; justify-content: center;
    11 }
    12 .ctcocb a{
    13  margin-right: -4px;
    14 }
    15 .ctcocb>div,.ctcocb>div>a>div
    16 {display:inline-block;vertical-align:middle;text-align:center;  -webkit-font-smoothing: antialiased;    line-height: 1;}
    17 .ctcocb>div>a
    18 {display:inline-block;vertical-align:middle;text-align:center;text-decoration:none;   -webkit-font-smoothing: antialiased;    line-height: 1;}
    19 .ctcocb-cols-1{width:100%}
    20 .ctcocb-cols-2{width:50%}
    21 .ctcocb-cols-3{width:33.3%}
    22 @media screen and (max-width: 350px){
    23     .ctcocb span{
    24         font-size:0.75em!important;
     6.ctcocb a,.ctcocb >div{ display: inline-block;vertical-align:middle;text-align:center;  line-height: 1em;font-weight:400;}
     7.ctcocb-cols-1{width:100%;}
     8.ctcocb-cols-2{width:50%;}
     9.ctcocb-cols-3{width:33.3%;}
     10
     11.ctcocb .ctcocb-img,.ctcocb .ctcocb-phone,.ctcocb .ctcocb-wapp {display: inline-block;vertical-align:middle;}
     12@media screen and (max-width: 400px){
     13    .ctcocb .ctcocb-wapp,.ctcocb .ctcocb-text,.ctcocb .ctcocb-phone{
     14        font-size:0.9em!important;
    2515    }
     16    .ctcocb .ctcocb-wapp img,.ctcocb .ctcocb-phone img{
     17        transform: scale(0.9, 0.9);
     18        -ms-transform: scale(0.9, 0.9);
     19        -webkit-transform: scale(0.9, 0.9);
     20    }
     21
    2622}
    2723@media screen and (max-width: 300px){
    28     .ctcocb span{
    29         font-size:0.5em!important;
     24    .ctcocb .ctcocb-wapp,.ctcocb .ctcocb-text,.ctcocb .ctcocb-phone{
     25        font-size:0.8em!important;
     26    }
     27    .ctcocb .ctcocb-wapp img,.ctcocb .ctcocb-phone img{
     28        transform: scale(0.8, 0.8);
     29        -ms-transform: scale(0.8, 0.8);
     30        -webkit-transform: scale(0.8, 0.8);
    3031    }
    3132}
  • click-to-call-or-chat-buttons/trunk/ctcocb-svg.php

    r2364061 r2369740  
    11<?php
    22function ctcocb_get_svg($icon,$colors,$width) {
    3 if($icon=='iconWApp')$svg='
     3if($icon=='iconWApp'){$svg='
    44<svg height="102" width="102"  xmlns="http://www.w3.org/2000/svg">
    55 <g>
    6   <title>WAPP</title>
    7  
    8   <path fill="#25d366"  id="svg_7" d="m6.033288,51.227688c-0.002426,8.194731 2.138705,16.19642 6.210424,23.249191l-6.599973,24.098643l24.661131,-6.466369c6.7944,3.703138 14.444144,5.657293 22.229572,5.660065l0.020794,0c25.637776,0 46.507739,-20.863032 46.51831,-46.505313c0.005199,-12.425873 -4.829502,-24.109733 -13.613234,-32.899877c-8.782173,-8.790144 -20.462393,-13.633509 -32.906809,-13.639054c-25.640895,0 -46.509819,20.861299 -46.520216,46.502887"/>
    9   <path fill="#fff" stroke="#77777777" stroke-width="2" id="svg_8" d="m2.890083,51.42391c-0.003183,8.665244 2.260929,17.12392 6.56437,24.579998l-6.977329,25.476128l26.071957,-6.836198c7.183189,3.917364 15.270821,5.981982 23.501529,5.984989l0.021223,0c27.104973,0 49.169547,-22.058206 49.181042,-49.164948c0.004598,-13.137936 -5.106544,-25.490631 -14.391492,-34.783714c-9.286186,-9.29273 -21.634105,-14.412715 -34.78955,-14.418728c-27.109395,0 -49.170962,22.054669 -49.181927,49.162472l0.000177,0zm15.525848,23.296199l-0.973239,-1.545723c-4.091921,-6.506538 -6.252219,-14.025931 -6.248681,-21.747116c0.008666,-22.531297 18.345288,-40.861552 40.893386,-40.861552c10.919099,0.004421 21.181177,4.260465 28.899887,11.984303c7.717826,7.723308 11.964849,17.990869 11.961666,28.910498c-0.00955,22.532004 -18.34688,40.864913 -40.876939,40.864913l-0.015917,0c-7.336347,-0.003891 -14.530855,-1.973538 -20.805711,-5.697244l-1.493373,-0.884988l-15.471553,4.056196l4.130475,-15.079286z"/>
    10   <path fill="#fff" stroke="null" id="svg_9" d="m40.328483,30.316198c-0.882802,-1.962347 -1.812076,-2.001865 -2.651967,-2.036295c-0.686906,-0.029342 -1.473372,-0.027476 -2.25848,-0.027476c-0.785617,0 -2.062584,0.295115 -3.142299,1.474389c-1.080393,1.179274 -4.125169,4.03002 -4.125169,9.828187c0,5.798846 4.223371,11.401287 4.812075,12.188261c0.589213,0.785956 8.152984,13.064448 20.131272,17.788328c9.955222,3.925712 11.981002,3.144843 14.141789,2.948439c2.160787,-0.196404 6.972523,-2.850237 7.954544,-5.602102c0.982191,-2.751526 0.982191,-5.109904 0.687585,-5.60295c-0.294776,-0.49118 -1.080393,-0.785787 -2.258989,-1.375169c-1.178765,-0.589383 -6.972523,-3.440807 -8.052916,-3.833615c-1.080393,-0.392809 -1.86618,-0.589213 -2.651797,0.59057c-0.785787,1.178765 -3.04274,3.832428 -3.730664,4.618385c-0.687415,0.787483 -1.37483,0.885685 -2.553595,0.296303c-1.178595,-0.591079 -4.974219,-1.834294 -9.476932,-5.84888c-3.503392,-3.123473 -5.868384,-6.981003 -6.556308,-8.160786c-0.687415,-1.178765 -0.07344,-1.817164 0.517639,-2.404681c0.529172,-0.527985 1.178765,-1.375509 1.767978,-2.063772c0.588026,-0.688094 0.7846,-1.179274 1.177408,-1.965061c0.392809,-0.786974 0.196404,-1.475237 -0.098202,-2.06445c-0.294606,-0.589383 -2.584972,-6.41757 -3.632971,-8.747624"/>
    11  </g>
     6  <title>WAPP</title>';
     7 if($colors[1]!="")$svg.='<path fill="'.$colors[1].'"  id="svg_7" d="m6.033288,51.227688c-0.002426,8.194731 2.138705,16.19642 6.210424,23.249191l-6.599973,24.098643l24.661131,-6.466369c6.7944,3.703138 14.444144,5.657293 22.229572,5.660065l0.020794,0c25.637776,0 46.507739,-20.863032 46.51831,-46.505313c0.005199,-12.425873 -4.829502,-24.109733 -13.613234,-32.899877c-8.782173,-8.790144 -20.462393,-13.633509 -32.906809,-13.639054c-25.640895,0 -46.509819,20.861299 -46.520216,46.502887"/>';
     8 if($colors[2]!="")$svg.='<path fill="'.$colors[2].'"  id="svg_8" d="m2.890083,51.42391c-0.003183,8.665244 2.260929,17.12392 6.56437,24.579998l-6.977329,25.476128l26.071957,-6.836198c7.183189,3.917364 15.270821,5.981982 23.501529,5.984989l0.021223,0c27.104973,0 49.169547,-22.058206 49.181042,-49.164948c0.004598,-13.137936 -5.106544,-25.490631 -14.391492,-34.783714c-9.286186,-9.29273 -21.634105,-14.412715 -34.78955,-14.418728c-27.109395,0 -49.170962,22.054669 -49.181927,49.162472l0.000177,0zm15.525848,23.296199l-0.973239,-1.545723c-4.091921,-6.506538 -6.252219,-14.025931 -6.248681,-21.747116c0.008666,-22.531297 18.345288,-40.861552 40.893386,-40.861552c10.919099,0.004421 21.181177,4.260465 28.899887,11.984303c7.717826,7.723308 11.964849,17.990869 11.961666,28.910498c-0.00955,22.532004 -18.34688,40.864913 -40.876939,40.864913l-0.015917,0c-7.336347,-0.003891 -14.530855,-1.973538 -20.805711,-5.697244l-1.493373,-0.884988l-15.471553,4.056196l4.130475,-15.079286z"/>';
     9 if($colors[2]!="")$svg.='<path fill="'.$colors[2].'"  id="svg_9" d="m40.328483,30.316198c-0.882802,-1.962347 -1.812076,-2.001865 -2.651967,-2.036295c-0.686906,-0.029342 -1.473372,-0.027476 -2.25848,-0.027476c-0.785617,0 -2.062584,0.295115 -3.142299,1.474389c-1.080393,1.179274 -4.125169,4.03002 -4.125169,9.828187c0,5.798846 4.223371,11.401287 4.812075,12.188261c0.589213,0.785956 8.152984,13.064448 20.131272,17.788328c9.955222,3.925712 11.981002,3.144843 14.141789,2.948439c2.160787,-0.196404 6.972523,-2.850237 7.954544,-5.602102c0.982191,-2.751526 0.982191,-5.109904 0.687585,-5.60295c-0.294776,-0.49118 -1.080393,-0.785787 -2.258989,-1.375169c-1.178765,-0.589383 -6.972523,-3.440807 -8.052916,-3.833615c-1.080393,-0.392809 -1.86618,-0.589213 -2.651797,0.59057c-0.785787,1.178765 -3.04274,3.832428 -3.730664,4.618385c-0.687415,0.787483 -1.37483,0.885685 -2.553595,0.296303c-1.178595,-0.591079 -4.974219,-1.834294 -9.476932,-5.84888c-3.503392,-3.123473 -5.868384,-6.981003 -6.556308,-8.160786c-0.687415,-1.178765 -0.07344,-1.817164 0.517639,-2.404681c0.529172,-0.527985 1.178765,-1.375509 1.767978,-2.063772c0.588026,-0.688094 0.7846,-1.179274 1.177408,-1.965061c0.392809,-0.786974 0.196404,-1.475237 -0.098202,-2.06445c-0.294606,-0.589383 -2.584972,-6.41757 -3.632971,-8.747624"/>';
     10 $svg.='</g>
    1211</svg>
    1312';
     13}
    1414if($icon=='iconPhone'){
    1515    $svg='
    1616<svg width="102" height="102" xmlns="http://www.w3.org/2000/svg">
    1717  <g>';
    18 if($colors[1]!="")$svg.='<ellipse fill="'.$colors[1].'" stroke="url(#gradbox_stroke)" ry="51" rx="51" id="svg_33" cy="51" cx="51" stroke-opacity="null" stroke-width="null" />';
    19     $svg.='<path fill="'.$colors[2].'" stroke-width="3" stroke="#ffffff" d="m36.559768,18.07731c-1.242936,-3.22157 -2.551299,-3.28645 -3.73382,-3.342973c-0.967133,-0.048167 -2.074441,-0.045097 -3.179821,-0.045097c-1.106112,0 -2.904018,0.484479 -4.424193,2.420491c-1.521146,1.935996 -5.808022,6.616043 -5.808022,16.134823c0,9.519913 5.946282,18.717382 6.775141,20.009343c0.829591,1.290303 11.47898,21.447775 28.343767,29.202921c14.016439,6.444798 16.868631,5.162852 19.910895,4.840424c3.042278,-0.322428 9.816955,-4.67921 11.199587,-9.196911c1.382872,-4.517159 1.382872,-8.388887 0.968076,-9.198306c-0.415021,-0.806365 -1.521132,-1.290023 -3.180539,-2.257603c-1.659632,-0.967579 -9.816941,-5.648743 -11.338073,-6.293615c-1.521146,-0.644856 -2.627483,-0.9673 -3.733595,0.969533c-1.106351,1.935175 -4.284018,6.291661 -5.252573,7.581964c-0.967851,1.292798 -1.935688,1.454012 -3.595334,0.486433c-1.659393,-0.97037 -7.00344,-3.011335 -13.343018,-9.602047c-4.932589,-5.127769 -8.26237,-11.460637 -9.230939,-13.39747c-0.967837,-1.935175 -0.1034,-2.98323 0.72881,-3.947739c0.745043,-0.866796 1.659646,-2.258161 2.489223,-3.388087c0.827915,-1.12963 1.104675,-1.935996 1.657731,-3.226019c0.553056,-1.291961 0.276521,-2.42187 -0.13826,-3.389187c-0.414795,-0.967579 -3.639516,-10.535659 -5.115044,-14.360879" id="svg_27" />
    20   </g>
     18//if($colors[1]!="")$svg.='<ellipse     fill="'.$colors[1].'" stroke="#77777777" stroke-width="2" ry="51" rx="51" id="svg_33" cy="51" cx="51" />';
     19if($colors[2]!="")$svg.='<path  fill="'.$colors[2].'"   stroke="'.$colors[1].'" stroke-width="8" d="m28.89632,9.85333c-1.67455,-3.95427 -3.43724,-4.0339 -5.03039,-4.10328c-1.30298,-0.05913 -2.79479,-0.05536 -4.28401,-0.05536c-1.49022,0 -3.91244,0.59467 -5.9605,2.97099c-2.04936,2.37631 -7.82485,8.12075 -7.82485,19.80443c0,11.68508 8.01112,22.97436 9.1278,24.56016c1.11766,1.58376 15.46505,26.32573 38.18613,35.84466c18.88364,7.91057 22.72626,6.33706 26.82494,5.9413c4.09871,-0.39576 13.2259,-5.74342 15.08864,-11.2886c1.86307,-5.54452 1.86307,-10.29681 1.30425,-11.29032c-0.55914,-0.98975 -2.04934,-1.58341 -4.28498,-2.77106c-2.23594,-1.18764 -13.22587,-6.93346 -15.27521,-7.72499c-2.04937,-0.79152 -3.53988,-1.1873 -5.03009,1.19003c-1.49053,2.37529 -5.77164,7.7226 -7.07652,9.30636c-1.30394,1.58683 -2.60786,1.78471 -4.84382,0.59707c-2.23561,-1.19107 -9.43538,-3.69622 -17.97637,-11.78588c-6.64543,-6.294 -11.13147,-14.06718 -12.43638,-16.44451c-1.30392,-2.37531 -0.13931,-3.66172 0.98189,-4.84559c1.00375,-1.06394 2.23595,-2.77174 3.3536,-4.15866c1.11541,-1.38655 1.48828,-2.3763 2.23338,-3.95973c0.74511,-1.5858 0.37254,-2.97269 -0.18627,-4.16c-0.55883,-1.18764 -4.90333,-12.93183 -6.89124,-17.62704" id="svg_27" />';
     20$svg.= '</g>
    2121</svg>
    2222';
  • click-to-call-or-chat-buttons/trunk/ctcocb.php

    r2365652 r2369740  
    5050
    5151    <div class="wrap"> 
    52         <h1>Click to Call or Chat Buttons <span class="version">v<?php echo CTCOCB_VERSION;?></span></h1>
     52        <h1><?php __("Click to Call or Chat Buttons");?><span class="version">v<?php echo CTCOCB_VERSION;?></span></h1>
    5353        <?php
    5454        if($ctcocb_options['activePlugin']==0) {
     
    8383           
    8484            <tr>
    85                 <th>WhatsApp number to call:</th>
     85                <th>WhatsApp number to call or chat:</th>
    8686                <td><input type="text" name="ctcocb[numberWapp]" value="<?php echo $ctcocb_options['numberWapp']; ?>" /></td>
    8787            </tr>
     
    132132                </tr>
    133133                <tr>   
    134                     <th>Phone bubble color</th>
     134                    <th>Phone border color</th>
    135135                     <td>
    136136                       <input name="ctcocb[colorPhoneBubble]" type="text" value="<?php echo $ctcocb_options['colorPhoneBubble']; ?>" class="ctcocb-color-field"  />
     137                       <i>Require Phone icon color to be set</i>
     138                    </td>
     139                </tr>
     140                    <tr>   
     141                    <th>WhatsApp icon color</th>
     142                     <td>
     143                       <input name="ctcocb[colorWappIcon]" type="text" value="<?php echo $ctcocb_options['colorWappIcon']; ?>" class="ctcocb-color-field"  />
     144                    </td>
     145                </tr>
     146                <tr>   
     147                    <th>WhatsApp background color</th>
     148                     <td>
     149                       <input name="ctcocb[colorWappBubble]" type="text" value="<?php echo $ctcocb_options['colorWappBubble']; ?>" class="ctcocb-color-field"  />
    137150                       
    138151                    </td>
    139152                </tr>
    140                
    141153                <tr>   
    142154                    <th>Phone and WhatsApp text color</th>
     
    262274                    </td>
    263275                </tr>
     276                    <tr  class="db_slider">
     277                <th>Container padding (<span class="slider_preview"><?php echo $ctcocb_options['containerPadding']; ?></span>px):</th>
     278                    <td>
     279                        <label>Smaller</label> <input type="range" min="0" max="40" name="ctcocb[containerPadding]" value="<?php echo $ctcocb_options['containerPadding']; ?>" step="1">
     280                        <label>Bigger</label>               
     281                    </td>
     282                </tr>
    264283                <tr  class="db_slider">
    265284                    <th>Container border size (<span class="slider_preview"><?php echo $ctcocb_options['containerBorderSize']; ?></span>px):</th>
     
    292311                    <th>Font size (<span class="slider_preview"><?php echo $ctcocb_options['fontSize']; ?></span>px):</th>
    293312                    <td>
    294                         <label>Smaller</label> <input type="range" min="10" max="100" name="ctcocb[fontSize]" value="<?php echo $ctcocb_options['fontSize']; ?>"  step="1"> <label>Bigger</label>               
     313                        <label>Smaller</label> <input type="range" min="10" max="40" name="ctcocb[fontSize]" value="<?php echo $ctcocb_options['fontSize']; ?>"  step="1"> <label>Bigger</label>               
    295314                    </td>
    296315                </tr>
     
    367386                }";
    368387                $styling .= ".ctcocb {";
    369                 $styling .= $ctcocb_css."";
     388                $styling .= $ctcocb_css.";";
     389                if(isset($ctcocb_options['containerPadding']))$styling .= "padding:".$ctcocb_options['containerPadding']."px;";
    370390                $styling .= "z-index:".ctcocb_set_zindex($ctcocb_options['zIndex']).";";
    371391                $alphaBackground="";
     
    377397                $styling .= "}";
    378398               
    379 
    380                
     399           
    381400                $styling .= ".ctcocb-text{color:".$ctcocb_options['colorCustomText'].";}";
    382                 $styling .= ".ctcocb-phone a,.ctcocb-phone a:visited{color:".$ctcocb_options['colorText'].";}";
    383                 $styling .= ".ctcocb-wapp a,.ctcocb-wapp a:visited{color:".$ctcocb_options['colorText'].";}";
     401                $styling .= ".ctcocb a,.ctcocb a:visited{color:".$ctcocb_options['colorText'].";}";
     402                $styling .= ".ctcocb a,.ctcocb a:visited{color:".$ctcocb_options['colorText'].";}";
    384403               
    385404                $styling .= "
    386                      .ctcocb img {width:". $ctcocb_options['buttonSize']."px;}
    387                      .ctcocb {padding:". $ctcocb_options['padding']."px}
    388                      .ctcocb>div {font-size:". $ctcocb_options['fontSize']."px;}
    389                      .ctcocb span {padding-right:". $ctcocb_options['padding']."px;padding-left:". $ctcocb_options['padding']."px;}
    390 
     405                     .ctcocb img {width:". $ctcocb_options['buttonSize']."px!important;}
     406                   
     407                     .ctcocb div {font-size:". $ctcocb_options['fontSize']."px;}
     408                     .ctcocb img,.ctcocb .ctcocb-text{margin-left:". $ctcocb_options['padding']."px;margin-right:". $ctcocb_options['padding']."px;}
     409                   
    391410                     ";
    392411                $styling .= "</style>\n";
     
    422441                $colorsp[2]=$ctcocb_options['colorPhoneIcon'];
    423442               
    424 
    425                 $colorsw[]='';
     443                $colorsw[1]=$ctcocb_options['colorWappBubble'];
     444                $colorsw[2]=$ctcocb_options['colorWappIcon'];
    426445                $col=0;
    427446                if($ctcocb_options['displayPhone'])$col++;
     
    433452                if($ctcocb_options['appearancePosition']>2)$ctcocb_cols="";
    434453                $ButtonPhone=$ButtonText=$ButtonWapp='';           
    435                 if($ctcocb_options['textPhone']!='')$ctcocb_textPhone='<span class="db-phone">'.$ctcocb_options['textPhone'].'</span>';
    436                 if($ctcocb_options['text']!='')$ctcocb_text='<span>'.$ctcocb_options['text'].'</span>';
    437                 if($ctcocb_options['textWapp']!='')$ctcocb_textWapp='<span class="db-text">'.$ctcocb_options['textWapp'].'</span>';
    438                 if($ctcocb_options['displayPhone']) $ButtonPhone=   '<div class="ctcocb-phone ctcocb-cols-'.$ctcocb_cols.'"><a  href="tel:'.$ctcocb_options['numberPhone'].'" '.$trackingcode_Phone.'><span><img src="data:image/svg+xml;base64,'.ctcocb_get_svg('iconPhone',$colorsp,100).'"/></span>'.$ctcocb_textPhone.'</a></div>';
    439                 if($ctcocb_options['displayText'])  $ButtonText=    '<div class="ctcocb-text ctcocb-cols-'.$ctcocb_cols.'">'.$ctcocb_text.'</div>';
    440                 if($ctcocb_options['displayWapp'])  $ButtonWapp=    '<div class="ctcocb-wapp ctcocb-cols-'.$ctcocb_cols.'"><a  href="https://api.whatsapp.com/send?phone='.$ctcocb_options['numberWapp'].'" '.$trackingcode_WApp.'><span><img src="data:image/svg+xml;base64,'.ctcocb_get_svg('iconWApp',$colorsw,100).'"/></span>'.$ctcocb_textWapp.'</a></div>';
     454                if($ctcocb_options['textPhone']!='')$ctcocb_textPhone='<div class="ctcocb-phone">'.$ctcocb_options['textPhone'].'</div>';
     455                if($ctcocb_options['text']!='')$ctcocb_text='<div class="ctcocb-text">'.$ctcocb_options['text'].'</div>';
     456                if($ctcocb_options['textWapp']!='')$ctcocb_textWapp='<div class="ctcocb-wapp">'.$ctcocb_options['textWapp'].'</div>';
     457                if($ctcocb_options['displayPhone']) $ButtonPhone=   '<div class="ctcocb-cols-'.$ctcocb_cols.'"><a  href="tel:'.$ctcocb_options['numberPhone'].'" '.$trackingcode_Phone.'><div class="ctcocb-img" ><img src="data:image/svg+xml;base64,'.ctcocb_get_svg('iconPhone',$colorsp,100).'"/></div>'.$ctcocb_textPhone.'</a></div>';
     458                if($ctcocb_options['displayText'])  $ButtonText=    '<div class="ctcocb-cols-'.$ctcocb_cols.'">'.$ctcocb_text.'</div>';
     459                if($ctcocb_options['displayWapp'])  $ButtonWapp=    '<div class="ctcocb-cols-'.$ctcocb_cols.'"><a  href="https://wa.me/'.$ctcocb_options['numberWapp'].'" '.$trackingcode_WApp.'><div class="ctcocb-img" ><img src="data:image/svg+xml;base64,'.ctcocb_get_svg('iconWApp',$colorsw,100).'"/></div>'.$ctcocb_textWapp.'</a></div>';
    441460                $Button=$ButtonPhone.$ButtonText.$ButtonWapp;
    442461                if($ctcocb_options['appearanceOrder']==1)$Button=$ButtonPhone.$ButtonText.$ButtonWapp;
     
    478497            'colorPhoneIcon' => '#ffffff',
    479498            'colorPhoneBubble' => '',
     499            'colorWappIcon' => '#ffffff',
     500            'colorWappBubble' => '#25d366',
    480501            'colorText' => '#ffffff',
    481502            'colorCustomText' => '#ffffff',
     
    490511            'containerBorderSize' => 1,
    491512            'containerBorderColor' => '#ffffff',
    492             'containerBorderRadius' => 20,
     513            'containerBorderRadius' => 0,
    493514            'screenWidth' => 780,
    494             'containerMargin' => 10,
    495             'buttonSize' => 30,
    496             'fontSize' => 16,
     515            'containerMargin' => 0,
     516            'containerPadding' => 5,
     517            'buttonSize' => 20,
     518            'fontSize' => 14,
    497519            'padding' => 5,
    498520            'zIndex' => 6,
  • click-to-call-or-chat-buttons/trunk/readme.txt

    r2364061 r2369740  
    11=== Click to Call or Chat Buttons ===
    22Contributors: digitalblue
    3 Tags: tclick to call, click to chat, call button, contact bottom button, whatsapp button
     3Tags: click to call chat, call us button, call now button, contact bottom button, phone whatsapp button
    44Requires at least: 5.2
    55Tested up to: 5.4
     
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1010
    11 This plugin adds a box on your webpage that allows direct dialing via two phone or WhatsApp buttons.
     11This plugin add a box on your webpage that allows direct dialing via phone or WhatsApp button.
    1212
    1313== Description ==
    14 #Features
    1514
    16     Add a button for calling via mobile phone
    17     Add a button for calling or chat on WhatsApp
    18     Custom configuration of dimensions, positioning and colors
    19     Add a custom text.
    20     Tracking in Google Analytics (track events)
     15* Add a custom button for calling via mobile phone.
     16* Add a custom button for calling or chat on WhatsApp.
     17* Add a custom text.
     18* Easy configuration of colors, sizes and distances as desired.
     19* Event Tracking for Google Analytics.
     20
    2121
    2222A flexible module that adds two buttons that can be called directly by phone or on WhatsApp.
     
    2727You can change the colors, text size, edges and position of the buttons.
    2828
    29 #How to install?
    3029
    3130
    32 #How to configure?
     31**How to configure?**
    3332
    3433Fill in the phone numbers “Phone number to call” and “WhatsApp number to call” and the texts associated with them “Phone number (or text) to display” or “WhatsApp number (or text) to display”
     
    3635It is good here to use the country code(prefix) for phone numbers and to be in a callable format (for example “+41987654321”). However, the associated texts can contain any text or any format of telephone numbers (for example “Call Us” or “0987.654.321”)
    3736
    38 #Choose the colors
     37**Choose the colors**
    3938
    4039If you do not want a specific color and you want the element to be transparent, then delete the color from the corresponding field.
    4140
    42 #Set the positioning
     41**Set the positioning**
    4342
    4443In the “Topography” group, set the active fields, display mode and position.
     
    4645Also in “Restrict appearance” set on which pages the buttons will appear. If you select “Only on pages” or “Not on pages” then fill in the id of the pages or posts separated by commas.
    4746
    48 #Set events tracking
     47**Set events tracking**
    4948
    5049If you have the Google Analytics tracking code already added to the page, then choose the appropriate version to track events.
    5150The module will automatically add the tracking script and you will be able to find the events in Google Analytics in Behavior> Events> Overview
    5251
    53 #Save changes
     52**Save changes**
    5453
    5554After checking the completed fields, save these changes and retouch the appearance if necessary.
    5655
    57 #Finally
     56**Finally**
    5857
    5958Finally, test if buttons call the right numbers and verify the Google Analytics events traking.
     
    6362Install the module following the usual procedure and activate it.
    6463
    65 1. From your WordPress Dashboard go to ‘Plugins’ > ‘Add new’ and search for \'Click to Call or Chat Buttons\'.
    66 2. Click ‘Install Now’ under the title of the \'Click to Call or Chat Buttons\' plugin and click \"activate\".
     641. From your WordPress Dashboard go to ‘Plugins’ > ‘Add new’ and search for ‘Click to Call or Chat Buttons’.
     652. Click ‘Install Now’ under the title of the 'Click to Call or Chat Buttons’ plugin and click ‘activate’.
    67663. Go to ‘Settings’ > ‘Click to Call or Chat Buttons’, enter your phone numbers and check the buttons status box to activate.
    68674. Click ‘Save’ and check your website front page to see the buttons.
    6968
    70    Or:
     69
     70Or:
     71
    7172
    72731. Upload the `click-to-call-or-chat-buttons` folder to the `/wp-content/plugins/` directory
Note: See TracChangeset for help on using the changeset viewer.