gallery_detail_OLD.html 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. {% extends "base.html" %}
  2. {% block og_title %}{{object.title}}{% endblock %}
  3. {% block og_type %}Article{% endblock %}
  4. {% block og_url %}{{object.get_absolute_url}}{% endblock %}
  5. {% block og_description %}{% if object.description %}{{object.description}}{% else %}{{object.title}}{% endif %}{% endblock %}
  6. {% block og_image %}{% for photo in object.photos.all %}{% if forloop.first %}{{photo.get_square_url}}{% endif %}{% endfor %}{% endblock %}
  7. {% block title %}{{object.title}}{% endblock %}
  8. {% block rel-img %}{% for photo in object.photos.all %}{% if forloop.first %}{{photo.get_square_url}}{% endif %}{% endfor %}{% endblock %}
  9. {% block description %}{{object.description}}{% endblock %}
  10. {% block content %}
  11. <td align="center" valign="top" bgcolor="white" width="565" colspan="2">
  12. <table width="444" border="0" cellspacing="8" cellpadding="0">
  13. <td colspan="2" valign="top" bgcolor="white" width="565">
  14. <div style="padding-left:12px; padding-right:12px; padding-top:12px; background:white; ">
  15. <h2 class="sectionhead">Photo Gallery</h2>
  16. <p><span class="headline">
  17. {{object.title}}</span>
  18. </p>
  19. {% if object.description %}
  20. {% load markup typogrify humanize %}
  21. <p>{{object.description|urlize|markdown|typogrify}}</p>
  22. {% endif %}
  23. </div>
  24. <div style="padding-left:12px; padding-right:12px">
  25. {% for photo in object.photos.all %}
  26. {% if photo.story_set.all %}
  27. <p class="relatedstory">
  28. {% for s in photo.story_set.all %}
  29. <a href="{{s.get_absolute_url}}" alt="{{s}}">Read the related story.</a><br />
  30. {% endfor %}
  31. </p>
  32. {% endif %}
  33. <span class="photocutline">
  34. <img id="photo-{{photo.id}}" src="{{photo.get_detail_url}}" alt="{{photo.title}}" border="0"><br>
  35. {% load markup typogrify humanize %}
  36. {{photo.description|urlize|markdown|typogrify}}
  37. {% if photo.photographer %}
  38. <span class="photobyline">Photo by {{photo.photographer}}</span>
  39. {% endif %}
  40. {% if photo.courtesy %}
  41. <span class="photobyline">Photo courtesy {{photo.courtesy}}</span>
  42. {% endif %}
  43. {% if photo.file_photo %}
  44. <span class="photobyline">Penobscot Bay Press file photo</span>
  45. {% endif %}
  46. </span>
  47. {% endfor %}
  48. </div>
  49. <div style="padding-left:12px; padding-right:12px">
  50. <hr size="1">
  51. <p><span class="kicker"><strong>Share this page</strong></span>
  52. <!-- AddThis Button BEGIN -->
  53. <div style="text-align:left; clear:both"><hr size="1">
  54. <p><span class="kicker"><strong>Share this page</strong></span>
  55. <div>
  56. <a class="addthis_button_facebook_like" fb:like:layout="standard"></a>
  57. </div><br>
  58. <div class="addthis_toolbox addthis_default_style addthis_32x32_style">
  59. <a class="addthis_button_twitter" tw:count="none"></a> &nbsp;
  60. <a class="addthis_button_email"></a> &nbsp;
  61. <a class="addthis_button_print"></a> &nbsp;
  62. <a class="addthis_button_pinterest_share" style="cursor:pointer"></a> &nbsp;
  63. <a class="addthis_button_reddit"></a> &nbsp;
  64. <a class="addthis_button_gmail"></a> &nbsp;
  65. <a class="addthis_button_tumblr"></a> &nbsp;
  66. <a class="addthis_button_compact"></a>
  67. </div>
  68. <script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script>
  69. <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=penbaypress"></script>
  70. <hr size="1"></div>
  71. <!-- AddThis Button END -->
  72. <p><a class="return" href="{% url nr-index %}">Return to the {% for s in object.sites.all|dictsortreversed:"id" %}{% if forloop.first %}{{s.name}} home page{% endif %}{% endfor %}</a></p>
  73. <p><a class="return" href="http://penobscotbaypress.com">Return to the Penobscot Bay Press home page.</a></p>
  74. <hr size="1">
  75. </div>
  76. </td>
  77. </table>
  78. </td>
  79. {% endblock %}