Posted By

ryarwood on 01/30/12


Tagged

post news ExpressionEngine archives latest monthly dda


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

hamishh


EE News Post Page


 / Published in: PHP
 

  1. {embed="includes/header"}
  2.  
  3. {embed="includes/header-side"}
  4.  
  5. {embed="includes/navigation"}
  6.  
  7. <div id="standardContentHolder">
  8.  
  9. <div id="globalSidebar" class="blogNav">
  10. <h2>News</h2>
  11. <h3>Categories</h3>
  12. <ul>
  13. <li><a href="/news/">All</a></li>
  14. {exp:channel:categories show_empty="yes" channel="news" style="linear"}
  15. <li><a href="{path="news/archive"}">{category_name}</a></li>
  16. {/exp:channel:categories}
  17. </ul>
  18. <h3>Lastest Posts</h3>
  19. <ul>
  20. {exp:channel:entries channel="news" dynamic="no" limit="5" paginate="bottom"}
  21. <li><a href="{title_permalink="news/post"}">{title}</a></li>
  22. {/exp:channel:entries}
  23. </ul>
  24. <h3>Monthly Archives</h3>
  25. <ul>
  26. {exp:channel:month_links channel="news" limit="50"}
  27. <li><a href="{path="news/archive"}">{month} {year}</a></li>
  28. {/exp:channel:month_links}
  29. </ul>
  30. </div>
  31.  
  32. <div id="globalContent">
  33.  
  34. {exp:channel:entries channel="news" dynamic="yes" limit="1"}
  35.  
  36. <div class="blogPost">
  37.  
  38. {if news_video == ""}
  39. <p><img src="{news_photo}" /></p>
  40. {/if}
  41.  
  42. {if news_video != ""}
  43. <iframe width="640" height="480" src="http://www.youtube-nocookie.com/embed/{news_video}?rel=0" frameborder="0" allowfullscreen style="margin-bottom: 15px;"></iframe>
  44. {/if}
  45.  
  46. <h2>{title}</h2>
  47. <h3>{entry_date format="%m.%d.%y"}</h3>
  48.  
  49. {if blog_long_story == ""}
  50. {blog_short_story}
  51. {if:else}
  52. {blog_long_story}
  53. {/if}
  54.  
  55. <span class="rightNewsLink">
  56. {if blog_download != ""}
  57. <p><a href="{blog_download}">Download PDF</a></p>
  58. {/if}
  59. {if blog_link != ""}
  60. <p><a href="{blog_link}">Read Online</a></p>
  61. {/if}
  62. </span>
  63.  
  64. </div>
  65.  
  66. <div id="backtoFront"><a href="/news/">Back To News Main</a></div>
  67.  
  68. {/exp:channel:entries}
  69.  
  70. </div>
  71.  
  72. </div>
  73.  
  74. {embed="includes/footer"}
  75.  
  76. <script type="text/javascript" src="/includes/js-minimum.js"></script>
  77.  
  78. {embed="includes/boot"}

Report this snippet  

You need to login to post a comment.