Social Share Icons & Social Share Buttons - Version 3.0.0

Version Description

  • Updated gutenberg block to incorporate current changes. Added support for multiple controls on block inspector controls.
Download this release

Release Info

Developer socialdude
Plugin Icon 128x128 Social Share Icons & Social Share Buttons
Version 3.0.0
Comparing to
See all releases

Code changes from version 2.9.9 to 3.0.0

css/sfsi-admin-style.css CHANGED
@@ -1470,3 +1470,167 @@ div#sfsi_plus_langnotice {padding: 10px;margin-left: 0px;position: relative;}
1470
  @media (min-width: 992px){.col-md-3 {width: 25%;}.col-md-1, .col-md-10, .col-md-11, .col-md-12, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9 {float: left;}.col-md-12{width:100%}.col-md-11{width:91.66666667%}.col-md-10{width:83.33333333%}.col-md-9{width:75%}.col-md-8{width:66.66666667%}.col-md-7{width:58.33333333%}.col-md-6{width:50%}.col-md-5{width:41.66666667%}.col-md-4{width:33.33333333%}.col-md-3{width:25%}.col-md-2{width:16.66666667%}.col-md-1{width:8.33333333%}.col-md-pull-12{right:100%}.col-md-pull-11{right:91.66666667%}.col-md-pull-10{right:83.33333333%}.col-md-pull-9{right:75%}.col-md-pull-8{right:66.66666667%}.col-md-pull-7{right:58.33333333%}.col-md-pull-6{right:50%}.col-md-pull-5{right:41.66666667%}.col-md-pull-4{right:33.33333333%}.col-md-pull-3{right:25%}.col-md-pull-2{right:16.66666667%}.col-md-pull-1{right:8.33333333%}.col-md-pull-0{right:auto}.col-md-push-12{left:100%}.col-md-push-11{left:91.66666667%}.col-md-push-10{left:83.33333333%}.col-md-push-9{left:75%}.col-md-push-8{left:66.66666667%}.col-md-push-7{left:58.33333333%}.col-md-push-6{left:50%}.col-md-push-5{left:41.66666667%}.col-md-push-4{left:33.33333333%}.col-md-push-3{left:25%}.col-md-push-2{left:16.66666667%}.col-md-push-1{left:8.33333333%}.col-md-push-0{left:auto}.col-md-offset-12{margin-left:100%}.col-md-offset-11{margin-left:91.66666667%}.col-md-offset-10{margin-left:83.33333333%}.col-md-offset-9{margin-left:75%}.col-md-offset-8{margin-left:66.66666667%}.col-md-offset-7{margin-left:58.33333333%}.col-md-offset-6{margin-left:50%}.col-md-offset-5{margin-left:41.66666667%}.col-md-offset-4{margin-left:33.33333333%}.col-md-offset-3{margin-left:25%}.col-md-offset-2{margin-left:16.66666667%}.col-md-offset-1{margin-left:8.33333333%}.col-md-offset-0{margin-left:0}}
1471
  @media (min-width:768px) {.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9{float:left}.col-sm-12{width:100%}.col-sm-11{width:91.66666667%}.col-sm-10{width:83.33333333%}.col-sm-9{width:75%}.col-sm-8{width:66.66666667%}.col-sm-7{width:58.33333333%}.col-sm-6{width:50%}.col-sm-5{width:41.66666667%}.col-sm-4{width:33.33333333%}.col-sm-3{width:25%}.col-sm-2{width:16.66666667%}.col-sm-1{width:8.33333333%}.col-sm-pull-12{right:100%}.col-sm-pull-11{right:91.66666667%}.col-sm-pull-10{right:83.33333333%}.col-sm-pull-9{right:75%}.col-sm-pull-8{right:66.66666667%}.col-sm-pull-7{right:58.33333333%}.col-sm-pull-6{right:50%}.col-sm-pull-5{right:41.66666667%}.col-sm-pull-4{right:33.33333333%}.col-sm-pull-3{right:25%}.col-sm-pull-2{right:16.66666667%}.col-sm-pull-1{right:8.33333333%}.col-sm-pull-0{right:auto}.col-sm-push-12{left:100%}.col-sm-push-11{left:91.66666667%}.col-sm-push-10{left:83.33333333%}.col-sm-push-9{left:75%}.col-sm-push-8{left:66.66666667%}.col-sm-push-7{left:58.33333333%}.col-sm-push-6{left:50%}.col-sm-push-5{left:41.66666667%}.col-sm-push-4{left:33.33333333%}.col-sm-push-3{left:25%}.col-sm-push-2{left:16.66666667%}.col-sm-push-1{left:8.33333333%}.col-sm-push-0{left:auto}.col-sm-offset-12{margin-left:100%}.col-sm-offset-11{margin-left:91.66666667%}.col-sm-offset-10{margin-left:83.33333333%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-8{margin-left:66.66666667%}.col-sm-offset-7{margin-left:58.33333333%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-5{margin-left:41.66666667%}.col-sm-offset-4{margin-left:33.33333333%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-2{margin-left:16.66666667%}.col-sm-offset-1{margin-left:8.33333333%}.col-sm-offset-0{margin-left:0}}
1472
  @media (min-width:1200px){.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9{float:left}.col-lg-12{width:100%}.col-lg-11{width:91.66666667%}.col-lg-10{width:83.33333333%}.col-lg-9{width:75%}.col-lg-8{width:66.66666667%}.col-lg-7{width:58.33333333%}.col-lg-6{width:50%}.col-lg-5{width:41.66666667%}.col-lg-4{width:33.33333333%}.col-lg-3{width:25%}.col-lg-2{width:16.66666667%}.col-lg-1{width:8.33333333%}.col-lg-pull-12{right:100%}.col-lg-pull-11{right:91.66666667%}.col-lg-pull-10{right:83.33333333%}.col-lg-pull-9{right:75%}.col-lg-pull-8{right:66.66666667%}.col-lg-pull-7{right:58.33333333%}.col-lg-pull-6{right:50%}.col-lg-pull-5{right:41.66666667%}.col-lg-pull-4{right:33.33333333%}.col-lg-pull-3{right:25%}.col-lg-pull-2{right:16.66666667%}.col-lg-pull-1{right:8.33333333%}.col-lg-pull-0{right:auto}.col-lg-push-12{left:100%}.col-lg-push-11{left:91.66666667%}.col-lg-push-10{left:83.33333333%}.col-lg-push-9{left:75%}.col-lg-push-8{left:66.66666667%}.col-lg-push-7{left:58.33333333%}.col-lg-push-6{left:50%}.col-lg-push-5{left:41.66666667%}.col-lg-push-4{left:33.33333333%}.col-lg-push-3{left:25%}.col-lg-push-2{left:16.66666667%}.col-lg-push-1{left:8.33333333%}.col-lg-push-0{left:auto}.col-lg-offset-12{margin-left:100%}.col-lg-offset-11{margin-left:91.66666667%}.col-lg-offset-10{margin-left:83.33333333%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-8{margin-left:66.66666667%}.col-lg-offset-7{margin-left:58.33333333%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-5{margin-left:41.66666667%}.col-lg-offset-4{margin-left:33.33333333%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-2{margin-left:16.66666667%}.col-lg-offset-1{margin-left:8.33333333%}.col-lg-offset-0{margin-left:0}}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1470
  @media (min-width: 992px){.col-md-3 {width: 25%;}.col-md-1, .col-md-10, .col-md-11, .col-md-12, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9 {float: left;}.col-md-12{width:100%}.col-md-11{width:91.66666667%}.col-md-10{width:83.33333333%}.col-md-9{width:75%}.col-md-8{width:66.66666667%}.col-md-7{width:58.33333333%}.col-md-6{width:50%}.col-md-5{width:41.66666667%}.col-md-4{width:33.33333333%}.col-md-3{width:25%}.col-md-2{width:16.66666667%}.col-md-1{width:8.33333333%}.col-md-pull-12{right:100%}.col-md-pull-11{right:91.66666667%}.col-md-pull-10{right:83.33333333%}.col-md-pull-9{right:75%}.col-md-pull-8{right:66.66666667%}.col-md-pull-7{right:58.33333333%}.col-md-pull-6{right:50%}.col-md-pull-5{right:41.66666667%}.col-md-pull-4{right:33.33333333%}.col-md-pull-3{right:25%}.col-md-pull-2{right:16.66666667%}.col-md-pull-1{right:8.33333333%}.col-md-pull-0{right:auto}.col-md-push-12{left:100%}.col-md-push-11{left:91.66666667%}.col-md-push-10{left:83.33333333%}.col-md-push-9{left:75%}.col-md-push-8{left:66.66666667%}.col-md-push-7{left:58.33333333%}.col-md-push-6{left:50%}.col-md-push-5{left:41.66666667%}.col-md-push-4{left:33.33333333%}.col-md-push-3{left:25%}.col-md-push-2{left:16.66666667%}.col-md-push-1{left:8.33333333%}.col-md-push-0{left:auto}.col-md-offset-12{margin-left:100%}.col-md-offset-11{margin-left:91.66666667%}.col-md-offset-10{margin-left:83.33333333%}.col-md-offset-9{margin-left:75%}.col-md-offset-8{margin-left:66.66666667%}.col-md-offset-7{margin-left:58.33333333%}.col-md-offset-6{margin-left:50%}.col-md-offset-5{margin-left:41.66666667%}.col-md-offset-4{margin-left:33.33333333%}.col-md-offset-3{margin-left:25%}.col-md-offset-2{margin-left:16.66666667%}.col-md-offset-1{margin-left:8.33333333%}.col-md-offset-0{margin-left:0}}
1471
  @media (min-width:768px) {.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9{float:left}.col-sm-12{width:100%}.col-sm-11{width:91.66666667%}.col-sm-10{width:83.33333333%}.col-sm-9{width:75%}.col-sm-8{width:66.66666667%}.col-sm-7{width:58.33333333%}.col-sm-6{width:50%}.col-sm-5{width:41.66666667%}.col-sm-4{width:33.33333333%}.col-sm-3{width:25%}.col-sm-2{width:16.66666667%}.col-sm-1{width:8.33333333%}.col-sm-pull-12{right:100%}.col-sm-pull-11{right:91.66666667%}.col-sm-pull-10{right:83.33333333%}.col-sm-pull-9{right:75%}.col-sm-pull-8{right:66.66666667%}.col-sm-pull-7{right:58.33333333%}.col-sm-pull-6{right:50%}.col-sm-pull-5{right:41.66666667%}.col-sm-pull-4{right:33.33333333%}.col-sm-pull-3{right:25%}.col-sm-pull-2{right:16.66666667%}.col-sm-pull-1{right:8.33333333%}.col-sm-pull-0{right:auto}.col-sm-push-12{left:100%}.col-sm-push-11{left:91.66666667%}.col-sm-push-10{left:83.33333333%}.col-sm-push-9{left:75%}.col-sm-push-8{left:66.66666667%}.col-sm-push-7{left:58.33333333%}.col-sm-push-6{left:50%}.col-sm-push-5{left:41.66666667%}.col-sm-push-4{left:33.33333333%}.col-sm-push-3{left:25%}.col-sm-push-2{left:16.66666667%}.col-sm-push-1{left:8.33333333%}.col-sm-push-0{left:auto}.col-sm-offset-12{margin-left:100%}.col-sm-offset-11{margin-left:91.66666667%}.col-sm-offset-10{margin-left:83.33333333%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-8{margin-left:66.66666667%}.col-sm-offset-7{margin-left:58.33333333%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-5{margin-left:41.66666667%}.col-sm-offset-4{margin-left:33.33333333%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-2{margin-left:16.66666667%}.col-sm-offset-1{margin-left:8.33333333%}.col-sm-offset-0{margin-left:0}}
1472
  @media (min-width:1200px){.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9{float:left}.col-lg-12{width:100%}.col-lg-11{width:91.66666667%}.col-lg-10{width:83.33333333%}.col-lg-9{width:75%}.col-lg-8{width:66.66666667%}.col-lg-7{width:58.33333333%}.col-lg-6{width:50%}.col-lg-5{width:41.66666667%}.col-lg-4{width:33.33333333%}.col-lg-3{width:25%}.col-lg-2{width:16.66666667%}.col-lg-1{width:8.33333333%}.col-lg-pull-12{right:100%}.col-lg-pull-11{right:91.66666667%}.col-lg-pull-10{right:83.33333333%}.col-lg-pull-9{right:75%}.col-lg-pull-8{right:66.66666667%}.col-lg-pull-7{right:58.33333333%}.col-lg-pull-6{right:50%}.col-lg-pull-5{right:41.66666667%}.col-lg-pull-4{right:33.33333333%}.col-lg-pull-3{right:25%}.col-lg-pull-2{right:16.66666667%}.col-lg-pull-1{right:8.33333333%}.col-lg-pull-0{right:auto}.col-lg-push-12{left:100%}.col-lg-push-11{left:91.66666667%}.col-lg-push-10{left:83.33333333%}.col-lg-push-9{left:75%}.col-lg-push-8{left:66.66666667%}.col-lg-push-7{left:58.33333333%}.col-lg-push-6{left:50%}.col-lg-push-5{left:41.66666667%}.col-lg-push-4{left:33.33333333%}.col-lg-push-3{left:25%}.col-lg-push-2{left:16.66666667%}.col-lg-push-1{left:8.33333333%}.col-lg-push-0{left:auto}.col-lg-offset-12{margin-left:100%}.col-lg-offset-11{margin-left:91.66666667%}.col-lg-offset-10{margin-left:83.33333333%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-8{margin-left:66.66666667%}.col-lg-offset-7{margin-left:58.33333333%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-5{margin-left:41.66666667%}.col-lg-offset-4{margin-left:33.33333333%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-2{margin-left:16.66666667%}.col-lg-offset-1{margin-left:8.33333333%}.col-lg-offset-0{margin-left:0}}
1473
+ #sfsi_plus_jivo_offline_chat{
1474
+ position:fixed;
1475
+ bottom:0;
1476
+ right:30px;
1477
+ height:350px;
1478
+ min-width:45%;
1479
+ background:#fff;
1480
+ border-top-left-radius:30px;
1481
+ border-top-right-radius:30px;
1482
+ padding:10px;
1483
+ border: 3px solid #ddd;
1484
+ border-bottom: 0;
1485
+ }
1486
+ #sfsi_plus_jivo_offline_chat .heading-text{
1487
+ font-size:16px;
1488
+ font-weight:500;
1489
+ color:#999;
1490
+ }
1491
+ #sfsi_plus_jivo_offline_chat .heading-text a{
1492
+ font-size:16px;
1493
+ font-weight:900;
1494
+ color:#999;
1495
+ }
1496
+ #sfsi_plus_jivo_offline_chat .tab-changer{
1497
+ /*width:100%;*/
1498
+ padding:0 15px;
1499
+
1500
+ }
1501
+ #sfsi_plus_jivo_offline_chat .tab-changer .tab-link {
1502
+ float: left;
1503
+ width: 50%;
1504
+ text-align: center;
1505
+ background: #eee;
1506
+ border-bottom: 5px solid #24497B;
1507
+ }
1508
+ #sfsi_plus_jivo_offline_chat .tab-changer .tab-link:first-child {
1509
+ border-top-left-radius:8px;
1510
+ }
1511
+ #sfsi_plus_jivo_offline_chat .tab-changer .tab-link:last-child {
1512
+ border-top-right-radius:8px;
1513
+ }
1514
+ #sfsi_plus_jivo_offline_chat .tab-changer .tab-link p {
1515
+ background: #eee;
1516
+ padding: 5px 0;
1517
+ margin: 0;
1518
+ border-top-left-radius: 10px;
1519
+ border-top-right-radius: 10px;
1520
+ font-size: 25px;
1521
+ cursor:pointer;
1522
+ line-height:1;
1523
+ }
1524
+ #sfsi_plus_jivo_offline_chat .tab-changer .tab-link p span {
1525
+ font-size: 15px;
1526
+ }
1527
+ #sfsi_plus_jivo_offline_chat .tab-changer .tab-link.active p {
1528
+ background: #24497B;
1529
+ color: #fff;
1530
+ }
1531
+ #sfsi_plus_jivo_offline_chat .tabs {
1532
+ /*background: #dbeef4;*/
1533
+ background: #ddd;
1534
+ margin: -6px 15px 0 15px;
1535
+ min-height:250px;
1536
+ }
1537
+ #sfsi_plus_jivo_offline_chat #sfsi_technical {
1538
+ padding:50px;
1539
+ }
1540
+ #sfsi_plus_jivo_offline_chat .tabs .support-forum-green-div{
1541
+ margin: 10px 0;
1542
+ }
1543
+ #sfsi_plus_jivo_offline_chat .tabs .support-forum-green-div a {
1544
+ padding:20px 26px 18px 25px;
1545
+ width:245px;
1546
+ margin:0;
1547
+ }
1548
+ #sfsi_plus_jivo_offline_chat .tabs .support-forum-green-div a img {
1549
+ margin-top:11px;
1550
+ }
1551
+ #sfsi_plus_jivo_offline_chat .tabs #sfsi_technical p {
1552
+ font-size:20px;
1553
+ padding-top:5px;
1554
+ margin:0;
1555
+ }
1556
+ #sfsi_plus_jivo_offline_chat .tabs #sfsi_sales{
1557
+ padding:15px;
1558
+ }
1559
+ #sfsi_plus_jivo_offline_chat .tabs #sfsi_sales .right-message{
1560
+ width:50%;
1561
+ float:right;
1562
+ text-align:right;
1563
+ margin:0;
1564
+ }
1565
+ #sfsi_plus_jivo_offline_chat .tabs #sfsi_sales form>div{
1566
+ margin-top:5px;
1567
+ }
1568
+ #sfsi_plus_jivo_offline_chat .tabs #sfsi_sales label{
1569
+ font-size:20px;
1570
+ color:#000;
1571
+ font-weight: 900;
1572
+ padding-bottom:5px;
1573
+ }
1574
+
1575
+ #sfsi_plus_jivo_offline_chat .tabs #sfsi_sales input , #sfsi_plus_jivo_offline_chat .tabs #sfsi_sales textarea{
1576
+ margin-top:5px;
1577
+ width:100%;
1578
+ border:0;
1579
+ box-shadow: 0 0 5px 0 #888;
1580
+ }
1581
+ #sfsi_plus_jivo_offline_chat .tabs #sfsi_sales input{
1582
+ height:40px;
1583
+ }
1584
+ #sfsi_plus_jivo_offline_chat .tabs #sfsi_sales textarea{
1585
+ height:80px;
1586
+ resize: none;
1587
+ }
1588
+ #sfsi_plus_jivo_offline_chat .tabs #sfsi_sales input[type="submit"],#sfsi_plus_jivo_offline_chat .tabs #sfsi_sales .after_message_sent button{
1589
+ border: 0;
1590
+ background: #079345;
1591
+ color: #fff;
1592
+ margin-top: 23px;
1593
+ width: 100%;
1594
+ font-size: 16px;
1595
+ border-radius: 4px;
1596
+ cursor:pointer;
1597
+ box-shadow: none;
1598
+ }
1599
+ #sfsi_plus_jivo_offline_chat .tabs #sfsi_sales .after_message_sent{
1600
+ text-align:center;
1601
+ }
1602
+ #sfsi_plus_jivo_offline_chat .tabs #sfsi_sales .after_message_sent h2{
1603
+ font-size:35px;
1604
+ }
1605
+ #sfsi_plus_jivo_offline_chat .tabs #sfsi_sales .after_message_sent h3{
1606
+ font-size:25px;
1607
+ font-weight:300;
1608
+ }
1609
+ #sfsi_plus_jivo_offline_chat .tabs #sfsi_sales .after_message_sent button{
1610
+ width:auto;
1611
+ margin-top:0;
1612
+ padding:10px;
1613
+ }
1614
+ #sfsi_plus_jivo_offline_chat #sfsi_technical .sfsi-button-right-side {
1615
+ font-size: 13px!important;
1616
+ font-weight: 900;
1617
+ float: right;
1618
+ text-align: right;
1619
+ margin-top: -40px!important;
1620
+ }
1621
+ #sfsi_plus_jivo_offline_chat #sfsi_technical .sfsi-button-right-side .sfsi-button-right-side-icon{
1622
+ background-image: url('images/select-arrow.png');
1623
+ width:15px;
1624
+ height:9px;
1625
+ display:inline-block;
1626
+ -webkit-transform: rotate(90deg);
1627
+ -moz-transform: rotate(90deg);
1628
+ -ms-transform: rotate(90deg);
1629
+ -o-transform: rotate(90deg);
1630
+ transform: rotate(90deg);
1631
+ }
1632
+ @media (max-width: 543px){
1633
+ #sfsi_plus_jivo_offline_chat{
1634
+ width:400px;
1635
+ }
1636
+ }
css/sfsi-style.css CHANGED
@@ -3237,4 +3237,11 @@ label.sfsiplus_toglpstpgsbttl { float: left; margin-top: 5px !important}
3237
  }
3238
  .sfsi_plus_Sicons .sf_pinit{
3239
  margin:0 0 0 10px;
3240
- }
 
 
 
 
 
 
 
3237
  }
3238
  .sfsi_plus_Sicons .sf_pinit{
3239
  margin:0 0 0 10px;
3240
+ }
3241
+ .wp-block-ultimate-social-media-plus-sfsi-plus-share-block .sfsi_plus_block_text_before_icon{
3242
+ display:inline-block;
3243
+ vertical-align:top;
3244
+ }
3245
+ .wp-block-ultimate-social-media-plus-sfsi-plus-share-block .sfsi_plus_block{
3246
+ display:inline-block
3247
+ }
dist/blocks.build.js CHANGED
@@ -1 +1,110 @@
1
- !function(t){function n(e){if(i[e])return i[e].exports;var o=i[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var i={};n.m=t,n.c=i,n.d=function(t,i,e){n.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:e})},n.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(i,"a",i),i},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="",n(n.s=0)}([function(t,n,i){"use strict";Object.defineProperty(n,"__esModule",{value:!0});i(1)},function(t,n,i){"use strict";function e(t){return r("div",{className:"sfsi_plus_block_container"},"\n\t",r("div",{className:"sfsi_plus_block"},""),"\n\t",r("script",{},t.jscode),"\n")}function o(){return jQuery(document).ready(function(t){jQuery.ajax({url:"/wp-json/ultimate-social-media-plus/v1/icons/",method:"GET"}).done(function(n){t(".sfsi_plus_block").length>0?(t(".sfsi_plus_block").html(n),console.log("updated")):(setTimeout(function(){t(".sfsi_plus_block").html(n),console.log("now updated")},5e3),console.log("timeset"))}).fail(function(n){t(".sfsi_plus_block").html(n.responseText.replace("/\\/g",""))})})}var s=i(2),l=(i.n(s),i(3)),c=(i.n(l),wp.i18n.__),u=wp.blocks.registerBlockType,r=wp.element.createElement,a=r("svg",{width:20,height:20},r("g",{transform:"translate(0.000000,20.000000) scale(0.0062,-0.0070)",fill:"#000000",stroke:"none"},r("path",{d:"M2055 2721 c-284 -83 -461 -332 -442 -624 l6 -89 -72 6 c-406 39 -818 246 -1090 548 l-66 73 -26 -60 c-101 -227 -55 -484 120 -661 l72 -74 -32 0 c-39 0 -127 26 -179 52 l-39 20 6 -74 c18 -224 178 -428 395 -504 58 -20 61 -22 35 -29 -15 -4 -72 -6 -126 -6 -98 1 -98 1 -92 -21 19 -62 77 -150 141 -214 88 -89 200 -148 317 -166 43 -7 77 -15 77 -18 0 -7 -152 -102 -205 -128 -72 -36 -216 -82 -302 -97 -46 -8 -146 -15 -221 -16 -159 -1 -160 2 10 -85 257 -131 542 -193 838 -181 209 8 392 45 572 115 l68 26 0 393 0 393 -100 0 c-93 0 -100 1 -100 20 0 11 -1 90 -1 175 0 85 1 160 1 165 0 6 40 10 100 10 l100 0 1 138 c1 144 3 170 20 241 34 147 165 265 319 288 49 8 174 9 358 5 l62 -2 0 -175 0 -175 -127 0 c-83 0 -137 -5 -153 -13 -35 -18 -46 -61 -49 -193 l-2 -114 165 0 166 0 0 -37 c0 -21 -7 -96 -15 -168 -8 -71 -15 -138 -15 -147 0 -16 -14 -18 -150 -18 l-150 0 0 -332 c1 -686 3 -637 -22 -642 -13 -3 -90 -8 -172 -12 -82 -3 -143 -10 -136 -14 6 -4 93 -8 191 -9 l179 -2 0 272 0 271 63 72 c119 134 198 250 273 397 113 225 184 512 184 745 l0 101 79 66 c64 54 226 235 217 244 -1 1 -26 -6 -55 -17 -59 -23 -176 -55 -235 -65 l-40 -7 50 39 c86 69 147 149 184 242 l19 49 -88 -43 c-69 -34 -199 -81 -276 -99 -5 -2 -37 19 -70 46 -150 122 -366 170 -540 119z"})));u("ultimate-social-media-plus/sfsi-plus-share-block",{title:c("Social Icons"),icon:a,category:"common",keywords:[c("Social Icons"),c("Social share"),c("Gutenberg Share")],attributes:{jscode:{default:"\n\t\tjQuery(document).ready(function($) {\n\t\t\tjQuery.ajax({\n\t\t\t\t'url': '/wp-json/ultimate-social-media-plus/v1/icons/?share_url='+window.location.href,\n\t\t\t\t'method': 'GET'\n\t\t\t}).done( function(response){\n\t\t\t\t$('.sfsi_plus_block_container .sfsi_plus_block').html(response);if(window.gapi){window.gapi.plusone.go();window.gapi.plus.go();window.gapi.ytsubscribe.go();};if(window.twttr){window.twttr.widgets.load();};if(window.IN){window.IN.parse();};if(window.addthis){if(window.addthis.toolbox){window.addthis.toolbox('.addthis_button.sficn');}else{window.addthis.init();window.addthis.toolbox('.addthis_button.sficn');}};if(window.PinUtils){window.PinUtils.build();};if(jQuery('.sfsi_plus_wDiv').length > 0) {setTimeout(function() { var s = parseInt(jQuery('.sfsi_plus_wDiv').height()) + 15 + 'px';jQuery('.sfsi_plus_holders').each(function() {jQuery(this).css('height', s);});jQuery('.sfsi_plus_widget').css('min-height', 'auto');}, 200);};if(window.FB){if(window.FB.XFBML){window.FB.XFBML.parse();}};\n\t\t\t});\n\t\t});\n\t",type:"string"}},edit:function(t){return o(),r("div",{className:"sfsi_plus_block"},"loading....")},save:function(t){return e(t.attributes)}})},function(t,n){},function(t,n){}]);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /******/ (function(modules) { // webpackBootstrap
2
+ /******/ // The module cache
3
+ /******/ var installedModules = {};
4
+ /******/
5
+ /******/ // The require function
6
+ /******/ function __webpack_require__(moduleId) {
7
+ /******/
8
+ /******/ // Check if module is in cache
9
+ /******/ if(installedModules[moduleId]) {
10
+ /******/ return installedModules[moduleId].exports;
11
+ /******/ }
12
+ /******/ // Create a new module (and put it into the cache)
13
+ /******/ var module = installedModules[moduleId] = {
14
+ /******/ i: moduleId,
15
+ /******/ l: false,
16
+ /******/ exports: {}
17
+ /******/ };
18
+ /******/
19
+ /******/ // Execute the module function
20
+ /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
21
+ /******/
22
+ /******/ // Flag the module as loaded
23
+ /******/ module.l = true;
24
+ /******/
25
+ /******/ // Return the exports of the module
26
+ /******/ return module.exports;
27
+ /******/ }
28
+ /******/
29
+ /******/
30
+ /******/ // expose the modules object (__webpack_modules__)
31
+ /******/ __webpack_require__.m = modules;
32
+ /******/
33
+ /******/ // expose the module cache
34
+ /******/ __webpack_require__.c = installedModules;
35
+ /******/
36
+ /******/ // define getter function for harmony exports
37
+ /******/ __webpack_require__.d = function(exports, name, getter) {
38
+ /******/ if(!__webpack_require__.o(exports, name)) {
39
+ /******/ Object.defineProperty(exports, name, {
40
+ /******/ configurable: false,
41
+ /******/ enumerable: true,
42
+ /******/ get: getter
43
+ /******/ });
44
+ /******/ }
45
+ /******/ };
46
+ /******/
47
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
48
+ /******/ __webpack_require__.n = function(module) {
49
+ /******/ var getter = module && module.__esModule ?
50
+ /******/ function getDefault() { return module['default']; } :
51
+ /******/ function getModuleExports() { return module; };
52
+ /******/ __webpack_require__.d(getter, 'a', getter);
53
+ /******/ return getter;
54
+ /******/ };
55
+ /******/
56
+ /******/ // Object.prototype.hasOwnProperty.call
57
+ /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
58
+ /******/
59
+ /******/ // __webpack_public_path__
60
+ /******/ __webpack_require__.p = "";
61
+ /******/
62
+ /******/ // Load entry module and return exports
63
+ /******/ return __webpack_require__(__webpack_require__.s = 0);
64
+ /******/ })
65
+ /************************************************************************/
66
+ /******/ ([
67
+ /* 0 */
68
+ /*!***********************!*\
69
+ !*** ./src/blocks.js ***!
70
+ \***********************/
71
+ /*! no exports provided */
72
+ /*! all exports used */
73
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
74
+
75
+ "use strict";
76
+ eval("Object.defineProperty(__webpack_exports__, \"__esModule\", { value: true });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__block_block_js__ = __webpack_require__(/*! ./block/block.js */ 1);\n/**\n * Gutenberg Blocks\n *\n * All blocks related JavaScript files should be imported here.\n * You can create a new block folder in this dir and include code\n * for that block here as well.\n *\n * All blocks should be included here since this is the file that\n * Webpack is compiling as the input file.\n */\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMC5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3NyYy9ibG9ja3MuanM/N2I1YiJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEd1dGVuYmVyZyBCbG9ja3NcbiAqXG4gKiBBbGwgYmxvY2tzIHJlbGF0ZWQgSmF2YVNjcmlwdCBmaWxlcyBzaG91bGQgYmUgaW1wb3J0ZWQgaGVyZS5cbiAqIFlvdSBjYW4gY3JlYXRlIGEgbmV3IGJsb2NrIGZvbGRlciBpbiB0aGlzIGRpciBhbmQgaW5jbHVkZSBjb2RlXG4gKiBmb3IgdGhhdCBibG9jayBoZXJlIGFzIHdlbGwuXG4gKlxuICogQWxsIGJsb2NrcyBzaG91bGQgYmUgaW5jbHVkZWQgaGVyZSBzaW5jZSB0aGlzIGlzIHRoZSBmaWxlIHRoYXRcbiAqIFdlYnBhY2sgaXMgY29tcGlsaW5nIGFzIHRoZSBpbnB1dCBmaWxlLlxuICovXG5cbmltcG9ydCAnLi9ibG9jay9ibG9jay5qcyc7XG5cblxuLy8vLy8vLy8vLy8vLy8vLy8vXG4vLyBXRUJQQUNLIEZPT1RFUlxuLy8gLi9zcmMvYmxvY2tzLmpzXG4vLyBtb2R1bGUgaWQgPSAwXG4vLyBtb2R1bGUgY2h1bmtzID0gMCJdLCJtYXBwaW5ncyI6IkFBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Iiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///0\n");
77
+
78
+ /***/ }),
79
+ /* 1 */
80
+ /*!****************************!*\
81
+ !*** ./src/block/block.js ***!
82
+ \****************************/
83
+ /*! no exports provided */
84
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
85
+
86
+ "use strict";
87
+ eval("/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style_scss__ = __webpack_require__(/*! ./style.scss */ 2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style_scss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__style_scss__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__editor_scss__ = __webpack_require__(/*! ./editor.scss */ 3);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__editor_scss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__editor_scss__);\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n/**\n * BLOCK: social-share-block\n *\n * Registering a basic block with Gutenberg.\n * Simple block, renders and saves the same content without any interactivity.\n */\n\n// Import CSS.\n\n\n\nvar __ = wp.i18n.__; // Import __() from wp.i18n\n\nvar _wp$blocks = wp.blocks,\n registerBlockType = _wp$blocks.registerBlockType,\n RichText = _wp$blocks.RichText,\n TextControl = _wp$blocks.TextControl,\n AlignmentToolbar = _wp$blocks.AlignmentToolbar,\n BlockControls = _wp$blocks.BlockControls,\n InspectorControls = _wp$blocks.InspectorControls; // Import registerBlockType() from wp.blocks\n\n// const {\n// TextControl\n// } = wp.components;\n\nvar el = wp.element.createElement;\n/**\n * Register: aa Gutenberg Block.\n *\n * Registers a new block provided a unique name and an object defining its\n * behavior. Once registered, the block is made editor as an option to any\n * editor interface where blocks are implemented.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/\n * @param {string} name Block name.\n * @param {Object} settings Block settings.\n * @return {?WPBlock} The block, if it has been successfully\n * registered; otherwise `undefined`.\n */\n\nvar iconEl = el('svg', { width: 20, height: 20 }, el('g', { 'transform': \"translate(0.000000,20.000000) scale(0.0062,-0.0070)\", 'fill': \"#000000\", 'stroke': \"none\" }, el('path', { d: \"M2055 2721 c-284 -83 -461 -332 -442 -624 l6 -89 -72 6 c-406 39 -818 246 -1090 548 l-66 73 -26 -60 c-101 -227 -55 -484 120 -661 l72 -74 -32 0 c-39 0 -127 26 -179 52 l-39 20 6 -74 c18 -224 178 -428 395 -504 58 -20 61 -22 35 -29 -15 -4 -72 -6 -126 -6 -98 1 -98 1 -92 -21 19 -62 77 -150 141 -214 88 -89 200 -148 317 -166 43 -7 77 -15 77 -18 0 -7 -152 -102 -205 -128 -72 -36 -216 -82 -302 -97 -46 -8 -146 -15 -221 -16 -159 -1 -160 2 10 -85 257 -131 542 -193 838 -181 209 8 392 45 572 115 l68 26 0 393 0 393 -100 0 c-93 0 -100 1 -100 20 0 11 -1 90 -1 175 0 85 1 160 1 165 0 6 40 10 100 10 l100 0 1 138 c1 144 3 170 20 241 34 147 165 265 319 288 49 8 174 9 358 5 l62 -2 0 -175 0 -175 -127 0 c-83 0 -137 -5 -153 -13 -35 -18 -46 -61 -49 -193 l-2 -114 165 0 166 0 0 -37 c0 -21 -7 -96 -15 -168 -8 -71 -15 -138 -15 -147 0 -16 -14 -18 -150 -18 l-150 0 0 -332 c1 -686 3 -637 -22 -642 -13 -3 -90 -8 -172 -12 -82 -3 -143 -10 -136 -14 6 -4 93 -8 191 -9 l179 -2 0 272 0 271 63 72 c119 134 198 250 273 397 113 225 184 512 184 745 l0 101 79 66 c64 54 226 235 217 244 -1 1 -26 -6 -55 -17 -59 -23 -176 -55 -235 -65 l-40 -7 50 39 c86 69 147 149 184 242 l19 49 -88 -43 c-69 -34 -199 -81 -276 -99 -5 -2 -37 19 -70 46 -150 122 -366 170 -540 119z\" })));\n\nregisterBlockType('ultimate-social-media-plus/sfsi-plus-share-block', {\n\t// Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.\n\ttitle: __('Social Icons'), // Block title.\n\ticon: iconEl, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.\n\tcategory: 'common', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.\n\tkeywords: [__('Social Icons'), __('Social share'), __('Gutenberg Share')],\n\tattributes: {\n\t\t\"jscode\": {\n\t\t\t\"default\": \"\\n\\t\\tjQuery(document).ready(function($) {\\n\\t\\t\\tjQuery.ajax({\\n\\t\\t\\t\\t'url': '/wp-json/ultimate-social-media-plus/v1/icons/?share_url='+window.location.href,\\n\\t\\t\\t\\t'method': 'GET'\\n\\t\\t\\t}).done( function(response){\\n\\t\\t\\t\\t$('.sfsi_plus_block_wrapper .sfsi_plus_block').html(response);sfsi_plus_update_iconcount();if(window.gapi){window.gapi.plusone.go();window.gapi.plus.go();window.gapi.ytsubscribe.go();};if(window.twttr){window.twttr.widgets.load();};if(window.IN){window.IN.parse();};if(window.addthis){if(window.addthis.toolbox){window.addthis.toolbox('.addthis_button.sficn');}else{window.addthis.init();window.addthis.toolbox('.addthis_button.sficn');}};if(window.PinUtils){window.PinUtils.build();};if(jQuery('.sfsi_plus_wDiv').length > 0) {setTimeout(function() { var s = parseInt(jQuery('.sfsi_plus_wDiv').height()) + 15 + 'px';jQuery('.sfsi_plus_holders').each(function() {jQuery(this).css('height', s);});jQuery('.sfsi_plus_widget').css('min-height', 'auto');}, 200);};if(window.FB){if(window.FB.XFBML){window.FB.XFBML.parse();}};\\n\\t\\t\\t});\\n\\t\\t});\\n\\t\",\n\t\t\ttype: 'string'\n\t\t},\n\t\tshowTextBeforeShare: {\n\t\t\ttype: 'string',\n\t\t\t// source: 'text',\n\t\t\tdefault: 'yes'\n\t\t\t// meta: 'sfsi_plus_gutenberg_show_text_before_share'\n\t\t},\n\t\ttextBeforeShare: {\n\t\t\ttype: 'string',\n\t\t\t// source: 'text',\n\t\t\tdefault: 'Please Share:'\n\t\t},\n\t\ticonType: {\n\t\t\ttype: 'string',\n\t\t\t// source: 'text',\n\t\t\tdefault: 'round'\n\t\t},\n\t\ticonAlignemt: {\n\t\t\ttype: 'string',\n\t\t\t// source: 'text',\n\t\t\tdefault: 'left'\n\t\t},\n\t\tmaxPerRow: {\n\t\t\ttype: 'string',\n\t\t\t// source: 'text',\n\t\t\tdefault: '5'\n\n\t\t}\n\t},\n\t/**\n * The edit function describes the structure of your block in the context of the editor.\n * This represents what the editor will render when the block is used.\n *\n * The \"edit\" property must be a valid function.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/\n */\n\tedit: function edit(props) {\n\t\tfunction onAttrChange(meta, value) {\n\t\t\tprops.setAttributes(_defineProperty({}, meta, value));\n\t\t}\n\t\tvar setAttributes = props.setAttributes;\n\t\t// var focus = props.isSelected;\n\t\tvar attributes = props.attributes;\n\t\t// console.log('attributes',attributes,wp.element);\n\t\tvar showTextBeforeShare = \"yes\";\n\t\tvar textBeforeShare = \"Please Share:\";\n\t\tif (attributes.showTextBeforeShare || '' !== attributes.showTextBeforeShare) {\n\t\t\tshowTextBeforeShare = attributes.showTextBeforeShare;\n\t\t} else {\n\t\t\tonAttrChange('showTextBeforeShare', 'yes');\n\t\t}\n\t\tif (attributes.textBeforeShare || '' !== attributes.textBeforeShare) {\n\t\t\ttextBeforeShare = attributes.textBeforeShare;\n\t\t} else {\n\t\t\tonAttrChange('textBeforeShare', 'Please Share:');\n\t\t}\n\n\t\t// Creates a <p class='wp-block-cgb-block-social-share-block'></p>.\n\t\t// return renderButtons(props.attributes);\n\t\tvar target = jQuery('div[data-block=\"' + props.clientId + '\"]').find('.sfsi_plus_block_container');\n\t\t// console.log(props,target,target.length);\n\t\tif (target.length > 0) {\n\t\t\tvar buttons = target.find('.sfsi_plus_block>div');\n\t\t\tif (buttons.length === 0) {\n\t\t\t\tfetchButtons(attributes.iconType, attributes, target);\n\t\t\t}\n\t\t} else {\n\t\t\tsetTimeout(function () {\n\t\t\t\tvar target = jQuery('div[data-block=\"' + props.clientId + '\"]').find('.sfsi_plus_block_container');\n\t\t\t\tvar buttons = target.find('.sfsi_plus_block>div');\n\t\t\t\tif (buttons.length === 0) {\n\t\t\t\t\tfetchButtons(attributes.iconType, attributes, target);\n\t\t\t\t}\n\t\t\t}, 3000);\n\t\t}\n\n\t\treturn [el(wp.editor.InspectorControls, { key: 'sfsi-plus-block-inspector' }, el('div', { className: \"sfsi_plus_block_inspector\" }, el('h3', { className: 'sfsi_plus_block_icontype_header' }, __('Type')), el('select', { className: 'form-control sfsi_plus_block_icontype_selector',\n\t\t\tvalue: attributes.iconType,\n\t\t\tonChange: function onChange(event) {\n\t\t\t\tvar target = jQuery('.wp-block.is-selected').find('.sfsi_plus_block_container');\n\t\t\t\tsetAttributes({ iconType: event.target.value });\n\t\t\t\tfetchButtons(event.target.value, attributes, target);\n\t\t\t}\n\t\t}, el('option', {\n\t\t\t'value': 'round'\n\t\t}, 'Round / «main» icons'), el('option', {\n\t\t\t'value': 'rectangle'\n\t\t}, 'Rectangle icons')), (props.attributes.iconType === \"round\" || undefined === props.attributes.iconType) && el('p', { className: 'sfsi_plus_block_icontype_desc' }, __(' Those are the icons you selected under question 1 on the plugin‘s '), el('a', { 'target': '_blank', 'href': '/wp-admin/admin.php?page=sfsi-plus-options#ui-id-1' }, __(' settings page.'))), props.attributes.iconType === \"rectangle\" && el('p', { className: 'sfsi_plus_block_icontype_desc' }, __('Those are the icons you selected '), el('a', { 'target': '_blank', 'href': '/wp-admin/admin.php?page=sfsi-plus-options#ui-id-5' }, __('here.'))), el('h3', { className: 'sfsi_plus_block_icontype_header' }, __('Alignment')), el('select', { className: 'form-control sfsi_plus_block_iconalignment_selector',\n\t\t\tvalue: attributes.iconAlignemt,\n\t\t\tonChange: function onChange(event) {\n\t\t\t\tsetAttributes({ iconAlignemt: event.target.value });\n\t\t\t\tvar target = jQuery('.wp-block.is-selected .sfsi_plus_block_container');\n\t\t\t\tif ('center' === event.target.value) {\n\t\t\t\t\tjQuery(target).find('.sfsi_plus_block_text_before_icon').css({ 'display': 'inherit' });\n\t\t\t\t}\n\t\t\t\tjQuery(target).css({ 'text-align': event.target.value });\n\t\t\t}\n\t\t}, el('option', {\n\t\t\t'value': 'left'\n\t\t}, 'Left'), el('option', {\n\t\t\t'value': 'right'\n\t\t}, 'Right'), el('option', {\n\t\t\t'value': 'center'\n\t\t}, 'Center')), (props.attributes.iconType === \"round\" || undefined === props.attributes.iconType) && el('div', { className: 'sfsi_plus_block_iconperrow_body' }, el('span', { className: 'label' }, __('Max. icons per row')), el('input', {\n\t\t\ttype: 'text',\n\t\t\tvalue: attributes.maxPerRow,\n\t\t\tonChange: function onChange(event) {\n\t\t\t\t// console.log(event.target,event.target.value);\n\t\t\t\tsetAttributes({ maxPerRow: (parseInt(event.target.value) || 0) + '' });\n\t\t\t\tchangeIconWidth(event.target.value);\n\t\t\t}\n\t\t})), el('label', {\n\t\t\thtmlFor: 'sfsi-plus-text-before-icons',\n\t\t\tclassName: 'sfsi_plus_block_textbeforeicons'\n\t\t}, el('input', {\n\t\t\tclassName: \"form-control\",\n\t\t\tchecked: attributes.showTextBeforeShare == 'yes',\n\t\t\ttype: 'checkbox',\n\t\t\tonChange: function onChange(event) {\n\t\t\t\tsetAttributes({ showTextBeforeShare: event.target.checked ? 'yes' : 'no' });\n\t\t\t}\n\t\t}), 'Text before icons?'), attributes.showTextBeforeShare == 'yes' && el('input', {\n\t\t\tclassName: 'form-input sfsi_plus_block_textbeforeicons_header',\n\t\t\tvalue: attributes.textBeforeShare,\n\t\t\tstyle: {\n\t\t\t\t'padding-top': '3px'\n\t\t\t},\n\t\t\tonChange: function onChange(event) {\n\t\t\t\tsetAttributes({ textBeforeShare: event.target.value });\n\t\t\t}\n\t\t}), attributes.showTextBeforeShare === 'yes' && el('div', { className: 'form-input sfsi_plus_block_textbeforeicons_body' }, __('Define the font size & type in our '), el('a', { 'href': 'https://www.ultimatelysocial.com/usm-premium/', 'target': '_blank' }, __('Premium plugin'))), el('h3', { className: 'sfsi_plus_block_notes_heading' }, __('Notes')), el('hr'), el('ul', { className: 'sfsi_plus_block_notes_list' }, el('li', { className: 'sfsi_plus_block_notes_item' }, __('For all other selections ( What the icons should do etc.) please go to '), el('a', { 'href': (window.sfsi_plus_links ? window.sfsi_plus_links.admin_url : '/wp-admin/admin.php') + '?page=sfsi-plus-options', 'target': '_blank' }, __('settings page'))), el('li', { className: 'sfsi_plus_block_notes_item' }, __('To see the icons in ‚full action‘ (with all features) please open the page in live or preview mode.')), el('li', { className: 'sfsi_plus_block_notes_item' }, __('If questions remain, please ask them in the '), el('a', {\n\t\t\t'href': 'https://goo.gl/ktAeDv',\n\t\t\t'target': '_blank'\n\t\t}, __('support forum')), __(' – we‘ll try to respond quickly.'), el('img', { src: (window.sfsi_plus_links ? window.sfsi_plus_links.plugin_dir_url : '/wp-content/plugins/ultimate-social-media-plus') + '/images/Ic_insert_emoticon_48px.svg', style: { width: '18px', 'vertical-align': 'text-bottom' } }))), el('h3', { className: 'sfsi_plus_block_ad_heading' }, 'Want (much) more?'), el('div', { className: 'sfsi_plus_block_ad_body' }, el('div', {}, __('Check out our '), el('a', { 'href': 'https://www.ultimatelysocial.com/usm-premium/?utm_source=plus_gutenberg_page&utm_campaign=side_widget&utm_medium=link', 'target': '_blank' }, __('premium plugin‘s features')), __('. Watch a teaser: '))), el('div', { style: { 'text-align': 'center' } }, el('iframe', { src: 'https://player.vimeo.com/video/269140798', width: '640', frameborder: 0, 'webkitallowfullscreen': \"\", 'mozallowfullscreen': \"\", 'allowfullscreen': \"\" }), el('a', { href: \"https://www.ultimatelysocial.com/usm-premium/?utm_source=plus_gutenberg_page&utm_campaign=side_widget&utm_medium=link\", 'target': '_blank', style: { 'display': 'inline-block', padding: '4px 10px', 'text-decoration': 'none', 'background': '#00A15A', 'color': '#fff', 'font-size': '11px', 'font-weight': '900' } }, __('Check out the Premium Plugin >>'))), el('br'), el('span', { className: 'sfsi_plus_block_ad_footer' }, __('..only 24.98 USD (includes support and updates for 1 year, and after that it will not be deactivated, so you can just keep using it!)')))), el('div', { key: 'sfsi-plus-block-content', className: 'sfsi_plus_block_container sfsi_plus_block_wrapper' }, '\\t', showTextBeforeShare == \"yes\" && el('span', { className: 'sfsi_plus_block_text_before_icon', 'data-align': attributes.iconAlignemt }, textBeforeShare), el('div', { className: 'sfsi_plus_block', 'data-count': attributes.maxPerRow, 'data-align': attributes.iconAlignemt, 'data-icon-type': attributes.iconType }, 'loading....'))];\n\t},\n\n\t/**\n * The save function defines the way in which the different attributes should be combined\n * into the final markup, which is then serialized by Gutenberg into post_content.\n *\n * The \"save\" property must be specified and must be a valid function.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/\n */\n\tdeprecated: [{\n\t\tattributes: {\n\t\t\t\"jscode\": {\n\t\t\t\t\"default\": \"\\n\\t\\tjQuery(document).ready(function($) {\\n\\t\\t\\tjQuery.ajax({\\n\\t\\t\\t\\t'url': '/wp-json/ultimate-social-media-plus/v1/icons/?share_url='+window.location.href,\\n\\t\\t\\t\\t'method': 'GET'\\n\\t\\t\\t}).done( function(response){\\n\\t\\t\\t\\t$('.sfsi_plus_block_container .sfsi_plus_block').html(response);if(window.gapi){window.gapi.plusone.go();window.gapi.plus.go();window.gapi.ytsubscribe.go();};if(window.twttr){window.twttr.widgets.load();};if(window.IN){window.IN.parse();};if(window.addthis){if(window.addthis.toolbox){window.addthis.toolbox('.addthis_button.sficn');}else{window.addthis.init();window.addthis.toolbox('.addthis_button.sficn');}};if(window.PinUtils){window.PinUtils.build();};if(jQuery('.sfsi_plus_wDiv').length > 0) {setTimeout(function() { var s = parseInt(jQuery('.sfsi_plus_wDiv').height()) + 15 + 'px';jQuery('.sfsi_plus_holders').each(function() {jQuery(this).css('height', s);});jQuery('.sfsi_plus_widget').css('min-height', 'auto');}, 200);};if(window.FB){if(window.FB.XFBML){window.FB.XFBML.parse();}};\\n\\t\\t\\t});\\n\\t\\t});\\n\\t\",\n\t\t\t\ttype: 'string'\n\t\t\t}\n\t\t},\n\n\t\tisEligible: function isEligible(attributes) {\n\t\t\tconsole.log(attributes);\n\t\t\treturn true;\n\t\t\t// return (attributes.jscode===\"\\n\\t\\tjQuery(document).ready(function($) {\\n\\t\\t\\tjQuery.ajax({\\n\\t\\t\\t\\t'url': '/wp-json/ultimate-social-media-plus/v1/icons/?share_url='+window.location.href,\\n\\t\\t\\t\\t'method': 'GET'\\n\\t\\t\\t}).done( function(response){\\n\\t\\t\\t\\t$('.sfsi_plus_block_container .sfsi_plus_block').html(response);if(window.gapi){window.gapi.plusone.go();window.gapi.plus.go();window.gapi.ytsubscribe.go();};if(window.twttr){window.twttr.widgets.load();};if(window.IN){window.IN.parse();};if(window.addthis){if(window.addthis.toolbox){window.addthis.toolbox('.addthis_button.sficn');}else{window.addthis.init();window.addthis.toolbox('.addthis_button.sficn');}};if(window.PinUtils){window.PinUtils.build();};if(jQuery('.sfsi_plus_wDiv').length > 0) {setTimeout(function() { var s = parseInt(jQuery('.sfsi_plus_wDiv').height()) + 15 + 'px';jQuery('.sfsi_plus_holders').each(function() {jQuery(this).css('height', s);});jQuery('.sfsi_plus_widget').css('min-height', 'auto');}, 200);};if(window.FB){if(window.FB.XFBML){window.FB.XFBML.parse();}};\\n\\t\\t\\t});\\n\\t\\t});\\n\\t\");\n\t\t},\n\t\tmigrate: function migrate(attributes) {\n\t\t\tconsole.log('migrate', attributes);\n\t\t\treturn [{\n\t\t\t\t\"jscode\": \"\\n\\t\\tjQuery(document).ready(function($) {\\n\\t\\t\\tjQuery.ajax({\\n\\t\\t\\t\\t'url': '/wp-json/ultimate-social-media-plus/v1/icons/?share_url='+window.location.href,\\n\\t\\t\\t\\t'method': 'GET'\\n\\t\\t\\t}).done( function(response){\\n\\t\\t\\t\\t$('.sfsi_plus_block_wrapper .sfsi_plus_block').html(response);sfsi_plus_update_iconcount();if(window.gapi){window.gapi.plusone.go();window.gapi.plus.go();window.gapi.ytsubscribe.go();};if(window.twttr){window.twttr.widgets.load();};if(window.IN){window.IN.parse();};if(window.addthis){if(window.addthis.toolbox){window.addthis.toolbox('.addthis_button.sficn');}else{window.addthis.init();window.addthis.toolbox('.addthis_button.sficn');}};if(window.PinUtils){window.PinUtils.build();};if(jQuery('.sfsi_plus_wDiv').length > 0) {setTimeout(function() { var s = parseInt(jQuery('.sfsi_plus_wDiv').height()) + 15 + 'px';jQuery('.sfsi_plus_holders').each(function() {jQuery(this).css('height', s);});jQuery('.sfsi_plus_widget').css('min-height', 'auto');}, 200);};if(window.FB){if(window.FB.XFBML){window.FB.XFBML.parse();}};\\n\\t\\t\\t});\\n\\t\\t});\\n\\t\",\n\t\t\t\tshowTextBeforeShare: 'yes',\n\t\t\t\ttextBeforeShare: 'Please Share:',\n\t\t\t\ticonType: 'round',\n\t\t\t\ticonAlignemt: 'left',\n\t\t\t\tmaxPerRow: '5'\n\t\t\t}];\n\t\t},\n\t\tsave: function save(props) {\n\t\t\tconsole.log(props);\n\t\t\tvar attributes = props.attributes;\n\t\t\treturn renderButtons(attributes);\n\t\t}\n\t}],\n\n\t// deprecated: [\n\t// \t{\n\t// \t\tattributes: {\n\t// \t\t\t\"jscode\":{\n\t// \t\t\t\t\t\t\"default\":\"\\n\\t\\tjQuery(document).ready(function($) {\\n\\t\\t\\tjQuery.ajax({\\n\\t\\t\\t\\t'url': '/wp-json/ultimate-social-media-plus/v1/icons/?share_url='+window.location.href,\\n\\t\\t\\t\\t'method': 'GET'\\n\\t\\t\\t}).done( function(response){\\n\\t\\t\\t\\t$('.sfsi_plus_block_container .sfsi_plus_block').html(response);if(window.gapi){window.gapi.plusone.go();window.gapi.plus.go();window.gapi.ytsubscribe.go();};if(window.twttr){window.twttr.widgets.load();};if(window.IN){window.IN.parse();};if(window.addthis){if(window.addthis.toolbox){window.addthis.toolbox('.addthis_button.sficn');}else{window.addthis.init();window.addthis.toolbox('.addthis_button.sficn');}};if(window.PinUtils){window.PinUtils.build();};if(jQuery('.sfsi_plus_wDiv').length > 0) {setTimeout(function() { var s = parseInt(jQuery('.sfsi_plus_wDiv').height()) + 15 + 'px';jQuery('.sfsi_plus_holders').each(function() {jQuery(this).css('height', s);});jQuery('.sfsi_plus_widget').css('min-height', 'auto');}, 200);};if(window.FB){if(window.FB.XFBML){window.FB.XFBML.parse();}};\\n\\t\\t\\t});\\n\\t\\t});\\n\\t\",\n\t// \t\t\t\t\t\ttype: 'string'\n\t// \t\t\t}\n\t// \t\t},\n\t// \t\tsave: function( props ) {\n\t// \t\t\tvar attributes = props.attributes;\n\t// \t\t\treturn renderButtons(attributes);\n\t// \t\t}\n\t// \t\tmigrate: function(){\n\t// \t\t\treturn \n\t// \t\t}\n\t// \t}\n\t// ],\n\n\n\tsave: function save(props) {\n\t\t// console.log(props);\n\t\tvar attributes = props.attributes;\n\t\tsetTimeout(function () {\n\t\t\tchangeIconWidth(attributes.maxPerRow);\n\t\t\t// console.log('changedIconWidth');\n\t\t}, 300);\n\t\treturn renderButtons_new(attributes);\n\t}\n\n});\n\nfunction renderButtons(attributes) {\n\tvar jscode = attributes.jscode;\n\t// if(attributes.iconType===\"rectangle\"){\n\t// \tjscode=jscode.replace(/window.location.href/gi,'window.location.href+\"&ractangle_icon=1\"')\n\t// }\n\treturn el('div', { 'className': 'sfsi_plus_block_container' }, \"\\n\t\", el('div', { className: 'sfsi_plus_block' }, \"\"), \"\\n\t\", el('script', {}, jscode), \"\\n\");\n}\n\nfunction renderButtons_new(attributes) {\n\t// console.log(attributes);\n\tvar jscode = attributes.jscode;\n\tif (attributes.iconType === \"rectangle\") {\n\t\tjscode = jscode.replace(/window.location.href/gi, 'window.location.href+\"&ractangle_icon=1\"');\n\t}\n\tvar showTextBeforeShare = \"yes\";\n\tvar textBeforeShare = \"Please Share:\";\n\tif (attributes.showTextBeforeShare || '' !== attributes.showTextBeforeShare) {\n\t\tshowTextBeforeShare = attributes.showTextBeforeShare;\n\t} else {\n\t\tonAttrChange('showTextBeforeShare', 'yes');\n\t}\n\tif (attributes.textBeforeShare || '' !== attributes.textBeforeShare) {\n\t\ttextBeforeShare = attributes.textBeforeShare;\n\t} else {\n\t\tonAttrChange('textBeforeShare', 'Please Share:');\n\t}\n\treturn el('div', { 'className': 'sfsi_plus_block_wrapper' }, \"\\n\t\", showTextBeforeShare == \"yes\" && el('span', { className: 'sfsi_plus_block_text_before_icon' }, textBeforeShare), \"\\n\", el('div', { className: 'sfsi_plus_block', 'data-count': attributes.maxPerRow, 'data-align': attributes.iconAlignemt, 'data-icon-type': attributes.iconType }, \"\"), \"\\n\\t\"\n\t// el('script',{},jscode\n\t// ),\"\\n\"\n\t);\n}\nfunction changeIconWidth() {\n\tvar per_row = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n\n\t// console.log('iconchangecalled');\n\t// jQuery(document).ready(function($){\n\t// console.log('iconchangecalled and doc ready');\n\tvar iconWidth = parseInt(jQuery('.sfsi_plus_block_wrapper .sfsi_plus_wDiv div').css('width')) || 40;\n\t// console.log('iconwidth',iconWidth);\n\n\tvar iconMargin = parseInt(jQuery('.sfsi_plus_block_wrapper .sfsi_plus_wDiv div').css('margin-left')) || 0;\n\t// console.log('iconMargin',iconMargin);\n\n\tvar wrapperWidth = (iconWidth + iconMargin) * per_row;\n\t// console.log('in icon change ',iconWidth,iconMargin,wrapperWidth);\n\tvar iconHeight = jQuery('.sfsi_plus_block_wrapper .sfsi_plus_wDiv img').first().height();\n\tvar textHeight = jQuery('.sfsi_plus_block_text_before_icon').height();\n\t// console.log('wrapperWidth',wrapperWidth);\n\tjQuery('.sfsi_plus_block_text_before_icon').css({ 'margin-top': (textHeight - iconHeight) / 2 - 2 + 'px' });\n\tif (jQuery('.sfsi_plus_block_wrapper .sfsiplus_norm_row').length < 1) {\n\t\t// console.log('setTimeout',jQuery('.sfsi_plus_block_wrapper .sfsiplus_norm_row'));\n\t\tsetTimeout(function () {\n\t\t\tjQuery('.sfsi_plus_block_wrapper .sfsiplus_norm_row').css({ 'width': wrapperWidth + 'px' });\n\t\t}, 1000);\n\t} else {}\n\t// console.log('didnot setTimeout',jQuery('.sfsi_plus_block_wrapper .sfsiplus_norm_row'));\n\n\t// var target=jQuery('.sfsi_plus_block_container');\n\t// console.log(target,icon_alignment);\n\tjQuery('.sfsi_plus_block_wrapper .sfsiplus_norm_row').css({ 'width': wrapperWidth + 'px' });\n\tsetIconBlockAlignment();\n\n\t// })\n}\n\nfunction setIconBlockAlignment() {\n\tvar target = jQuery('.wp-block.is-selected .sfsi_plus_block_container');\n\tvar icon_alignment = target.find('.sfsi_plus_block').attr('data-align');\n\tif ('center' === icon_alignment) {\n\t\tjQuery(target).find('.sfsi_plus_block_text_before_icon').css({ 'display': 'inherit' });\n\t}\n\tjQuery(target).css({ 'text-align': icon_alignment });\n}\n\nfunction fetchButtons() {\n\tvar iconType = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n\tvar attributes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n\tvar target = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;\n\n\tif (null === iconType || undefined === iconType) {\n\t\ticonType = \"round\";\n\t}\n\t// console.log(iconType);\n\t// return jQuery(document).ready(function($){\n\t// console.log(iconType);\n\tif (null == target) {\n\t\ttarget = $(document);\n\t}\n\t// console.log(target);\n\treturn jQuery.ajax({\n\t\t'url': '/wp-json/ultimate-social-media-plus/v1/icons/?admin_refereal=true&ractangle_icon=' + ('round' == iconType ? 0 : 1),\n\t\t'method': 'GET'\n\t\t// 'data':{'is_admin':true,'share_url':'/'}\n\t}).done(function (response) {\n\t\t// console.log(response,$('.sfsi_plus_block'));\n\n\t\tif (jQuery(target).find('.sfsi_plus_block').length > 0) {\n\t\t\tjQuery(target).find('.sfsi_plus_block').html(response);\n\t\t\tchangeIconWidth(attributes.maxPerRow);\n\t\t\tif (iconType !== 'round') {\n\t\t\t\trenderAutoSocialIcons();\n\t\t\t}\n\t\t\t// console.log('updated');\n\t\t} else {\n\t\t\tsetTimeout(function () {\n\t\t\t\tjQuery('.sfsi_plus_block').html(response);\n\t\t\t\tchangeIconWidth(attributes.maxPerRow);\n\n\t\t\t\tconsole.log('now updated');\n\t\t\t}, 5000);\n\t\t\tconsole.log('timeset');\n\t\t}\n\t}).fail(function (response) {\n\t\t// console.log(response,$('.sfsi_plus_block'));\n\t\tjQuery(target).find('.sfsi_plus_block').html(response.responseText.replace('/\\\\/g', ''));\n\t});\n\t// });\n}\nfunction renderAutoSocialIcons() {\n\tif (window.gapi) {\n\t\twindow.gapi.plusone.go();window.gapi.plus.go();window.gapi.ytsubscribe.go();\n\t};\n\tif (window.twttr) {\n\t\twindow.twttr.widgets.load();\n\t};\n\tif (window.IN && window.IN.parse) {\n\t\twindow.IN.parse();\n\t};\n\tif (window.addthis) {\n\t\tif (window.addthis.toolbox) {\n\t\t\twindow.addthis.toolbox('.addthis_button.sficn');\n\t\t} else {\n\t\t\twindow.addthis.init();window.addthis.toolbox('.addthis_button.sficn');\n\t\t}\n\t};\n\tif (window.PinUtils) {\n\t\twindow.PinUtils.build();\n\t};\n\tif (window.FB) {\n\t\tif (window.FB.XFBML) {\n\t\t\twindow.FB.XFBML.parse();\n\t\t}\n\t};\n}\nif (undefined === sfsi_plus_float_widget) {\n\tvar _sfsi_plus_float_widget = function _sfsi_plus_float_widget() {\n\t\treturn;\n\t};\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMS5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3NyYy9ibG9jay9ibG9jay5qcz85MjFkIl0sInNvdXJjZXNDb250ZW50IjpbImZ1bmN0aW9uIF9kZWZpbmVQcm9wZXJ0eShvYmosIGtleSwgdmFsdWUpIHsgaWYgKGtleSBpbiBvYmopIHsgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwga2V5LCB7IHZhbHVlOiB2YWx1ZSwgZW51bWVyYWJsZTogdHJ1ZSwgY29uZmlndXJhYmxlOiB0cnVlLCB3cml0YWJsZTogdHJ1ZSB9KTsgfSBlbHNlIHsgb2JqW2tleV0gPSB2YWx1ZTsgfSByZXR1cm4gb2JqOyB9XG5cbi8qKlxuICogQkxPQ0s6IHNvY2lhbC1zaGFyZS1ibG9ja1xuICpcbiAqIFJlZ2lzdGVyaW5nIGEgYmFzaWMgYmxvY2sgd2l0aCBHdXRlbmJlcmcuXG4gKiBTaW1wbGUgYmxvY2ssIHJlbmRlcnMgYW5kIHNhdmVzIHRoZSBzYW1lIGNvbnRlbnQgd2l0aG91dCBhbnkgaW50ZXJhY3Rpdml0eS5cbiAqL1xuXG4vLyAgSW1wb3J0IENTUy5cbmltcG9ydCAnLi9zdHlsZS5zY3NzJztcbmltcG9ydCAnLi9lZGl0b3Iuc2Nzcyc7XG5cbnZhciBfXyA9IHdwLmkxOG4uX187IC8vIEltcG9ydCBfXygpIGZyb20gd3AuaTE4blxuXG52YXIgX3dwJGJsb2NrcyA9IHd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0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///1\n");
88
+
89
+ /***/ }),
90
+ /* 2 */
91
+ /*!******************************!*\
92
+ !*** ./src/block/style.scss ***!
93
+ \******************************/
94
+ /*! dynamic exports provided */
95
+ /***/ (function(module, exports) {
96
+
97
+ eval("// removed by extract-text-webpack-plugin//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMi5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3NyYy9ibG9jay9zdHlsZS5zY3NzPzgwZjMiXSwic291cmNlc0NvbnRlbnQiOlsiLy8gcmVtb3ZlZCBieSBleHRyYWN0LXRleHQtd2VicGFjay1wbHVnaW5cblxuXG4vLy8vLy8vLy8vLy8vLy8vLy9cbi8vIFdFQlBBQ0sgRk9PVEVSXG4vLyAuL3NyYy9ibG9jay9zdHlsZS5zY3NzXG4vLyBtb2R1bGUgaWQgPSAyXG4vLyBtb2R1bGUgY2h1bmtzID0gMCJdLCJtYXBwaW5ncyI6IkFBQUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///2\n");
98
+
99
+ /***/ }),
100
+ /* 3 */
101
+ /*!*******************************!*\
102
+ !*** ./src/block/editor.scss ***!
103
+ \*******************************/
104
+ /*! dynamic exports provided */
105
+ /***/ (function(module, exports) {
106
+
107
+ eval("// removed by extract-text-webpack-plugin//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3NyYy9ibG9jay9lZGl0b3Iuc2Nzcz80OWQyIl0sInNvdXJjZXNDb250ZW50IjpbIi8vIHJlbW92ZWQgYnkgZXh0cmFjdC10ZXh0LXdlYnBhY2stcGx1Z2luXG5cblxuLy8vLy8vLy8vLy8vLy8vLy8vXG4vLyBXRUJQQUNLIEZPT1RFUlxuLy8gLi9zcmMvYmxvY2svZWRpdG9yLnNjc3Ncbi8vIG1vZHVsZSBpZCA9IDNcbi8vIG1vZHVsZSBjaHVua3MgPSAwIl0sIm1hcHBpbmdzIjoiQUFBQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///3\n");
108
+
109
+ /***/ })
110
+ /******/ ]);
dist/blocks.editor.build.css CHANGED
@@ -1 +1,156 @@
1
- .sfsi_plus_block{min-height:55px}.sfsi_plus_block .sfsi_plus_widget .sfsi_plus_linkedin_tool_bdr .sfsi_plus_inside .icon4,.sfsi_plus_block .sfsi_plus_widget .sfsi_plus_gpls_tool_bdr .sfsi_plus_inside .icon1,.sfsi_plus_block .sfsi_plus_widget .sfsi_plus_fb_tool_bdr .sfsi_plus_inside .icon1{height:auto}.sfsi_plus_block .sfsi_plus_widget{min-height:55px}.sfsi_plus_block .sfsi_plus_widget a img{-webkit-box-shadow:none !important;box-shadow:none !important;outline:0}.sfsi_plus_block .sfsiplus_inerCnt{position:relative;z-index:inherit !important;float:left;width:100%;float:left}.sfsi_plus_block .sfsi_plus_widget .sfsi_plus_wDiv .sfsi_plus_wicons .sfsiplus_inerCnt a,.sfsi_plus_block .sfsi_plus_widget .sfsi_plus_wDiv .sfsi_plus_wicons .sfsiplus_inerCnt a.sficn{padding:0px;margin:0px;width:100%;border:medium none}.sfsi_plus_block .sfsiplus_norm_row{float:left;min-width:25px}.sfsi_plus_block .sfsiplus_norm_row a{border:none;display:inline-block;position:relative}.sfsi_plus_block .sfsiplus_norm_row .cbtn_vsmall{font-size:9px;left:-28%;top:4px}.sfsi_plus_block .sfsiplus_norm_row .cbtn_vsmall:before{left:31%;top:-9px;margin-left:-31%}.sfsi_plus_block .sfsiplus_norm_row{position:relative !important}.sfsi_plus_block .sfsi_plus_wicons{margin-bottom:30px;position:relative;padding-top:5px;display:inline-block}.sfsi_plus_block .sfsiplus_norm_row .bot_no{padding:1px 0;font-size:12px !important;text-align:center;line-height:12px !important;background:#fff;border-radius:5px;z-index:9;border:1px solid #333;white-space:pre;-webkit-box-sizing:border-box;box-sizing:border-box;width:40px;display:inline-block}.sfsi_plus_block .sfsiplus_norm_row .bot_no:before{content:url("../css/images/count_top_arow.png");position:absolute;height:9px;margin-left:-7.5px;margin-top:-11px;left:50%;width:15px}.gutenberg__editor .sfsi_new_prmium_follw{height:auto !important;min-height:63px}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * #.# Common SCSS
3
+ *
4
+ * Can include things like variables and mixins
5
+ * that are used across the project.
6
+ */
7
+ /**
8
+ * #.# Editor Styles
9
+ *
10
+ * CSS for just Backend enqueued after style.scss
11
+ * which makes it higher in priority.
12
+ */
13
+ .sfsi_plus_block {
14
+ min-height: 55px; }
15
+ .sfsi_plus_block.sfsi_plus_block.sfsi_plus_block img {
16
+ padding: 0;
17
+ border: none;
18
+ max-width: 90%; }
19
+ .sfsi_plus_block .sfsi_plus_widget .sfsi_plus_linkedin_tool_bdr .sfsi_plus_inside .icon4,
20
+ .sfsi_plus_block .sfsi_plus_widget .sfsi_plus_gpls_tool_bdr .sfsi_plus_inside .icon1,
21
+ .sfsi_plus_block .sfsi_plus_widget .sfsi_plus_fb_tool_bdr .sfsi_plus_inside .icon1 {
22
+ height: auto; }
23
+ .sfsi_plus_block .sfsi_plus_widget {
24
+ min-height: 55px; }
25
+ .sfsi_plus_block .sfsi_plus_widget a img {
26
+ -webkit-box-shadow: none !important;
27
+ box-shadow: none !important;
28
+ outline: 0;
29
+ padding: 0 !important;
30
+ border: none !important;
31
+ max-width: 100%; }
32
+ .sfsi_plus_block .sfsiplus_inerCnt {
33
+ position: relative;
34
+ z-index: inherit !important;
35
+ float: left;
36
+ width: 100%;
37
+ float: left; }
38
+ .sfsi_plus_block .sfsi_plus_widget .sfsi_plus_wDiv .sfsi_plus_wicons .sfsiplus_inerCnt a, .sfsi_plus_block .sfsi_plus_widget .sfsi_plus_wDiv .sfsi_plus_wicons .sfsiplus_inerCnt a.sficn {
39
+ padding: 0px;
40
+ margin: 0px;
41
+ width: 100%;
42
+ /*float: left;*/
43
+ border: medium none; }
44
+ .sfsi_plus_block .sfsiplus_norm_row {
45
+ float: left;
46
+ min-width: 25px; }
47
+ .sfsi_plus_block .sfsiplus_norm_row a {
48
+ border: none;
49
+ display: inline-block;
50
+ position: relative; }
51
+ .sfsi_plus_block .sfsiplus_norm_row .cbtn_vsmall {
52
+ font-size: 9px;
53
+ left: -28%;
54
+ top: 4px; }
55
+ .sfsi_plus_block .sfsiplus_norm_row .cbtn_vsmall:before {
56
+ left: 31%;
57
+ top: -9px;
58
+ margin-left: -31%; }
59
+ .sfsi_plus_block .sfsiplus_norm_row {
60
+ position: relative !important; }
61
+ .sfsi_plus_block .sfsi_plus_wicons {
62
+ margin-bottom: 30px;
63
+ position: relative;
64
+ padding-top: 5px;
65
+ display: inline-block; }
66
+ .sfsi_plus_block .sfsiplus_norm_row .bot_no {
67
+ padding: 1px 0;
68
+ font-size: 12px !important;
69
+ text-align: center;
70
+ line-height: 12px !important;
71
+ background: #fff;
72
+ border-radius: 5px;
73
+ z-index: 9;
74
+ border: 1px solid #333;
75
+ white-space: pre;
76
+ -webkit-box-sizing: border-box;
77
+ box-sizing: border-box;
78
+ width: 40px;
79
+ display: inline-block; }
80
+ .sfsi_plus_block .sfsiplus_norm_row .bot_no:before {
81
+ content: url("../css/images/count_top_arow.png");
82
+ position: absolute;
83
+ height: 9px;
84
+ margin-left: -7.5px;
85
+ margin-top: -11px;
86
+ left: 50%;
87
+ width: 15px; }
88
+ .sfsi_plus_block .sfsi_plus_widget.sfsi_plus_widget.sfsi_plus_widget img {
89
+ border: none;
90
+ padding: 0; }
91
+ .sfsi_plus_block .sfsi_plus_Sicons .sf_fb {
92
+ margin-top: -4px;
93
+ margin-right: 4px; }
94
+ .sfsi_plus_block .sfsi_plus_Sicons .sf_twiter {
95
+ margin-right: 4px; }
96
+ .sfsi_plus_block .sfsi_plus_Sicons .sf_pinit {
97
+ margin-top: -3px;
98
+ margin-right: 4px; }
99
+
100
+ .gutenberg__editor .sfsi_new_prmium_follw {
101
+ height: auto !important;
102
+ min-height: 63px; }
103
+
104
+ .gutenberg__editor .sfsi_plus_block_text_before_icon {
105
+ display: inline-block;
106
+ vertical-align: top; }
107
+
108
+ .gutenberg__editor .sfsi_plus_block {
109
+ display: inline-block; }
110
+ .gutenberg__editor .sfsi_plus_block[data-icon-type="rectangle"] .fb_iframe_widget > span {
111
+ vertical-align: top !important; }
112
+ .gutenberg__editor .sfsi_plus_block[data-icon-type="rectangle"] .sf_pinit > span {
113
+ vertical-align: top !important; }
114
+
115
+ .sfsi_plus_block_inspector h3, .sfsi_plus_block_inspector label {
116
+ padding-top: 20px;
117
+ margin-bottom: 0; }
118
+
119
+ .sfsi_plus_block_inspector select, .sfsi_plus_block_inspector input[type="text"], .sfsi_plus_block_inspector input[type="number"], .sfsi_plus_block_inspector input[type="email"], .sfsi_plus_block_inspector textarea {
120
+ width: 100%; }
121
+
122
+ .sfsi_plus_block_inspector .sfsi_plus_block_iconperrow_body {
123
+ padding-top: 20px;
124
+ font-weight: 600; }
125
+ .sfsi_plus_block_inspector .sfsi_plus_block_iconperrow_body .label {
126
+ display: inline-block;
127
+ width: 69%; }
128
+ .sfsi_plus_block_inspector .sfsi_plus_block_iconperrow_body input {
129
+ display: inline-block;
130
+ width: 30%; }
131
+
132
+ .sfsi_plus_block_inspector .sfsi_plus_block_textbeforeicons {
133
+ display: inline-block; }
134
+
135
+ .sfsi_plus_block_inspector .sfsi_plus_block_textbeforeicons_header {
136
+ padding-top: 10px; }
137
+
138
+ .sfsi_plus_block_inspector hr {
139
+ margin: .3em 0; }
140
+
141
+ .sfsi_plus_block_inspector ul {
142
+ margin-top: 0; }
143
+ .sfsi_plus_block_inspector ul.sfsi_plus_block_notes_list {
144
+ list-style-type: disc;
145
+ -webkit-padding-start: 20px;
146
+ padding-inline-start: 20px; }
147
+
148
+ .sfsi_plus_block_inspector .sfsi_plus_block_ad_heading, .sfsi_plus_block_inspector .sfsi_plus_block_ad_body {
149
+ text-align: center; }
150
+
151
+ .sfsi_plus_block_wrapper .sfsi_plus_block, .sfsi_plus_block_wrapper .sfsi_plus_block_text_before_icon {
152
+ display: inline-block; }
153
+
154
+ .sfsi_plus_block_wrapper .sfsi_plus_block_text_before_icon {
155
+ vertical-align: top;
156
+ margin-top: 10px; }
dist/blocks.style.build.css CHANGED
@@ -1 +1,13 @@
1
- .wp-block-ultimate-social-media-plus-sfsi-plus-share-block .fb_iframe_widget{-webkit-appearance:none !important}
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * #.# Common SCSS
3
+ *
4
+ * Can include things like variables and mixins
5
+ * that are used across the project.
6
+ */
7
+ /**
8
+ * #.# Styles
9
+ *
10
+ * CSS for both Frontend+Backend.
11
+ */
12
+ .wp-block-ultimate-social-media-plus-sfsi-plus-share-block .fb_iframe_widget {
13
+ -webkit-appearance: none !important; }
images/Chat_with_us_bar_dark_green.png ADDED
Binary file
images/Chat_with_us_bar_light_green.png ADDED
Binary file
images/Ic_insert_emoticon_48px.svg ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48">
2
+ <path d="M0 0h48v48h-48z" fill="none"/>
3
+ <path d="M23.99 4c-11.05 0-19.99 8.95-19.99 20s8.94 20 19.99 20c11.05 0 20.01-8.95 20.01-20s-8.96-20-20.01-20zm.01 36c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16zm7-18c1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3 1.34 3 3 3zm-14 0c1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3 1.34 3 3 3zm7 13c4.66 0 8.61-2.91 10.21-7h-20.42c1.6 4.09 5.55 7 10.21 7z"/>
4
+ </svg>
images/sfsi_block_icon.jpg ADDED
Binary file
images/sfsi_block_premium_ad.png ADDED
Binary file
js/custom-admin.js CHANGED
@@ -735,6 +735,7 @@ function sfsi_plus_update_step8()
735
  sfsi_plus_icons_floatMargin_left:msl,
736
  sfsi_plus_icons_floatMargin_right:msr,
737
  sfsi_plus_place_item_manually: n,
 
738
  sfsi_plus_show_item_onposts: o,
739
  sfsi_plus_display_button_type: a,
740
  sfsi_plus_post_icons_size: r,
@@ -1132,7 +1133,7 @@ function sfsi_plus_create_suscriber_form()
1132
  var global_error = 0;
1133
  SFSI(document).ready(function(s) {
1134
  //changes done {Monad}
1135
-
1136
  SFSI(document).on("click", ".sfsi-notice-dismiss", function(){
1137
 
1138
  SFSI.ajax({
@@ -1974,7 +1975,23 @@ SFSI(document).ready(function(s) {
1974
  }
1975
  });
1976
  });
1977
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1978
  });
1979
 
1980
  //for utube channel name and id
@@ -2077,7 +2094,6 @@ SFSI("body").on("click", ".sfsi_plus_tokenGenerateButton a", function(){
2077
  }
2078
 
2079
  });
2080
-
2081
  SFSI(document).on("click", '.radio', function () {
2082
 
2083
  var s = SFSI(this).parent().find("input:radio:first");
@@ -2100,5 +2116,51 @@ SFSI(document).on("click", '.radio', function () {
2100
 
2101
  break;
2102
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2103
 
2104
- });
 
 
735
  sfsi_plus_icons_floatMargin_left:msl,
736
  sfsi_plus_icons_floatMargin_right:msr,
737
  sfsi_plus_place_item_manually: n,
738
+ sfsi_plus_place_item_gutenberg:SFSI("input[name='sfsi_plus_place_item_gutenberg']:checked").val(),
739
  sfsi_plus_show_item_onposts: o,
740
  sfsi_plus_display_button_type: a,
741
  sfsi_plus_post_icons_size: r,
1133
  var global_error = 0;
1134
  SFSI(document).ready(function(s) {
1135
  //changes done {Monad}
1136
+
1137
  SFSI(document).on("click", ".sfsi-notice-dismiss", function(){
1138
 
1139
  SFSI.ajax({
1975
  }
1976
  });
1977
  });
1978
+ if( undefined !==window.location.hash){
1979
+ switch(window.location.hash){
1980
+ case '#ui-id-1':SFSI('#ui-id-1').removeClass('ui-corner-all').addClass('accordion-header-active ui-state-active ui-corner-top');SFSI('#ui-id-2').css({'display':'block'});window.scroll(0,30);break;
1981
+ case '#ui-id-5':SFSI('#ui-id-5').removeClass('ui-corner-all').addClass('accordion-header-active ui-state-active ui-corner-top');SFSI('#ui-id-6').css({'display':'block'});window.scroll(0,30);
1982
+ var scrolto_elem=SFSI('.sfsiplusbeforeafterpostselector');
1983
+ if(scrolto_elem&&scrolto_elem.length>0&&scrolto_elem.offset()&&scrolto_elem.offset().top){
1984
+ console.log('scrolling:', 'window.scrollTo(0,'+scrolto_elem.offset().top+');');
1985
+ window.scrollTo(0,scrolto_elem.offset().top-30);
1986
+ setTimeout(function(){
1987
+ console.log('scrolling:', 'window.scrollTo(0,'+scrolto_elem.offset().top+');');
1988
+ window.scrollTo(0,scrolto_elem.offset().top-30);
1989
+ },1000);
1990
+ // console.log(window.scrollTo(0,scrolto_elem.offset().top));
1991
+ }
1992
+ break;
1993
+ }
1994
+ }
1995
  });
1996
 
1997
  //for utube channel name and id
2094
  }
2095
 
2096
  });
 
2097
  SFSI(document).on("click", '.radio', function () {
2098
 
2099
  var s = SFSI(this).parent().find("input:radio:first");
2116
 
2117
  break;
2118
  }
2119
+ });
2120
+ function getElementPosition(element) {
2121
+ var xPosition = 0;
2122
+ var yPosition = 0;
2123
+
2124
+ while(element) {
2125
+ xPosition += (element.offsetLeft - element.scrollLeft + element.clientLeft);
2126
+ yPosition += (element.offsetTop - element.scrollTop + element.clientTop);
2127
+ element = element.offsetParent;
2128
+ }
2129
+
2130
+ return { x: xPosition, y: yPosition };
2131
+ }
2132
+ SFSI(document).ready(function(){
2133
+ SFSI('#sfsi_plus_jivo_offline_chat .tab-link').click(function(){
2134
+ var cur=SFSI(this);
2135
+ if(!cur.hasClass('active')){
2136
+ var target=cur.find('a').attr('href');
2137
+ cur.parent().children().removeClass('active');
2138
+ cur.addClass('active');
2139
+ SFSI('#sfsi_plus_jivo_offline_chat .tabs').children().hide();
2140
+ SFSI(target).show();
2141
+ }
2142
+ });
2143
+ SFSI('#sfsi_plus_jivo_offline_chat #sfsi_sales form').submit(function(event){
2144
+ event&event.preventDefault();
2145
+ // console.log(event);
2146
+ var target=SFSI(this).parents('.tab-content');
2147
+ SFSI.ajax({
2148
+ url:ajax_object.ajax_url,
2149
+ type:"post",
2150
+ data:{
2151
+ action: "sfsiplusOfflineChatMessage",
2152
+ message: SFSI(this).find('textarea[name="question"]').val(),
2153
+ email: SFSI(this).find('input[name="email"]').val(),
2154
+ }
2155
+ }).done(function(){
2156
+ target.find('.before_message_sent').hide();
2157
+ target.find('.after_message_sent').show();
2158
+ });
2159
+ })
2160
+ });
2161
+ function sfsi_close_offline_chat(e){
2162
+ e&&e.preventDefault();
2163
 
2164
+ SFSI('#sfsi_plus_jivo_offline_chat').hide();
2165
+ SFSI('#sfsi_dummy_chat_icon').show();
2166
+ }
js/custom.js CHANGED
@@ -303,12 +303,102 @@ SFSI(document).ready(function(s) {
303
  });
304
  SFSI(".sfsi_plus_widget").css("min-height", "auto");
305
  }, 200);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
306
  });
307
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
308
  //hiding popup on close button
309
  function sfsiplushidemepopup()
310
  {
311
  SFSI(".sfsi_plus_FrntInner").fadeOut();
312
  }
313
 
314
- var sfsiplus_initTop = new Array();
 
303
  });
304
  SFSI(".sfsi_plus_widget").css("min-height", "auto");
305
  }, 200);
306
+ jQuery(document).find('.wp-block-ultimate-social-media-plus-sfsi-plus-share-block').each(function(index,target){
307
+ console.log('gutenberg',target);
308
+ var actual_target= jQuery(target).find('.sfsi_plus_block');
309
+ var align= jQuery(actual_target).attr('data-align');
310
+ var maxPerRow= jQuery(actual_target).attr('data-count');
311
+ var iconType= jQuery(actual_target).attr('data-icon-type');
312
+ // console.log(iconType);
313
+ jQuery.ajax({
314
+ 'url': '/wp-json/ultimate-social-media-plus/v1/icons/?url='+window.location.href+'&ractangle_icon='+('round'==iconType?0:1),
315
+ 'method':'GET'
316
+ // 'data':{'is_admin':true,'share_url':'/'}
317
+ }).done((response)=>{
318
+ jQuery(actual_target).html(response);
319
+ if(iconType=='round'){
320
+ sfsi_plus_changeIconWidth(maxPerRow,target,align);
321
+ }else{
322
+ if('center'===align){
323
+ jQuery(target).find('.sfsi_plus_block_text_before_icon').css({'display':'inherit'});
324
+ }
325
+ jQuery(target).css({'text-align':align});
326
+ }
327
+ if(window.gapi){
328
+ window.gapi.plusone.go();window.gapi.plus.go();window.gapi.ytsubscribe.go();
329
+ };
330
+ if(window.twttr){
331
+ window.twttr.widgets.load();
332
+ };
333
+ if(window.IN && window.IN.parse){
334
+ window.IN.parse();
335
+ };
336
+ if(window.addthis){
337
+ if(window.addthis.toolbox){
338
+ window.addthis.toolbox('.addthis_button.sficn');
339
+ }else{
340
+ window.addthis.init();window.addthis.toolbox('.addthis_button.sficn');
341
+ }
342
+ };
343
+ if(window.PinUtils){
344
+ window.PinUtils.build();
345
+ };
346
+ if(window.FB){
347
+ if(window.FB.XFBML){
348
+ window.FB.XFBML.parse();
349
+ }
350
+ };
351
+ }).fail((response)=>{
352
+ // console.log(response,$('.sfsi_plus_block'));
353
+ jQuery(actual_target).html(response.responseText.replace('/\\/g',''));
354
+ });
355
+ });
356
+ if( undefined !==window.location.hash){
357
+ switch(window.location.hash){
358
+ case '#ui-id-3' : jQuery('#ui-id-3').click();
359
+ case '#ui-id-1' : jQuery('#ui-id-1').click();
360
+ }
361
+ }
362
+ // sfsi_plus_update_iconcount();
363
  });
364
 
365
+ function sfsi_plus_update_iconcount(){
366
+ SFSI(".wp-block-ultimate-social-media-plus-sfsi-plus-share-block").each(function(){
367
+ var icon_count = SFSI(this).find(".sfsi_plus_block").attr('data-count');
368
+ var icon_align = SFSI(this).find(".sfsi_plus_block").attr('data-align');
369
+ // console.log(icon_count,icon_align,this,jQuery(this),jQuery(this).find('.sfsiplus_norm_row'));
370
+ // sfsi_plus_changeIconWidth(icon_count,this);
371
+ if(jQuery(this).find('.sfsiplus_norm_row').length<1){
372
+ setTimeout(function(){
373
+ // console.log(icon_count);
374
+ sfsi_plus_changeIconWidth(icon_count,this,icon_align);
375
+ },1000);
376
+ }else{
377
+ sfsi_plus_changeIconWidth(icon_count,this,icon_align);
378
+ }
379
+ });
380
+ }
381
+
382
+ function sfsi_plus_changeIconWidth(per_row=null,target,icon_align){
383
+ var iconWidth = parseInt(jQuery(target).find('.sfsiplus_norm_row div').css('width'))||40;
384
+ console.log('iconwidth',iconWidth,jQuery(target).find('.sfsiplus_norm_row'),jQuery(target).find('.sfsiplus_norm_row div').css('width'));
385
+
386
+ var iconMargin = parseInt(jQuery(target).find('.sfsiplus_norm_row div').css('margin-left'))||0;
387
+
388
+ var wrapperWidth = (iconWidth+iconMargin)*per_row;
389
+ jQuery(target).find('.sfsiplus_norm_row').css({'width':wrapperWidth+'px'});
390
+ jQuery(target).find('.sfsi_plus_block').css({'width':wrapperWidth+'px'});
391
+ jQuery(target).find('.sfsi_plus_block_text_before_icon').css({'padding-top':'12px'});
392
+ if('center'===icon_align){
393
+ jQuery(target).find('.sfsi_plus_block_text_before_icon').css({'display':'inherit'});
394
+ }
395
+ jQuery(target).css({'text-align':icon_align});
396
+ }
397
  //hiding popup on close button
398
  function sfsiplushidemepopup()
399
  {
400
  SFSI(".sfsi_plus_FrntInner").fadeOut();
401
  }
402
 
403
+ var sfsiplus_initTop = new Array();
404
+
libs/controllers/sfsi_buttons_controller.php CHANGED
@@ -585,6 +585,7 @@ function sfsi_plus_options_updater8()
585
  $sfsi_plus_icons_floatMargin_right = isset($_POST["sfsi_plus_icons_floatMargin_right"]) ? $_POST["sfsi_plus_icons_floatMargin_right"]:'';
586
 
587
  $sfsi_plus_place_item_manually = isset($_POST["sfsi_plus_place_item_manually"]) ? $_POST["sfsi_plus_place_item_manually"] : 'no';
 
588
  $sfsi_plus_show_item_onposts = isset($_POST["sfsi_plus_show_item_onposts"]) ? $_POST["sfsi_plus_show_item_onposts"] : 'no';
589
  $sfsi_plus_display_button_type = isset($_POST["sfsi_plus_display_button_type"]) ? $_POST["sfsi_plus_display_button_type"] : 'no';
590
 
@@ -618,6 +619,7 @@ function sfsi_plus_options_updater8()
618
  'sfsi_plus_icons_floatMargin_left' => intval($sfsi_plus_icons_floatMargin_left),
619
  'sfsi_plus_icons_floatMargin_right' => intval($sfsi_plus_icons_floatMargin_right),
620
  'sfsi_plus_place_item_manually' => sanitize_text_field($sfsi_plus_place_item_manually),
 
621
  'sfsi_plus_show_item_onposts' => sanitize_text_field($sfsi_plus_show_item_onposts),
622
  'sfsi_plus_display_button_type' => sanitize_text_field($sfsi_plus_display_button_type),
623
  'sfsi_plus_post_icons_size' => intval($sfsi_plus_post_icons_size),
@@ -1137,4 +1139,20 @@ function sfsi_plus_bannerOption(){
1137
  }
1138
  die;
1139
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1140
  ?>
585
  $sfsi_plus_icons_floatMargin_right = isset($_POST["sfsi_plus_icons_floatMargin_right"]) ? $_POST["sfsi_plus_icons_floatMargin_right"]:'';
586
 
587
  $sfsi_plus_place_item_manually = isset($_POST["sfsi_plus_place_item_manually"]) ? $_POST["sfsi_plus_place_item_manually"] : 'no';
588
+ $sfsi_plus_place_item_gutenberg = isset($_POST["sfsi_plus_place_item_gutenberg"]) ? $_POST["sfsi_plus_place_item_gutenberg"] : 'no';
589
  $sfsi_plus_show_item_onposts = isset($_POST["sfsi_plus_show_item_onposts"]) ? $_POST["sfsi_plus_show_item_onposts"] : 'no';
590
  $sfsi_plus_display_button_type = isset($_POST["sfsi_plus_display_button_type"]) ? $_POST["sfsi_plus_display_button_type"] : 'no';
591
 
619
  'sfsi_plus_icons_floatMargin_left' => intval($sfsi_plus_icons_floatMargin_left),
620
  'sfsi_plus_icons_floatMargin_right' => intval($sfsi_plus_icons_floatMargin_right),
621
  'sfsi_plus_place_item_manually' => sanitize_text_field($sfsi_plus_place_item_manually),
622
+ 'sfsi_plus_place_item_gutenberg' => sanitize_text_field($sfsi_plus_place_item_gutenberg),
623
  'sfsi_plus_show_item_onposts' => sanitize_text_field($sfsi_plus_show_item_onposts),
624
  'sfsi_plus_display_button_type' => sanitize_text_field($sfsi_plus_display_button_type),
625
  'sfsi_plus_post_icons_size' => intval($sfsi_plus_post_icons_size),
1139
  }
1140
  die;
1141
  }
1142
+
1143
+ add_action('wp_ajax_sfsiplusOfflineChatMessage','sfsi_plus_OfflineChatMessage');
1144
+
1145
+ function sfsi_plus_OfflineChatMessage(){
1146
+ error_reporting(0);
1147
+ extract($_POST);
1148
+ $body="<table><tr><th>Site:</th><td>".home_url()."</td></tr><tr><th>Email:</th><td>".$email."</td></tr><tr><th>Message:</th><td>".$message."</td></tr></table>";
1149
+ $sent=wp_mail('help@ultimatelysocial.com',"New question from user",$body,array('Content-Type: text/html; charset=UTF-8'));
1150
+ if(isset($sent)&&(true===$sent)){
1151
+ echo "success";
1152
+ }else{
1153
+ echo "failure";
1154
+ }
1155
+ die();
1156
+ }
1157
+
1158
  ?>
libs/sfsi_gutenberg_block.php CHANGED
@@ -65,9 +65,28 @@ function sfsi_plus_register_icon_route(){
65
  "share_url"=>array(
66
  "type"=>'string',
67
  "sanitize_callback" => 'sanitize_text_field'
68
- )
 
 
 
 
 
 
 
 
 
69
  )
70
  ));
 
 
 
 
 
 
 
 
 
 
71
  }
72
 
73
  add_action( 'rest_api_init', 'sfsi_plus_register_icon_route');
@@ -75,10 +94,209 @@ add_action( 'rest_api_init', 'sfsi_plus_register_icon_route');
75
  function sfsi_plus_render_shortcode(){
76
  ob_start();
77
  if(isset($_GET['ractangle_icon']) && 1==$_GET['ractangle_icon']){
78
- $returndata=DISPLAY_ULTIMATE_PLUS(null,null,$_GET['share_url']);
79
  }else{
80
- $returndata=DISPLAY_ULTIMATE_PLUS(null,null,$_GET['share_url']);
81
  }
82
  ob_clean();
83
  return rest_ensure_response($returndata);
84
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
65
  "share_url"=>array(
66
  "type"=>'string',
67
  "sanitize_callback" => 'sanitize_text_field'
68
+ ),
69
+ "admin_refereal" => array(
70
+ "type" => 'string',
71
+ "sanitize_callback" => 'sanitize_text_field'
72
+ ),
73
+ "ractangle_icon" => array(
74
+ "type" => 'string',
75
+ "sanitize_callback" => 'sanitize_text_field'
76
+ ),
77
+
78
  )
79
  ));
80
+ // register_rest_route(SFSI_PLUS_DOMAIN.'/v1','settings',array(
81
+ // 'methods'=> WP_REST_Server::READABLE,
82
+ // 'callback' => 'sfsi_plus_fetch_settings',
83
+ // // 'args'=>array(
84
+ // // "share_url"=>array(
85
+ // // "type"=>'string',
86
+ // // "sanitize_callback" => 'sanitize_text_field'
87
+ // // )
88
+ // // )
89
+ // ));
90
  }
91
 
92
  add_action( 'rest_api_init', 'sfsi_plus_register_icon_route');
94
  function sfsi_plus_render_shortcode(){
95
  ob_start();
96
  if(isset($_GET['ractangle_icon']) && 1==$_GET['ractangle_icon']){
97
+ $returndata=sfsi_plus_render_gutenberg_rectangle(null,null,isset($_GET['share_url'])?$_GET['share_url']:home_url());
98
  }else{
99
+ $returndata=sfsi_plus_render_gutenberg_round(null,null,isset($_GET['share_url'])?$_GET['share_url']:null,isset($_GET['admin_refereal'])?$_GET['admin_refereal']:null );
100
  }
101
  ob_clean();
102
  return rest_ensure_response($returndata);
103
  }
104
+
105
+
106
+ function sfsi_plus_render_gutenberg_round($args = null, $content = null,$share_url=null, $is_admin){
107
+ $instance = array("showf" => 1, "title" => '');
108
+ $sfsi_plus_section8_options = get_option("sfsi_plus_section8_options");
109
+ $sfsi_plus_section8_options = unserialize($sfsi_plus_section8_options);
110
+ $sfsi_plus_place_item_gutenberg = isset($sfsi_plus_section8_options['sfsi_plus_place_item_gutenberg'])?$sfsi_plus_section8_options['sfsi_plus_place_item_gutenberg']:'no';
111
+ if($sfsi_plus_place_item_gutenberg == "yes")
112
+ {
113
+ $return = '';
114
+ if(!isset($before_widget)): $before_widget =''; endif;
115
+ if(!isset($after_widget)): $after_widget =''; endif;
116
+
117
+ /*Our variables from the widget settings. */
118
+ $title = apply_filters('widget_title', $instance['title'] );
119
+ $show_info = isset( $instance['show_info'] ) ? $instance['show_info'] : false;
120
+ global $is_floter;
121
+ $return.= $before_widget;
122
+ /* Display the widget title */
123
+ if ( $title ) $return .= $before_title . $title . $after_title;
124
+ $return .= '<div class="sfsi_plus_widget">';
125
+ // $return .= '<div id="sfsi_plus_wDiv"></div>';
126
+ /* Link the main icons function */
127
+ $return .= sfsi_plus_check_visiblity(0,$share_url,'static');
128
+ $return .= '<div style="clear: both;"></div>';
129
+ $return .= '</div>';
130
+ $return .= $after_widget;
131
+ return $return;
132
+ }else{
133
+ if($is_admin=='true'){
134
+ return __('Kindly go to setting page and check the option "Show them in the Gutenberg editor " under section 3', SFSI_PLUS_DOMAIN);
135
+ }
136
+ return ;
137
+ }
138
+ }
139
+
140
+ function sfsi_plus_render_gutenberg_rectangle($args = null, $content = null,$share_url=null){
141
+ if($share_url===null){
142
+ $share_url=home_url();
143
+ }
144
+ $sfsi_plus_section8_options = get_option("sfsi_plus_section8_options");
145
+ $sfsi_plus_section8_options = unserialize($sfsi_plus_section8_options);
146
+ $sfsi_plus_place_item_gutenberg = isset($sfsi_plus_section8_options['sfsi_plus_place_item_gutenberg'])?$sfsi_plus_section8_options['sfsi_plus_place_item_gutenberg']:'no';
147
+ if($sfsi_plus_place_item_gutenberg == "yes")
148
+ {
149
+ $sfsi_section6= unserialize(get_option('sfsi_plus_section6_options',false));
150
+
151
+ //new options that are added on the third questions
152
+ //so in this function we are replacing all the past options
153
+ //that were saved under option6 by new settings saved under option8
154
+ $sfsi_section8= unserialize(get_option('sfsi_plus_section8_options',false));
155
+ // $sfsi_plus_show_item_onposts = $sfsi_section8['sfsi_plus_show_item_onposts'];
156
+ //new options that are added on the third questions
157
+
158
+ //checking for standard icons
159
+ if(!isset($sfsi_section8['sfsi_plus_rectsub']))
160
+ {
161
+ $sfsi_section8['sfsi_plus_rectsub'] = 'no';
162
+ }
163
+ if(!isset($sfsi_section8['sfsi_plus_rectfb']))
164
+ {
165
+ $sfsi_section8['sfsi_plus_rectfb'] = 'yes';
166
+ }
167
+ if(!isset($sfsi_section8['sfsi_plus_rectgp']))
168
+ {
169
+ $sfsi_section8['sfsi_plus_rectgp'] = 'yes';
170
+ }
171
+ if(!isset($sfsi_section8['sfsi_plus_recttwtr']))
172
+ {
173
+ $sfsi_section8['sfsi_plus_recttwtr'] = 'no';
174
+ }
175
+ if(!isset($sfsi_section8['sfsi_plus_rectpinit']))
176
+ {
177
+ $sfsi_section8['sfsi_plus_rectpinit'] = 'no';
178
+ }
179
+ if(!isset($sfsi_section8['sfsi_plus_rectfbshare']))
180
+ {
181
+ $sfsi_section8['sfsi_plus_rectfbshare'] = 'no';
182
+ }
183
+ //checking for standard icons
184
+
185
+ /* check if option activated in admin or not */
186
+ //if($sfsi_section6['sfsi_plus_show_Onposts']=="yes")
187
+ //removing following condition for now
188
+ /*if($sfsi_section8['sfsi_plus_show_Onposts']=="yes")
189
+ {*/
190
+ $permalink = $share_url;
191
+ $title = get_the_title();
192
+ $sfsiLikeWith="45px;";
193
+
194
+ /* check for counter display */
195
+ //if($sfsi_section6['sfsi_plus_icons_DisplayCounts']=="yes")
196
+
197
+ if($sfsi_section8['sfsi_plus_icons_DisplayCounts']=="yes")
198
+ {
199
+ $show_count=1;
200
+ $sfsiLikeWith="75px;";
201
+ }
202
+ else
203
+ {
204
+ $show_count=0;
205
+ }
206
+
207
+ //$txt=(isset($sfsi_section6['sfsi_plus_textBefor_icons']))? $sfsi_section6['sfsi_plus_textBefor_icons'] : "Share this Post with :" ;
208
+ // $txt=(isset($sfsi_section8['sfsi_plus_textBefor_icons']))? $sfsi_section8['sfsi_plus_textBefor_icons'] : "Please follow and like us:" ;
209
+ //$float= $sfsi_section6['sfsi_plus_icons_alignment'];
210
+ $float= $sfsi_section8['sfsi_plus_icons_alignment'];
211
+ if($sfsi_section8['sfsi_plus_rectsub'] == 'yes' || $sfsi_section8['sfsi_plus_rectfb'] == 'yes' || $sfsi_section8['sfsi_plus_rectgp'] == 'yes' || $sfsi_section8['sfsi_plus_recttwtr'] == 'yes' || $sfsi_section8['sfsi_plus_rectpinit'] == 'yes' || $sfsi_section8['sfsi_plus_rectfbshare'] == 'yes')
212
+ {
213
+ $icons="<div class='sfsi_plus_Sicons ".$float."' style='float:".$float."'><div style='display: inline-block;margin-bottom: 0; margin-left: 0; margin-right: 8px; margin-top: 0; vertical-align: middle;width: auto;'><span>".$txt."</span></div>";
214
+ }
215
+ if($sfsi_section8['sfsi_plus_rectsub'] == 'yes')
216
+ {
217
+ if($show_count){$sfsiLikeWithsub = "93px";}else{$sfsiLikeWithsub = "64px";}
218
+ if(!isset($sfsiLikeWithsub)){$sfsiLikeWithsub = $sfsiLikeWith;}
219
+ $icons.="<div class='sf_subscrbe' style='display: inline-block;vertical-align: top;width: auto;'>".sfsi_plus_Subscribelike($permalink,$show_count)."</div>";
220
+ }
221
+ if($sfsi_section8['sfsi_plus_rectfb'] == 'yes' || $sfsi_section8['sfsi_plus_rectfbshare'] == 'yes')
222
+ {
223
+ if($show_count){}else{$sfsiLikeWithfb = "48px";}
224
+ if(!isset($sfsiLikeWithfb)){$sfsiLikeWithfb = $sfsiLikeWith;}
225
+ $icons.="<div class='sf_fb' style='display: inline-block;vertical-align: top;width: auto;'>".sfsi_plus_FBlike($permalink,$show_count)."</div>";
226
+ }
227
+
228
+ if($sfsi_section8['sfsi_plus_recttwtr'] == 'yes')
229
+ {
230
+ if($show_count){$sfsiLikeWithtwtr = "77px";}else{$sfsiLikeWithtwtr = "56px";}
231
+ if(!isset($sfsiLikeWithtwtr)){$sfsiLikeWithtwtr = $sfsiLikeWith;}
232
+ $icons.="<div class='sf_twiter' style='display: inline-block;vertical-align: top;width: auto;'>".sfsi_plus_twitterlike($permalink,$show_count)."</div>";
233
+ }
234
+ if($sfsi_section8['sfsi_plus_rectpinit'] == 'yes')
235
+ {
236
+ if($show_count){$sfsiLikeWithpinit = "100px";}else{$sfsiLikeWithpinit = "auto";}
237
+ $icons.="<div class='sf_pinit' style='display: inline-block;text-align:left;vertical-align: top;width: ".$sfsiLikeWithpinit.";'>".sfsi_plus_pinitpinterest($permalink,$show_count)."</div>";
238
+ }
239
+ if($sfsi_section8['sfsi_plus_rectgp'] == 'yes')
240
+ {
241
+ if($show_count){$sfsiLikeWithpingogl = "63px";}else{$sfsiLikeWithpingogl = "auto";}
242
+ $icons.="<div class='sf_google' style='display: inline-block;vertical-align: top; width:".$sfsiLikeWithpingogl.";'>".sfsi_plus_googlePlus($permalink,$show_count)."</div>";
243
+ }
244
+ $icons.="</div>";
245
+ return $icons;
246
+ } else{
247
+ if($is_admin=='true'){
248
+ return __('Kindly go to setting page and check the option "Show them in the Gutenberg editor " under section 3', SFSI_PLUS_DOMAIN);
249
+ }
250
+ return ;
251
+ }
252
+
253
+ }
254
+
255
+ // function sfsi_plus_fetch_settings(){
256
+ // ob_start();
257
+ // $option8= unserialize(get_option('sfsi_plus_section8_options',false));
258
+ // // $returndata = $option8;
259
+ // $returndata=array(
260
+ // 'textBeforeShare'=>(isset($option8['sfsi_plus_textBefor_icons'])?$option8['sfsi_plus_textBefor_icons']:''),
261
+ // 'iconType'=>(isset($option8['sfsi_plus_display_button_type'])?($option8['sfsi_plus_display_button_type']):'');
262
+ // 'iconAlignemt'=>isset()
263
+ // );
264
+ // ob_clean();
265
+ // return rest_ensure_response($returndata);
266
+ // }
267
+
268
+
269
+ function sfsi_plus_gutenberg_share_block_init(){
270
+ $post_types = get_post_types(array('public'=>true,'_builtin'=>true));
271
+ foreach($post_types as $post_type){
272
+ register_meta($post_type,'sfsi_plus_gutenberg_text_before_share',array(
273
+ 'show_in_rest' => true,
274
+ 'single' => true,
275
+ // 'type' => 'string'
276
+ ));
277
+ register_meta($post_type,'sfsi_plus_gutenberg_show_text_before_share',array(
278
+ 'show_in_rest' => true,
279
+ 'single' => true,
280
+ // 'type' => 'string'
281
+ ));
282
+ register_meta($post_type,'sfsi_plus_gutenberg_icon_type',array(
283
+ 'show_in_rest' => true,
284
+ 'single' => true,
285
+ // 'type' => 'string'
286
+ ));
287
+ register_meta($post_type,'sfsi_plus_gutenberg_icon_alignemt',array(
288
+ 'show_in_rest' => true,
289
+ 'single' => true,
290
+ // 'type' => 'string'
291
+ ));
292
+ register_meta($post_type,'sfsi_plus_gutenburg_max_per_row',array(
293
+ 'show_in_rest' => true,
294
+ 'single' => true,
295
+ // 'type' => 'string'
296
+ ));
297
+ }
298
+ }
299
+
300
+ add_action( 'init','sfsi_plus_gutenberg_share_block_init' );
301
+
302
+ ?>
libs/sfsi_install_uninstall.php CHANGED
@@ -12,7 +12,7 @@ function sfsi_plus_update_plugin()
12
  }
13
 
14
  //Install version
15
- update_option("sfsi_plus_pluginVersion", "2.99");
16
 
17
  if(!get_option('sfsi_plus_serverphpVersionnotification'))
18
  {
12
  }
13
 
14
  //Install version
15
+ update_option("sfsi_plus_pluginVersion", "3.00");
16
 
17
  if(!get_option('sfsi_plus_serverphpVersionnotification'))
18
  {
libs/sfsi_widget.php CHANGED
@@ -118,7 +118,7 @@ function register_sfsi_plus_widgets()
118
  add_action( 'widgets_init', 'register_sfsi_plus_widgets' );
119
 
120
  /* check the icons visiblity */
121
- function sfsi_plus_check_visiblity($isFloter=0,$share_url=null)
122
  {
123
  global $wpdb;
124
  /* Access the saved settings in database */
@@ -136,7 +136,7 @@ function sfsi_plus_check_visiblity($isFloter=0,$share_url=null)
136
 
137
  $icons_alignment = $sfsi_section5['sfsi_plus_icons_Alignment'];
138
  $position = 'position:absolute;';
139
- $position1 = 'position:absolute;';
140
  $jquery='<script>';
141
 
142
  $jquery .= 'jQuery(".sfsi_plus_widget").each(function( index ) {
@@ -245,7 +245,8 @@ function sfsi_plus_check_visiblity($isFloter=0,$share_url=null)
245
 
246
  /* magnage the icons in saved order in admin */
247
  $custom_icons_order = unserialize($sfsi_section5['sfsi_plus_CustomIcons_order']);
248
- $icons = unserialize($sfsi_plus_section1_options['sfsi_custom_files']);
 
249
  $icons_order = array(
250
  '0' => '',
251
  $sfsi_section5['sfsi_plus_rssIcon_order']=>'rss',
118
  add_action( 'widgets_init', 'register_sfsi_plus_widgets' );
119
 
120
  /* check the icons visiblity */
121
+ function sfsi_plus_check_visiblity($isFloter=0,$share_url=null,$container_position='absolute')
122
  {
123
  global $wpdb;
124
  /* Access the saved settings in database */
136
 
137
  $icons_alignment = $sfsi_section5['sfsi_plus_icons_Alignment'];
138
  $position = 'position:absolute;';
139
+ $position1 = 'position:'.$container_position.';';
140
  $jquery='<script>';
141
 
142
  $jquery .= 'jQuery(".sfsi_plus_widget").each(function( index ) {
245
 
246
  /* magnage the icons in saved order in admin */
247
  $custom_icons_order = unserialize($sfsi_section5['sfsi_plus_CustomIcons_order']);
248
+ // var_dump($sfsi_plus_section1_options['sfsi_custom_files']); die();
249
+ $icons = (isset($sfsi_plus_section1_options['sfsi_custom_files']))?(!is_string($sfsi_plus_section1_options['sfsi_custom_files'])?unserialize($sfsi_plus_section1_options['sfsi_custom_files'],false):$sfsi_plus_section1_options['sfsi_custom_files']):(array());
250
  $icons_order = array(
251
  '0' => '',
252
  $sfsi_section5['sfsi_plus_rssIcon_order']=>'rss',
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: socialsharepro
3
  Tags: Share, sharing, share buttons, share button, share social media, share icons, social buttons, sharing buttons, sharing icons, social media icons, social share, social sharing
4
  Requires at least: 3.0
5
- Tested up to: 5.0
6
- Stable tag: 2.9.9
7
  License: GPLv2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -445,11 +445,15 @@ The premium plugin offrs many more social buttons from other social media platfo
445
 
446
  == Changelog ==
447
 
 
 
 
448
  = 2.9.9 =
449
  * Duplicate IDs removed from icon's link
450
- * Facebook share counts (rectangle icons) do not show - fixed
451
- * Google like removed
452
- * Click on G+ in firefox opens a new window - fixed
 
453
 
454
  = 2.9.8 =
455
  * Update: Display counts can’t be manually updated
@@ -796,5 +800,5 @@ The premium plugin offrs many more social buttons from other social media platfo
796
 
797
  == Upgrade Notice ==
798
 
799
- = 2.9.9 =
800
  * Please update
2
  Contributors: socialsharepro
3
  Tags: Share, sharing, share buttons, share button, share social media, share icons, social buttons, sharing buttons, sharing icons, social media icons, social share, social sharing
4
  Requires at least: 3.0
5
+ Tested up to: 5.0.2
6
+ Stable tag: 3.0.0
7
  License: GPLv2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
445
 
446
  == Changelog ==
447
 
448
+ = 3.0.0 =
449
+ * Updated gutenberg block to incorporate current changes. Added support for multiple controls on block inspector controls.
450
+
451
  = 2.9.9 =
452
  * Duplicate IDs removed from icon's link
453
+ * Facebook share counts (rectangle icons) do not show
454
+ * specificfeeds.com links changed to https
455
+ * Remove google like
456
+ * Click on G+ in firefox opens a new window
457
 
458
  = 2.9.8 =
459
  * Update: Display counts can’t be manually updated
800
 
801
  == Upgrade Notice ==
802
 
803
+ = 3.0.0 =
804
  * Please update
ultimate_social_media_icons.php CHANGED
@@ -7,7 +7,7 @@ Author: social share pro
7
  Text Domain: ultimate-social-media-plus
8
  Domain Path: /languages
9
  Author URI: http://socialshare.pro/
10
- Version: 2.9.9
11
  License: GPLv2
12
  */
13
 
@@ -103,7 +103,7 @@ register_deactivation_hook(__FILE__, 'sfsi_plus_deactivate_plugin');
103
  //register_uninstall_hook(__FILE__, 'sfsi_plus_Unistall_plugin');
104
 
105
  /*Plugin version setup*/
106
- if(!get_option('sfsi_plus_pluginVersion') || get_option('sfsi_plus_pluginVersion') < 2.99)
107
  {
108
  add_action("init", "sfsi_plus_update_plugin");
109
  }
@@ -1205,7 +1205,7 @@ function sfsi_plus_ask_for_help($viewNumber){ ?>
1205
 
1206
  <img src="<?php echo SFSI_PLUS_PLUGURL."images/questionmark.png"?>"/>
1207
 
1208
- <span>Questions? <a target="_blank" href="#" onclick="event.preventDefault();sfsi_open_chat(event);"><b>Ask us</b></a></span>
1209
 
1210
  </div>
1211
 
7
  Text Domain: ultimate-social-media-plus
8
  Domain Path: /languages
9
  Author URI: http://socialshare.pro/
10
+ Version: 3.0.0
11
  License: GPLv2
12
  */
13
 
103
  //register_uninstall_hook(__FILE__, 'sfsi_plus_Unistall_plugin');
104
 
105
  /*Plugin version setup*/
106
+ if(!get_option('sfsi_plus_pluginVersion') || get_option('sfsi_plus_pluginVersion') < 3.00)
107
  {
108
  add_action("init", "sfsi_plus_update_plugin");
109
  }
1205
 
1206
  <img src="<?php echo SFSI_PLUS_PLUGURL."images/questionmark.png"?>"/>
1207
 
1208
+ <span>Questions? <a target="_blank" href="#" onclick="event.preventDefault();sfsi_plus_open_chat(event)"><b>Ask us</b></a></span>
1209
 
1210
  </div>
1211
 
views/sfsi_chat_on_admin_pannel.php ADDED
@@ -0,0 +1,112 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ global $current_user;
3
+ $current_user=wp_get_current_user();
4
+
5
+ $email = $current_user->user_email;
6
+ ?>
7
+ <div id="sfsi_plus_jivo_offline_chat" style="display:none">
8
+ <a href="" style="float:right;font-size:20px;margin-right:5px;color:#888;text-decoration: none;" onclick="sfsi_close_offline_chat(event)">X</a>
9
+ <p style="text-align:center" class="heading-text">No chat agent are available, However we'll still respond quickly.
10
+ <!-- <a target="_blank" href="https://goo.gl/MU6pTN#no-topic-0" >we'll still respond quickly</a> -->
11
+ </p>
12
+ <ul class="tab-changer">
13
+ <li class="tab-link active"><p style="text-align:center"><a href="#sfsi_technical"></a>Technical question<br><span>(for the free plugin)</span></span></p></li>
14
+ <li class="tab-link"><p style="text-align:center"><a href="#sfsi_sales"></a>Pre-sales question<br><span>(for the Premium plugin)</span></p></li>
15
+ </ul>
16
+ <div class="clear"></div>
17
+ <div class="tabs">
18
+ <div id="sfsi_technical" class="tab-content" style="text-align:center;display:block">
19
+ <p>Please ask your question in the...</p>
20
+ <div class="support-forum-green-div">
21
+ <a target="_blank" href="https://goo.gl/MU6pTN#no-topic-0" class="support-forum-green-bg">
22
+ <img src="<?php echo SFSI_PLUS_PLUGURL ?>images/support.png">
23
+ <p class="support-forum">Support Forum</p>
24
+ </a>
25
+ </div>
26
+ <p class="sfsi-button-right-side" ><span class="sfsi-button-right-side-icon"></span>Click here</p>
27
+ <p>We‘ll respond <span style="text-decoration: underline;font-weight:500">quickly!</span></p>
28
+ </div>
29
+ <div id="sfsi_sales" class="tab-content" style="display:none">
30
+
31
+ <div style="display:block" class="before_message_sent">
32
+ <p class="right-message" style="display:none">Please also check the <a href="">FAQ</a></p>
33
+ <form action="#" method="POST" >
34
+ <div>
35
+ <label for="question">Your question: </label>
36
+ <textarea id="question" name="question"></textarea>
37
+ </div>
38
+ <div>
39
+ <div style="width:60%;float:left">
40
+ <label for="email">Your email:</label>
41
+ <input type="email" name="email" value="<?php echo $email; ?>">
42
+ </div>
43
+ <div style="width:35%;float:right">
44
+ <input type="submit" value="Send message">
45
+ </div>
46
+ <div class="clear"></div>
47
+ </div>
48
+ </form>
49
+ </div>
50
+ <div style="display:none" class="after_message_sent">
51
+ <h2>Thank you!</h2>
52
+ <h3>We‘ll get back to you ASAP.</h3>
53
+ <button class="chat_btn" onclick="sfsi_close_offline_chat(event)">Close window</button>
54
+ </div>
55
+ </div>
56
+ </div>
57
+
58
+ </div>
59
+ <!-- Start jivo chat code -->
60
+
61
+ <script type='text/javascript'>
62
+ var sfsi_plus_jivo_init=function(){ var widget_id =window.sfsi_plus_jivo_widget_id= 'heGfAHWfsn';var d=document;var w=window;function l(){var s = document.createElement('script'); s.type = 'text/javascript'; s.async = true;s.src = '//code.jivosite.com/script/widget/'+widget_id; var ss = document.getElementsByTagName('script')[0]; ss.parentNode.insertBefore(s, ss);}if(d.readyState=='complete'){l();}else{if(w.attachEvent){w.attachEvent('onload',l);}else{w.addEventListener('load',l,false);}}};
63
+ var sfsi_dummy_chat_icon={};
64
+ sfsi_dummy_chat_icon.element=document.createElement('div');
65
+ sfsi_dummy_chat_icon.element.id="sfsi_dummy_chat_icon";
66
+ sfsi_dummy_chat_icon.element.style="position:fixed; bottom:0;right:10px;width:350px;height:74px;cursor:pointer;background-image:url('<?php echo SFSI_PLUS_PLUGURL.'images/Chat_with_us_bar_light_green.png' ?>');background-position: -12.5px -11.5px;background-size: 374px 101px;border-top-left-radius: 8px;border-top-right-radius: 8px;";
67
+ function sfsi_plus_open_chat(){
68
+ // console.log('window.jivo_api',window.jivo_api);
69
+ if(window.jivo_api){
70
+ // console.log('window.jivo_api.chatMode',window.jivo_api.chatMode());
71
+ if( window.jivo_api.chatMode()==='online'){
72
+ // console.log('window.jivo_api.showProactiveInvitation',window.jivo_api.showProactiveInvitation('How can I help you?'));
73
+ window.jivo_api.open();
74
+ }else{
75
+ jQuery('#jivo-iframe-container').remove();
76
+ jQuery('script[src="//code.jivosite.com/script/widget/'+sfsi_plus_jivo_widget_id+'"]').remove();
77
+ jQuery('#sfsi_plus_jivo_offline_chat').show();
78
+ }
79
+ }else{
80
+ sfsi_plus_jivo_init();
81
+ }
82
+ // jQuery(sfsi_dummy_chat_icon.element).html("<p style='text-align: center;font-size: 18px;'>Loading...</p>");
83
+ jQuery(sfsi_dummy_chat_icon.element).hide();
84
+ }
85
+ sfsi_dummy_chat_icon.element.onclick=sfsi_plus_open_chat;
86
+ var jivo_onLoadCallback = function(){
87
+ if(jivo_api.chatMode()==='online'){
88
+ jivo_api.showProactiveInvitation('How can I help you?');
89
+ }else{
90
+ jQuery('#jivo-iframe-container').remove();
91
+ jQuery('script[src="//code.jivosite.com/script/widget/'+sfsi_plus_jivo_widget_id+'"]').remove();
92
+ jQuery('#sfsi_plus_jivo_offline_chat').show();
93
+ }
94
+ // jQuery(sfsi_dummy_chat_icon.element).hide();
95
+ };
96
+ // sfsi_dummy_chat_icon.heading= document.createElement('p');
97
+ // sfsi_dummy_chat_icon.warning= document.createElement('p');
98
+ // sfsi_dummy_chat_icon.heading.style="margin: 0;text-align: center;font-size: 18px;margin-top: 5px;"
99
+ // sfsi_dummy_chat_icon.warning.style="font-size:11px;text-align: center;margin-bottom: 0;margin-top: 4px;"
100
+ // sfsi_dummy_chat_icon.heading.appendChild(document.createTextNode("Questions? Chat with us!"));
101
+ // sfsi_dummy_chat_icon.warning.appendChild(document.createTextNode("This will establish connection to the chat servers."));
102
+ // sfsi_dummy_chat_icon.element.appendChild(sfsi_dummy_chat_icon.heading);
103
+ // sfsi_dummy_chat_icon.element.appendChild(sfsi_dummy_chat_icon.warning);
104
+ sfsi_dummy_chat_icon.body=document.getElementsByTagName('body');
105
+ if(sfsi_dummy_chat_icon.body.length>0){
106
+ sfsi_dummy_chat_icon.body[0].appendChild(sfsi_dummy_chat_icon.element);
107
+ }else{
108
+ document.appendChild(sfsi_dummy_chat_icon.element);
109
+ }
110
+ </script>
111
+
112
+ <!-- End jivo chat code -->
views/sfsi_option_view8.php CHANGED
@@ -53,6 +53,9 @@
53
  $option8['sfsi_plus_place_item_manually'] = (isset($option8['sfsi_plus_place_item_manually']))
54
  ? sanitize_text_field($option8['sfsi_plus_place_item_manually'])
55
  : '';
 
 
 
56
  $option8['sfsi_plus_display_button_type'] = (isset($option8['sfsi_plus_display_button_type']))
57
  ? sanitize_text_field($option8['sfsi_plus_display_button_type'])
58
  : '';
@@ -273,7 +276,7 @@
273
  </li>
274
 
275
  <!--Fourth Section-->
276
- <li class="">
277
  <div class="radio_section tb_4_ck" onclick="sfsiplus_toggleflotpage(this);"><input name="sfsi_plus_show_item_onposts" <?php echo ($option8['sfsi_plus_show_item_onposts']=='yes') ? 'checked="true"' : '' ;?> id="sfsi_plus_show_item_onposts" type="checkbox" value="yes" class="styled" /></div>
278
  <div class="sfsiplus_right_info">
279
  <p>
@@ -506,6 +509,32 @@
506
  </ul>
507
  </div>
508
  </li>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
509
  <!-- pinterest on image over icon -->
510
  <li class="row sfsiplus_show_via_onhover disabled_checkbox">
511
 
53
  $option8['sfsi_plus_place_item_manually'] = (isset($option8['sfsi_plus_place_item_manually']))
54
  ? sanitize_text_field($option8['sfsi_plus_place_item_manually'])
55
  : '';
56
+ $option8['sfsi_plus_place_item_gutenberg'] = (isset($option8['sfsi_plus_place_item_gutenberg']))
57
+ ? sanitize_text_field($option8['sfsi_plus_place_item_gutenberg'])
58
+ : 'no';
59
  $option8['sfsi_plus_display_button_type'] = (isset($option8['sfsi_plus_display_button_type']))
60
  ? sanitize_text_field($option8['sfsi_plus_display_button_type'])
61
  : '';
276
  </li>
277
 
278
  <!--Fourth Section-->
279
+ <li class="sfsiplusbeforeafterpostselector">
280
  <div class="radio_section tb_4_ck" onclick="sfsiplus_toggleflotpage(this);"><input name="sfsi_plus_show_item_onposts" <?php echo ($option8['sfsi_plus_show_item_onposts']=='yes') ? 'checked="true"' : '' ;?> id="sfsi_plus_show_item_onposts" type="checkbox" value="yes" class="styled" /></div>
281
  <div class="sfsiplus_right_info">
282
  <p>
509
  </ul>
510
  </div>
511
  </li>
512
+
513
+ <!--Fifth Section-->
514
+ <li class="sfsiplusplaceusinggutenberg">
515
+ <div class="radio_section tb_4_ck" onclick="checkforinfoslction(this);"><input name="sfsi_plus_place_item_gutenberg" <?php echo ($option8['sfsi_plus_place_item_gutenberg']=='yes') ? 'checked="true"' : '' ;?> id="sfsi_plus_place_item_gutenberg" type="checkbox" value="yes" class="styled" /></div>
516
+ <div class="sfsiplus_right_info">
517
+ <p>
518
+ <span class="sfsiplus_toglepstpgspn">
519
+ <?php _e( 'Show them in the Gutenberg editor', SFSI_PLUS_DOMAIN ); ?>
520
+ </span><br>
521
+ <?php
522
+ if($option8['sfsi_plus_place_item_gutenberg']=='yes')
523
+ {
524
+ $label_style = 'style="display:block; font-size: 15px;"';
525
+ }
526
+ else
527
+ {
528
+ $label_style = 'style="font-size: 15px;"';
529
+ }
530
+ ?>
531
+ <label class="sfsiplus_sub-subtitle ckckslctn" <?php echo $label_style;?>>
532
+ <?php _e('Look for this sign',SFSI_PLUS_DOMAIN); ?> <img style="margin-bottom:-4px" width="20" src="<?php echo SFSI_PLUS_PLUGURL ?>images/sfsi_block_icon.jpg"> <?php _e(' in your Gutenberg editor and click on it. Then a new block with the icons will be added.',SFSI_PLUS_DOMAIN);?>
533
+
534
+ </label>
535
+ </p>
536
+ </div>
537
+ </li>
538
  <!-- pinterest on image over icon -->
539
  <li class="row sfsiplus_show_via_onhover disabled_checkbox">
540
 
views/sfsi_options_view.php CHANGED
@@ -83,17 +83,17 @@
83
  <div class="have-questions">
84
  <img src="<?php echo SFSI_PLUS_PLUGURL ?>images/question.png">
85
  <p class="have-quest">Have questions?</p>
86
- <p class="ask-question">Ask them in the...</p>
87
  </div>
88
  <div class="support-forum-green-div">
89
- <a target="_blank" href="https://goo.gl/MU6pTN#no-topic-0" class="support-forum-green-bg">
90
  <img src="<?php echo SFSI_PLUS_PLUGURL ?>images/support.png">
91
- <p class="support-forum">Support Forum</p>
92
  </a>
93
  </div>
94
- <div class="respond-text">
95
  <p>We'll try to respond ASAP!</p>
96
- </div>
97
  </div>
98
  </div>
99
 
@@ -235,8 +235,4 @@
235
  }
236
  });
237
  </script>
238
- <!-- BEGIN JIVOSITE CODE {literal} -->
239
- <script type='text/javascript'>
240
- (function(){ var widget_id = 'g9lexlJ3Wa';var d=document;var w=window;function l(){var s = document.createElement('script'); s.type = 'text/javascript'; s.async = true;s.src = '//code.jivosite.com/script/widget/'+widget_id; var ss = document.getElementsByTagName('script')[0]; ss.parentNode.insertBefore(s, ss);}if(d.readyState=='complete'){l();}else{if(w.attachEvent){w.attachEvent('onload',l);}else{w.addEventListener('load',l,false);}}})();
241
- </script>
242
- <!-- {/literal} END JIVOSITE CODE -->
83
  <div class="have-questions">
84
  <img src="<?php echo SFSI_PLUS_PLUGURL ?>images/question.png">
85
  <p class="have-quest">Have questions?</p>
86
+ <!-- <p class="ask-question">Ask them in the...</p> -->
87
  </div>
88
  <div class="support-forum-green-div">
89
+ <a target="_blank" href="#" onclick="event.preventDefault();sfsi_plus_open_chat(event)" class="support-forum-green-bg">
90
  <img src="<?php echo SFSI_PLUS_PLUGURL ?>images/support.png">
91
+ <p class="support-forum">Chat with us!</p>
92
  </a>
93
  </div>
94
+ <!-- <div class="respond-text">
95
  <p>We'll try to respond ASAP!</p>
96
+ </div> -->
97
  </div>
98
  </div>
99
 
235
  }
236
  });
237
  </script>
238
+ <?php include(SFSI_PLUS_DOCROOT.'/views/sfsi_chat_on_admin_pannel.php'); ?>