cuisine_connection_093013.html 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. {% extends "marketplace/base.html" %}
  2. {% load humanize %}
  3. {% block og_title %}{{guide}} - Business Directory{% endblock %}
  4. {% block og_type %}Article{% endblock %}
  5. {% block og_url %}{{guide.get_absolute_url}}{% endblock %}
  6. {% block og_description %}{{guide.description}}{% endblock %}
  7. {% block og_image %}{{guide.logo.url}}{% endblock %}
  8. {% block meta_title %}{{object.web_hed}} | {% for s in object.sites.all %}{% if forloop.first %}{{s.name}}{% endif %}{% endfor %} | Penobscot Bay Press{% endblock %}
  9. {% block meta_keywords %}{% for tag in guide.tags.all %}{{tag}}, {%endfor %}{% endblock %}
  10. {% block meta_description %}{{guide.description}}{% endblock %}
  11. {% block rel-img %}{{guide.logo.url}}{% endblock %}
  12. {% block title %}{{guide}} - Business Directory{% endblock %}
  13. {% block loadtags %}{% for business in businesses %}setupMap{{business.id}}(); {% endfor %}{%endblock%}
  14. {% block content %}
  15. <td colspan="2" align="left" valign="top" bgcolor="white" width="565">
  16. <div class="dirservhead" align="center" style="padding-top:0px; margin-top:0px">
  17. <br>
  18. <div style="float:right">{% if guide.logo %}<img src="{{guide.logo.url}}">{% endif %}</div>
  19. <div align="left" style="margin-left:25px"><span class="dirservheader" style="color:#333399">{{guide}}</span>
  20. <p>{{guide.description}}</p>
  21. <div align="center">
  22. {% for e in guide.ve_guides.all %}
  23. {% if forloop.first %}
  24. <a href="{% url visitors.views.index %}" class="return">Return to the Seasonal Guide Visitor's Portal</a><br><br>
  25. {% endif %}
  26. {% endfor %}
  27. <a href="{% url marketplace.views.index %}" class="return">Return to the Business Directory</a>
  28. <hr />
  29. </div>
  30. {% for business in guide.businesses.all|dictsort:"name" %}
  31. {% if forloop.first %}
  32. <div align="left" style="padding-left:20px, margin-bottom:15px">
  33. <p style="margin:0px; padding:0px"><span class="headline">A sampling of area menus</span></p><br>
  34. {% endif %}
  35. <p style="margin:0px; padding:0px; clear:both"><strong>{{business}}</strong></p>
  36. <p style="float:left; clear:both; margin:0; padding:0 15px 0 0; display:block"><a class="menu" href="{% for menu in business.menu_set.all%}{%if forloop.first %}{%if menu.file%}{{menu.file.url}}{%endif%}{%endif%}{%endfor%}" target="_blank"><img src="{{MEDIA_URL}}images/menus/menu_small.gif" alt="Menu" width="33" height="40" border="0"></a></p>
  37. <p style="padding-left:10px; margin-left:10px; margin-top:0px; padding-top:0px; display:block">{% if business.point %}{{business.point.address}},{%endif%} {% if business.phone%}{{business.phone|cut:"207-"}}.{%endif%} {% if business.brief_hours %}{{business.brief_hours}} {%endif%} {% if business.url%}<a href="{{business.url}}" target="_blank">{{business.url|cut:"http://"}}</a>{%endif%}</p>
  38. {% endfor %}
  39. {% if forloop.last %}{% endif %}
  40. </div>
  41. </div>
  42. </div>
  43. <div class="dirservhead" style="padding-top:0px; margin-top:0px; clear:both">
  44. <br>
  45. {% for sub in guide.subcategories.all %}
  46. <div class="dirservcategory" align="center" style="background-color:#99CCFF; padding-bottom:5px; padding-right:0ps; margin-right:0px; width:98%">
  47. <span class="dirservheader" id="{{sub.slug}}" style="font-size:32px">Restaurant Guide</span><br>
  48. <a class="return" href="#top">Return to top</a>
  49. </div><br>
  50. {% regroup sub.business_set.all by point.town.name as town_list %}
  51. {% for town in town_list %}
  52. {% for business in town.list %}
  53. {% if forloop.first %}
  54. {% if town.grouper %}
  55. <div align="center" style="background-color:#CFCFCF; width:98%; clear:both">
  56. <h2 style="padding-top:0px; margin-top:0px"><a name="{{town.grouper|cut:" "}}"></a>{{town.grouper}}</h2></div>
  57. {% else %}
  58. <div align="center" style="background-color:#CFCFCF; width:98%; clear:both"><h2 style="padding-top:0px; margin-top:0px">
  59. <a name="{{town.grouper|cut:" "}}"></a>Service Businesses </h2></div>
  60. {% endif %}
  61. {% endif %}
  62. {% ifequal business.status 3 %}
  63. <div align="left" style="padding-left:15px; width:90%">
  64. <p style="margin:0px; padding:3px; background-color: #e6f3ff; display: block"><span class="biz_bizname"><a href="{{business.get_absolute_url}}" name="{{business.slug}}">{{business}}</a></span></p>
  65. <p class="biz_url" style="background-color: #e6f3ff; padding: 0 0 3px 3px">{% if business.url %}{{business.url|cut:"http://"|cut:"/"|urlize}}</p>{% endif %}
  66. {% load convert_tags typogrify %}
  67. {% if business.menu_set.all%}
  68. <a style="float:left; padding:0 10px 5px 0" href="{% for menu in business.menu_set.all%}{%if forloop.first %}{%if menu.file %}{{menu.file.url}}{%endif%}{%endif%}{%endfor%}" target="_blank"><img src="{{MEDIA_URL}}images/menus/menu_large.gif" alt="Menu" align="right" border="0"></a>
  69. {% endif %}
  70. {% if business.logo %}
  71. <div style="float:right; padding:5px 0 5px 10px">{% thumbnail business.logo "200x200" %}</div>
  72. {% endif %}
  73. {% if business.brief %}
  74. <p class="biz_info"><em>{{business.brief|typogrify}}</em></p>
  75. {% endif %}
  76. <p class="biz_address">
  77. {% if business.po_box %}P.O. Box {{business.po_box}}<br>{% endif %}
  78. {% if business.point %}{{business.point.address}}{% if business.unit %} - Unit {{business.unit}}{% endif %}<br>
  79. {% else %}{{business.post_office.point.town}} {{business.post_office.point.zipcode}}<br>{% endif %}
  80. {% if business.directions %}{{business.directions}}<br>{% endif %}
  81. {% if business.point %}{{business.point.town}} {{business.point.zipcode}}{% endif %}
  82. </p>
  83. <p class="biz_contact">
  84. {% if business.phone_title %}{{business.phone_title}}: {% endif %}{% if business.phone %}{{business.phone}}{% endif %}
  85. {% if business.phone_2 %}<span class="bullet_inline_dir">&bull;</span> {% if business.phone_2_title %}{{business.phone_2_title}}: {% endif %}{{business.phone_2 }}{% endif %}
  86. {% if business.phone_3_title %}<span class="bullet_inline_dir">&bull;</span> {{business.phone_3_title}}: {% endif %}{% if business.phone_3 %}{{business.phone_3}}{% endif %}
  87. {% if business.mobile_phone %}<span class="bullet_inline_dir">&bull;</span> Mobile: {{business.mobile_phone}}{% endif %}
  88. {% if business.fax %}<br>Fax: {{business.fax}}{% endif %}
  89. {% if business.email %}<br><a href="mailto:{{business.email}}">{{business.email}}</a>{% endif %}
  90. </p>
  91. {% if business.brief_hours %}
  92. <p class="biz_hours" style="width:80%">Hours: {{business.brief_hours|typogrify}}</p>
  93. {% endif %}
  94. {% if business.payment_accepted.all %}
  95. <ul class="biz_payment_list">
  96. {% for payment in business.payment_accepted.all %}<li class="biz_payment_list"><img src="{{MEDIA_URL}}{{payment.icon}}" alt="{{payment}}" title="{{payment}}">
  97. </li>
  98. {% endfor %}
  99. </ul>
  100. {% endif %}
  101. {% if business.facebook %}
  102. <div style="float:left; padding: 0 0 10px 20px; background-color:#eeeeee"><iframe src="http://www.facebook.com/plugins/likebox.php?href={{business.facebook}}&amp;width=450&amp;colorscheme=light&amp;show_faces=false&amp;stream=false&amp;header=false&amp;height=70" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:70px;" allowTransparency="true"></iframe></div>
  103. {% endif %}
  104. {% if business.twitter %}
  105. <div style="float:left; padding: 20px 20px 10px 20px; background-color:#eeeeee; height:42px"><a href="{{business.twitter}}"><img src="http://twitter-badges.s3.amazonaws.com/follow_me-a.png" alt="Follow me on Twitter"/></a></div>
  106. {% endif %}
  107. </div>
  108. <div style="clear:both; padding-top:10px; width:90%"><hr size="1">
  109. </div>
  110. {% endifequal %}
  111. {% ifequal business.status 2 %}
  112. <div align="left" style="padding-left:15px; width:90%">
  113. <p style="margin:0px; padding:0px"><span class="biz_bizname"><a name="{{business.slug}}"></a>{{business}}</span></p>
  114. <p class="biz_url">{% if business.url %}{{business.url|cut:"http://"|cut:"/"|urlize}}</p>{% endif %}
  115. {% load convert_tags typogrify %}
  116. {% if business.menu_set.all%}
  117. <a style="float:left; padding:0 10px 5px 0" href="{% for menu in business.menu_set.all%}{%if forloop.first %}{% if menu.file %}{{menu.file.url}}{%endif%}{%endif%}{%endfor%}" target="_blank"><img src="{{MEDIA_URL}}images/menus/menu_large.gif" alt="Menu" align="right" border="0"></a>
  118. {% endif %}
  119. {% if business.logo %}
  120. <div style="float:right; padding:5px 0 5px 10px">{% thumbnail business.logo "200x200" %}</div>
  121. {% endif %}
  122. {% if business.brief %}
  123. <p class="biz_info"><em>{{business.brief|typogrify}}</em></p>
  124. {% endif %}
  125. <p class="biz_address">
  126. {% if business.po_box %}P.O. Box {{business.po_box}}<br>{% endif %}
  127. {% if business.point %}{{business.point.address}}{% if business.unit %} - Unit {{business.unit}}{% endif %}<br>
  128. {% else %}{{business.post_office.point.town}} {{business.post_office.point.zipcode}}<br>{% endif %}
  129. {% if business.directions %}{{business.directions}}<br>{% endif %}
  130. {% if business.point %}{{business.point.town}} {{business.point.zipcode}}{% endif %}
  131. </p>
  132. <p class="biz_contact">
  133. {% if business.phone_title %}{{business.phone_title}}: {% endif %}{% if business.phone %}{{business.phone}}{% endif %}
  134. {% if business.phone_2 %}<span class="bullet_inline_dir">&bull;</span> {% if business.phone_2_title %}{{business.phone_2_title}}: {% endif %}{{business.phone_2 }}{% endif %}
  135. {% if business.phone_3_title %}<span class="bullet_inline_dir">&bull;</span> {{business.phone_3_title}}: {% endif %}{% if business.phone_3 %}{{business.phone_3}}{% endif %}
  136. {% if business.mobile_phone %}<span class="bullet_inline_dir">&bull;</span> Mobile: {{business.mobile_phone}}{% endif %}
  137. {% if business.fax %}<br>Fax: {{business.fax}}{% endif %}
  138. {% if business.email %}<br><a href="mailto:{{business.email}}">{{business.email}}</a>{% endif %}
  139. </p>
  140. {% if business.brief_hours %}
  141. <p class="biz_hours" style="width:80%">Hours: {{business.brief_hours|typogrify}}</p>
  142. {% endif %}
  143. {% if business.payment_accepted.all %}
  144. <ul class="biz_payment_list">
  145. {% for payment in business.payment_accepted.all %}<li class="biz_payment_list"><img src="{{MEDIA_URL}}{{payment.icon}}" alt="{{payment}}" title="{{payment}}">
  146. </li>
  147. {% endfor %}
  148. </ul>
  149. {% endif %}
  150. {% if business.facebook %}
  151. <div style="float:left; padding: 0 0 10px 20px; background-color:#eeeeee"><iframe src="http://www.facebook.com/plugins/likebox.php?href={{business.facebook}}&amp;width=450&amp;colorscheme=light&amp;show_faces=false&amp;stream=false&amp;header=false&amp;height=70" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:70px;" allowTransparency="true"></iframe></div>
  152. {% endif %}
  153. {% if business.twitter %}
  154. <div style="float:left; padding: 20px 20px 10px 20px; background-color:#eeeeee; height:42px"><a href="{{business.twitter}}"><img src="http://twitter-badges.s3.amazonaws.com/follow_me-a.png" alt="Follow me on Twitter"/></a></div>
  155. {% endif %}
  156. </div>
  157. <div style="clear:both; padding-top:10px; width:90%"><hr size="1">
  158. </div>
  159. {% endifequal %}
  160. {% ifequal business.status 1 %}
  161. <div align="left" style="padding-left:15px; width:90%">
  162. <p style="margin:0px; padding:0px"><span class="biz_bizname"><a name="{{business.slug}}"></a>{{business}}</span></p>
  163. <p class="biz_url">{% if business.url %}{{business.url|cut:"http://"|cut:"/"|urlize}}</p>{% endif %}
  164. {% load convert_tags typogrify %}
  165. {% if business.brief %}
  166. <p class="biz_info"><em>{{business.brief|typogrify}}</em></p>
  167. {% endif %}
  168. <p class="biz_address">
  169. {% if business.po_box %}P.O. Box {{business.po_box}}<br>{% endif %}
  170. {% if business.point %}{{business.point.address}}{% if business.unit %} - Unit {{business.unit}}{% endif %}<br>
  171. {% else %}{{business.post_office.point.town}} {{business.post_office.point.zipcode}}<br>{% endif %}
  172. {% if business.directions %}{{business.directions}}<br>{% endif %}
  173. {% if business.point %}{{business.point.town}} {{business.point.zipcode}}{% endif %}
  174. </p>
  175. <p class="biz_contact">
  176. {% if business.phone_title %}{{business.phone_title}}: {% endif %}{% if business.phone %}{{business.phone}}{% endif %}
  177. {% if business.phone_2 %}<span class="bullet_inline_dir">&bull;</span> {% if business.phone_2_title %}{{business.phone_2_title}}: {% endif %}{{business.phone_2 }}{% endif %}
  178. {% if business.phone_3_title %}<span class="bullet_inline_dir">&bull;</span> {{business.phone_3_title}}: {% endif %}{% if business.phone_3 %}{{business.phone_3}}{% endif %}
  179. {% if business.mobile_phone %}<span class="bullet_inline_dir">&bull;</span> Mobile: {{business.mobile_phone}}{% endif %}
  180. {% if business.fax %}<br>Fax: {{business.fax}}{% endif %}
  181. {% if business.email %}<br><a href="mailto:{{business.email}}">{{business.email}}</a>{% endif %}
  182. </p>
  183. {% if business.brief_hours %}
  184. <p class="biz_hours" style="width:80%">Hours: {{business.brief_hours|typogrify}}</p>
  185. {% endif %}
  186. </div>
  187. <div style="clear:both; padding-top:10px; width:90%"><hr size="1">
  188. </div>
  189. {% endifequal %}
  190. {% endfor %}
  191. <br>
  192. {% endfor %}
  193. {% endfor %}
  194. </div>
  195. </td>
  196. {% endblock %}