-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdetail.php
109 lines (82 loc) · 3.42 KB
/
detail.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<?php
include "parts/backButton.php";
include_once ("php/VideoController.php");
include_once ("php/helper.php");
$vc = new VideoController();
$helper = new Helper();
$Video_ID = $_GET["video_id"];
$element = json_decode($vc->getVideoWithImages($Video_ID));
$persons = json_decode($vc->getPersons($Video_ID));
foreach($persons as $person) {
if ($person->type == "Protagonist") {
$protagonist = $person->name;
}
}
$video_url = "http://www.youtube.com/v/".substr($element[0]->source,strpos($element[0]->source,"v=")+2,strlen($element[0]->source));
if (isset($_GET["autoplay"])) {
if ($_GET["autoplay"] == "1") {
$video_url.= "&autoplay=1";
}
}
$video_url = $helper->makeYoutubeURL($element[0]->source);
?>
<div id="detailContent">
<div class="wrapper">
<?php
if ($element[0]->source == "") {
//This ID is not valid
}
else {
?>
<div class="contentScrollBox">
<h2><?php echo($protagonist) ?></h2>
<h1><?php print $element[0]->title?></h1>
<div id="movieDetailBanner" style="background-image:url('<?php print $element[0]->banner; ?>');"></div>
<div id="movieDetailDescription">
<div id="movieDetailPreview" style="background-image:url('<?php print $element[0]->images[0]->url ?>');">
<a class="playButtonSmall">play</a>
<input type="hidden" class="video_src" value="<?php print $helper->getYoutubeID($element[0]->source);?>">
</div>
<h3>Film-Informationen</h3>
<p><?php print $element[0]->description?></p>
</div>
<div id="movieDetailMeta">
<div class="left">
<p><strong>Ein Film von:</strong></p>
<ul id="filmcrew">
<?php
$filmcrew = json_decode($vc->getFilmCrew($Video_ID));
$html = "";
foreach($filmcrew as $person) {
$html .= "<li>" . $person->name . "</li>";
}
print substr($html,0,strlen($html)-2);
?>
</ul>
</div>
<!--div class="right">
<p><strong>Produktionsjahr:</strong> 2011<br/><strong>Drehort:</strong> Burg Hornberg</p>
</div-->
</div>
<div id="movieDetailComments">
<h3>Kommentare</h3>
<div id="disqus_thread"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = 'stadtlandflussgeschichten'; // required: replace example with your forum shortname
/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
</div>
</div>
<?php
}
?>
</div>
</div>