forked from WWBN/AVideo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodeYoutubeBundle.php
116 lines (114 loc) · 4.64 KB
/
modeYoutubeBundle.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
110
111
112
113
114
115
116
<?php
$TimeLogLimitMYB = 1;
$timeLogNameMYB = TimeLogStart("modeYoutubeBundle.php");
$isCompressed = AVideoPlugin::loadPluginIfEnabled('TheaterButton') && TheaterButton::isCompressed();
$removeVideoList = (empty($playlist_id) && !empty($advancedCustom->removeVideoList)) || isBot();
$modeYoutubeBottomCols1 = 'col-sm-7 col-md-7 col-lg-6';
$modeYoutubeBottomCols2 = 'col-sm-5 col-md-5 col-lg-4 rightBar clearfix';
if ($removeVideoList) {
$modeYoutubeBottomCols1 = 'col-sm-12';
$modeYoutubeBottomCols2 = 'hidden';
}
if (!$isCompressed) {
?>
<div class="" id="modeYoutubeTop" >
<?php
require "{$global['systemRootPath']}view/modeYoutubeTop.php";
$modeYouTubeTimeLog['After include top '] = microtime(true) - $modeYouTubeTime;
$modeYouTubeTime = microtime(true);
?>
</div>
<?php
}
if(is_object($video)){
$video = Video::getVideoLight($video->getId());
}
TimeLogEnd($timeLogNameMYB, __LINE__, $TimeLogLimitMYB);
if (!empty($video['id'])) {
TimeLogEnd($timeLogNameMYB, __LINE__, $TimeLogLimitMYB);
?>
<div class="row" id="modeYoutubeBottom" style="margin: 0;">
<div class="col-lg-1"></div>
<div class="<?php echo $modeYoutubeBottomCols1; ?>" id="modeYoutubeBottomContent">
<?php
if ($isCompressed) {
?>
<div class="" id="modeYoutubeTop" >
<?php
require "{$global['systemRootPath']}view/modeYoutubeTop.php";
$modeYouTubeTimeLog['After include top '] = microtime(true) - $modeYouTubeTime;
$modeYouTubeTime = microtime(true);
?>
</div>
<?php }
?>
<?php
TimeLogEnd($timeLogNameMYB, __LINE__, $TimeLogLimitMYB);
require "{$global['systemRootPath']}view/modeYoutubeBottom.php";
$modeYouTubeTimeLog['After include bottom '] = microtime(true) - $modeYouTubeTime;
$modeYouTubeTime = microtime(true);
TimeLogEnd($timeLogNameMYB, __LINE__, $TimeLogLimitMYB);
?>
</div>
<div class="<?php echo $modeYoutubeBottomCols2; ?>" id="yptRightBar" >
<div class="panel panel-default">
<div class="panel-body">
<?php
TimeLogEnd($timeLogNameMYB, __LINE__, $TimeLogLimitMYB);
require "{$global['systemRootPath']}view/modeYoutubeBottomRight.php";
$modeYouTubeTimeLog['After include bottom right '] = microtime(true) - $modeYouTubeTime;
$modeYouTubeTime = microtime(true);
TimeLogEnd($timeLogNameMYB, __LINE__, $TimeLogLimitMYB);
?>
</div>
</div>
</div>
<div class="col-lg-1"></div>
</div>
<?php
} else {
TimeLogEnd($timeLogNameMYB, __LINE__, $TimeLogLimitMYB);
require_once $global['systemRootPath'] . 'plugin/Gallery/functions.php';
?>
<div class="row" id="modeYoutubeBottom" style="margin: 0;">
<div class="col-lg-1"></div>
<div class="<?php echo $modeYoutubeBottomCols1; ?>" id="modeYoutubeBottomContent">
<?php
if ($isCompressed) {
?>
<div class="" id="modeYoutubeTop" >
<?php
require "{$global['systemRootPath']}view/modeYoutubeTop.php";
$modeYouTubeTimeLog['After include top '] = microtime(true) - $modeYouTubeTime;
$modeYouTubeTime = microtime(true);
?>
</div>
<?php }
?>
<div class="panel panel-default">
<div class="panel-body">
<?php
getTrendingVideos(48, 3, 3, 3, 1);
$modeYouTubeTimeLog['After include bottom '] = microtime(true) - $modeYouTubeTime;
$modeYouTubeTime = microtime(true);
?>
</div>
</div>
</div>
<div class="<?php echo $modeYoutubeBottomCols2; ?>" id="yptRightBar" >
<div class="panel panel-default">
<div class="panel-body">
<?php
require "{$global['systemRootPath']}view/modeYoutubeBottomRight.php";
$modeYouTubeTimeLog['After include bottom right '] = microtime(true) - $modeYouTubeTime;
$modeYouTubeTime = microtime(true);
?>
</div>
</div>
</div>
<div class="col-lg-1"></div>
</div>
<?php
TimeLogEnd($timeLogNameMYB, __LINE__, $TimeLogLimitMYB);
}
?>