forked from AmsterdamPHP/amsterdamphp.nl
-
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.
AmsterdamPHP#72: Added list of AmsterdamPHP videos from youtube inste…
…ad of the list of blog posts
- Loading branch information
Pascal de Vink
committed
Apr 18, 2015
1 parent
7773665
commit 0add19f
Showing
5 changed files
with
49 additions
and
9 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
19 changes: 19 additions & 0 deletions
19
src/AmsterdamPHP/Bundle/SiteBundle/Resources/views/Default/_videos.html.twig
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<div class="videos"> | ||
{% for video in videos|slice(0, 4) %} | ||
<div class="video"> | ||
<span> | ||
<a href="https://www.youtube.com/watch?v={{ video.snippet.resourceId.videoId }}" | ||
target="_blank"><img | ||
class="thumbnail" | ||
src="{{ video.snippet.thumbnails.default.url }}" /></a> | ||
</span> | ||
<span> | ||
<a href="https://www.youtube.com/watch?v={{ video.snippet.resourceId.videoId }}" | ||
target="_blank">{{ video.snippet.title }}</a> | ||
</span> | ||
</div> | ||
{% endfor %} | ||
<a class="more" | ||
href="https://www.youtube.com/user/AmsterdamPHP/videos" | ||
target="_blank">OLDER VIDEOS</a> | ||
</div> |
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
Large diffs are not rendered by default.
Oops, something went wrong.