WordPress.org

Plugin Directory

Changeset 1818145


Ignore:
Timestamp:
02/08/18 12:22:22 (12 days ago)
Author:
hiddenpearls
Message:

2.0.10 - 2018-02-08

  • New Feature: Add Facebook Messenger Share.
  • New Feature: Twitter Card meta added.
  • Improvement: Add rel="noopener" on widget links.
  • Improvement: Add Image in Open Graph Meta.
  • Improvement: Remove extra text form WhatsApp & Viber.
Location:
simple-social-buttons
Files:
2 added
9 edited
28 copied

Legend:

Unmodified
Added
Removed
  • simple-social-buttons/tags/2.0.10/assets/css/front.css

    r1808337 r1818145  
    6767  content: "\e902"; 
    6868} 
     69.simplesocialbuttons button.simplesocial-msng-share:after{ 
     70  content: "\e908"; 
     71} 
    6972.ssb_total_counter{ 
    7073  display: inline-block; 
     
    134137        color: #fff; 
    135138        padding-left: 20px; 
     139        height: 20px; 
    136140    } 
    137141    .simplesocial-simple-icons.simplesocialbuttons-float-right-center button{ 
     
    345349  display: none; 
    346350}*/ 
     351.simplesocialbuttons .fb_iframe_widget{ 
     352  display: inline-block !important; 
     353  position: relative; 
     354  width: initial !important; 
     355} 
     356.simplesocialbuttons .fb_iframe_widget span { 
     357    display: inline-block !important; 
     358    position: relative; 
     359    text-align: justify; 
     360    width: 61px !important; 
     361} 
     362.simplesocialbuttons .ssb-fb-like{ 
     363  height: 20px !important; 
     364  line-height: 20px !important; 
     365  margin: 5px; 
     366} 
    347367.simplesocial-simple-icons .ssb_fbshare-icon{ 
    348368  background: #4267b2; 
     
    767787  height: 14px; 
    768788} 
     789.simplesocial-simple-icons .ssb_msng-icon{ 
     790  border-radius: 2px; 
     791  width: auto; 
     792  padding: 0 4px 0 0; 
     793  text-align: center; 
     794  text-decoration: none; 
     795  font:bold 11px/20px "Helvetica Neue", Helvetica, sans-serif; 
     796  font-weight: bold; 
     797  color: #fff; 
     798  background: #468bff; 
     799  background-size: 14px 14px; 
     800  display: inline-block; 
     801  -webkit-font-smoothing: antialiased; 
     802  height: 20px; 
     803  text-indent: 20px; 
     804} 
     805.simplesocial-simple-icons .ssb_msng-icon:hover{ 
     806  background: #307bf9; 
     807} 
     808.simplesocial-simple-icons .ssb_msng-icon .icon{ 
     809  text-indent: 0; 
     810  position: absolute; 
     811  top: 3px; 
     812  left: 3px; 
     813} 
     814.simplesocial-simple-icons .ssb_msng-icon .icon svg{ 
     815  width: 14px; 
     816  fill: #fff; 
     817  height: 14px; 
     818} 
    769819div[class*="simplesocialbuttons-float"].simplesocial-simple-icons{ 
    770820  width: 82px; 
     
    844894  color: #C92228; 
    845895} 
     896.simplesocialbuttons.simplesocial-sm-round button.simplesocial-msng-share{ 
     897  color: #468bff; 
     898} 
     899 
    846900 
    847901/*=====  End of Gredient Button  ======*/ 
     
    916970  background: #C92228; 
    917971} 
     972.simplesocialbuttons.simplesocial-simple-round button.simplesocial-msng-share{ 
     973  background: #468bff; 
     974} 
     975 
    918976.simplesocialbuttons.simplesocial-simple-round button.simplesocial-fb-share:after, .simplesocialbuttons.simplesocial-simple-round button.simplesocial-fb-share:before { 
    919977  background: #354e83; 
     
    940998.simplesocialbuttons.simplesocial-simple-round button.simplesocial-pinterest-share:after, .simplesocialbuttons.simplesocial-simple-round button.simplesocial-pinterest-share:before { 
    941999  background: #af040a; 
     1000} 
     1001.simplesocialbuttons.simplesocial-simple-round button.simplesocial-msng-share:after, .simplesocialbuttons.simplesocial-simple-round button.simplesocial-msng-share:before { 
     1002  background: #3c7be6; 
    9421003} 
    9431004 
     
    10361097  color: #fff; 
    10371098} 
     1099.simplesocialbuttons.simplesocial-round-txt button.simplesocial-msng-share{ 
     1100  color: #468bff; 
     1101  border-color: #468bff; 
     1102} 
     1103.simplesocialbuttons.simplesocial-round-txt button.simplesocial-msng-share:hover{ 
     1104  background: #468bff; 
     1105  color: #fff; 
     1106} 
    10381107 
    10391108/*=====  End of Code for style 3  ======*/ 
     
    11361205  color: #fff; 
    11371206} 
     1207.simplesocialbuttons.simplesocial-round-btm-border button.simplesocial-msng-share { 
     1208  -webkit-box-shadow: inset 0px 0px 0px 0px #468bff, 0px 2px 0px 0px #468bff, 0px 0px 5px 0px rgba(0, 0, 0, 0.13); 
     1209  box-shadow: inset 0px 0px 0px 0px #468bff, 0px 2px 0px 0px #468bff, 0px 0px 5px 0px rgba(0, 0, 0, 0.13); 
     1210  color: #468bff; 
     1211} 
     1212.simplesocialbuttons.simplesocial-round-btm-border button.simplesocial-msng-share:hover{ 
     1213  -webkit-box-shadow: inset 0px -40px 0px 0px #468bff, 0px 2px 0px 0px #468bff, 0px 0px 5px 0px rgba(0, 0, 0, 0.13); 
     1214  box-shadow: inset 0px -40px 0px 0px #468bff, 0px 2px 0px 0px #468bff, 0px 0px 5px 0px rgba(0, 0, 0, 0.13); 
     1215  color: #fff; 
     1216} 
    11381217/*=====  End of style 4  ======*/ 
    11391218 
     
    12291308  -webkit-box-shadow: inset 0px -40px 0px 0px #af040a, 0px 3px 0px 0px #af040a; 
    12301309          box-shadow: inset 0px -40px 0px 0px #af040a, 0px 3px 0px 0px #af040a; 
     1310} 
     1311.simplesocialbuttons.simplesocial-flat-button-border button.simplesocial-msng-share { 
     1312  background: #468bff; 
     1313  -webkit-box-shadow: inset 0px 0px 0px 0px #468bff, 0px 3px 0px 0px #468bff; 
     1314  box-shadow: inset 0px 0px 0px 0px #468bff, 0px 3px 0px 0px #26519e; 
     1315} 
     1316.simplesocialbuttons.simplesocial-flat-button-border button.simplesocial-msng-share:hover { 
     1317  -webkit-box-shadow: inset 0px -40px 0px 0px #26519e, 0px 3px 0px 0px #26519e; 
     1318  box-shadow: inset 0px -40px 0px 0px #26519e, 0px 3px 0px 0px #26519e; 
    12311319} 
    12321320 
     
    13441432  line-height: 34px; 
    13451433} 
     1434.simplesocialbuttons.simplesocial-round-icon button.simplesocial-msng-share{ 
     1435  color: #468bff; 
     1436  border-color: #468bff; 
     1437} 
     1438.simplesocialbuttons.simplesocial-round-icon button.simplesocial-msng-share:hover{ 
     1439  background: #468bff; 
     1440  color: #fff; 
     1441} 
     1442.simplesocialbuttons.simplesocial-round-icon button:after{ 
     1443  width: 34px; 
     1444  height: 34px; 
     1445  line-height: 34px; 
     1446} 
    13461447 
    13471448/*=====  End of Style 6  ======*/ 
     
    14921593  width: 36px; 
    14931594} 
     1595.simplesocialbuttons.simplesocial-simple-round button.simplesocial-msng-share:not(:hover):before{ 
     1596  background: rgba(0,0,0, .2); 
     1597  width: 36px; 
     1598} 
    14941599.simplesocialbuttons.simplesocial-simple-round button.simplesocial-fb-share:after, 
    14951600.simplesocialbuttons.simplesocial-simple-round button.simplesocial-twt-share:after, 
     
    15001605.simplesocialbuttons.simplesocial-simple-round button.simplesocial-linkedin-share:after, 
    15011606.simplesocialbuttons.simplesocial-simple-round button.simplesocial-pinterest-share:after{ 
     1607  background: none; 
     1608} 
     1609.simplesocialbuttons.simplesocial-simple-round button.simplesocial-msng-share:after{ 
    15021610  background: none; 
    15031611} 
     
    15461654  background: #db4437; 
    15471655} 
    1548 .simplesocialbuttons.simplesocial-sm-round.ssb_counter-activate button:not(.simplesocial-viber-share):not(.simplesocial-whatsapp-share){ 
     1656.simplesocialbuttons.simplesocial-sm-round.ssb_counter-activate button:not(.simplesocial-viber-share):not(.simplesocial-whatsapp-share):not(.simplesocial-msng-share){ 
    15491657  padding-right: 50px; 
    15501658  position: relative; 
     
    15641672  border-radius: 0 3px 3px 0; 
    15651673} 
    1566 .simplesocialbuttons.simplesocial-simple-round.ssb_counter-activate button:not(.simplesocial-viber-share):not(.simplesocial-whatsapp-share){ 
     1674.simplesocialbuttons.simplesocial-simple-round.ssb_counter-activate button:not(.simplesocial-viber-share):not(.simplesocial-whatsapp-share):not(.simplesocial-msng-share){ 
    15671675  padding-right: 50px; 
    15681676  position: relative; 
     
    16431751  color: #db4437; 
    16441752} 
    1645 .simplesocialbuttons.simplesocial-flat-button-border button:not(.simplesocial-whatsapp-share):not(.simplesocial-viber-share){ 
     1753.simplesocialbuttons.simplesocial-flat-button-border button:not(.simplesocial-whatsapp-share):not(.simplesocial-viber-share):not(.simplesocial-msng-share){ 
    16461754  padding-right: 50px; 
    16471755  position: relative; 
    1648  
    1649  
    16501756} 
    16511757.simplesocialbuttons.simplesocial-flat-button-border.ssb_counter-activate .ssb_counter{ 
     
    16841790  color: #db4437; 
    16851791} 
    1686 .simplesocialbuttons.simplesocial-round-btm-border.ssb_counter-activate button:not(.simplesocial-viber-share):not(.simplesocial-whatsapp-share){ 
     1792.simplesocialbuttons.simplesocial-round-btm-border.ssb_counter-activate button:not(.simplesocial-viber-share):not(.simplesocial-whatsapp-share):not(.simplesocial-msng-share){ 
    16871793  padding-right: 60px; 
    16881794  position: relative; 
     
    20042110  left: auto; 
    20052111} 
     2112div[class*="simplesocialbuttons-float"].simplesocial-flat-button-border.ssb_counter-activate .ssb_counter{ 
     2113  width: 20px; 
     2114  height: 20px; 
     2115  line-height: 18px; 
     2116  top: -10px; 
     2117} 
     2118div[class*="simplesocialbuttons-float"].simplesocial-simple-round.ssb_counter-activate .ssb_counter{ 
     2119  width: 20px; 
     2120  height: 20px; 
     2121  line-height: 18px; 
     2122  top: -10px; 
     2123  border-radius: 0; 
     2124} 
    20062125/*======================================================= 
    20072126=            Code for floating share buttons            = 
     
    24412560} 
    24422561.ssb_followers a.ssb_button.simplesocial-yt-follow:after{ 
    2443   content: "\e908"; 
     2562  content: "\e909"; 
    24442563} 
    24452564.ssb_followers a.ssb_button:after { 
  • simple-social-buttons/tags/2.0.10/assets/fonts/ssb-icon.svg

    r1793185 r1818145  
    1616<glyph unicode="&#xe906;" glyph-name="whatsapp" horiz-adv-x="1022" d="M454.656 960c38.912 0 77.824 0 116.736 0 4.096-1.024 8.192-4.096 12.288-4.096 206.848-30.72 370.688-179.2 420.864-381.952 7.168-29.696 11.264-60.416 16.384-92.16 0-18.432 0-37.888 0-56.32-2.048-13.312-4.096-27.648-6.144-40.96-48.128-345.088-423.936-545.792-728.064-381.952-9.216 5.12-23.552 5.12-34.816 3.072-45.056-11.264-90.112-24.576-135.168-37.888-37.888-11.264-75.776-21.504-116.736-32.768 26.624 74.752 51.2 145.408 77.824 216.064 7.168 19.456 5.12 33.792-5.12 51.2-169.984 292.864-9.216 664.576 320.512 743.424 20.48 6.144 40.96 10.24 61.44 14.336zM124.928 52.736c46.080 12.288 88.064 23.552 129.024 36.864 14.336 4.096 25.6 3.072 38.912-5.12 84.992-50.176 176.128-69.632 274.432-56.32 241.664 30.72 409.6 258.048 368.64 498.688-40.96 242.688-278.528 401.408-517.12 348.16-301.056-68.608-435.2-415.744-257.024-667.648 9.216-12.288 11.264-22.528 5.12-37.888-15.36-38.912-26.624-75.776-41.984-116.736zM237.568 592.384c1.024 45.056 17.408 83.968 48.128 116.736 30.72 33.792 79.872 24.576 96.256-17.408 11.264-27.648 19.456-57.344 32.768-84.992 11.264-24.576 6.144-43.008-8.192-62.464-33.792-46.080-32.768-46.080-1.024-95.232 38.912-58.368 91.136-101.376 155.648-131.072 16.384-7.168 27.648-5.12 37.888 10.24 11.264 16.384 23.552 30.72 34.816 47.104 8.192 12.288 17.408 16.384 31.744 10.24 35.84-18.432 72.704-35.84 107.52-55.296 6.144-4.096 12.288-14.336 12.288-22.528 3.072-58.368-41.984-115.712-100.352-121.856-29.696-4.096-62.464 0-92.16 8.192-116.736 33.792-203.776 110.592-274.432 207.872-32.768 46.080-65.536 94.208-76.8 150.528-2.048 11.264-2.048 25.6-4.096 39.936z" /> 
    1717<glyph unicode="&#xe907;" glyph-name="linkedin" horiz-adv-x="1071" d="M841.728-62.976c0 5.12 0 8.192 0 12.288 0 123.904 0 246.784-1.024 370.688 0 29.696-5.12 58.368-18.432 84.992-19.456 40.96-57.344 59.392-103.424 56.32-58.368-4.096-95.232-36.864-113.664-90.112-6.144-17.408-5.12-36.864-6.144-55.296 0-122.88 0-244.736 0-367.616 0-11.264 0-11.264-11.264-11.264-68.608 0-138.24 0-206.848 0-3.072 0-7.168 0-10.24 0 0 230.4 0 459.776 0 690.176 3.072 0 6.144 0 9.216 0 69.632 0 140.288 0 209.92 0 8.192 0 10.24-2.048 10.24-10.24-1.024-27.648 0-56.32 0-86.016 8.192 10.24 14.336 18.432 20.48 26.624 38.912 49.152 90.112 76.8 153.6 83.968 54.272 5.12 106.496-1.024 156.672-25.6 43.008-21.504 75.776-53.248 98.304-95.232 31.744-58.368 41.984-121.856 41.984-187.392 0-130.048 0-259.072 0-389.12 0-2.048 0-5.12 0-7.168-76.8 0-152.576 0-229.376 0zM14.336-64c0 5.12 0 8.192 0 11.264 0 222.208 0 445.44 0 667.648 0 11.264 0 11.264 11.264 11.264 68.608 0 138.24 0 206.848 0 8.192 0 11.264-2.048 11.264-10.24 0-223.232 0-446.464 0-670.72 0-8.192-2.048-10.24-10.24-10.24-69.632 0-139.264 0-208.896 0-3.072 1.024-6.144 1.024-10.24 1.024zM129.024 720.384c-45.056 1.024-83.968 15.36-109.568 55.296-38.912 59.392-18.432 151.552 64.512 176.128 44.032 13.312 87.040 10.24 125.952-16.384 38.912-27.648 53.248-66.56 47.104-112.64s-31.744-76.8-75.776-93.184c-16.384-6.144-34.816-8.192-52.224-11.264 0 1.024 0 2.048 0 2.048z" /> 
    18 <glyph unicode="&#xe908;" glyph-name="yt_icon" d="M1017.2 662.4c0 90-66.2 162.4-148 162.4-110.8 5.2-223.8 7.2-339.2 7.2-6 0-12 0-18 0s-12 0-18 0c-115.2 0-228.4-2-339.2-7.2-81.6 0-147.8-72.8-147.8-162.8-5-71.2-7.2-142.4-7-213.6-0.2-71.2 2-142.4 6.8-213.8 0-90 66.2-163 147.8-163 116.4-5.4 235.8-7.8 357.2-7.6 121.6-0.4 240.6 2 357.2 7.6 81.8 0 148 73 148 163 4.8 71.4 7 142.6 6.8 214 0.4 71.2-1.8 142.4-6.6 213.8zM414 252.2v393l290-196.4-290-196.6z" /> 
     18<glyph unicode="&#xe908;" glyph-name="messenger_icon_2" horiz-adv-x="970" d="M485.053 960c-269.474 0-485.053-204.8-485.053-458.105 0-129.347 53.895-242.526 145.516-323.368v-242.526l204.8 123.958c43.116-10.779 86.232-16.168 134.737-16.168 269.474 0 485.053 204.8 485.053 458.105s-215.579 458.105-485.053 458.105zM533.558 356.379l-129.347 129.347-231.747-129.347 253.305 280.253 129.347-129.347 226.358 129.347-247.916-280.253z" /> 
     19<glyph unicode="&#xe909;" glyph-name="youtube_icon_2" horiz-adv-x="1480" d="M1447.692 800.294c-16.91 62.943-66.701 112.734-130.583 129.644-115.552 30.062-577.761 30.062-577.761 30.062s-453.754 1.879-569.306-28.183c-63.883-16.91-124.947-68.58-141.857-131.523-31.002-114.613-28.183-352.294-28.183-352.294s-2.818-237.681 28.183-352.294c16.91-62.943 78.914-114.613 141.857-131.523 115.552-31.002 569.306-28.183 569.306-28.183s453.754-1.879 569.306 28.183c63.883 16.91 123.068 68.58 139.978 131.523 31.002 113.673 31.002 352.294 31.002 352.294s-0.939 237.681-31.941 352.294zM597.49 220.653v454.694l369.204-227.347-369.204-227.347z" /> 
    1920</font></defs></svg> 
  • simple-social-buttons/tags/2.0.10/classes/ssb-settings-strucutre.php

    r1793185 r1818145  
    368368               <?php 
    369369               $ssb_icons_order = array(); 
    370                $arrKnownButtons = array( 'googleplus', 'twitter', 'pinterest', 'fbshare', 'linkedin', 'reddit', 'whatsapp', 'viber', 'fblike' ); 
     370               $arrKnownButtons = array( 'googleplus', 'twitter', 'pinterest', 'fbshare', 'linkedin', 'reddit', 'whatsapp', 'viber', 'fblike', 'messenger' ); 
    371371               foreach ($arrKnownButtons as $button_name) { 
    372372                   $ssb_icons_order[$button_name] = isset( $settings[$button_name] ) ? $settings[$button_name] : '' ; 
  • simple-social-buttons/tags/2.0.10/inc/ssb-widget-front.php

    r1810282 r1818145  
    99 
    1010    <?php if( $display == $show_facebook ):?> 
    11     <a class="ssb_button simplesocial-fb-follow" rel="nofollow" href="https://facebook.com/<?php echo  $facebook_id;?>"  target="_blank"><span class="simplesocialtxt"><?php echo $facebook_text;?> </span><span class="widget_counter"> <?php echo ( $display == $facebook_show_counter)? $fb_likes: '' ;?> </span></a> 
     11    <a class="ssb_button simplesocial-fb-follow" rel="noopener" href="https://facebook.com/<?php echo  $facebook_id;?>"  target="_blank"><span class="simplesocialtxt"><?php echo $facebook_text;?> </span><span class="widget_counter"> <?php echo ( $display == $facebook_show_counter)? $fb_likes: '' ;?> </span></a> 
    1212    <?php endif; 
    1313    if( $display == $show_twitter ):   ?> 
    14     <a class="ssb_button simplesocial-twt-follow" rel="nofollow" href="https://twitter.com/<?php echo  $twitter_id;?>" target="_blank"><span class="simplesocialtxt"><?php echo $twitter_text;?> </span><span class="widget_counter"> <?php echo ( $display ==  $twitter_show_counter)? $twitter_follower: '';?> </span></a> 
     14    <a class="ssb_button simplesocial-twt-follow" rel="noopener" href="https://twitter.com/<?php echo  $twitter_id;?>" target="_blank"><span class="simplesocialtxt"><?php echo $twitter_text;?> </span><span class="widget_counter"> <?php echo ( $display ==  $twitter_show_counter)? $twitter_follower: '';?> </span></a> 
    1515    <?php endif; 
    1616    if ( $display == $show_google_plus ):?> 
    17     <a class="ssb_button simplesocial-gplus-follow" rel="nofollow" href="https://plus.google.com/<?php echo $google_id;?>" target="_blank"><span class="simplesocialtxt"><?php echo  $google_text;?> </span><span class="widget_counter"> <?php echo ( $display == $google_show_counter )? $google_follower: '';?> </span></a> 
     17    <a class="ssb_button simplesocial-gplus-follow" rel="noopener" href="https://plus.google.com/<?php echo $google_id;?>" target="_blank"><span class="simplesocialtxt"><?php echo  $google_text;?> </span><span class="widget_counter"> <?php echo ( $display == $google_show_counter )? $google_follower: '';?> </span></a> 
    1818    <?php endif; 
    1919     if( $display == $show_youtube): 
    2020    ?> 
    21     <a class="ssb_button simplesocial-yt-follow" rel="nofollow" href="https://youtube.com/<?php echo $youtube_type ?>/<?php echo $youtube_id ?>" target="_blank"><span class="simplesocialtxt"><?php echo  $youtube_text?> </span><span class="widget_counter"> <?php echo ( $display == $youtube_show_counter)?$youtube_subscriber:" ";?> </span></a> 
     21    <a class="ssb_button simplesocial-yt-follow" rel="noopener" href="https://youtube.com/<?php echo $youtube_type ?>/<?php echo $youtube_id ?>" target="_blank"><span class="simplesocialtxt"><?php echo  $youtube_text?> </span><span class="widget_counter"> <?php echo ( $display == $youtube_show_counter)?$youtube_subscriber:" ";?> </span></a> 
    2222    <?php endif;?> 
    2323    <?php if ( $display == $show_pinterest ):?> 
    24     <a class="ssb_button simplesocial-pinterest-follow" rel="nofollow" href="https://pinterest.com/<?php echo $pinterest_id;?>/" target="_blank"><span class="simplesocialtxt"><?php echo  $pinterest_text;?> </span><span class="widget_counter"> <?php echo ( $display == $pinterest_show_counter )? $pinterest_follower: '';?> </span></a> 
     24    <a class="ssb_button simplesocial-pinterest-follow" rel="noopener" href="https://pinterest.com/<?php echo $pinterest_id;?>/" target="_blank"><span class="simplesocialtxt"><?php echo  $pinterest_text;?> </span><span class="widget_counter"> <?php echo ( $display == $pinterest_show_counter )? $pinterest_follower: '';?> </span></a> 
    2525    <?php endif;?> 
    2626 
  • simple-social-buttons/tags/2.0.10/readme.txt

    r1810282 r1818145  
    55Requires at least: 4.0 
    66Tested up to: 4.9 
    7 Stable tag: 2.0.9 
     7Stable tag: 2.0.10 
    88License: GPLv2 or later 
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html 
     
    147147== Upgrade Notice == 
    148148 
    149 = 2.0.9 = 
     149= 2.0.10 = 
    150150* Relaunched with a whole set of NEW FEATURES and Improvement. Please upgrade immediately and provide your feedback. highly recommended. Apologies in advance, if anything breaks! 
    151151 
     
    153153== Changelog == 
    154154 
     155= 2.0.10 - 2018-02-08 = 
     156* New Feature: Add Facebook Messenger Share. 
     157* New Feature: Twitter Card meta added. 
     158* Improvement: Add rel="noopener" on widget links. 
     159* Improvement: Add Image in Open Graph Meta. 
     160* Improvement: Remove extra text form WhatsApp & Viber. 
    155161 
    156162= 2.0.9 - 2018-01-27 = 
  • simple-social-buttons/tags/2.0.10/simple-social-buttons.php

    r1810282 r1818145  
    44 * Plugin URI: http://www.WPBrigade.com/wordpress/plugins/simple-social-buttons/ 
    55 * Description: Simple Social Buttons adds an advanced set of social media sharing buttons to your WordPress sites, such as: Google +1, Facebook, WhatsApp, Viber, Twitter, Reddit, LinkedIn and Pinterest. This makes it the most <code>Flexible Social Sharing Plugin ever for Everyone.</code> 
    6  * Version: 2.0.9 
     6 * Version: 2.0.10 
    77 * Author: WPBrigade 
    88 * Author URI: http://www.WPBrigade.com/ 
     
    3131class SimpleSocialButtonsPR { 
    3232    public $pluginName        = 'Simple Social Buttons'; 
    33     public $pluginVersion     = '2.0.9'; 
     33    public $pluginVersion     = '2.0.10'; 
    3434    public $pluginPrefix      = 'ssb_pr_'; 
    3535    public $hideCustomMetaKey = '_ssb_hide'; 
     36    private $fb_app_id        = '891268654262273'; 
    3637 
    3738    // plugin default settings 
     
    5354 
    5455    // defined buttons 
    55     public $arrKnownButtons = array( 'googleplus', 'twitter', 'pinterest', 'fbshare', 'linkedin', 'reddit', 'whatsapp', 'viber', 'fblike' ); 
     56    public $arrKnownButtons = array( 'googleplus', 'twitter', 'pinterest', 'fbshare', 'linkedin', 'reddit', 'whatsapp', 'viber', 'fblike', 'messenger' ); 
    5657 
    5758    // an array to store current settings, to avoid passing them between functions 
     
    728729                    } else { 
    729730 
    730                         $arrButtonsCode[] = '<button onclick="javascript:window.open(this.dataset.href, \'_blank\' );return false;" class="simplesocial-whatsapp-share" data-href="https://api.whatsapp.com/send?text=' . $permalink . '"><span class="simplesocialtxt">Share on WhatsApp</span></button>'; 
     731                        $arrButtonsCode[] = '<button onclick="javascript:window.open(this.dataset.href, \'_blank\' );return false;" class="simplesocial-whatsapp-share" data-href="https://api.whatsapp.com/send?text=' . $permalink . '"><span class="simplesocialtxt">WhatsApp</span></button>'; 
    731732                    } 
    732733                    break; 
     
    740741                    } else { 
    741742 
    742                         $arrButtonsCode[] = '<button onclick="javascript:window.open(this.dataset.href, \'_self\' );return false;" class="simplesocial-viber-share" data-href="viber://forward?text=' . $permalink . '"><span class="simplesocialtxt">Share on Viber</span></button>'; 
     743                        $arrButtonsCode[] = '<button onclick="javascript:window.open(this.dataset.href, \'_self\' );return false;" class="simplesocial-viber-share" data-href="viber://forward?text=' . $permalink . '"><span class="simplesocialtxt">Viber</span></button>'; 
    743744                    } 
    744745                    break; 
     
    750751 
    751752                    break; 
     753 
     754                    case 'messenger': 
     755 
     756                        $link = urlencode( $permalink ); 
     757 
     758                        if ( $this->selected_theme == 'simple-icons' ) { 
     759                            $arrButtonsCode[] = '<button class="ssb_msng-icon" onclick="javascript:window.open(this.dataset.href, \'_blank\',  \'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600\' );return false;" class="simplesocial-viber-share" data-href="http://www.facebook.com/dialog/send?app_id='. $this->fb_app_id .'&redirect_uri=' . $link . '&link=' . $link . '&display=popup"> 
     760                            <span class="icon"> <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="18px" height="19px" viewBox="-889.5 1161 18 19" enable-background="new -889.5 1161 18 19" xml:space="preserve"> 
     761                            <path opacity="0.99" fill="#FFFFFF" enable-background="new    " d="M-880.5,1161c-5,0-9,3.8-9,8.5c0,2.4,1,4.5,2.7,6v4.5l3.8-2.3 c0.8,0.2,1.6,0.3,2.5,0.3c5,0,9-3.8,9-8.5S-875.5,1161-880.5,1161z M-879.6,1172.2l-2.4-2.4l-4.3,2.4l4.7-5.2l2.4,2.4l4.2-2.4 L-879.6,1172.2z"/> 
     762                            </svg> </span> 
     763                            <span class="simplesocialtxt">Messenger</span> 
     764                            </button>'; 
     765                        } else { 
     766 
     767                            $arrButtonsCode[] = '<button class="simplesocial-msng-share"  onclick="javascript:window.open( this.dataset.href, \'_blank\',  \'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600\' );return false;" data-href="http://www.facebook.com/dialog/send?app_id='. $this->fb_app_id .'&redirect_uri=' . $link . '&link=' . $link . '&display=popup" ><span class="simplesocialtxt">Messenger</span></button> '; 
     768                        } 
     769                        break; 
    752770            } 
    753771        } 
     
    12571275                    } else { 
    12581276 
    1259                         $arrButtonsCode[] = '<button onclick="javascript:window.open(this.dataset.href, \'_blank\' );return false;" class="simplesocial-whatsapp-share" data-href="https://api.whatsapp.com/send?text=' . $permalink . '"><span class="simplesocialtxt">Share on WhatsApp</span></button>'; 
     1277                        $arrButtonsCode[] = '<button onclick="javascript:window.open(this.dataset.href, \'_blank\' );return false;" class="simplesocial-whatsapp-share" data-href="https://api.whatsapp.com/send?text=' . $permalink . '"><span class="simplesocialtxt">WhatsApp</span></button>'; 
    12601278                    } 
    12611279                    break; 
     
    12691287                    } else { 
    12701288 
    1271                         $arrButtonsCode[] = '<button onclick="javascript:window.open(this.dataset.href, \'_self\' );return false;" class="simplesocial-viber-share" data-href="viber://forward?text=' . $permalink . '"><span class="simplesocialtxt">Share on Viber</span></button>'; 
     1289                        $arrButtonsCode[] = '<button onclick="javascript:window.open(this.dataset.href, \'_self\' );return false;" class="simplesocial-viber-share" data-href="viber://forward?text=' . $permalink . '"><span class="simplesocialtxt">Viber</span></button>'; 
    12721290                    } 
    12731291                    break; 
     
    12791297 
    12801298                    break; 
     1299 
     1300                    case 'messenger': 
     1301                        $link = urlencode( $permalink ); 
     1302 
     1303                        if ( $this->selected_theme == 'simple-icons' ) { 
     1304                            $arrButtonsCode[] = '<button class="ssb_msng-icon" onclick="javascript:window.open(this.dataset.href, \'_blank\',  \'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600\' );return false;" class="simplesocial-viber-share" data-href="http://www.facebook.com/dialog/send?app_id='. $this->fb_app_id .'&redirect_uri=' . $link . '&link=' . $link . '&display=popup"> 
     1305                            <span class="icon"> <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="18px" height="19px" viewBox="-889.5 1161 18 19" enable-background="new -889.5 1161 18 19" xml:space="preserve"> 
     1306                            <path opacity="0.99" fill="#FFFFFF" enable-background="new    " d="M-880.5,1161c-5,0-9,3.8-9,8.5c0,2.4,1,4.5,2.7,6v4.5l3.8-2.3 c0.8,0.2,1.6,0.3,2.5,0.3c5,0,9-3.8,9-8.5S-875.5,1161-880.5,1161z M-879.6,1172.2l-2.4-2.4l-4.3,2.4l4.7-5.2l2.4,2.4l4.2-2.4 L-879.6,1172.2z"/> 
     1307                            </svg> </span> 
     1308                            <span class="simplesocialtxt">Messenger</span> 
     1309                            </button>'; 
     1310                        } else { 
     1311 
     1312                            $arrButtonsCode[] = '<button class="simplesocial-msng-share"  onclick="javascript:window.open( this.dataset.href, \'_blank\',  \'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600\' );return false;" data-href="http://www.facebook.com/dialog/send?app_id='. $this->fb_app_id .'&redirect_uri=' . $link . '&link=' . $link . '&display=popup" ><span class="simplesocialtxt">Messenger</span></button> '; 
     1313                        } 
     1314 
     1315                        break; 
    12811316            } 
    12821317        } 
     
    13141349        echo '<meta property="og:url" content="'. get_permalink()  .'" />' . PHP_EOL; 
    13151350        echo '<meta property="og:site_name" content="'. get_bloginfo( 'name' )  .'" />' . PHP_EOL; 
    1316     } 
     1351        echo $this->get_og_image(); 
     1352 
     1353 
     1354        echo '<meta name="twitter:card" content="summary_large_image" />' . PHP_EOL; 
     1355        echo '<meta name="twitter:description" content="'. $this->get_excerpt_by_id( get_the_id() ) .'" />' . PHP_EOL; 
     1356        echo '<meta name="twitter:title" content="'. get_the_title() ." - ". get_bloginfo( 'name' )  .'" />' . PHP_EOL; 
     1357        echo $this->generate_twitter_image(); 
     1358 
     1359    } 
     1360 
    13171361 
    13181362    /** 
     
    13431387     } 
    13441388 
     1389     /** 
     1390     * Get Image from content. 
     1391     * 
     1392     * @since 2.0.10 
     1393     */ 
     1394     public function get_content_images( $post ) { 
     1395 
     1396         $content = $post->post_content; 
     1397         $images = ''; 
     1398         if ( preg_match_all( '`<img [^>]+>`', $content, $matches ) ) { 
     1399             foreach ( $matches[0] as $img ) { 
     1400                 if ( preg_match( '`src=(["\'])(.*?)\1`', $img, $match ) ) { 
     1401                     $images .=  '<meta property="og:image" content="' .  $match[2] . '" />' . PHP_EOL; 
     1402                 } 
     1403             } 
     1404         } 
     1405         return $images; 
     1406     } 
     1407 
     1408 
     1409     /** 
     1410     * Get the featured image. 
     1411     * 
     1412     * @since 2.0.10 
     1413     */ 
     1414     public function generate_og_image() { 
     1415         $_post_id = get_the_ID(); 
     1416 
     1417         if ( has_post_thumbnail( $_post_id ) ) { 
     1418             return '<meta property="og:image" content="' . wp_get_attachment_url( get_post_thumbnail_id( get_the_ID() ) ) . '" />' . PHP_EOL ; 
     1419         } 
     1420 
     1421         return $this->get_content_images( get_post( $_post_id ) ); 
     1422     } 
     1423 
     1424     /** 
     1425     * Get Open Graph image. 
     1426     * 
     1427     * @since 2.0.10 
     1428     */ 
     1429     public function get_og_image() { 
     1430         $image = $this->generate_og_image() ; 
     1431 
     1432         if ( $image ) { 
     1433             return $image; 
     1434         } 
     1435     } 
     1436 
     1437     /** 
     1438     * Get the featured image for Twitter. 
     1439     * 
     1440     * @since 2.0.10 
     1441     */ 
     1442     public function generate_twitter_image() { 
     1443         $_post_id = get_the_ID(); 
     1444 
     1445         if ( has_post_thumbnail( $_post_id ) ) { 
     1446             return '<meta property="twitter:image" content="' . wp_get_attachment_url( get_post_thumbnail_id( get_the_ID() ) ) . '" />' . PHP_EOL ; 
     1447         } 
     1448 
     1449         return $this->get_twitter_content_images( get_post( $_post_id ) ); 
     1450     } 
     1451 
     1452     /** 
     1453     * Get Image from content for Twitter. 
     1454     * 
     1455     * @since 2.0.10 
     1456     */ 
     1457     public function get_twitter_content_images( $post ) { 
     1458 
     1459         $content = $post->post_content; 
     1460         $images = ''; 
     1461         if ( preg_match_all( '`<img [^>]+>`', $content, $matches ) ) { 
     1462             foreach ( $matches[0] as $img ) { 
     1463                 if ( preg_match( '`src=(["\'])(.*?)\1`', $img, $match ) ) { 
     1464                     $images .=  '<meta property="twitter:image" content="' .  $match[2] . '" />' . PHP_EOL; 
     1465                 } 
     1466             } 
     1467         } 
     1468         return $images; 
     1469     } 
     1470 
     1471 
     1472 
     1473 
    13451474} // end class 
    13461475 
  • simple-social-buttons/trunk/assets/css/front.css

    r1808337 r1818145  
    6767  content: "\e902"; 
    6868} 
     69.simplesocialbuttons button.simplesocial-msng-share:after{ 
     70  content: "\e908"; 
     71} 
    6972.ssb_total_counter{ 
    7073  display: inline-block; 
     
    134137        color: #fff; 
    135138        padding-left: 20px; 
     139        height: 20px; 
    136140    } 
    137141    .simplesocial-simple-icons.simplesocialbuttons-float-right-center button{ 
     
    345349  display: none; 
    346350}*/ 
     351.simplesocialbuttons .fb_iframe_widget{ 
     352  display: inline-block !important; 
     353  position: relative; 
     354  width: initial !important; 
     355} 
     356.simplesocialbuttons .fb_iframe_widget span { 
     357    display: inline-block !important; 
     358    position: relative; 
     359    text-align: justify; 
     360    width: 61px !important; 
     361} 
     362.simplesocialbuttons .ssb-fb-like{ 
     363  height: 20px !important; 
     364  line-height: 20px !important; 
     365  margin: 5px; 
     366} 
    347367.simplesocial-simple-icons .ssb_fbshare-icon{ 
    348368  background: #4267b2; 
     
    767787  height: 14px; 
    768788} 
     789.simplesocial-simple-icons .ssb_msng-icon{ 
     790  border-radius: 2px; 
     791  width: auto; 
     792  padding: 0 4px 0 0; 
     793  text-align: center; 
     794  text-decoration: none; 
     795  font:bold 11px/20px "Helvetica Neue", Helvetica, sans-serif; 
     796  font-weight: bold; 
     797  color: #fff; 
     798  background: #468bff; 
     799  background-size: 14px 14px; 
     800  display: inline-block; 
     801  -webkit-font-smoothing: antialiased; 
     802  height: 20px; 
     803  text-indent: 20px; 
     804} 
     805.simplesocial-simple-icons .ssb_msng-icon:hover{ 
     806  background: #307bf9; 
     807} 
     808.simplesocial-simple-icons .ssb_msng-icon .icon{ 
     809  text-indent: 0; 
     810  position: absolute; 
     811  top: 3px; 
     812  left: 3px; 
     813} 
     814.simplesocial-simple-icons .ssb_msng-icon .icon svg{ 
     815  width: 14px; 
     816  fill: #fff; 
     817  height: 14px; 
     818} 
    769819div[class*="simplesocialbuttons-float"].simplesocial-simple-icons{ 
    770820  width: 82px; 
     
    844894  color: #C92228; 
    845895} 
     896.simplesocialbuttons.simplesocial-sm-round button.simplesocial-msng-share{ 
     897  color: #468bff; 
     898} 
     899 
    846900 
    847901/*=====  End of Gredient Button  ======*/ 
     
    916970  background: #C92228; 
    917971} 
     972.simplesocialbuttons.simplesocial-simple-round button.simplesocial-msng-share{ 
     973  background: #468bff; 
     974} 
     975 
    918976.simplesocialbuttons.simplesocial-simple-round button.simplesocial-fb-share:after, .simplesocialbuttons.simplesocial-simple-round button.simplesocial-fb-share:before { 
    919977  background: #354e83; 
     
    940998.simplesocialbuttons.simplesocial-simple-round button.simplesocial-pinterest-share:after, .simplesocialbuttons.simplesocial-simple-round button.simplesocial-pinterest-share:before { 
    941999  background: #af040a; 
     1000} 
     1001.simplesocialbuttons.simplesocial-simple-round button.simplesocial-msng-share:after, .simplesocialbuttons.simplesocial-simple-round button.simplesocial-msng-share:before { 
     1002  background: #3c7be6; 
    9421003} 
    9431004 
     
    10361097  color: #fff; 
    10371098} 
     1099.simplesocialbuttons.simplesocial-round-txt button.simplesocial-msng-share{ 
     1100  color: #468bff; 
     1101  border-color: #468bff; 
     1102} 
     1103.simplesocialbuttons.simplesocial-round-txt button.simplesocial-msng-share:hover{ 
     1104  background: #468bff; 
     1105  color: #fff; 
     1106} 
    10381107 
    10391108/*=====  End of Code for style 3  ======*/ 
     
    11361205  color: #fff; 
    11371206} 
     1207.simplesocialbuttons.simplesocial-round-btm-border button.simplesocial-msng-share { 
     1208  -webkit-box-shadow: inset 0px 0px 0px 0px #468bff, 0px 2px 0px 0px #468bff, 0px 0px 5px 0px rgba(0, 0, 0, 0.13); 
     1209  box-shadow: inset 0px 0px 0px 0px #468bff, 0px 2px 0px 0px #468bff, 0px 0px 5px 0px rgba(0, 0, 0, 0.13); 
     1210  color: #468bff; 
     1211} 
     1212.simplesocialbuttons.simplesocial-round-btm-border button.simplesocial-msng-share:hover{ 
     1213  -webkit-box-shadow: inset 0px -40px 0px 0px #468bff, 0px 2px 0px 0px #468bff, 0px 0px 5px 0px rgba(0, 0, 0, 0.13); 
     1214  box-shadow: inset 0px -40px 0px 0px #468bff, 0px 2px 0px 0px #468bff, 0px 0px 5px 0px rgba(0, 0, 0, 0.13); 
     1215  color: #fff; 
     1216} 
    11381217/*=====  End of style 4  ======*/ 
    11391218 
     
    12291308  -webkit-box-shadow: inset 0px -40px 0px 0px #af040a, 0px 3px 0px 0px #af040a; 
    12301309          box-shadow: inset 0px -40px 0px 0px #af040a, 0px 3px 0px 0px #af040a; 
     1310} 
     1311.simplesocialbuttons.simplesocial-flat-button-border button.simplesocial-msng-share { 
     1312  background: #468bff; 
     1313  -webkit-box-shadow: inset 0px 0px 0px 0px #468bff, 0px 3px 0px 0px #468bff; 
     1314  box-shadow: inset 0px 0px 0px 0px #468bff, 0px 3px 0px 0px #26519e; 
     1315} 
     1316.simplesocialbuttons.simplesocial-flat-button-border button.simplesocial-msng-share:hover { 
     1317  -webkit-box-shadow: inset 0px -40px 0px 0px #26519e, 0px 3px 0px 0px #26519e; 
     1318  box-shadow: inset 0px -40px 0px 0px #26519e, 0px 3px 0px 0px #26519e; 
    12311319} 
    12321320 
     
    13441432  line-height: 34px; 
    13451433} 
     1434.simplesocialbuttons.simplesocial-round-icon button.simplesocial-msng-share{ 
     1435  color: #468bff; 
     1436  border-color: #468bff; 
     1437} 
     1438.simplesocialbuttons.simplesocial-round-icon button.simplesocial-msng-share:hover{ 
     1439  background: #468bff; 
     1440  color: #fff; 
     1441} 
     1442.simplesocialbuttons.simplesocial-round-icon button:after{ 
     1443  width: 34px; 
     1444  height: 34px; 
     1445  line-height: 34px; 
     1446} 
    13461447 
    13471448/*=====  End of Style 6  ======*/ 
     
    14921593  width: 36px; 
    14931594} 
     1595.simplesocialbuttons.simplesocial-simple-round button.simplesocial-msng-share:not(:hover):before{ 
     1596  background: rgba(0,0,0, .2); 
     1597  width: 36px; 
     1598} 
    14941599.simplesocialbuttons.simplesocial-simple-round button.simplesocial-fb-share:after, 
    14951600.simplesocialbuttons.simplesocial-simple-round button.simplesocial-twt-share:after, 
     
    15001605.simplesocialbuttons.simplesocial-simple-round button.simplesocial-linkedin-share:after, 
    15011606.simplesocialbuttons.simplesocial-simple-round button.simplesocial-pinterest-share:after{ 
     1607  background: none; 
     1608} 
     1609.simplesocialbuttons.simplesocial-simple-round button.simplesocial-msng-share:after{ 
    15021610  background: none; 
    15031611} 
     
    15461654  background: #db4437; 
    15471655} 
    1548 .simplesocialbuttons.simplesocial-sm-round.ssb_counter-activate button:not(.simplesocial-viber-share):not(.simplesocial-whatsapp-share){ 
     1656.simplesocialbuttons.simplesocial-sm-round.ssb_counter-activate button:not(.simplesocial-viber-share):not(.simplesocial-whatsapp-share):not(.simplesocial-msng-share){ 
    15491657  padding-right: 50px; 
    15501658  position: relative; 
     
    15641672  border-radius: 0 3px 3px 0; 
    15651673} 
    1566 .simplesocialbuttons.simplesocial-simple-round.ssb_counter-activate button:not(.simplesocial-viber-share):not(.simplesocial-whatsapp-share){ 
     1674.simplesocialbuttons.simplesocial-simple-round.ssb_counter-activate button:not(.simplesocial-viber-share):not(.simplesocial-whatsapp-share):not(.simplesocial-msng-share){ 
    15671675  padding-right: 50px; 
    15681676  position: relative; 
     
    16431751  color: #db4437; 
    16441752} 
    1645 .simplesocialbuttons.simplesocial-flat-button-border button:not(.simplesocial-whatsapp-share):not(.simplesocial-viber-share){ 
     1753.simplesocialbuttons.simplesocial-flat-button-border button:not(.simplesocial-whatsapp-share):not(.simplesocial-viber-share):not(.simplesocial-msng-share){ 
    16461754  padding-right: 50px; 
    16471755  position: relative; 
    1648  
    1649  
    16501756} 
    16511757.simplesocialbuttons.simplesocial-flat-button-border.ssb_counter-activate .ssb_counter{ 
     
    16841790  color: #db4437; 
    16851791} 
    1686 .simplesocialbuttons.simplesocial-round-btm-border.ssb_counter-activate button:not(.simplesocial-viber-share):not(.simplesocial-whatsapp-share){ 
     1792.simplesocialbuttons.simplesocial-round-btm-border.ssb_counter-activate button:not(.simplesocial-viber-share):not(.simplesocial-whatsapp-share):not(.simplesocial-msng-share){ 
    16871793  padding-right: 60px; 
    16881794  position: relative; 
     
    20042110  left: auto; 
    20052111} 
     2112div[class*="simplesocialbuttons-float"].simplesocial-flat-button-border.ssb_counter-activate .ssb_counter{ 
     2113  width: 20px; 
     2114  height: 20px; 
     2115  line-height: 18px; 
     2116  top: -10px; 
     2117} 
     2118div[class*="simplesocialbuttons-float"].simplesocial-simple-round.ssb_counter-activate .ssb_counter{ 
     2119  width: 20px; 
     2120  height: 20px; 
     2121  line-height: 18px; 
     2122  top: -10px; 
     2123  border-radius: 0; 
     2124} 
    20062125/*======================================================= 
    20072126=            Code for floating share buttons            = 
     
    24412560} 
    24422561.ssb_followers a.ssb_button.simplesocial-yt-follow:after{ 
    2443   content: "\e908"; 
     2562  content: "\e909"; 
    24442563} 
    24452564.ssb_followers a.ssb_button:after { 
  • simple-social-buttons/trunk/assets/fonts/ssb-icon.svg

    r1793185 r1818145  
    1616<glyph unicode="&#xe906;" glyph-name="whatsapp" horiz-adv-x="1022" d="M454.656 960c38.912 0 77.824 0 116.736 0 4.096-1.024 8.192-4.096 12.288-4.096 206.848-30.72 370.688-179.2 420.864-381.952 7.168-29.696 11.264-60.416 16.384-92.16 0-18.432 0-37.888 0-56.32-2.048-13.312-4.096-27.648-6.144-40.96-48.128-345.088-423.936-545.792-728.064-381.952-9.216 5.12-23.552 5.12-34.816 3.072-45.056-11.264-90.112-24.576-135.168-37.888-37.888-11.264-75.776-21.504-116.736-32.768 26.624 74.752 51.2 145.408 77.824 216.064 7.168 19.456 5.12 33.792-5.12 51.2-169.984 292.864-9.216 664.576 320.512 743.424 20.48 6.144 40.96 10.24 61.44 14.336zM124.928 52.736c46.080 12.288 88.064 23.552 129.024 36.864 14.336 4.096 25.6 3.072 38.912-5.12 84.992-50.176 176.128-69.632 274.432-56.32 241.664 30.72 409.6 258.048 368.64 498.688-40.96 242.688-278.528 401.408-517.12 348.16-301.056-68.608-435.2-415.744-257.024-667.648 9.216-12.288 11.264-22.528 5.12-37.888-15.36-38.912-26.624-75.776-41.984-116.736zM237.568 592.384c1.024 45.056 17.408 83.968 48.128 116.736 30.72 33.792 79.872 24.576 96.256-17.408 11.264-27.648 19.456-57.344 32.768-84.992 11.264-24.576 6.144-43.008-8.192-62.464-33.792-46.080-32.768-46.080-1.024-95.232 38.912-58.368 91.136-101.376 155.648-131.072 16.384-7.168 27.648-5.12 37.888 10.24 11.264 16.384 23.552 30.72 34.816 47.104 8.192 12.288 17.408 16.384 31.744 10.24 35.84-18.432 72.704-35.84 107.52-55.296 6.144-4.096 12.288-14.336 12.288-22.528 3.072-58.368-41.984-115.712-100.352-121.856-29.696-4.096-62.464 0-92.16 8.192-116.736 33.792-203.776 110.592-274.432 207.872-32.768 46.080-65.536 94.208-76.8 150.528-2.048 11.264-2.048 25.6-4.096 39.936z" /> 
    1717<glyph unicode="&#xe907;" glyph-name="linkedin" horiz-adv-x="1071" d="M841.728-62.976c0 5.12 0 8.192 0 12.288 0 123.904 0 246.784-1.024 370.688 0 29.696-5.12 58.368-18.432 84.992-19.456 40.96-57.344 59.392-103.424 56.32-58.368-4.096-95.232-36.864-113.664-90.112-6.144-17.408-5.12-36.864-6.144-55.296 0-122.88 0-244.736 0-367.616 0-11.264 0-11.264-11.264-11.264-68.608 0-138.24 0-206.848 0-3.072 0-7.168 0-10.24 0 0 230.4 0 459.776 0 690.176 3.072 0 6.144 0 9.216 0 69.632 0 140.288 0 209.92 0 8.192 0 10.24-2.048 10.24-10.24-1.024-27.648 0-56.32 0-86.016 8.192 10.24 14.336 18.432 20.48 26.624 38.912 49.152 90.112 76.8 153.6 83.968 54.272 5.12 106.496-1.024 156.672-25.6 43.008-21.504 75.776-53.248 98.304-95.232 31.744-58.368 41.984-121.856 41.984-187.392 0-130.048 0-259.072 0-389.12 0-2.048 0-5.12 0-7.168-76.8 0-152.576 0-229.376 0zM14.336-64c0 5.12 0 8.192 0 11.264 0 222.208 0 445.44 0 667.648 0 11.264 0 11.264 11.264 11.264 68.608 0 138.24 0 206.848 0 8.192 0 11.264-2.048 11.264-10.24 0-223.232 0-446.464 0-670.72 0-8.192-2.048-10.24-10.24-10.24-69.632 0-139.264 0-208.896 0-3.072 1.024-6.144 1.024-10.24 1.024zM129.024 720.384c-45.056 1.024-83.968 15.36-109.568 55.296-38.912 59.392-18.432 151.552 64.512 176.128 44.032 13.312 87.040 10.24 125.952-16.384 38.912-27.648 53.248-66.56 47.104-112.64s-31.744-76.8-75.776-93.184c-16.384-6.144-34.816-8.192-52.224-11.264 0 1.024 0 2.048 0 2.048z" /> 
    18 <glyph unicode="&#xe908;" glyph-name="yt_icon" d="M1017.2 662.4c0 90-66.2 162.4-148 162.4-110.8 5.2-223.8 7.2-339.2 7.2-6 0-12 0-18 0s-12 0-18 0c-115.2 0-228.4-2-339.2-7.2-81.6 0-147.8-72.8-147.8-162.8-5-71.2-7.2-142.4-7-213.6-0.2-71.2 2-142.4 6.8-213.8 0-90 66.2-163 147.8-163 116.4-5.4 235.8-7.8 357.2-7.6 121.6-0.4 240.6 2 357.2 7.6 81.8 0 148 73 148 163 4.8 71.4 7 142.6 6.8 214 0.4 71.2-1.8 142.4-6.6 213.8zM414 252.2v393l290-196.4-290-196.6z" /> 
     18<glyph unicode="&#xe908;" glyph-name="messenger_icon_2" horiz-adv-x="970" d="M485.053 960c-269.474 0-485.053-204.8-485.053-458.105 0-129.347 53.895-242.526 145.516-323.368v-242.526l204.8 123.958c43.116-10.779 86.232-16.168 134.737-16.168 269.474 0 485.053 204.8 485.053 458.105s-215.579 458.105-485.053 458.105zM533.558 356.379l-129.347 129.347-231.747-129.347 253.305 280.253 129.347-129.347 226.358 129.347-247.916-280.253z" /> 
     19<glyph unicode="&#xe909;" glyph-name="youtube_icon_2" horiz-adv-x="1480" d="M1447.692 800.294c-16.91 62.943-66.701 112.734-130.583 129.644-115.552 30.062-577.761 30.062-577.761 30.062s-453.754 1.879-569.306-28.183c-63.883-16.91-124.947-68.58-141.857-131.523-31.002-114.613-28.183-352.294-28.183-352.294s-2.818-237.681 28.183-352.294c16.91-62.943 78.914-114.613 141.857-131.523 115.552-31.002 569.306-28.183 569.306-28.183s453.754-1.879 569.306 28.183c63.883 16.91 123.068 68.58 139.978 131.523 31.002 113.673 31.002 352.294 31.002 352.294s-0.939 237.681-31.941 352.294zM597.49 220.653v454.694l369.204-227.347-369.204-227.347z" /> 
    1920</font></defs></svg> 
  • simple-social-buttons/trunk/classes/ssb-settings-strucutre.php

    r1793185 r1818145  
    368368               <?php 
    369369               $ssb_icons_order = array(); 
    370                $arrKnownButtons = array( 'googleplus', 'twitter', 'pinterest', 'fbshare', 'linkedin', 'reddit', 'whatsapp', 'viber', 'fblike' ); 
     370               $arrKnownButtons = array( 'googleplus', 'twitter', 'pinterest', 'fbshare', 'linkedin', 'reddit', 'whatsapp', 'viber', 'fblike', 'messenger' ); 
    371371               foreach ($arrKnownButtons as $button_name) { 
    372372                   $ssb_icons_order[$button_name] = isset( $settings[$button_name] ) ? $settings[$button_name] : '' ; 
  • simple-social-buttons/trunk/inc/ssb-widget-front.php

    r1810282 r1818145  
    99 
    1010    <?php if( $display == $show_facebook ):?> 
    11     <a class="ssb_button simplesocial-fb-follow" rel="nofollow" href="https://facebook.com/<?php echo  $facebook_id;?>"  target="_blank"><span class="simplesocialtxt"><?php echo $facebook_text;?> </span><span class="widget_counter"> <?php echo ( $display == $facebook_show_counter)? $fb_likes: '' ;?> </span></a> 
     11    <a class="ssb_button simplesocial-fb-follow" rel="noopener" href="https://facebook.com/<?php echo  $facebook_id;?>"  target="_blank"><span class="simplesocialtxt"><?php echo $facebook_text;?> </span><span class="widget_counter"> <?php echo ( $display == $facebook_show_counter)? $fb_likes: '' ;?> </span></a> 
    1212    <?php endif; 
    1313    if( $display == $show_twitter ):   ?> 
    14     <a class="ssb_button simplesocial-twt-follow" rel="nofollow" href="https://twitter.com/<?php echo  $twitter_id;?>" target="_blank"><span class="simplesocialtxt"><?php echo $twitter_text;?> </span><span class="widget_counter"> <?php echo ( $display ==  $twitter_show_counter)? $twitter_follower: '';?> </span></a> 
     14    <a class="ssb_button simplesocial-twt-follow" rel="noopener" href="https://twitter.com/<?php echo  $twitter_id;?>" target="_blank"><span class="simplesocialtxt"><?php echo $twitter_text;?> </span><span class="widget_counter"> <?php echo ( $display ==  $twitter_show_counter)? $twitter_follower: '';?> </span></a> 
    1515    <?php endif; 
    1616    if ( $display == $show_google_plus ):?> 
    17     <a class="ssb_button simplesocial-gplus-follow" rel="nofollow" href="https://plus.google.com/<?php echo $google_id;?>" target="_blank"><span class="simplesocialtxt"><?php echo  $google_text;?> </span><span class="widget_counter"> <?php echo ( $display == $google_show_counter )? $google_follower: '';?> </span></a> 
     17    <a class="ssb_button simplesocial-gplus-follow" rel="noopener" href="https://plus.google.com/<?php echo $google_id;?>" target="_blank"><span class="simplesocialtxt"><?php echo  $google_text;?> </span><span class="widget_counter"> <?php echo ( $display == $google_show_counter )? $google_follower: '';?> </span></a> 
    1818    <?php endif; 
    1919     if( $display == $show_youtube): 
    2020    ?> 
    21     <a class="ssb_button simplesocial-yt-follow" rel="nofollow" href="https://youtube.com/<?php echo $youtube_type ?>/<?php echo $youtube_id ?>" target="_blank"><span class="simplesocialtxt"><?php echo  $youtube_text?> </span><span class="widget_counter"> <?php echo ( $display == $youtube_show_counter)?$youtube_subscriber:" ";?> </span></a> 
     21    <a class="ssb_button simplesocial-yt-follow" rel="noopener" href="https://youtube.com/<?php echo $youtube_type ?>/<?php echo $youtube_id ?>" target="_blank"><span class="simplesocialtxt"><?php echo  $youtube_text?> </span><span class="widget_counter"> <?php echo ( $display == $youtube_show_counter)?$youtube_subscriber:" ";?> </span></a> 
    2222    <?php endif;?> 
    2323    <?php if ( $display == $show_pinterest ):?> 
    24     <a class="ssb_button simplesocial-pinterest-follow" rel="nofollow" href="https://pinterest.com/<?php echo $pinterest_id;?>/" target="_blank"><span class="simplesocialtxt"><?php echo  $pinterest_text;?> </span><span class="widget_counter"> <?php echo ( $display == $pinterest_show_counter )? $pinterest_follower: '';?> </span></a> 
     24    <a class="ssb_button simplesocial-pinterest-follow" rel="noopener" href="https://pinterest.com/<?php echo $pinterest_id;?>/" target="_blank"><span class="simplesocialtxt"><?php echo  $pinterest_text;?> </span><span class="widget_counter"> <?php echo ( $display == $pinterest_show_counter )? $pinterest_follower: '';?> </span></a> 
    2525    <?php endif;?> 
    2626 
  • simple-social-buttons/trunk/readme.txt

    r1810282 r1818145  
    55Requires at least: 4.0 
    66Tested up to: 4.9 
    7 Stable tag: 2.0.9 
     7Stable tag: 2.0.10 
    88License: GPLv2 or later 
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html 
     
    147147== Upgrade Notice == 
    148148 
    149 = 2.0.9 = 
     149= 2.0.10 = 
    150150* Relaunched with a whole set of NEW FEATURES and Improvement. Please upgrade immediately and provide your feedback. highly recommended. Apologies in advance, if anything breaks! 
    151151 
     
    153153== Changelog == 
    154154 
     155= 2.0.10 - 2018-02-08 = 
     156* New Feature: Add Facebook Messenger Share. 
     157* New Feature: Twitter Card meta added. 
     158* Improvement: Add rel="noopener" on widget links. 
     159* Improvement: Add Image in Open Graph Meta. 
     160* Improvement: Remove extra text form WhatsApp & Viber. 
    155161 
    156162= 2.0.9 - 2018-01-27 = 
  • simple-social-buttons/trunk/simple-social-buttons.php

    r1810282 r1818145  
    44 * Plugin URI: http://www.WPBrigade.com/wordpress/plugins/simple-social-buttons/ 
    55 * Description: Simple Social Buttons adds an advanced set of social media sharing buttons to your WordPress sites, such as: Google +1, Facebook, WhatsApp, Viber, Twitter, Reddit, LinkedIn and Pinterest. This makes it the most <code>Flexible Social Sharing Plugin ever for Everyone.</code> 
    6  * Version: 2.0.9 
     6 * Version: 2.0.10 
    77 * Author: WPBrigade 
    88 * Author URI: http://www.WPBrigade.com/ 
     
    3131class SimpleSocialButtonsPR { 
    3232    public $pluginName        = 'Simple Social Buttons'; 
    33     public $pluginVersion     = '2.0.9'; 
     33    public $pluginVersion     = '2.0.10'; 
    3434    public $pluginPrefix      = 'ssb_pr_'; 
    3535    public $hideCustomMetaKey = '_ssb_hide'; 
     36    private $fb_app_id        = '891268654262273'; 
    3637 
    3738    // plugin default settings 
     
    5354 
    5455    // defined buttons 
    55     public $arrKnownButtons = array( 'googleplus', 'twitter', 'pinterest', 'fbshare', 'linkedin', 'reddit', 'whatsapp', 'viber', 'fblike' ); 
     56    public $arrKnownButtons = array( 'googleplus', 'twitter', 'pinterest', 'fbshare', 'linkedin', 'reddit', 'whatsapp', 'viber', 'fblike', 'messenger' ); 
    5657 
    5758    // an array to store current settings, to avoid passing them between functions 
     
    728729                    } else { 
    729730 
    730                         $arrButtonsCode[] = '<button onclick="javascript:window.open(this.dataset.href, \'_blank\' );return false;" class="simplesocial-whatsapp-share" data-href="https://api.whatsapp.com/send?text=' . $permalink . '"><span class="simplesocialtxt">Share on WhatsApp</span></button>'; 
     731                        $arrButtonsCode[] = '<button onclick="javascript:window.open(this.dataset.href, \'_blank\' );return false;" class="simplesocial-whatsapp-share" data-href="https://api.whatsapp.com/send?text=' . $permalink . '"><span class="simplesocialtxt">WhatsApp</span></button>'; 
    731732                    } 
    732733                    break; 
     
    740741                    } else { 
    741742 
    742                         $arrButtonsCode[] = '<button onclick="javascript:window.open(this.dataset.href, \'_self\' );return false;" class="simplesocial-viber-share" data-href="viber://forward?text=' . $permalink . '"><span class="simplesocialtxt">Share on Viber</span></button>'; 
     743                        $arrButtonsCode[] = '<button onclick="javascript:window.open(this.dataset.href, \'_self\' );return false;" class="simplesocial-viber-share" data-href="viber://forward?text=' . $permalink . '"><span class="simplesocialtxt">Viber</span></button>'; 
    743744                    } 
    744745                    break; 
     
    750751 
    751752                    break; 
     753 
     754                    case 'messenger': 
     755 
     756                        $link = urlencode( $permalink ); 
     757 
     758                        if ( $this->selected_theme == 'simple-icons' ) { 
     759                            $arrButtonsCode[] = '<button class="ssb_msng-icon" onclick="javascript:window.open(this.dataset.href, \'_blank\',  \'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600\' );return false;" class="simplesocial-viber-share" data-href="http://www.facebook.com/dialog/send?app_id='. $this->fb_app_id .'&redirect_uri=' . $link . '&link=' . $link . '&display=popup"> 
     760                            <span class="icon"> <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="18px" height="19px" viewBox="-889.5 1161 18 19" enable-background="new -889.5 1161 18 19" xml:space="preserve"> 
     761                            <path opacity="0.99" fill="#FFFFFF" enable-background="new    " d="M-880.5,1161c-5,0-9,3.8-9,8.5c0,2.4,1,4.5,2.7,6v4.5l3.8-2.3 c0.8,0.2,1.6,0.3,2.5,0.3c5,0,9-3.8,9-8.5S-875.5,1161-880.5,1161z M-879.6,1172.2l-2.4-2.4l-4.3,2.4l4.7-5.2l2.4,2.4l4.2-2.4 L-879.6,1172.2z"/> 
     762                            </svg> </span> 
     763                            <span class="simplesocialtxt">Messenger</span> 
     764                            </button>'; 
     765                        } else { 
     766 
     767                            $arrButtonsCode[] = '<button class="simplesocial-msng-share"  onclick="javascript:window.open( this.dataset.href, \'_blank\',  \'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600\' );return false;" data-href="http://www.facebook.com/dialog/send?app_id='. $this->fb_app_id .'&redirect_uri=' . $link . '&link=' . $link . '&display=popup" ><span class="simplesocialtxt">Messenger</span></button> '; 
     768                        } 
     769                        break; 
    752770            } 
    753771        } 
     
    12571275                    } else { 
    12581276 
    1259                         $arrButtonsCode[] = '<button onclick="javascript:window.open(this.dataset.href, \'_blank\' );return false;" class="simplesocial-whatsapp-share" data-href="https://api.whatsapp.com/send?text=' . $permalink . '"><span class="simplesocialtxt">Share on WhatsApp</span></button>'; 
     1277                        $arrButtonsCode[] = '<button onclick="javascript:window.open(this.dataset.href, \'_blank\' );return false;" class="simplesocial-whatsapp-share" data-href="https://api.whatsapp.com/send?text=' . $permalink . '"><span class="simplesocialtxt">WhatsApp</span></button>'; 
    12601278                    } 
    12611279                    break; 
     
    12691287                    } else { 
    12701288 
    1271                         $arrButtonsCode[] = '<button onclick="javascript:window.open(this.dataset.href, \'_self\' );return false;" class="simplesocial-viber-share" data-href="viber://forward?text=' . $permalink . '"><span class="simplesocialtxt">Share on Viber</span></button>'; 
     1289                        $arrButtonsCode[] = '<button onclick="javascript:window.open(this.dataset.href, \'_self\' );return false;" class="simplesocial-viber-share" data-href="viber://forward?text=' . $permalink . '"><span class="simplesocialtxt">Viber</span></button>'; 
    12721290                    } 
    12731291                    break; 
     
    12791297 
    12801298                    break; 
     1299 
     1300                    case 'messenger': 
     1301                        $link = urlencode( $permalink ); 
     1302 
     1303                        if ( $this->selected_theme == 'simple-icons' ) { 
     1304                            $arrButtonsCode[] = '<button class="ssb_msng-icon" onclick="javascript:window.open(this.dataset.href, \'_blank\',  \'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600\' );return false;" class="simplesocial-viber-share" data-href="http://www.facebook.com/dialog/send?app_id='. $this->fb_app_id .'&redirect_uri=' . $link . '&link=' . $link . '&display=popup"> 
     1305                            <span class="icon"> <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="18px" height="19px" viewBox="-889.5 1161 18 19" enable-background="new -889.5 1161 18 19" xml:space="preserve"> 
     1306                            <path opacity="0.99" fill="#FFFFFF" enable-background="new    " d="M-880.5,1161c-5,0-9,3.8-9,8.5c0,2.4,1,4.5,2.7,6v4.5l3.8-2.3 c0.8,0.2,1.6,0.3,2.5,0.3c5,0,9-3.8,9-8.5S-875.5,1161-880.5,1161z M-879.6,1172.2l-2.4-2.4l-4.3,2.4l4.7-5.2l2.4,2.4l4.2-2.4 L-879.6,1172.2z"/> 
     1307                            </svg> </span> 
     1308                            <span class="simplesocialtxt">Messenger</span> 
     1309                            </button>'; 
     1310                        } else { 
     1311 
     1312                            $arrButtonsCode[] = '<button class="simplesocial-msng-share"  onclick="javascript:window.open( this.dataset.href, \'_blank\',  \'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600\' );return false;" data-href="http://www.facebook.com/dialog/send?app_id='. $this->fb_app_id .'&redirect_uri=' . $link . '&link=' . $link . '&display=popup" ><span class="simplesocialtxt">Messenger</span></button> '; 
     1313                        } 
     1314 
     1315                        break; 
    12811316            } 
    12821317        } 
     
    13141349        echo '<meta property="og:url" content="'. get_permalink()  .'" />' . PHP_EOL; 
    13151350        echo '<meta property="og:site_name" content="'. get_bloginfo( 'name' )  .'" />' . PHP_EOL; 
    1316     } 
     1351        echo $this->get_og_image(); 
     1352 
     1353 
     1354        echo '<meta name="twitter:card" content="summary_large_image" />' . PHP_EOL; 
     1355        echo '<meta name="twitter:description" content="'. $this->get_excerpt_by_id( get_the_id() ) .'" />' . PHP_EOL; 
     1356        echo '<meta name="twitter:title" content="'. get_the_title() ." - ". get_bloginfo( 'name' )  .'" />' . PHP_EOL; 
     1357        echo $this->generate_twitter_image(); 
     1358 
     1359    } 
     1360 
    13171361 
    13181362    /** 
     
    13431387     } 
    13441388 
     1389     /** 
     1390     * Get Image from content. 
     1391     * 
     1392     * @since 2.0.10 
     1393     */ 
     1394     public function get_content_images( $post ) { 
     1395 
     1396         $content = $post->post_content; 
     1397         $images = ''; 
     1398         if ( preg_match_all( '`<img [^>]+>`', $content, $matches ) ) { 
     1399             foreach ( $matches[0] as $img ) { 
     1400                 if ( preg_match( '`src=(["\'])(.*?)\1`', $img, $match ) ) { 
     1401                     $images .=  '<meta property="og:image" content="' .  $match[2] . '" />' . PHP_EOL; 
     1402                 } 
     1403             } 
     1404         } 
     1405         return $images; 
     1406     } 
     1407 
     1408 
     1409     /** 
     1410     * Get the featured image. 
     1411     * 
     1412     * @since 2.0.10 
     1413     */ 
     1414     public function generate_og_image() { 
     1415         $_post_id = get_the_ID(); 
     1416 
     1417         if ( has_post_thumbnail( $_post_id ) ) { 
     1418             return '<meta property="og:image" content="' . wp_get_attachment_url( get_post_thumbnail_id( get_the_ID() ) ) . '" />' . PHP_EOL ; 
     1419         } 
     1420 
     1421         return $this->get_content_images( get_post( $_post_id ) ); 
     1422     } 
     1423 
     1424     /** 
     1425     * Get Open Graph image. 
     1426     * 
     1427     * @since 2.0.10 
     1428     */ 
     1429     public function get_og_image() { 
     1430         $image = $this->generate_og_image() ; 
     1431 
     1432         if ( $image ) { 
     1433             return $image; 
     1434         } 
     1435     } 
     1436 
     1437     /** 
     1438     * Get the featured image for Twitter. 
     1439     * 
     1440     * @since 2.0.10 
     1441     */ 
     1442     public function generate_twitter_image() { 
     1443         $_post_id = get_the_ID(); 
     1444 
     1445         if ( has_post_thumbnail( $_post_id ) ) { 
     1446             return '<meta property="twitter:image" content="' . wp_get_attachment_url( get_post_thumbnail_id( get_the_ID() ) ) . '" />' . PHP_EOL ; 
     1447         } 
     1448 
     1449         return $this->get_twitter_content_images( get_post( $_post_id ) ); 
     1450     } 
     1451 
     1452     /** 
     1453     * Get Image from content for Twitter. 
     1454     * 
     1455     * @since 2.0.10 
     1456     */ 
     1457     public function get_twitter_content_images( $post ) { 
     1458 
     1459         $content = $post->post_content; 
     1460         $images = ''; 
     1461         if ( preg_match_all( '`<img [^>]+>`', $content, $matches ) ) { 
     1462             foreach ( $matches[0] as $img ) { 
     1463                 if ( preg_match( '`src=(["\'])(.*?)\1`', $img, $match ) ) { 
     1464                     $images .=  '<meta property="twitter:image" content="' .  $match[2] . '" />' . PHP_EOL; 
     1465                 } 
     1466             } 
     1467         } 
     1468         return $images; 
     1469     } 
     1470 
     1471 
     1472 
     1473 
    13451474} // end class 
    13461475 
Note: See TracChangeset for help on using the changeset viewer.