index.html 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454
  1. {% extends "newsroom/base.html" %}
  2. {% block flag_update_stamp %}Last updated {{edition.published_on|date:"F j, Y"}}{% endblock %}
  3. {% block topad %}
  4. <div style="display:block; padding:0px; margin: 0 auto; width:728px">
  5. {% load adzone_tags %}
  6. {% random_zone_ad '' 'top-leaderboard' %}
  7. </div>
  8. {% endblock %}
  9. {% block content %}
  10. {% load typogrify convert_tags markup %}
  11. <div style="width:100%">
  12. <div class="main_content_left">
  13. <!-- Feature BEGIN -->
  14. {% ifequal edition.featured_story.weight 99 %}
  15. <h3 class="featured_headline">
  16. <a href="{{edition.featured_story.get_absolute_url}}">{{edition.featured_story.hed}}</a>
  17. </h3>
  18. <div style="float:left; width:1px; margin-right:18px; display:table">
  19. <img src="{{edition.featured_story.lead_photo.get_lead_with_story_url}}" alt="{{edition.featured_story.lead_photo.title}}" style="border-width:0px"><br>
  20. <div class="newcutline_lead">
  21. {{edition.featured_story.lead_photo.title|typogrify|urlize|markdown|typogrify}}
  22. </div>
  23. {% if edition.featured_story.lead_photo.photographer %}
  24. <span class="photobyline_lead">Photo by {{edition.featured_story.lead_photo.photographer}}</span>
  25. {% else %}
  26. {% if edition.featured_story.lead_photo.courtesy %}
  27. <span class="photobyline_lead">Photo courtesy of {{edition.featured_story.lead_photo.courtesy}}</span>
  28. {% endif %}
  29. {% if edition.featured_story.lead_photo.file_photo %}
  30. <span class="photobyline_lead">Penobscot Bay Press file photo</span>
  31. {% endif %}
  32. {% endif %}
  33. </div>
  34. <div class="featuredleadbody">
  35. <div class="teaser_float">{{edition.featured_story.dateline}} &mdash; </div>{{edition.featured_story.summary|typogrify|urlize|markdown|truncatewords:110}}
  36. <div style="margin-top:-15px; padding-top:0px; text-align:left"><a href="{{edition.featured_story.get_absolute_url}}" class="return">Read full story</a></div>
  37. </div>
  38. {% else %}
  39. <div>
  40. <div style="float:left; margin-right:18px; margin-top:8px">
  41. <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 %}{% if edition.featured_photo.gallery_photos.all %}{% for s in edition.featured_photo.gallery_photos.all %}{% if forloop.first %}{{s.get_absolute_url}}{% endif %}{% endfor %}{% else %}{{edition.featured_photo.get_absolute_url}}{% endif %}{% endif %}">
  42. <img src="{{edition.featured_photo.get_lead_no_story_url}}" alt="{{edition.featured_photo.title}}" style="border-width:0px">
  43. </a>
  44. </div>
  45. <div style="float:left; display:block; margin-top:75px; width:180px">
  46. <div class="newcutline_head">
  47. <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 %}{% if edition.featured_photo.gallery_photos.all %}{% for s in edition.featured_photo.gallery_photos.all %}{% if forloop.first %}{{s.get_absolute_url}}{% endif %}{% endfor %}{% else %}{{edition.featured_photo.get_absolute_url}}{% endif %}{% endif %}">
  48. {% if edition.featured_photo.gallery_photos.all %}
  49. {% for s in edition.featured_photo.gallery_photos.all %}
  50. {% if forloop.first %}
  51. {{s.title}}
  52. {% endif %}
  53. {% endfor %}
  54. {% else %}
  55. {{edition.featured_photo.title|typogrify}}
  56. {% endif %}
  57. </a>
  58. </div>
  59. <div class="newcutline">
  60. {% if edition.featured_photo.gallery_photos.all %}
  61. {% for s in edition.featured_photo.gallery_photos.all %}
  62. {% if forloop.first %}
  63. {{s.description|typogrify|urlize|markdown|truncatewords:30}}
  64. {% endif %}
  65. {% endfor %}
  66. {% else %}
  67. {{edition.featured_photo.description|typogrify|urlize|markdown|truncatewords:30}}
  68. {% endif %}
  69. </div>
  70. {% if edition.featured_photo.photographer %}
  71. <span class="photobyline">Photo by {{edition.featured_photo.photographer}}</span>
  72. {% else %}
  73. {% if edition.featured_photo.courtesy %}
  74. <span class="photobyline">Photo courtesy of {{edition.featured_photo.courtesy}}</span>
  75. {% endif %}
  76. {% if edition.featured_photo.file_photo %}
  77. <span class="photobyline">Penobscot Bay Press file photo</span>
  78. {% endif %}
  79. {% endif %}
  80. </div>
  81. <div style="clear:both"></div>
  82. </div>
  83. {% endifequal %}
  84. <!-- Feature END -->
  85. </div>
  86. <div class="sidebar_right">
  87. <!-- APP Teaser BEGIN -->
  88. <div style="padding:2px; text-align:center; margin:0px 0px 10px 0px">
  89. <a href="https://penobscotbaypress.com/apps/" class="app_teaser_link">
  90. <div class="app_teaser_button" style="background-size:244px">
  91. Get our apps
  92. </div>
  93. </a>
  94. </div>
  95. <!-- APP Teaser END -->
  96. <!-- Webcams BEGIN -->
  97. <div style="clear:both; margin-top:-10px; padding-top:0px">
  98. <p class="home_teaser" style="margin:0px; text-align:center">View our Webcams</p>
  99. {% for cam in webcams %}
  100. {% if forloop.first %}
  101. <div style="float:left; width:120px; padding:0px 10px 0px 4px; margin:0">
  102. {% else %}
  103. <div style="float:left; width:120px; padding:0; margin:0">
  104. {% endif %}
  105. <span class="webcamteaser" style="width:120px; text-align:center"><a href="{{cam.get_absolute_url}}">{{cam.title}}</a></span>
  106. <a href="{{cam.get_absolute_url}}">
  107. <img src="{{cam.thumb_file}}" alt="{{cam}}" width="120" style="border-width:0px">
  108. </a>
  109. </div>
  110. {% endfor %}
  111. </div>
  112. <!-- Webcams END -->
  113. <!-- Smugmug Teaser BEGIN -->
  114. <div style="padding:2px; text-align:center; margin:0px 0px 10px 0px; clear:left">
  115. <p class="home_teaser" style="margin:5px 0 0 0"><a href="http://penobscotbaypress.smugmug.com/">Order Photos</a></p>
  116. <div class="newcutline">Print your favorite newspaper photos on a mug, a t-shirt, or even poster size.</div>
  117. <a href="http://penobscotbaypress.smugmug.com/" class="head_link"><img src="https://penobscotbaypress.com/media/images/headers/2013/smugmug_teaser_img_2014_grey.jpg"></a>
  118. </div>
  119. <!-- Smugmug Teaser END -->
  120. </div>
  121. </div>
  122. <div style="width:100%">
  123. <div class="sidebar_right_media">
  124. <!-- Block Ad BEGIN -->
  125. <div style="clear:both; padding:1px; width:250px; margin: 0 auto">
  126. {% load adzone_tags %}
  127. {% random_zone_ad '' 'cn-block' %}
  128. </div>
  129. <!-- Block Ad END -->
  130. <!-- Local Headlines BEGIN -->
  131. {% if latest_other_editions %}
  132. <p style="display:block; width:260px" class="sectionheader_blue">LOCAL HEADLINES</p>
  133. {% for edition in latest_other_editions %}
  134. {% if edition.published %}
  135. <p style="text-align:left"><span class="paper">{{edition.featured_story.dateline}}</span>, <span class="paper"><em>{{edition.paper}}</em>, {{edition.published_on|date:"M j, Y"}}</span><br>
  136. <span class="smaller_headline"><a href="http://{{edition.site.domain}}/{{edition.featured_story.get_relative_url}}">{{edition.featured_story.web_hed|typogrify}}</a></span>
  137. </p>
  138. {% endif %}
  139. {% endfor %}
  140. {% endif %}
  141. <!-- Local Headlines END -->
  142. </div>
  143. <div class="main_content_left">
  144. <!-- Editions BEGIN -->
  145. {% for edition in latest_editions %}
  146. <div style="clear:both; margin-top:16px">
  147. <h2 class="datehead_new">{{edition.published_on|date:"l, F j, Y"}}</h2>
  148. </div>
  149. {% if forloop.first %}
  150. <!-- Stories BEGIN -->
  151. {% load markup typogrify humanize %}
  152. {% if edition.stories.published %}
  153. {% for story in edition.stories.published|dictsortreversed:"weight" %}
  154. <!-- Breaking News BEGIN -->
  155. {% ifequal story.weight 100 %}
  156. <p style="text-align:left; margin-bottom: -10px">
  157. <span class="reddata">BREAKING NEWS</span><br>
  158. {% if story.kicker %}
  159. <span class="kicker">{{story.kicker|typogrify}}</span><br>
  160. {% endif %}
  161. <span class="headline"><a href="{{story.get_absolute_url}}">{{story.web_hed|typogrify}}</a></span><br>
  162. {% if story.subhed %}
  163. <span class="kicker">{{story.subhed|typogrify}}</span>
  164. </p>
  165. {% endif %}
  166. <div class="featuredleadbody">
  167. <div class="teaser_float">
  168. {{story.dateline}} &mdash;
  169. </div>
  170. {{story.summary|typogrify|truncatewords:30}}
  171. </div>
  172. <div style="margin-top:-15px; padding-top:0px; text-align:left">
  173. <a href="{{story.get_absolute_url}}" class="return">Read full story</a>
  174. </div>
  175. <!-- Breaking News END -->
  176. {% else %}
  177. <!-- Featured Story BEGIN -->
  178. {% if story == edition.featured_story %}
  179. {% ifnotequal story.weight 99 %}
  180. <p style="text-align:left; margin-bottom: -10px">
  181. {% if story.kicker %}
  182. <span class="kicker">{{story.kicker|typogrify}}</span><br>
  183. {% endif %}
  184. <span class="headline"><a href="{{story.get_absolute_url}}">{{story.web_hed|typogrify}}</a><br></span>
  185. {% if story.subhed %}
  186. <span class="kicker">{{story.subhed|typogrify}}</span>
  187. {% endif %}
  188. </p>
  189. <div class="featuredleadbody">
  190. <div class="teaser_float">
  191. {{story.dateline}} &mdash; </div>{{story.summary|typogrify|truncatewords:30}}
  192. </div>
  193. <div style="margin-top:-15px; padding-top:0px; text-align:left">
  194. <a href="{{story.get_absolute_url}}" class="return">Read full story</a>
  195. </div>
  196. {% endifnotequal %}
  197. <!-- Featured Story END -->
  198. {% else %}
  199. <p style="text-align:left">
  200. <span class="dateline">{{story.dateline}}</span><br>
  201. <span class="small_headline"><a href="{{story.get_absolute_url}}">{{story.web_hed|typogrify}}</a></span>
  202. </p>
  203. {% endif %}
  204. {% endifequal %}
  205. {% endfor %}
  206. {% endif %}
  207. <!-- Stories END -->
  208. <!-- Extras BEGIN -->
  209. {% if edition.pdfdocuments.all %}
  210. {% for doc in edition.pdfdocuments.all %}
  211. <p style="text-align:left"><span class="teaser-alt">PDF Document</span><br>
  212. <span class="small_headline"><a href="{{doc.get_absolute_url}}">{{doc.title|typogrify}}</a></span>
  213. </p>
  214. {% endfor %}
  215. {% endif %}
  216. {% if edition.movies.all %}
  217. {% for movie in edition.movies.all|dictsortreversed:"weight" %}
  218. <p style="text-align:left"><span class="teaser-alt">MOVIE</span><br>
  219. <span class="small_headline"><a href="{{movie.get_absolute_url}}">{{movie.title|typogrify}}</a></span>
  220. </p>
  221. {% endfor %}
  222. {% endif %}
  223. {% if edition.slideshows.all %}
  224. {% for slideshow in edition.slideshows.all %}
  225. <p style="text-align:left"><span class="teaser-alt">SLIDESHOW</span><br>
  226. <span class="small_headline"><a href="{{slideshow.get_absolute_url}}">{{slideshow.title|typogrify}}</a></span>
  227. </p>
  228. {% endfor %}
  229. {% endif %}
  230. <!-- Extras END -->
  231. <!-- Photos and Galleries BEGIN -->
  232. <div style="margin-top:30px">
  233. {% if edition.photos.published %}
  234. {% for photo in edition.photos.published %}
  235. <div style="float:left; width:220px; margin-right:7px; margin-top:10px; height:200px">
  236. <a href="{{photo.get_absolute_url}}">
  237. <div class="newcutline">
  238. <p>
  239. <img src="{{photo.get_index_photo_thumb_url}}" alt="{{photo.title}}" style="border-width:0px"><br>
  240. {{photo.title|typogrify}}
  241. </p>
  242. </div>
  243. </a>
  244. </div>
  245. {% endfor %}
  246. {% endif %}
  247. {% if edition.galleries.published %}
  248. {% for gallery in edition.galleries.published %}
  249. <div style="float:left; width:220px; margin-right:7px; margin-top:10px; height:200px">
  250. {% for photo in gallery.photos.all|dictsortreversed:"weight" %}
  251. {% if forloop.first %}
  252. <div class="newcutline">
  253. <p>
  254. <a href="{{gallery.get_absolute_url}}"><img src="{{photo.get_index_photo_thumb_url}}" alt="{{photo.title}}" style="border-width:0px"><br>
  255. GALLERY &mdash; {{gallery.title|typogrify}}</a>
  256. </p>
  257. </div>
  258. {% endif %}
  259. {% endfor %}
  260. </div>
  261. {% endfor %}
  262. {% endif %}
  263. <div style="clear:both"></div>
  264. </div>
  265. <!-- Photos and Galleries END -->
  266. <div style="clear:left; padding:0px; margin: 0 auto">
  267. {% load adzone_tags %}
  268. {% random_zone_ad '' 'home-leaderboard' %}
  269. </div>
  270. {% else %}
  271. <!-- Stories BEGIN -->
  272. {% load markup typogrify humanize %}
  273. {% if edition.stories.published %}
  274. {% if edition.featured_photo.published %}
  275. <div style="float:right; width:220px; margin-right:7px; margin-top:10px; margin-left:5px; height:200px">
  276. <a href="{{edition.featured_photo.get_absolute_url}}">
  277. <div class="newcutline">
  278. <p>
  279. <img src="{{edition.featured_photo.get_index_photo_thumb_url}}" alt="{{edition.featured_photo.title}}" style="border-width:0px"><br>
  280. {{edition.featured_photo.title|typogrify}}
  281. </p>
  282. </div>
  283. </a>
  284. </div>
  285. {% endif %}
  286. {% for story in edition.stories.published|dictsortreversed:"weight" %}
  287. <!-- Breaking News BEGIN -->
  288. {% ifequal story.weight 100 %}
  289. <p style="text-align:left; margin-bottom: -10px">
  290. <span class="reddata">BREAKING NEWS</span><br>
  291. {% if story.kicker %}
  292. <span class="kicker">{{story.kicker|typogrify}}</span><br>
  293. {% endif %}
  294. <span class="headline"><a href="{{story.get_absolute_url}}">{{story.web_hed|typogrify}}</a></span><br>
  295. {% if story.subhed %}
  296. <span class="kicker">{{story.subhed|typogrify}}</span>
  297. </p>
  298. {% endif %}
  299. <div class="featuredleadbody">
  300. <div class="teaser_float">
  301. {{story.dateline}} &mdash;
  302. </div>
  303. {{story.summary|typogrify|truncatewords:30}}
  304. </div>
  305. <div style="margin-top:-15px; padding-top:0px; text-align:left">
  306. <a href="{{story.get_absolute_url}}" class="return">Read full story</a>
  307. </div>
  308. <!-- Breaking News END -->
  309. {% else %}
  310. <!-- Featured Story BEGIN -->
  311. {% if story == edition.featured_story %}
  312. <p style="text-align:left; margin-bottom: -10px">
  313. {% if story.kicker %}
  314. <span class="kicker">{{story.kicker|typogrify}}</span><br>
  315. {% endif %}
  316. <span class="headline"><a href="{{story.get_absolute_url}}">{{story.web_hed|typogrify}}</a><br></span>
  317. {% if story.subhed %}
  318. <span class="kicker">{{story.subhed|typogrify}}</span>
  319. {% endif %}
  320. </p>
  321. <div class="featuredleadbody">
  322. <div class="teaser_float">
  323. {{story.dateline}} &mdash; </div>{{story.summary|typogrify|truncatewords:30}}
  324. </div>
  325. <div style="margin-top:-15px; padding-top:0px; text-align:left">
  326. <a href="{{story.get_absolute_url}}" class="return">Read full story</a>
  327. </div>
  328. <!-- Featured Story END -->
  329. {% else %}
  330. <p style="text-align:left">
  331. <span class="dateline">{{story.dateline}}</span><br>
  332. <span class="small_headline"><a href="{{story.get_absolute_url}}">{{story.web_hed|typogrify}}</a></span>
  333. </p>
  334. {% endif %}
  335. {% endifequal %}
  336. {% endfor %}
  337. {% endif %}
  338. <!-- Stories END -->
  339. <!-- Extras BEGIN -->
  340. {% if edition.pdfdocuments.all %}
  341. {% for doc in edition.pdfdocuments.all %}
  342. <p style="text-align:left"><span class="teaser-alt">PDF Document</span><br>
  343. <span class="small_headline"><a href="{{doc.get_absolute_url}}">{{doc.title|typogrify}}</a></span>
  344. </p>
  345. {% endfor %}
  346. {% endif %}
  347. {% if edition.movies.all %}
  348. {% for movie in edition.movies.all|dictsortreversed:"weight" %}
  349. <p style="text-align:left"><span class="teaser-alt">MOVIE</span><br>
  350. <span class="small_headline"><a href="{{movie.get_absolute_url}}">{{movie.title|typogrify}}</a></span>
  351. </p>
  352. {% endfor %}
  353. {% endif %}
  354. {% if edition.slideshows.all %}
  355. {% for slideshow in edition.slideshows.all %}
  356. <p style="text-align:left"><span class="teaser-alt">SLIDESHOW</span><br>
  357. <span class="small_headline"><a href="{{slideshow.get_absolute_url}}">{{slideshow.title|typogrify}}</a></span>
  358. </p>
  359. {% endfor %}
  360. {% endif %}
  361. <!-- Extras END -->
  362. <!-- Photos and Galleries BEGIN -->
  363. <div style="margin-top:30px">
  364. {% if edition.photos.published %}
  365. {% for photo in edition.photos.published %}
  366. <div style="float:left; width:220px; margin-right:7px; margin-top:10px; height:200px">
  367. <a href="{{photo.get_absolute_url}}">
  368. <div class="newcutline">
  369. <p>
  370. <img src="{{photo.get_index_photo_thumb_url}}" alt="{{photo.title}}" style="border-width:0px"><br>
  371. {{photo.title|typogrify}}
  372. </p>
  373. </div>
  374. </a>
  375. </div>
  376. {% endfor %}
  377. {% endif %}
  378. {% if edition.galleries.published %}
  379. {% for gallery in edition.galleries.published %}
  380. <div style="float:left; width:220px; margin-right:7px; margin-top:10px; height:200px">
  381. {% for photo in gallery.photos.all|dictsortreversed:"weight" %}
  382. {% if forloop.first %}
  383. <div class="newcutline">
  384. <p>
  385. <a href="{{gallery.get_absolute_url}}"><img src="{{photo.get_index_photo_thumb_url}}" alt="{{photo.title}}" style="border-width:0px"><br>
  386. GALLERY &mdash; {{gallery.title|typogrify}}</a>
  387. </p>
  388. </div>
  389. {% endif %}
  390. {% endfor %}
  391. </div>
  392. {% endfor %}
  393. {% endif %}
  394. <div style="clear:both"></div>
  395. </div>
  396. <!-- Photos and Galleries END -->
  397. {% endif %}
  398. {% endfor %}
  399. <!-- Editions END -->
  400. </div>
  401. </div>
  402. <!-- AddThis Smart Layers BEGIN -->
  403. <!-- Go to http://www.addthis.com/get/smart-layers to customize -->
  404. <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=penbaypress#async=1"></script>
  405. <script type="text/javascript">
  406. addthis.layers({
  407. 'theme' : 'transparent',
  408. 'share' : {
  409. 'position' : 'right',
  410. 'services' : 'facebook,twitter,email,print,gmail,tumblr,more',
  411. },
  412. 'follow' : {
  413. 'services' : [
  414. {'service': 'facebook', 'id': 'penobscotbaypress'},
  415. {'service': 'youtube', 'id': 'penobscotbaypress'},
  416. {'service': 'rss', 'id': 'http://https://penobscotbaypress.com/news/feed.xml'}
  417. ]
  418. }
  419. });
  420. </script>
  421. <!-- AddThis Smart Layers END -->
  422. {% endblock %}