blob: 3161987ed804f776fc2ff892319340092dd7f2cc [file] [log] [blame]
Rushabh Mehta74560b32013-05-27 14:47:56 +05301<footer class="container">
2 <div class="web-footer row">
3 <div class="col col-lg-12">
4 {% if facebook_share or google_plus_one or twitter_share or linked_in_share %}
5 <div class="social-icons" style="">
6 <span style="font-size: 11px;">{{ share_text or "Share this page on: "}}</span>
7 {% if google_plus_one %}
8 <a href="https://plus.google.com/share?url={{ url }}"
9 target="_blank"><i class="icon-google-plus"></i></a>
10 {% endif %}
11 {% if twitter_share %}
12 <a href="https://twitter.com/intent/tweet?url={{ url }}&text={{ encoded_title }}"
13 target="_blank" ><i class="icon-twitter"></i></a>
14 {% endif %}
15 {% if facebook_share %}
16 <a href="https://www.facebook.com/sharer.php?u={{ url }}&t={{ encoded_title }}&via={{ twitter_share_via }}"
17 target="_blank"><i class="icon-facebook"></i></a>
18 {% endif %}
19 {% if linked_in_share %}
20 <a href="http://www.linkedin.com/shareArticle?mini=true&url={{ url }}&title={{ encoded_title }}"
21 target="_blank"><i class="icon-linkedin"></i></a>
22 {% endif %}
23 </div>
Rushabh Mehta770e7932013-03-11 18:30:05 +053024 {% endif %}
Rushabh Mehta74560b32013-05-27 14:47:56 +053025 <p style="float: right; clear: right;">
26 <a style="font-size: 90%; color: #888;" href="attributions">ERPNext Powered</a>
27 </p>
28 <div class="web-footer-menu">
29 <ul>
30 {% for item in footer_items %}
31 <li><a href="{{ item.url }}" {{ item.target }}
32 data-label="{{ item.label }}">{{ item.label }}</a></li>
33 {% endfor %}
34 </ul>
35 </div>
36 {% if copyright %}
37 <div class="web-footer-copyright">&copy; {{ copyright }}</div>
Rushabh Mehta770e7932013-03-11 18:30:05 +053038 {% endif %}
Rushabh Mehta74560b32013-05-27 14:47:56 +053039 {% if address %}
40 {{ address }}
Rushabh Mehta770e7932013-03-11 18:30:05 +053041 {% endif %}
Rushabh Mehta74560b32013-05-27 14:47:56 +053042 <br>
43 <div class="input-group col col-lg-6 col-offset-3">
44 <input type="text" id="footer-subscribe-email" placeholder="Your email address...">
45 <span class="input-group-btn">
46 <button class="btn btn-default" type="button" id="footer-subscribe-button">Stay Updated</button>
47 </span>
48 </div>
49 <br>
50 <script>
51 $("#footer-subscribe-button").click(function() {
Rushabh Mehta06420832013-03-12 12:29:10 +053052
Rushabh Mehta74560b32013-05-27 14:47:56 +053053 $("#footer-subscribe-email").attr('disabled', true);
54 $("#footer-subscribe-button").html("Sending...")
55 .attr("disabled", true);
Rushabh Mehta06420832013-03-12 12:29:10 +053056
Rushabh Mehta74560b32013-05-27 14:47:56 +053057 if($("#footer-subscribe-email").val()) {
58 erpnext.send_message({
59 subject:"Subscribe me",
60 sender: $("#footer-subscribe-email").val(),
61 message: "Subscribe to newsletter (via website footer).",
62 callback: function(r) {
63 if(!r.exc) {
64 $("#footer-subscribe-button").html("Thank You :)")
65 .addClass("btn-success").attr("disabled", true);
66 } else {
67 $("#footer-subscribe-button").html("Error :( Not a valid id?")
68 .addClass("btn-danger").attr("disabled", false);
69 $("#footer-subscribe-email").val("").attr('disabled', false);
70 }
Rushabh Mehta770e7932013-03-11 18:30:05 +053071 }
Rushabh Mehta74560b32013-05-27 14:47:56 +053072 });
73 }
74 });
75 </script>
76 </div>
77 </div>
Rushabh Mehta770e7932013-03-11 18:30:05 +053078 </div>
79</footer>