-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
You can now preview the site right in your messages as an embed!
- Loading branch information
1 parent
13e2640
commit aa37432
Showing
2 changed files
with
45 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1 @@ | ||
<!doctypehtml><!-- | ||
......................................................... | ||
......................................................... | ||
....................*****************.................... | ||
...............******...............******............... | ||
...........****...........................****........... | ||
.........****.................................***........ | ||
......***.......................................***...... | ||
.....**...........***...............***...........**..... | ||
...**...........*******...........*******..........***... | ||
..**............*******...........*******............**.. | ||
.**.............*******...........*******.............**. | ||
.**...............***...............***...............**. | ||
**.....................................................** | ||
**.......*.....................................*.......** | ||
**......**.....................................**......** | ||
.**...****.....................................****...**. | ||
.**......**...................................**......**. | ||
..**.......***.............................***.......**.. | ||
...***.......****.......................****.......***... | ||
.....**.........******.............******.........**..... | ||
......***............***************............***...... | ||
........****.................................****........ | ||
...........****...........................****........... | ||
...............******...............******............... | ||
....................*****************.................... | ||
......................................................... | ||
--><head><meta charset="utf-8"><meta content="width=device-width,initial-scale=1"name="viewport"><link href="https://fonts.googleapis.com/css?family=Work+Sans:800,700,500,400"rel="stylesheet"><link href="/styles.css"rel="stylesheet"type="text/css"><title>Cinéclub du Collège St-Michel Fribourg</title><meta content="Découvrez le prochain film à venir au Cinéclub du collège St-Michel Fribourg."name="description"></head><?php include('dbConnect.php'); ?><body><?php include('header.php'); ?><main><div class="nextMovie"><div class="poster"><?php $nextMovieAnnounced=false;foreach($movies as $movie){if($movie['date']>date('Y-m-d')){$nextMovieAnnounced=true;break;}}if($nextMovieAnnounced==true){foreach($movies as $movie){if($movie['date']>date('Y-m-d')){break;}} ?><img alt="<?php echo $movie['title'] ?>"src="https://raw.githubusercontent.com/taedium8vitae/cineclub_ws/main/images-mini/<?php echo $movie['linkToImage'] ?>"><h2 class="movieTitle"><?php echo $movie['title'] ?></h2><h2 class="movieDate"><?php echo date('d M Y',strtotime($movie['date'])); ?></h2><?php }else{ ?><img alt="Le prochain film n'a pas encore été annoncé"src="https://raw.githubusercontent.com/taedium8vitae/cineclub_ws/main/images-mini/noMovie.png"><h2 class="movieTitle">Aucun film à l'affiche</h2><?php } ?></div><div class="paragraph-container"><p class="synopsis"><?php if($nextMovieAnnounced==true){echo $movie['text'];}else{echo "Le prochain film n'a pas encore été annoncé, revenez plus tard ! :)";} ?></p></div></div></main><?php include('footer.php'); ?></body> | ||
<?php include('dbConnect.php'); ?><?php $nextMovieAnnounced=false;foreach($movies as $movie){if($movie['date']>date('Y-m-d')){$nextMovieAnnounced=true;break;}}if($nextMovieAnnounced==true){foreach($movies as $movie){if($movie['date']>date('Y-m-d')){break;}}} ?><!doctypehtml><html><head><meta charset="utf-8"><meta content="width=device-width,initial-scale=1"name="viewport"><link href="https://fonts.googleapis.com/css?family=Work+Sans:800,700,500,400"rel="stylesheet"><link href="/styles.css"rel="stylesheet"type="text/css"><title>Cinéclub du Collège St-Michel Fribourg</title><meta content="Découvrez le prochain film à venir au Cinéclub du collège St-Michel Fribourg."name="description"><meta content="<?php if($nextMovieAnnounced==true){echo $movie['title'];}else{echo "CSM Cinéclub";} ?>"name="og:title"><meta content="<?php if($nextMovieAnnounced==true){echo $movie['text'];}else{echo "Le prochain film n'a pas encore été annoncé, revenez bientôt !";} ?>"name="og:description"><?php if($nextMovieAnnounced==true){echo '<meta name="og:image" content="https://raw.githubusercontent.com/taedium8vitae/cineclub_ws/main/images-mini/'.$movie['linkToImage'].'" />';} ?></head><body><?php include('header.php'); ?><main><div class="nextMovie"><div class="poster"><?php if($nextMovieAnnounced==true){ ?><img alt="<?php echo $movie['title'] ?>"src="https://raw.githubusercontent.com/taedium8vitae/cineclub_ws/main/images/<?php echo $movie['linkToImage'] ?>"><h2 class="movieTitle"><?php echo $movie['title'] ?></h2><h2 class="movieDate"><?php echo date('d M Y',strtotime($movie['date'])); ?></h2><?php }else{ ?><img alt="Le prochain film n'a pas encore été annoncé"src="https://raw.githubusercontent.com/taedium8vitae/cineclub_ws/main/images-mini/noMovie.png"><h2 class="movieTitle">Aucun film à l'affiche</h2><?php } ?></div><div class="paragraph-container"><p class="synopsis"><?php if($nextMovieAnnounced==true){echo $movie['text'];}else{echo "Le prochain film n'a pas encore été annoncé, revenez plus tard ! :)";} ?></p></div></div></main><?php include('footer.php'); ?></body></html> |