{% extends "base.html" %}
{% block rss %}<link rel="alternate" type="application/rss+xml" href="{% url cl-feed %}" title="RSS feed for Classifieds at Penobscot Bay Press" />{% endblock %}
{% block meta_keywords %}classifieds, penobscot bay press, maine, ads{% endblock %}
{% block title %}Classifieds | Penobscot Bay Press {% endblock %}
{% block flag_link %}{% url cl-index %}{% endblock %}
{% block flag_descrip %}Classified advertisments covering the unique towns and islands of East<br/> Penobscot and Blue Hill Bays, Maine.{% endblock %}
{% block flag_img_src %}{{MEDIA_URL}}images/headers/classround440.gif{% endblock %}
{% block flag_update_stamp %}{% endblock %}
{% block content %}

<div style="width:100%; margin:0; padding:0">
	<div class="main_content_left">
    <h2 class="sectionhead_wide">Compass Classifieds</h2>
							{% regroup subcategories by parent as subcat_list %}
							{% for subcat in subcat_list %}
							<div style="float:left; padding:0px; margin:5px; text-align:center; border-width:1px; border-style:solid; width:48%; height:160px">
									{% if not forloop.first %}{% endif %}
									<div style="magin:0px; padding:10px; line-height:100%; font-family: Times, serif; font-size: 20px; font-weight: bold; color: #000000">{{ subcat.grouper }}</div>
							<div style="clear:both; padding:0px; margin:0px; text-align:center">
							{% for item in subcat.list %}
								<ul style="display:inline; padding:0px; margin:0; list-style-type: none; line-height:100%">
									<li style="display:inline; padding:0px; margin:0 10px 0 0; list-style-type: none; line-height:100%"><a href="{{item.get_absolute_url}}">{{item}}</a> ({{item.active_ads.count}})</li>
								</li>
							{% cycle '' '</p><p style="display:inline; padding-left:25px; padding-right:25px; padding-top:0px; padding-bottom:5px; margin:0px">' %}
							{% endfor %}
							</div>
							</div>
							{% endfor %}
							<div style="clear:both; padding:0px; margin:auto; text-align:center">
							</div>
	</div>
</div>
<div class="sidebar_right_media">
			<!-- Block Ad BEGIN -->
				{% load adzone_tags %} 
				{% random_zone_ad '' 'tower-wide' %}
			<!-- Block Ad END -->
</div>
<div style="padding-left:12px; padding-right:12px; padding-bottom:0px">
			<!-- AddThis Button BEGIN -->
			<script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script>
			<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=penbaypress"></script>
			<!-- AddThis Button END -->
			<p>
			{% for s in object.sites.all|dictsortreversed:"id"%}
			{% if forloop.first %}
			<a class="return" href="http://{{s}}">{{s.name}} home page</a>
			{% else %}
			<span style="margin-left:15px; margin-right:15px">&#8226;</span><a class="return" href="http://{{s}}">{{s.name}} home page</a>
			{% endif %}
			{% endfor %}
			</p>
		</div>

<!-- AddThis Smart Layers BEGIN -->
<!-- Go to http://www.addthis.com/get/smart-layers to customize -->
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=penbaypress"></script>
<script type="text/javascript">
addthis.layers({
'theme' : 'transparent',
'share' : {
'position' : 'right',
'services' : 'facebook,twitter,email,print,gmail,tumblr,more',
}   
});
</script>
<!-- AddThis Smart Layers END -->

{% endblock %}