-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Buyer's Guide og tags & main nav share icons (#1926)
Related #1899 https://foundation-mofostaging-pr-1926.herokuapp.com/privacynotincluded/ ### Only covers the following - Got share icons on main nav to work - Note: I got share icons to work without using ShareProgress. I found out [Facebook stopped supporting prefilled text for share](https://developers.facebook.com/docs/apps/review/prefill) anyway so I guess we are good leaving ShareProgress out. - Added OG tags ### Not covered in this PR - creep-o-meter related share
- Loading branch information
Showing
3 changed files
with
17 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,23 @@ | ||
{% with share_text="Shop safe this holiday season using @mozilla’s PrivacyNotIncluded.org buyer’s guide. 70 popular connected products rated to help understand if they are likely to spy on you. Find out which are creepy and which aren’t." twitter_share_link="https://twitter.com/intent/tweet?text=" email_share_link="mailto:?&body=" facebook_share_link="https://www.facebook.com/sharer/sharer.php?u=PrivacyNotIncluded.org" %} | ||
|
||
{% if mobile %} | ||
<div class="social d-flex flex-column"> | ||
<a class="social-button social-button-fb body-large" href="">Facebook</a> | ||
<a class="social-button social-button-twitter body-large" href="">Twitter</a> | ||
<a class="social-button social-button-email body-large" href="">Email</a> | ||
<a class="social-button social-button-link body-large" href="">Copy link</a> | ||
<a class="social-button social-button-fb body-large" href="{{facebook_share_link}}">Facebook</a> | ||
<a class="social-button social-button-twitter body-large" href="{{twitter_share_link}}{{share_text|urlencode}}">Twitter</a> | ||
<a class="social-button social-button-email body-large" href="{{email_share_link}}{{share_text|urlencode}}">Email</a> | ||
<a class="social-button social-button-link copy-link body-large" href="">Copy link</a> | ||
</div> | ||
{% else %} | ||
<div class="social d-flex align-items-center"> | ||
<a class="social-button social-button-fb hidden-sm-down" href=""><span class="sr-only">Facebook</span></a> | ||
<a class="social-button social-button-twitter hidden-sm-down" href=""><span class="sr-only">Twitter</span></a> | ||
<a class="social-button social-button-email hidden-sm-down" href=""><span class="sr-only">Email</span></a> | ||
<a class="social-button social-button-link hidden-sm-down" href=""><span class="sr-only">Copy link</span></a> | ||
<a class="social-button social-button-fb hidden-sm-down" href="{{facebook_share_link}}"><span class="sr-only">Facebook</span></a> | ||
<a class="social-button social-button-twitter hidden-sm-down" href="{{twitter_share_link}}{{share_text|urlencode}}" target="_blank"><span class="sr-only">Twitter</span></a> | ||
<a class="social-button social-button-email hidden-sm-down" href="{{email_share_link}}{{share_text|urlencode}}"><span class="sr-only">Email</span></a> | ||
<a class="social-button social-button-link copy-link hidden-sm-down" href=""><span class="sr-only">Copy link</span></a> | ||
<a class="d-none d-sm-block btn btn-donate ml-3 mr-0 hidden-sm-down" href="https://donate.mozilla.org">Donate</a> | ||
<button class="burger btn btn-link p-0 ml-4 hidden-md-up"> | ||
<span class="sr-only">Share</span> | ||
</button> | ||
</div> | ||
{% endif %} | ||
|
||
{% endwith %} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.