1<?php
2/**
3 * DokuWiki Bootstrap3 Template: social.html
4 *
5 * @link     http://dokuwiki.org/template:bootstrap3
6 * @author   Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com>
7 * @license  GPL 2 (http://www.gnu.org/licenses/gpl.html)
8 *
9 * Copy this file in <dokuwiki>/conf directory
10 */
11?>
12<?php global $ACT; if ($ACT == 'show'): ?>
13
14<div class="pull-right hidden-print btn-toolbar" role="toolbar">
15
16  <div class="btn-group btn-group-xs" role="group">
17
18    <a class="btn btn-primary" href="#" title="Share on Facebook" target="_blank" onclick="window.open('https://www.facebook.com/sharer/sharer.php?u=' + encodeURIComponent(document.URL) + '&t=' + encodeURIComponent(document.URL)); return false;"><i class="mdi mdi-facebook"></i></a>
19
20    <a class="btn btn-info" href="#" target="_blank" title="Tweet" onclick="window.open('https://twitter.com/intent/tweet?text=' + encodeURIComponent(document.title) + ':%20'  + encodeURIComponent(document.URL)); return false;"><i class="mdi mdi-twitter"></i></a>
21
22    <a class="btn btn-danger" href="#" target="_blank" title="Share on Google+" onclick="window.open('https://plus.google.com/share?url=' + encodeURIComponent(document.URL)); return false;"><i class="mdi mdi-google-plus"></i></a>
23
24    <a class="btn btn-primary" href="#" target="_blank" title="Share on LinkedIn" onclick="window.open('http://www.linkedin.com/shareArticle?mini=true&url=' + encodeURIComponent(document.URL) + '&title=' +  encodeURIComponent(document.title)); return false;"><i class="mdi mdi-linkedin"></i></a>
25
26    <a class="btn btn-warning" href="#" title="Send via mail" onclick="this.href=('mailto:?subject=' + encodeURIComponent(document.title) + '&body=' +  encodeURIComponent(document.URL))"><i class="mdi mdi-envelope"></i></a>
27
28  </div>
29
30</div>
31
32<p class="clearfix">&nbsp;</p>
33
34<?php endif; ?>
35