-
Notifications
You must be signed in to change notification settings - Fork 378
Expand file tree
/
Copy pathindex.php
More file actions
46 lines (38 loc) · 1.63 KB
/
Copy pathindex.php
File metadata and controls
46 lines (38 loc) · 1.63 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
$page_title = "OAuth Videos";
$page_section = "videos";
$page_secondary = "";
$page_meta_description = "";
require('../../includes/_header.php');
?>
<div class="container">
<div>
<h2>Videos</h2>
<div style="margin-bottom: 1em">
<a href="https://oauth2simplified.com/advanced-oauth"><img src="https://oauth2simplified.com/images/advanced-oauth-security.png" style="width: 100%"></a>
</div>
<div class="videos">
<?php
$playlist = json_decode(file_get_contents(__DIR__.'/../../data/videos/videos.json'), true);
foreach($playlist['items'] as $video) {
echo '<div class="video">';
echo '<a href="https://www.youtube.com/watch?v='.$video['contentDetails']['videoId'].'"><img src="'.$video['snippet']['thumbnails']['medium']['url'].'"></a>';
echo '<div class="title"><a href="https://www.youtube.com/watch?v='.$video['contentDetails']['videoId'].'">'
.htmlspecialchars($video['snippet']['title'])
.'</a></div>';
echo '<div class="date">'
.date('F j, Y', strtotime($video['contentDetails']['videoPublishedAt']))
.'</div>';
echo '</div>';
}
?>
</div>
<h3>Video Courses</h3>
<ul>
<li><a href="https://www.udemy.com/course/oauth-2-simplified/?referralCode=B04F59AED67B8DA74FA7">The Nuts and Bolts of OAuth</a> - Aaron Parecki</li>
<li><a href="https://classpert.com/oauth">Free and paid OAuth courses from popular e-learning providers (Classpert)</a></li>
</ul>
<div style="clear:both;"></div>
</div>
</div>
<?php require('../../includes/_footer.php'); ?>