index.html 17 KB

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