summaryrefslogtreecommitdiff
path: root/addons/website/static/src/xml/website.share.xml
diff options
context:
space:
mode:
authorJaysinh Shukla <jsh@openerp.com>2015-01-22 16:14:50 +0100
committerThibault Delavallée <tde@openerp.com>2015-01-22 17:02:17 +0100
commit1c91e27c8c8cb7492d26f03e27c4991b53a1675d (patch)
tree9baff2a62a02669a12190169a08b587955c0688b /addons/website/static/src/xml/website.share.xml
parent88a9a45cf20ffd8afc201f818a451bfeee8ba7d0 (diff)
[IMP] website: added social share widget
A new widget has been developed that allows to share content on social networks. It is displayed like a simple share link in a popover for four social networks (facebook, twitter, linkedin, google+ (really ?)). Courtesy of RD India: Ajay Patel (apa@odoo.com), Jaysinh Shukla (jsh@odoo.com) Courtesy of use Merge: Damien Bouvy (dbo@odoo.com)
Diffstat (limited to 'addons/website/static/src/xml/website.share.xml')
-rw-r--r--addons/website/static/src/xml/website.share.xml15
1 files changed, 15 insertions, 0 deletions
diff --git a/addons/website/static/src/xml/website.share.xml b/addons/website/static/src/xml/website.share.xml
new file mode 100644
index 00000000000..832dc9698a8
--- /dev/null
+++ b/addons/website/static/src/xml/website.share.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<templates id="template" xml:space="preserve">
+ <t t-name="website.social_hover">
+ <div class="row clearfix" style='font-size:16px'>
+ <div class="col-xs-12 css_editable_mode_hidden">
+ <t t-foreach="medias" t-as="media">
+ <a style="cursor: pointer" t-attf-class="fa-stack fa-lg share #{media}">
+ <span class="fa fa-square fa-stack-2x"></span>
+ <span t-attf-class="oe_social_#{media} fa fa-#{media} fa-stack-1x fa-inverse"></span>
+ </a>
+ </t>
+ </div>
+ </div>
+ </t>
+</templates>