{% extends "base.html" %}

{% block og_title %}{{object.title}} | Penobscot Bay Press{% endblock %}
{% block og_url %}{{object.get_absolute_url}}{% endblock %}
{% block og_description %}{{object.description}}{% endblock %}
{% block og_image %}{{MEDIA_URL}}{{object.preview}}{% endblock %}

{% block meta_title %}{{object.title}} | Penobscot Bay Press{% endblock %}
{% block meta_keywords %}{% for tag in object.tags.all %}{{tag}}, {%endfor %}{% endblock %}
{% block meta_description %}{{object.description}}{% endblock %}
{% block rel-img %}{{MEDIA_URL}}{{object.preview}}{% endblock %}

{% block title %}{{object.title}} | Penobscot Bay Press{% endblock %}

{% block content %}
<div style="width:100%; margin:0; padding:0">
	<div class="main_content_left">
		<div style="padding-left:12px; padding-right:12px; padding-top:12px">
			<h2 class="sectionhead_wide">PDF Document</h2>
			<p><span class="headline">{{object}}</span></p>
			{% load convert_tags %}
		</div>
		<div style="padding-left:12px; width:756px">
			<div style="float:left; clear:both">
				<a href="{{object.pdfdocument.file.url}}" target="_blank" alt="PDF download of {{object}}">{% thumbnail object.preview.url "313" %}</a>
			</div>
			<div style="float:left; padding-top:150px; padding-left:25px; width:250px">
				{% load markup typogrify humanize  %}
				<div class="newcutline">{{object.description|typogrify|markdown}}</div>
				{{object.archivesection_set.all}}
				{% for s in object.pdfdocument.archivesection_set.all %}
				<a href="{{s.get_absolute_url}}" class="return" alt="{{s}}">Return to the related archive.</a><br>
				{% endfor %}
				<h5>This document is in Adobe PDF format. Click the image to view the file. It should open in a new window in your browser. If you have troubles opening the file, you may need to install Adobe Reader on your computer.<br>
				<a href="http://get.adobe.com/reader/">Click here to get Adobe Reader®.</a>
				</h5>
			</div>
			<div style="clear:both"></div>
		</div>
	</div>


<div class="sidebar_right_media">
<!-- Google AdSense BEGIN -->
<div style="clear:both; text-align:center">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Square ad for right of pages -->
<ins class="adsbygoogle"
style="display:inline-block;width:250px;height:250px"
data-ad-client="ca-pub-7616595738812584"
data-ad-slot="7790117357"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
<!-- Google AdSense END -->
<!-- Google AdSense BEGIN -->
<div style="clear:both; text-align:center">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Square ad for right of pages -->
<ins class="adsbygoogle"
style="display:inline-block;width:250px;height:250px"
data-ad-client="ca-pub-7616595738812584"
data-ad-slot="7790117357"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
<!-- Google AdSense END -->
</div>
</div>
<div style="padding-left:12px; padding-right:12px; padding-bottom:0px">
<!-- AddThis Button BEGIN -->
<div>
<a class="addthis_button_facebook_like" fb:like:layout="standard"></a>
</div>
<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 -->
</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',
}, 
'follow' : {
'services' : [
{'service': 'facebook', 'id': 'penobscotbaypress'},
{'service': 'youtube', 'id': 'penobscotbaypress'},
{'service': 'rss', 'id': 'http://https://penobscotbaypress.com/news/feed.xml'}
]
}   
});
</script>
<!-- AddThis Smart Layers END -->

{% endblock %}
