Skip to content

Commit

Permalink
Merge pull request #50 from zoglo/master
Browse files Browse the repository at this point in the history
PR for updating WhatsApp share buttons to include their new click-to-chat format
  • Loading branch information
fritzmg authored May 25, 2021
2 parents c88be8a + d7ada85 commit 35625bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
<?php endif ;?>
<?php if ($network == 'reddit'): ?>
<li><a class="reddit" href="http://www.reddit.com/submit?url=<?= $this->url ?>&amp;title=<?= $this->title ?>" rel="noopener noreferrer nofollow" data-escargot-ignore title="<?= $this->lang['share_on_reddit'] ?>" onclick="return shd.open(this.href,855,900);">Reddit</a></li>
<?php elseif ($network == 'whatsapp' && \Environment::get('agent')->mobile): ?>
<li><a class="whatsapp" href="whatsapp://send?text=<?= $this->description ? $this->description . '%0A%0A' : '' ?><?= $this->url ?>" data-action="share/whatsapp/share" rel="noopener noreferrer nofollow" data-escargot-ignore title="<?= $this->lang['share_on_whatsapp'] ?>">WhatsApp</a></li>
<?php elseif ($network == 'whatsapp'): ?>
<li><a class="whatsapp" href="https://wa.me/?text=<?= $this->description ? $this->description . '%0A%0A' : '' ?><?= $this->url ?>" target="_blank" data-action="share/whatsapp/share" rel="noopener noreferrer nofollow" data-escargot-ignore title="<?= $this->lang['share_on_whatsapp'] ?>">WhatsApp</a></li>
<?php elseif ($network == 'print'): ?>
<li><a class="print" href="#" rel="noopener noreferrer nofollow" data-escargot-ignore title="<?= $this->lang['print_page'] ?>" onclick="window.print();return false"><?= $this->lang['print_page'] ?></a></li>
<?php elseif ($network == 'pdf' && $this->pdfLink): ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
<?php endif ;?>
<?php if ($network == 'reddit'): ?>
<li><a class="reddit fa fa-reddit" href="http://www.reddit.com/submit?url=<?= $this->url ?>&amp;title=<?= $this->title ?>" rel="noopener noreferrer nofollow" data-escargot-ignore title="<?= $this->lang['share_on_reddit'] ?>" onclick="return shd.open(this.href,855,900);"></a></li>
<?php elseif ($network == 'whatsapp' && \Environment::get('agent')->mobile): ?>
<li><a class="whatsapp fa fa-whatsapp" href="whatsapp://send?text=<?= $this->description ? $this->description . '%0A%0A' : '' ?><?= $this->url ?>" data-action="share/whatsapp/share" rel="noopener noreferrer nofollow" data-escargot-ignore title="<?= $this->lang['share_on_whatsapp'] ?>"></a></li>
<?php elseif ($network == 'whatsapp'): ?>
<li><a class="whatsapp fa fa-whatsapp" href="https://wa.me/?text=<?= $this->description ? $this->description . '%0A%0A' : '' ?><?= $this->url ?>" target="_blank" data-action="share/whatsapp/share" rel="noopener noreferrer nofollow" data-escargot-ignore title="<?= $this->lang['share_on_whatsapp'] ?>"></a></li>
<?php elseif ($network == 'print'): ?>
<li><a class="print fa fa-print" href="#" rel="noopener noreferrer nofollow" data-escargot-ignore title="<?= $this->lang['print_page'] ?>" onclick="window.print();return false"></a></li>
<?php elseif ($network == 'pdf' && $this->pdfLink): ?>
Expand Down

0 comments on commit 35625bd

Please sign in to comment.