Rushabh Mehta | 74560b3 | 2013-05-27 14:47:56 +0530 | [diff] [blame] | 1 | <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 Mehta | 770e793 | 2013-03-11 18:30:05 +0530 | [diff] [blame] | 24 | {% endif %} |
Rushabh Mehta | 74560b3 | 2013-05-27 14:47:56 +0530 | [diff] [blame] | 25 | <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">© {{ copyright }}</div> |
Rushabh Mehta | 770e793 | 2013-03-11 18:30:05 +0530 | [diff] [blame] | 38 | {% endif %} |
Rushabh Mehta | 74560b3 | 2013-05-27 14:47:56 +0530 | [diff] [blame] | 39 | {% if address %} |
| 40 | {{ address }} |
Rushabh Mehta | 770e793 | 2013-03-11 18:30:05 +0530 | [diff] [blame] | 41 | {% endif %} |
Rushabh Mehta | 74560b3 | 2013-05-27 14:47:56 +0530 | [diff] [blame] | 42 | <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 Mehta | 0642083 | 2013-03-12 12:29:10 +0530 | [diff] [blame] | 52 | |
Rushabh Mehta | 74560b3 | 2013-05-27 14:47:56 +0530 | [diff] [blame] | 53 | $("#footer-subscribe-email").attr('disabled', true); |
| 54 | $("#footer-subscribe-button").html("Sending...") |
| 55 | .attr("disabled", true); |
Rushabh Mehta | 0642083 | 2013-03-12 12:29:10 +0530 | [diff] [blame] | 56 | |
Rushabh Mehta | 74560b3 | 2013-05-27 14:47:56 +0530 | [diff] [blame] | 57 | 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 Mehta | 770e793 | 2013-03-11 18:30:05 +0530 | [diff] [blame] | 71 | } |
Rushabh Mehta | 74560b3 | 2013-05-27 14:47:56 +0530 | [diff] [blame] | 72 | }); |
| 73 | } |
| 74 | }); |
| 75 | </script> |
| 76 | </div> |
| 77 | </div> |
Rushabh Mehta | 770e793 | 2013-03-11 18:30:05 +0530 | [diff] [blame] | 78 | </div> |
| 79 | </footer> |