<div class="row">
	<div class="col-md-12">
		<div class="content-header">
    		<div class="header-section">
        		<h1><i class="fa fa-hourglass-1"></i> <strong>Activities</strong><br><small>Public Relations Department | <?php echo SITE_NAME; echo ' &copy; ';echo  date("Y"); ?></small></h1>
    		</div>
		</div>
		
		<div class="block">
			<div class="block-title">
				<h3>Activities logged at <?php echo SITE_NAME; ?></h3>
			</div>
			
				<div class="widget">
			<div class="widget-extra">
			<div class="timeline">
				<ul class="timeline-list">
        		<?php
            		$pics = 'success,danger,info,primary,muted, warning'; //Take the contents from the file to the variable
            		$pictures = explode(',',$pics); //Split it by ','
					$activities = ICSActs::getAllact();
					if($activities) {
						foreach($activities as $act) {
							$themebg = $pictures[array_rand($pictures)];
							?>
							<li class="active"> 
								<div class="timeline-icon themed-background-<?php echo $themebg; ?> themed-border-<?php echo $themebg; ?>">
									<i class="fa fa-clock-o"></i></div>
										<div class="timeline-time">
											<strong>
												<a href="<?php echo url('/profile/view/'.$act->by);?>">
													<?php echo $act->by;?>
												</a>
											</strong>
										</div>
										<div class="timeline-content">
											<p class="push-bit"><?php echo stripslashes($act->name); ?></p>
											<span class="text-muted">
												<small><?php echo ICSActs::humanTiming(strtotime($act->date)); ?> ago</small>
											</span>
										</div> 
							</li>
							<?php 
						}
					}
				?>
        		</ul>
			</div>     
		</div>
	</div>
		</div>
	</div>
</div>