town_index_OLD.html 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. {% extends "base.html" %}
  2. {% block title %}Town Information | Penobscot Bay Press | Stonington, Maine{% endblock %}
  3. {% block description %}{{a.archivesectionchive.body|truncatewords:60}} {% endblock %}
  4. {% block flag_img_src %}{{MEDIA_URL}}images/headers/towninforound440.gif{% endblock %}
  5. {% block flag_descrip %}Looking for information about your town?<br/>Can't remember phone numbers for your town offices?<br/>Last updated May 31, 2010{% endblock %}
  6. {% block content %}
  7. <div style="width:100%; margin:0; padding:0">
  8. <div class="main_content_left">
  9. <h2 class="sectionhead_wide">Town Information</h2>
  10. {% for t in towns %}
  11. {% for info in t.towninfo_set.all %}
  12. <div style="float:left; padding:0px; margin:5px; text-align:center; width:31%; height:40px">
  13. <h3><a href="{{info.get_absolute_url}}">{{info.town.name}}</a></h3>
  14. </div>
  15. {% endfor %}
  16. {% endfor %}
  17. </div>
  18. </div>
  19. <div class="sidebar_right_media" style="margin-top:0px">
  20. <!-- Block Ad BEGIN -->
  21. {% load adzone_tags %}
  22. {% random_zone_ad '' 'cn-block' %}
  23. <!-- Block Ad END -->
  24. </div>
  25. <div style="padding-left:12px; padding-right:12px; padding-bottom:0px">
  26. <!-- AddThis Button BEGIN -->
  27. <script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script>
  28. <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=penbaypress"></script>
  29. <!-- AddThis Button END -->
  30. <p>
  31. {% for s in object.sites.all|dictsortreversed:"id"%}
  32. {% if forloop.first %}
  33. <a class="return" href="http://{{s}}">{{s.name}} home page</a>
  34. {% else %}
  35. <span style="margin-left:15px; margin-right:15px">&#8226;</span><a class="return" href="http://{{s}}">{{s.name}} home page</a>
  36. {% endif %}
  37. {% endfor %}
  38. </p>
  39. </div>
  40. <!-- AddThis Smart Layers BEGIN -->
  41. <!-- Go to http://www.addthis.com/get/smart-layers to customize -->
  42. <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=penbaypress"></script>
  43. <script type="text/javascript">
  44. addthis.layers({
  45. 'theme' : 'transparent',
  46. 'share' : {
  47. 'position' : 'right',
  48. 'services' : 'facebook,twitter,email,print,gmail,tumblr,more',
  49. }
  50. });
  51. </script>
  52. <!-- AddThis Smart Layers END -->
  53. {% endblock %}