{% extends "marketplace/base.html" %}

{% block title %}Local Business Directory | Penobcot Bay Press {% endblock %}

{% block content %}
<div style="width:100%; margin:0; padding:0">
	<div class="main_content_left">
  <div class="dirservhead">
		<h2 class="sectionhead_wide" style="margin-top:8px; margin-bottom:8px">Business Directory</h2>
    {% for guide in guides %}
    
				<div style="width:154px; height:120px; border:1px solid black; padding:5px; margin:2px; float:left;" align="left">
					<strong><a href="{{guide.get_absolute_url}}" class="guidehead">{{guide.tag_line}}</a></strong><br>
					{% if guide.logo_thumbnail %}
					<div style="float:right; padding:5px;"><img src="{{MEDIA_URL}}{{guide.logo_thumbnail}}"></div>
					{% endif %}
					<span class="guide_text">{{guide.brief_description}}</span>
				</div>
    {% endfor %}
    <div style="padding-bottom:5px; clear:both">
    </div>
    {% for cat in categories %}
      <p class="dirservindexhead" style="display:block; clear:both; padding:2px; text-align:center; margin-bottom:10px">{{cat}}</p>
      <p class="dirservindex">
        {% for subcat in cat.subcategory_set.all %}
	{% if subcat.business_set.all %}
        <div style="float:left; padding-bottom:5px"><span class="bullet_inline_dir">&bull;</span><a href="{{subcat.get_absolute_url}}" class="dirservlinks">{{ subcat }}</a></div>
        {% endif %}
        {% endfor %}
      </p>
    {% endfor %}
     </div>
</div>
</div>

<div class="sidebar_right_media">
			<!-- Block Ad BEGIN -->
				{% load adzone_tags %} 
				{% random_zone_ad '' 'cn-block' %}
			<!-- Block Ad END -->
</div>

{% endblock %}

