|
@@ -43,6 +43,10 @@ def share_post(content):
|
|
facebook_link = 'http://www.facebook.com/sharer/sharer.php?s=100&p%%5Burl%%5D=%s' % url
|
|
facebook_link = 'http://www.facebook.com/sharer/sharer.php?s=100&p%%5Burl%%5D=%s' % url
|
|
gplus_link = 'https://plus.google.com/share?url=%s' % url
|
|
gplus_link = 'https://plus.google.com/share?url=%s' % url
|
|
twitter_link = 'http://twitter.com/home?status=%s' % tweet
|
|
twitter_link = 'http://twitter.com/home?status=%s' % tweet
|
|
|
|
+ linkedin_link = 'https://www.linkedin.com/shareArticle?mini=true&url=%s&title=%s&summary=%s&source=%s' % (
|
|
|
|
+ url, title, summary, url
|
|
|
|
+ )
|
|
|
|
+
|
|
mail_link = 'mailto:?subject=%s&body=%s' % (title, url)
|
|
mail_link = 'mailto:?subject=%s&body=%s' % (title, url)
|
|
|
|
|
|
share_links = {
|
|
share_links = {
|
|
@@ -50,6 +54,7 @@ def share_post(content):
|
|
'twitter': twitter_link,
|
|
'twitter': twitter_link,
|
|
'facebook': facebook_link,
|
|
'facebook': facebook_link,
|
|
'google-plus': gplus_link,
|
|
'google-plus': gplus_link,
|
|
|
|
+ 'linkedin': linkedin_link,
|
|
'email': mail_link
|
|
'email': mail_link
|
|
}
|
|
}
|
|
content.share_post = share_links
|
|
content.share_post = share_links
|
|
@@ -57,3 +62,5 @@ def share_post(content):
|
|
|
|
|
|
def register():
|
|
def register():
|
|
signals.content_object_init.connect(share_post)
|
|
signals.content_object_init.connect(share_post)
|
|
|
|
+
|
|
|
|
+
|