projectsView.php 627 Bytes
Newer Older
1
<?php
2 3 4

	$hr = false;
	foreach ($projects as $project){
Corentin Bettiol's avatar
Corentin Bettiol committed
5
		$project['internalLink'] = str_replace(" ", "-", $project['name']);
6 7 8 9 10 11 12 13
		if(!$hr)
			$hr = true;
		else
			echo "<hr />";
		?>
		<article>
			<h3><a href="<?php echo $project['link']; ?>"><?php echo $project['name']; ?></a></h3>
			<p>
Corentin Bettiol's avatar
Corentin Bettiol committed
14 15
				<?php echo $project['shortContent']; ?><br />
				<span class="postInfos"><a href="/project/<?php echo $project['internalLink']; ?>">Plus d'infos.</a></span>
16 17 18 19 20
			</p>
		</article>
		<?php
	}
	if(!$hr){	
21 22 23
		?>
		<article>
			<h3>Pas de projet</h3>
24
			
25 26 27 28
			<p>Aucun projet n'a été encore ajouté, patience !</p>
		</article>
		<?php
	}