Are you first timer at lazacode.org? Why not join us and start exchange your programming knowledge with everyone. Register today!

PHP - Social button

0 votes
17 views
added Jun 12 in PHP by birdygeek Sergeant (2,060 points)
retagged Aug 15 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>

Please log in or register to response this reference.

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...