PHP - Social button

0 votes
197 views
added Jun 12, 2018 in PHP by anonymous
retagged Aug 15, 2018 by LC Marshal
<!--social button javascript & php -->
<div class="social-button">
  <ul>
      <a class="fb-share" href="https://www.facebook.com/sharer/sharer.php?u=<?php print $row['url']; ?>&amp;text=<?php print $row['title']?>" onclick="window.open(this.href, 'sharer-popup-facebook', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,left=383,top=34,width=600,height=600'); return false;">
          <li class="facebook">
              <i class="fa fa-facebook" aria-hidden="true"></i>
          </li>
      </a>
      <a class="tw-share" href="https://twitter.com/intent/tweet?url=<?php print $row['url']; ?>&amp;text=<?php print $row['title']?>" onclick="window.open(this.href, 'sharer-popup-twitter', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,left=370,top=115,width=626,height=438'); return false;">
          <li class="twitter">
              <i class="fa fa-twitter" aria-hidden="true"></i>
          </li>
      </a>
      <a class="ws-share" href="whatsapp://send?text=<?php print $row['url'] . ' - ' . $row['title'] ?>">
          <li class="whatsapp">
              <i class="fa fa-whatsapp" aria-hidden="true"></i>
          </li>
      </a>
  </ul>
</div>
lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...