-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
219 additions
and
344 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,5 +1,18 @@ | ||
<tal:metas i18n:domain="sc.social.like" tal:condition="view/enabled"> | ||
<tal:plugin tal:repeat="plugin view/plugins"> | ||
<tal:replace replace="structure plugin/html" /> | ||
</tal:plugin> | ||
<meta name="twitter:card" content="summary_large_image" /> | ||
<meta name="twitter:site" tal:attributes="content string:@${view/via}" /> | ||
<meta property="og:site_name" tal:attributes="content view/portal_title" /> | ||
<meta property="og:url" tal:attributes="content view/canonical_url" /> | ||
<meta property="og:type" tal:attributes="content view/type" /> | ||
<meta property="og:locale" tal:attributes="content view/language" /> | ||
<meta property="og:title" tal:attributes="content view/title" /> | ||
<meta property="og:description" tal:attributes="content view/description" /> | ||
<meta property="og:image" tal:attributes="content view/image_url" /> | ||
<tal:image tal:condition="nocall:view/image"> | ||
<meta property="og:image:height" tal:attributes="content view/image_height" /> | ||
<meta property="og:image:width" tal:attributes="content view/image_width" /> | ||
<meta property="og:image:type" tal:attributes="content view/image_type" /> | ||
</tal:image> | ||
<meta tal:condition="view/admins" property="fb:admins" tal:attributes="content view/admins" /> | ||
<meta tal:condition="view/app_id" property="fb:app_id" tal:attributes="content view/app_id" /> | ||
</tal:metas> |
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
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 was deleted.
Oops, something went wrong.
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,16 +1,15 @@ | ||
<tal:fb> | ||
<!-- Facebook --> | ||
<div class="fb-like" | ||
tal:condition="view/fbshow_like" | ||
tal:attributes="data-href view/canonical_url; | ||
data-send string:false; | ||
data-action view/fbaction; | ||
data-layout view/typebutton; | ||
data-width view/width; | ||
data-show-faces string:false; | ||
data-share view/fbshow_share"></div> | ||
<div class="fb-share-button" | ||
tal:condition="python: view.fbshow_share and not view.fbshow_like" | ||
tal:attributes="data-layout view/typebutton; | ||
data-href view/canonical_url;"></div> | ||
</tal:fb> | ||
<!-- Facebook --> | ||
<script tal:content="view/fbjs" /> | ||
<div class="fb-like" | ||
tal:condition="view/fbshow_like" | ||
tal:attributes="data-href view/canonical_url; | ||
data-send string:false; | ||
data-action view/fbaction; | ||
data-layout view/typebutton; | ||
data-width view/width; | ||
data-show-faces string:false; | ||
data-share view/fbshow_share"></div> | ||
<div class="fb-share-button" | ||
tal:condition="python: view.fbshow_share and not view.fbshow_like" | ||
tal:attributes="data-layout view/typebutton; | ||
data-href view/canonical_url;"></div> |
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 was deleted.
Oops, something went wrong.
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,8 +1,17 @@ | ||
<tal:gp> | ||
<!-- Google+ --> | ||
<div class="g-plusone" | ||
tal:attributes="data-annotation string:bubble; | ||
data-size view/typebutton; | ||
data-href view/url; | ||
data-lang view/language;"></div> | ||
</tal:gp> | ||
<!-- Google+ --> | ||
<script> | ||
(function() { | ||
var po = document.createElement('script'); | ||
po.type = 'application/javascript'; | ||
po.async = true; | ||
po.src = '//apis.google.com/js/plusone.js'; | ||
var head = document.getElementsByTagName('head')[0]; | ||
head.appendChild(po); | ||
})(); | ||
</script> | ||
|
||
<div class="g-plusone" | ||
tal:attributes="data-annotation string:bubble; | ||
data-size view/typebutton; | ||
data-href view/url; | ||
data-lang view/language;"></div> |
Oops, something went wrong.