{% extends "newsroom/base.html" %}
{% block flag_update_stamp %}Last updated {{edition.published_on|date:"F j, Y"}}{% endblock %}

{% block content %}
<td align="center" valign="top" bgcolor="white" width="565">

<div style="width:444px; padding:8px" align="left">
	<div style="width:300px; float:left">
    	{% if edition.featured_photo %}
    		<h4 style="margin-top:0; text-align:left">
    		<a href="{% if edition.featured_photo.story_set.all %}{% for s in edition.featured_photo.story_set.all %}{% if forloop.first %}{{s.get_absolute_url}}{%endif%}{%endfor%}{%else%}{{edition.featured_photo.get_absolute_url}}{%endif%}">
    		<img src="{{edition.featured_photo.get_large_square_url}}" alt="{{edition.featured_photo.title}}" border=0/></a>
    		<br>
    		{% load typogrify %}
    		<a href="{% if edition.featured_photo.story_set.all %}{% for s in edition.featured_photo.story_set.all %}{% if forloop.first %}{{s.get_absolute_url}}{%endif%}{%endfor%}{%else%}{{edition.featured_photo.get_absolute_url}}{%endif%}">{{edition.featured_photo.title|typogrify }}...</a>
      		{% if edition.featured_photo.photographer%}<br>Photo by {{edition.featured_photo.photographer }}{% endif %}
      		{% if edition.featured_photo.courtesy %}<br>Photo courtesy of {{edition.featured_photo.courtesy }}{% endif %}
    		</h4>
    	{% else %}
    		<p style="text-align:left">Sorry, we are experiencing technical difficulties. Please check back soon.</p>
    	{% endif %}
	</div>
	<div style="with:160px; float:right">
	  	<p style="margin-top:0;" >
	  	<!-- AddThis Follow BEGIN -->
Follow us
<div class="addthis_toolbox addthis_32x32_style addthis_default_style">
<a class="addthis_button_facebook_follow" addthis:userid="penobscotbaypress"></a>
<a class="addthis_button_youtube_follow" addthis:userid="penobscotbaypress"></a>
<a class="addthis_button_rss_follow" addthis:userid="https://penobscotbaypress.com/news/feed.xml"></a>
</div>
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=xa-5107e6726693e514"></script>
<!-- AddThis Follow END -->
</p>
    	{% load adzone_tags %}
    	<p>{% random_zone_ad '' 'house-cp-index' %}</p>
	</div>
</div>
<div style="width:444px; padding:8px; clear:both" align="left">
<img src="{{MEDIA_URL}}images/headers/newsfeatures428.gif" alt="News Features" width="428" height="32" border="0" align="left"><br><br>
{% for edition in latest_editions %}
    <h2 class="datehead">{{edition.published_on|date:"l, F j, Y"}}</h2>
    {% load markup typogrify humanize  %}
    {% if edition.stories.published %}  
    {% for story in edition.stories.published|dictsortreversed:"weight" %}
	{% ifequal story.weight 100 %}
	<p style="text-align:left"><span class="reddata">BREAKING NEWS</span><br>
	<span class="teaser">{{story.dateline}}</span><br>
	{% if story.kicker %}<span class="kicker">{{story.kicker|typogrify}}</span><br />{% endif %}
    <span class="headline"><a href="{{story.get_absolute_url}}">{{story.web_hed|typogrify}}</a></span>
    </p>
	{% else %}
	<p style="text-align:left"><span class="teaser">{{story.dateline}}</span><br>
	   {% if story.kicker %}<span class="kicker">{{story.kicker|typogrify}}</span><br />{% endif %}
         <span class="headline"><a href="{{story.get_absolute_url}}">{{story.web_hed|typogrify}}</a></span>
      </p>
	{% endifequal %}
    {% endfor %}	
    {% else %}
    <p style="text-align:left">Sorry, we are experiencing technical difficulties. Please check back soon.</p>
    {% endif %}
 
    {% if edition.movies.all %}  
    {% for movie in edition.movies.all %}
	<p style="text-align:left"><span class="teaser-alt">Movie</span><br>
         <span class="headline"><a href="{{movie.get_absolute_url}}">{{movie.title|typogrify}}</a></span>
      </p>
    {% endfor %}	
    {% endif %}

    {% if edition.slideshows.all %}  
    {% for slideshow in edition.slideshows.all %}
	<p style="text-align:left"><span class="teaser-alt">Slideshow</span><br>
         <span class="headline"><a href="{{slideshow.get_absolute_url}}">{{slideshow.title|typogrify}}</a></span>
      </p>
    {% endfor %}	
    {% endif %}

 	{% if edition.pdfdocuments.all %}
    {% for doc in edition.pdfdocuments.all %}
	<p style="text-align:left"><span class="teaser-alt">PDF Document</span><br>
         <span class="headline"><a href="{{doc.get_absolute_url}}">{{doc.title|typogrify}}</a></span>
      </p>
    {% endfor %}
    {% endif %}

    {% if edition.galleries.published %}  
    {% for gallery in edition.galleries.published %}
	<p style="text-align:left"><span class="teaser-alt">Gallery</span><br>
         <span class="headline"><a href="{{gallery.get_absolute_url}}">{{gallery.title|typogrify}}</a></span>
      </p>
    {% endfor %}	
    {% endif %}

    {% if edition.photos.published %}
    {% for photo in edition.photos.published %}
		<p style="text-align:left"><span class="teaser-alt">Photo</span><br>
	   {% if photo.kicker %}<span class="kicker">{{photo.kicker|typogrify}}</span><br />{% endif %}
         <span class="headline"><a href="{{photo.get_absolute_url}}">{{photo.title|typogrify}}</a></span>
      </p>
    {% endfor %}
    {% endif %}
{% endfor %}
</div>
{% endblock %}

{% block ads %}
<td valign="top" bgcolor="white" width="120">
  <table width="64" border="0" cellspacing="0">
  {% load adzone_tags %}
  {% random_zone_ad_block '' 'index' 4 %}
    <tr height="107">
      <td height="107">
  		{% random_zone_ad '' 'house-index' %}
      </td>
    </tr>
  </table>
{% endblock %}




