Exemplo n.º 1
0
<?php

require_once 'requests/_main.php';
$posts = getPosts();
$works = getWorks();
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">

<title>Apymeco</title>

<script type="text/javascript" src="js/jquery-1.11.1.min.js"></script>

<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
<script type="text/javascript" src="js/bootstrap.min.js"></script>

<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->

<link rel="shortcut icon" href="img/favicon.ico" />
<link rel="stylesheet" type="text/css" href="css/font.face.css" media="screen" />
<link rel="stylesheet" type="text/css" href="css/styles.css" media="screen" />

<script type="text/javascript" src="js/scripts.js"></script>
Exemplo n.º 2
0
					<div class="title">Nouveautés:</div>
					<div class="news">
						<?php 
    foreach (getNews() as $news) {
        echo '<div class="title">' . Utils::shorten($news['title'], 35) . '</div>';
        echo '<div class="news">' . Utils::shorten($news['news'], 127) . '</div>';
        echo "<hr/>";
    }
    ?>
					</div>
				</div>
			</div>
			<div class="col-xs-12 col-sm-6">
				<div class="box">
					<div class="title">Travaux:</div>
					<div class="news">
						<?php 
    foreach (getWorks() as $work) {
        echo '<div class="title">' . Utils::shorten($work['title'], 35) . '</div>';
        echo '<div class="news">' . Utils::shorten($work['description'], 127) . '</div>';
        echo "<hr/>";
    }
    ?>
					</div>
				</div>
			</div>
		<?php 
}
?>
	</div>
</div>