-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
28 lines (16 loc) · 727 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php require_once("includes/header.php"); ?>
<div class="home">
<?php
$videoGrid = new videoGrid($con,$user);
if(User::isLoggedIn()){ // Si tu as souscris à une vidéo ou plus tu affiches le bloc d'instruction ou sinon tu l'affiches
// sizeof = on teste si le tableau est vide ou non, tester la longueur de ton tableau
$subscriptionProvider = new SubscriptionProvider($con,$user);
$subscriptionVideos = $subscriptionProvider-> getVideos();
if(sizeof($subscriptionVideos) > 0 ){
echo $videoGrid->create($subscriptionVideos,"Vos abonnements",false);
}
}
echo $videoGrid->create(null,"Vos recommandations",false);
?>
</div>
<?php require_once("includes/footer.php")?>