{!--
Page:          secure/newsletters
Created:       Jul 19 2007
Last Modified: Aug 24 2007
=============================
ryan masuga, masugadesign.com
ryan@masugadesign.com 
============================= --}
{assign_variable:page_title="Hydro Physics, Inc."}
{assign_variable:body_id="home"}
{assign_variable:body_class="sidebar"}

{embed="common/pagetop" page_title="{page_title}"}
{embed="common/javascript" add="common"}
{embed="common/styles"}
</head>

{embed="common/header" body_id="{body_id}" body_class="{body_class}"}


{embed="secure/news-side"}

<div id="content">	
<h1>Welcome To Our Secure Area</h1>



{embed="secure/securenav" section="newsletters"}

<?php
global $LOC;
$current_time = $LOC->decode_date('%Y', $LOC->now);
?>



{exp:weblog:entries weblog="newsletters" disable="trackbacks|pagination|member_data|categories" dynamic="off" orderby="entry_date" sort="desc" year="{if segment_3 == ""}<?php echo $current_time; ?>{/if}{if segment_3 != ""}{segment_3}{/if}" {if segment_4 != ""}url_title="{segment_4}"{/if}}

{if count == 1} 
<h2>{if segment_3 == ""}<?php echo $current_time; ?>{/if}{if segment_3 != ""}{segment_3}{/if} Newsletter{if "{segment_4}" == ""}s ({total_results}){if:else} - {title}{/if}</h2>
<hr />

{/if}


<div class="newsletter">
<strong>{title}</strong> - {entry_date format="%F %Y"}<br />
{if newsletter_thumb}<img src="/img/phpThumb.php?src=/upload/pdf/newsletters/{exp:extract_url_plus show="fullfilename"}{newsletter_thumb}{/exp:extract_url_plus}&amp;w=80&amp;q=95" class="thumb">{/if}
{if newsletter_description}{newsletter_description}<br />{/if}
{if newsletter_pdf}
{exp:filesizer filename="{newsletter_pdf}" upload_pref="2" decimals="2" show_extension="yes"} 
	<div class="newsletter-download"><a href="{exp:download_lock:link entry_id="{entry_id}"}" class="pdf">Download</a>

	&nbsp;({fs:file_size}{fs:size_unit} {fs:file_extension})
	{/exp:filesizer} 
	

<span class="pr-footnote">Downloads: {exp:download_lock:solo_stats entry_id="{entry_id}"}</span></div>{/if}
</div>
{/exp:weblog:entries}


</div> {!-- close content --}
{embed="common/footer"}