<?php include 'views/_header.tpl.php'; ?>

<style type="text/css">
	#wrapper { background:#fff; }
	
	.spacer {
		padding-top: 55px;
	}
	.text {
		font-size: 14px; font-weight:300;
	}
	.date { font-size: 14px; font-weight:600; color:#333;}
</style>
<!-- there was a div here, not sure it was needed, kd -->
    <div class="layout-2cols" style="background:#fff;">
        <div class="content grid_12" style="background:#fff;">
            <div class="news-feed" style="padding:0 10px 10px;">
				<h1 style="font-family:'Open Sans'; font-weight:300; margin-bottom:10px;
					font-family:Montserrat,Raleway,'Open Sans',Helvetica,Verdana, sans-serif;">
            		
					<img src="/static/client/devshares_synergy_icon_black.png"
					style="height:40px; margin-top:-5px;" alt="<+>" /> SYNERGIES + MATCHES
					<a href="/news" style="color:#ddd;"><img src="/static/system/refresh_arrows.png" 
					alt="R" style="height:15px; margin-bottom:3px" /></a>
				
					<!--<a href="/members" style="float:right;"><img src='/static/system/directory_icon.png' 
					alt="Members Directory"
					align="absmiddle" style="height:35px; margin-top:-10px; margin-left:10px" /></a>-->
						
					<a href="/messages" style="float:right;"><img src='/static/system/inbox_icon.png' alt="In" 
					align="absmiddle" style="height:40px; margin-top:-15px" /></a>
            	</h1>
				<?php

				$newscount = count($news);
				foreach ($news as $index => $row) {
					$date = date('m/d/Y h:sa', $row['unix_date']);

					echo "<div class='news-row' style='height:auto; width:100%; padding:0px 0 0px 5px; 
					font-family:'Open Sans'; font-weight:300; background:#fff;'>
							<div style='float:left; display:inline-block; width:52px; height:52px; margin:0 15px 10px 0;
							overflow:hidden; border-radius:50%; -moz-border-radius: 50%; -webkit-border-radius: 50%;'>
								<a href='/profile/{$row['from_user']['user_slug']}'><img class='thumb' src='{$row['from_user']['image']}'
								style='height:50px; width:auto !important; min-width:50px; border:1px solid #ddd;' /></a>
							</div>
							<div style='float:none; background:none; width:100%; height:auto;'>							
								<div class='date'>$date</div>
								<div class='text'>{$row['text']}</div>
							</div>
					</div>";

					if ($index != ($newscount-1)) {
						echo '<hr style="background:#eee;" /><div class="clear"></div>';
					}
				}

				?>
            </div>
        </div><!--end: .content -->
        <div class="clear"></div>
        <br /><br /><br />
    </div>

<?php include 'views/_footer.tpl.php'; ?>