<div class="" style="width:100%; padding-top:0px; background:#fff; -webkit-box-sizing: border-box;
-moz-box-sizing: border-box; box-sizing: border-box;">

	<?php
	foreach ($referralclicks as $referral) {
		if ($referral['is_mem'] == 1) {
			$is_member = "<img src='/static/system/green_checkmark_mini.png' style='height:20px;'>";	
		} else {
			$is_member = "None yet";
		}
		
		if (!empty($referral['date_created'])) {
			$mem_date = date('h:ma \o\n m/d/y',strtotime('-5 hours', strtotime($referral['date_created'])));	
		} else {
			$mem_date = "";
		}
			
			echo "<div style='height:auto; width:auto; padding:10px; border-bottom:1px solid #eee; color:#ccc;
		font-family:Montserrat,Raleway,Verdana,Helvetica,sans-serif; min-height:23px; line-height:23px;'>
		<span style='font-weight:300; color:#222;'>{$mem_date}</span> &bull; IP ADDRESS: 
		<span style='font-weight:500; color:#222;'>{$referral['ip_address']}</span><br />
		REFERRER: <span style='font-weight:500; color:#222;'>{$referral['httpreferrer']}</span><br />
				<span style='color:#ccc'>AGENT: {$referral['agent']}</span>
				<div class='clear'></div>
				</div>";
	}
	?>
	<br />
	<div style="color:#aaa; font-weight:400; padding:15px; font-family:Montserrat,Raleway,Verdana,Helvetica,sans-serif;">
		Note: This data includes repeat clicks/visits and is from sayabcs.com - Referral 
		Clicks from the Say ABCs Mobile Apps coming soon.
	</div>
</div>