· 7 years ago · Sep 19, 2018, 08:58 PM
1</div><!-- header-wrapper:END -->
2<?php
3 $svv7 = get_post_meta($post->ID, 'server_d', true);
4 $drive = get_post_meta($post->ID, "server_1", true);
5 $server_d = get_post_meta($post->ID, "server_d", true);
6 $openload = get_post_meta($post->ID, "openload", true);
7 $estream = get_post_meta($post->ID, "estream", true);
8 $streamgo = get_post_meta($post->ID, "streamgo", true);
9 $server8 = 8;
10 $server10 = 10;
11 $servers = array(1,6,8,10);
12 if(isset($_GET['ep']) && in_array($_GET['ep'], $servers)){
13 $server = $_GET['ep'];
14 }
15 else {
16 if($streamgo != "")
17 $server = 6;
18 else if($drive != "")
19 $server = 8;
20 else
21 $server = 1;
22 }
23 $quality = get_the_terms($post->ID, 'quality',true);
24 $subtitle = get_post_meta($post->ID, "subtitle", true);
25 if($subtitle != "" && $streamgo != "")
26 $streamgo = $streamgo."/?sub=".str_replace("123movieshub", $subtitle);
27 if(isset($drive22) && strlen($drive22) > 3)
28 $drive2 = $drive22;
29 else
30 $drive2 = "";
31 if($openload != "")
32 $open = "https://openload.co/embed".$openload." ";
33 if($estream != "")
34 $estr = "https://estream.to/embed-".$estream.".html";
35 if($server_d != ""){
36 if($subtitle != "")
37 $url = $server_d."@".$subtitle."|".$openload;
38 else
39 $url = $server_d."@".$sub."|".$openload;
40 $plain_txt = base64_encode($url);
41 $string = $plain_txt;
42 $encrypt_method = "AES-256-CBC";
43 $secret_key = '9bbe2529c33538b00bda9760ef42ea9e272c3ff8932ca416caeb3bd9a7ef70a2';
44 $secret_iv = 'ceb970d8fb767715946a8a67e719658ed78b5c347634031d6f4fbe9dc7492500';
45 $key = hash('sha256', $secret_key);
46 $iv = substr(hash('sha256', $secret_iv), 0, 16);
47 $output = openssl_encrypt($string, $encrypt_method, $key, 0, $iv);
48 $output = base64_encode($output);
49 $encrypted_txt = $output;
50 $player_7 = $encrypted_txt;
51 }
52 if($drive != ""){
53 if($streamgo != "")
54 $backopl = $streamgo;
55 else
56 $backopl = $openload;
57 if($subtitle != "")
58 $url = $drive."@".$subtitle."|".$backopl;
59 else
60 $url = $drive."@".$sub."|".$backopl;
61 $plain_txt = base64_encode($url);
62 $string = $plain_txt;
63 $encrypt_method = "AES-256-CBC";
64 $secret_key = '9bbe2529c33538b00bda9760ef42ea9e272c3ff8932ca416caeb3bd9a7ef70a2';
65 $secret_iv = 'ceb970d8fb767715946a8a67e719658ed78b5c347634031d6f4fbe9dc7492500';
66 $key = hash('sha256', $secret_key);
67 $iv = substr(hash('sha256', $secret_iv), 0, 16);
68 $output = openssl_encrypt($string, $encrypt_method, $key, 0, $iv);
69 $output = base64_encode($output);
70 $encrypted_txt = $output;
71 $player = $encrypted_txt;
72 }
73 ?>
74<div id="body-wrapper">
75 <div class="container" id="movie" >
76 <ol class="breadcrumb" itemscope="" itemtype="http://schema.org/BreadcrumbList">
77 <li itemprop="itemListElement" itemscope="" itemtype="http://schema.org/ListItem">
78 <a itemprop="item" href="<?php echo site_url();?>" title="Watching movies online"><span itemprop="name">Home</span></a>
79 </li>
80 <?php if(get_post_type() == "seasons") { ?>
81 <li itemprop="itemListElement" itemscope="" itemtype="http://schema.org/ListItem">
82 <a itemprop="item" href="<?php echo site_url();?>/tv-series/" title="Movies"><span itemprop="name">TV Series</span></a>
83 </li>
84 <?php } else if(get_post_type() == "episodes") { ?>
85 <li itemprop="itemListElement" itemscope="" itemtype="http://schema.org/ListItem">
86 <a itemprop="item" href="<?php echo site_url();?>/episodes/" title="Movies"><span itemprop="name">Episodes</span></a>
87 </li>
88 <?php } else { ?>
89 <li itemprop="itemListElement" itemscope="" itemtype="http://schema.org/ListItem">
90 <a itemprop="item" href="<?php echo site_url();?>/movies/" title="Movies"><span itemprop="name">Movies</span></a>
91 </li>
92 <?php } ?>
93 <li class="active" itemprop="itemListElement" itemscope="" itemtype="http://schema.org/ListItem">
94 <a itemprop="item" href="<?php the_permalink();?>" title="<?php the_title();?>"><span itemprop="name"><?php echo _getMeta('original_title');?></span></a>
95 </li>
96 </ol>
97 <div class="widget">
98 <div id="player">
99 <?php if(get_query_var('action-watch') == "watching"){ ?>
100 <iframe id="iframe-embed" frameborder="no" scrolling="no" allowfullscreen="yes" style="width: 100%; height: 100%;"></iframe>
101 <?php } else { ?>
102 <a href="<?php the_permalink();?>/watching/?server_id=<?php echo $server;?>" alt="Watch <?php the_title();?> Online at fmovies" >
103 <div class="cover" style="background-image: url('<?php echo _getMeta('background_url');?>"></div>
104 </a>
105 <?php } ?>
106
107 </div>
108 <div id="control">
109 <?php $ratings = get_post_meta($post->ID, 'ratings', true );
110 if(isset($ratings[1]))
111 $rate = number_format($ratings[1],1);
112 else
113 $rate = '0';
114 $times = $ratings[0]; ?>
115 <div class="item rating" data-value="<?php echo $rate;?>" data-count="<?php echo $times; ?>">
116
117 <span class="stars">
118 <input id="rating" name="rating" class="rating form-control hide" value="<?php $ratings = get_post_meta($post->ID, 'ratings', true ); echo $ratings[1];?>" movie-id="<?php echo $post->ID;?>" data-show-clear="false" data-show-caption="true" min="0" max="5" step="0.5" data-size="sm" data-symbol="" data-glyphicon="false" data-rating-class="rating-fa" data-show-clear="false">
119 </span>
120 <script type="text/javascript">
121 // method chaining
122 var ratingValue = $('#rating').rating('refresh', {
123 disabled: false,
124 showClear: false,
125 showCaption: true,
126 size: 'xs'
127 }).val();
128
129 var rates = '<?php echo $rate; ?>';
130 var times = '<?php echo $times; ?>';
131 $(".label").text(rates + " / " + times + " times");
132 $('#rating').on('rating.hoverleave', function(event, target) {
133
134 $(".label").text(rates + " / " + times + " times");
135 });
136 $(document).ready(function () {
137
138 $('input[name=rating]').change(function () {
139 if (is_login) {
140 var mark = $(this).val();
141 var movie_id = $(this).attr('movie-id');
142 $.ajax({
143 url: ajax_var.url,
144 method: 'GET',
145 dataType: 'text',
146 contentType: "application/text",
147 success: function (data) {
148
149 },
150 data: "action=user_rating&movie_id="+movie_id+"&mark="+mark,
151
152 })
153 } else {
154 $('#pop-auth').modal('show');
155 }
156 });
157 });
158 </script>
159 </div>
160 <div class="item mbtn watch-trailer hidden-xs" data-target="#pop-trailer" data-toggle="modal"> <i class="fa fa-video-camera"></i> Trailer </div>
161 <div class="item mbtn toggler light hidden-xs" title="Toggle light" data-name="control.light" data-on="Off" data-off="On" data-default="1" style="display: block;"> <i class="fa fa-lightbulb-o"></i> Turn Light <span>Off</span> </div>
162 <div class="item mbtn edit-watchlist" data-id="kwr2r" data-action="add" data-from="#watchlist-popover" data-placement="top" data-original-title="" title=""> <i class="fa fa-plus"></i> Watch list </div>
163
164 <div class="item mbtn report pull-right" data-toggle="modal" data-target="#pop-report"> <i class="fa fa-warning"></i> Report </div>
165 <div class="item mbtn download subtitle pull-right hidden-xs" style="display: none;"> <i class="fa fa-download"></i> Subtitles </div>
166 <div class="item mbtn download movie pull-right" style="display: none;"> <i class="fa fa-download"></i> Download </div>
167 </div>
168 <div id="watchlist-popover" class="hidden" data-quality="Get updated once this movie is available in HD. Subscribe now." ,="" data-series="Get updated when new episodes are available. Subscribe now.">
169 <div style="width:180px;">
170 <p class="small msg"></p>
171 <p> <button class="btn btn-sm btn-primary edit-watchlist add" data-id="kwr2r" data-action="add">Add to watch list</button> <button class="btn btn-sm btn-default dismiss">Dismiss</button> </p>
172 </div>
173 </div>
174
175 <div class="mt row">
176 <div class="col-left col-md-24 col-xs-24">
177
178 <div class="alert alert-primary notice"> <i class="fa fa-hand-o-right"></i>
179 You can also control the player by using these shortcuts:
180 <span data-toggle="tooltip" class="btn btn-default btn-xs" title="Pause/Play video playback">Enter/Space</span>
181 <span data-toggle="tooltip" class="btn btn-default btn-xs" title="Mute/Unmute video volume">M</span>
182 <span data-toggle="tooltip" class="btn btn-default btn-xs" title="Increase and decrease volume by 10%"><i class="fa fa-arrows-v"></i></span>
183 <span data-toggle="tooltip" class="btn btn-default btn-xs" title="Seek forward or backward by 5 seconds"><i class="fa fa-arrows-h"></i></span>
184 <span data-toggle="tooltip" class="btn btn-default btn-xs" title="Fast seek to x% of the video." >0-9</span>
185 <span data-toggle="tooltip" class="btn btn-default btn-xs" title="Enter or exit fullscreen">F</span>
186 <span data-toggle="tooltip" class="btn btn-default btn-xs" title="Seek backward by 60 seconds">J</span>
187 <span data-toggle="tooltip" class="btn btn-default btn-xs" title="Seek forward by 60 seconds">L</span>
188 </div>
189
190 <div style="display:none" id="iframes" data-streamgo="<?php echo $streamgo;?>" data-server_g="<?php echo $player_7;?>" data-server_f1="<?php echo $player;?>" data-server_openload="<?php echo $openload;?>"></div>
191 <?php if(get_query_var('action-watch') == "watching"){ ?>
192 <div id="servers">
193 <?php if(get_post_meta($post->ID, 'server_1', true) != "") { ?>
194 <div class="server row" data-type="direct">
195 <label class="name col-md-4 col-sm-5"> <i class="fa fa-server"></i> Server F4 </label>
196 <div class="col-md-20 col-sm-19">
197 <ul class="episodes range" data-range-id="0">
198
199 <li> <a id="episode-10" episode-id="<?php echo $post->ID;?>" onclick="load_movie_iframe(10)" href="javascript:void(0)"><?php $quality = get_the_terms($post->ID, 'quality', '', '', ''); echo $quality[0]->name; ?></a> </li>
200 </ul>
201 </div>
202 </div>
203 <?php } if(get_post_meta($post->ID, 'streamgo', true) != "") { ?>
204 <div class="server row" data-type="direct">
205 <label class="name col-md-4 col-sm-5"> <i class="fa fa-server"></i> MyCloud </label>
206 <div class="col-md-20 col-sm-19">
207 <ul class="episodes range active" data-range-id="0">
208 <li> <a id="episode-6" episode-id="<?php echo $post->ID;?>" onclick="load_movie_iframe(6)" href="javascript:void(0)"><?php $quality = get_the_terms($post->ID, 'quality', '', '', ''); echo $quality[0]->name; ?></a> </li>
209 </ul>
210 </div>
211 </div>
212 <?php } if(get_post_meta($post->ID, 'openload', true) != "") { ?>
213 <div class="server row" data-type="direct">
214 <label class="name col-md-4 col-sm-5"> <i class="fa fa-server"></i> Openload </label>
215 <div class="col-md-20 col-sm-19">
216 <ul class="episodes range active" data-range-id="0">
217 <li> <a id="episode-1" episode-id="<?php echo $post->ID;?>" onclick="load_movie_iframe(1)" href="javascript:void(0)"><?php $quality = get_the_terms($post->ID, 'quality', '', '', ''); echo $quality[0]->name; ?></a> </li>
218 </ul>
219 </div>
220 </div>
221 <?php } ?>
222 </div>
223
224 <?php } else { ?>
225 <div id="servers">
226 <?php if(get_post_meta($post->ID, 'server_1', true) != "") { ?>
227 <div class="server row">
228 <label class="name col-md-4 col-sm-5"> <i class="fa fa-server"></i> Server F4 </label>
229 <div class="col-md-20 col-sm-19">
230 <ul class="episodes range" data-range-id="0">
231
232 <li> <a href="<?php the_permalink();?>watching/?server_id=10"><?php $quality = get_the_terms($post->ID, 'quality', '', '', ''); echo $quality[0]->name; ?></a> </li>
233 </ul>
234 </div>
235 </div>
236 <?php } if($streamgo != "") { ?>
237 <div class="server row">
238 <label class="name col-md-4 col-sm-5"> <i class="fa fa-server"></i> MyCloud </label>
239 <div class="col-md-20 col-sm-19">
240 <ul class="episodes range active" data-range-id="0">
241 <li> <a href="<?php the_permalink();?>watching/?server_id=6"><?php $quality = get_the_terms($post->ID, 'quality', '', '', ''); echo $quality[0]->name; ?></a> </li>
242 </ul>
243 </div>
244 </div>
245 <?php } if(get_post_meta($post->ID, 'openload', true) != "") { ?>
246 <div class="server row">
247 <label class="name col-md-4 col-sm-5"> <i class="fa fa-server"></i> Openload </label>
248 <div class="col-md-20 col-sm-19">
249 <ul class="episodes range active" data-range-id="0">
250 <li> <a href="<?php the_permalink();?>watching/?server_id=1"><?php $quality = get_the_terms($post->ID, 'quality', '', '', ''); echo $quality[0]->name; ?></a> </li>
251 </ul>
252 </div>
253 </div>
254 <?php } ?>
255 </div>
256
257 <?php } ?>
258 <div id="info" class="mt">
259 <div class="row">
260 <div class="thumb col-md-4 hidden-sm hidden-xs">
261 <img src="<?php echo _getMeta('poster_url');?>" alt="<?php echo _getMeta('original_title');?> | Watch Movies Online">
262 </div>
263 <div class="info col-md-20">
264 <div>
265 <h1 class="name"><?php echo _getMeta('original_title'); ?></h1>
266 <div class="meta"> <span> <span class="imdb">IMDb</span> <b><?php echo _getMeta('imdbRating');?></b> </span> <span> <i class="fa fa-clock-o"></i> <b><?php echo _getMeta('runtime');?> min <?php if(get_post_type() == "seasons" || get_post_type() == "episodes") echo "/ episode"; ?></b> </span> </div>
267 <div class="desc">
268 <div class="shortcontent"><?php echo substr(_getMeta('plot'), 0, 200); ?>..</div>
269 <div class="fullcontent" style="display:none"><?php echo _getMeta("plot"); ?></div>
270 <a class="morelink" style="cursor:pointer">More</a>
271
272 </div>
273 <div class="row">
274 <dl class="meta col-sm-12">
275 <dt>Genre:</dt> <dd><?php echo get_the_term_list($post->ID, 'genres', '', ', ', ''); ?> </dd>
276 <dt>Stars:</dt> <dd><?php echo get_the_term_list($post->ID, 'actors', '', ', ', ''); ?> </dd>
277 <dt>Director:</dt> <dd><?php echo get_the_term_list($post->ID, 'director', '', ', ', ''); ?> </dd>
278 <dt>Country:</dt> <dd><?php echo get_the_term_list($post->ID, 'country', '', ', ', ''); ?> </dd>
279 </dl>
280 <dl class="meta col-sm-12">
281 <dt>Rating:</dt>
282 <dd class="rating"> <span><?php echo $rate; ?></span> / <span><?php echo $times; ?></span> times </dd>
283 <dt>Release:</dt>
284 <dd><?php $year = get_the_terms($post->ID, 'releaseyear', '', '', ''); echo $year[0]->name; ?></dd>
285 <dt>Quality:</dt>
286 <dd><span class="quality"><?php $quality = get_the_terms($post->ID, 'quality', '', '', ''); echo $quality[0]->name; ?></span></dd>
287 </dl>
288 </div>
289 </div>
290 </div>
291 </div>
292 </div>
293 <div id="tags"> <label>Keywords:</label> <?php echo get_the_term_list($post->ID, 'keywords', '', ' ', ''); ?> </div>
294
295 <div class="widget mt-lg" id="comment">
296 <div class="widget-body">
297 <div class="fb-comments" data-href="<?php the_permalink();?>" data-width="100%" data-numposts="10"></div>
298
299 </div>
300 </div>
301 </div>
302
303 </div>
304 </div>
305 <div class="widget">
306 <div class="widget-title"> <span>You might also like this movies</span> </div>
307 <div class="widget-body">
308 <div class="row movie-list">
309 <?php
310 $genres = get_the_terms($post->ID, 'genres');
311 $args = array( 'posts_per_page' => 12, 'post_type' => get_post_type($post->ID), 'genres' => $genres[0]->name);
312 $recent_posts = get_posts($args);
313 foreach( $recent_posts as $recent ){
314 $poster = get_post_meta( $recent->ID, 'poster_url',true);
315 $title = get_post_meta( $recent->ID, 'original_title',true);
316 $qualities = get_the_terms($recent->ID, 'quality',true);
317 if(get_post_type($post->id) == 'seasons')
318 $qlt = '<span class="mli-eps">Eps<i>'.get_post_meta( $recent->ID, 'episode_count',true).'</i></span>';
319 else
320 $qlt = '<span class="mli-quality">'.$qualities[0]->name.'</span>';
321
322
323 echo '<div class="col-lg-4 col-md-4 col-sm-6 col-xs1-8 col-xs-12">
324 <div class="item jt" data-url="ajax/film_details/'.$recent->ID.'/">
325 <div class="quality">'.$qlt.'</div>
326 <a class="poster" href="'.get_the_permalink($recent->ID).'">
327 <img class="lazy" src="'.$poster.'" alt="'.$title.' : The Movie | Watch Movies Online"> </a>
328 <a class="name" href="'.get_the_permalink($recent->ID).'">'.$title.'</a>
329 </div>
330 </div>';
331
332
333
334 }
335 ?>
336
337 <script type="text/javascript">
338 $("img.lazy").lazyload({
339 effect: "fadeIn"
340 });
341
342 $(document).ready(function () {
343 if (!jQuery.browser.mobile) {
344 initQtip();
345 }
346 });
347 </script>
348 </div>
349 </div>
350 </div>
351 <div id="pop-report" class="modal fade" tabindex="-1" style="display: none;">
352 <div class="modal-header">
353 <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <i class="fa fa-close"></i> </button>
354 <div class="modal-title"><i class="fa fa-warning"></i> Report Movie</div>
355 </div>
356 <div class="modal-body">
357 <div class="film-report">
358 <p>Please help us to describe the issue so we can fix it asap.</p>
359 <form method="post" id="reportform">
360 <input hidden type="text" name="movie_id" value="<?php echo $post->ID; ?>"/>
361 <div class="form-group">
362 <label class="form-label">Movie</label>
363 <div class="options"> <label>
364 <input type="checkbox" name="movie_1" value="movie_broken"> Broken</label>
365 <label><input type="checkbox" name="movie_2" value="movie_wrong"> Wrong Movie</label>
366 <label><input type="checkbox" name="movie_3" value="movie_other"> Other</label>
367 </div>
368 </div>
369 <div class="form-group">
370 <label class="form-label">Audio</label>
371 <div class="options"> <label><input type="checkbox" name="audio_1" value="audio_not_synced"> Not Synced</label> <label><input type="checkbox" name="audio_2" value="audio_wrong"> Wrong Audio</label> <label><input type="checkbox" name="audio_3" value="audio_other"> Other</label> </div>
372 </div>
373 <div class="form-group">
374 <label class="form-label">Subtitle</label>
375 <div class="options"> <label><input type="checkbox" name="subtitle_1" value="subtitle_not_synced"> Not Synced</label> <label><input type="checkbox" name="subtitle_2" value="subtitle_wrong"> Wrong Subtitle</label> <label><input type="checkbox" name="subtitle_2" value="subtitle_other"> Other</label> </div>
376 </div>
377 <div class="form-group"> <label class="form-label">Other</label><textarea name="message" class="form-control" placeholder="Describe the issue here (optional)"></textarea>
378 <p class="error-message alert alert-danger error-block" id="error-empty"></p></div>
379 <div class="form-group"> <button type="submit" id="submit-report" class="btn btn-primary btn-lg full submit">Send</button> </div>
380 </form>
381 </div>
382 </div>
383 </div>
384 </div>
385</div>
386<div id="pop-trailer" class="modal fade" tabindex="-1" style="display: none;" data-reset="true">
387 <div class="modal-header">
388 <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <i class="fa fa-close"></i> </button>
389 <div class="modal-title"><i class="fa fa-play"></i> Movie Trailer</div>
390 </div>
391 <div class="modal-body">
392 <iframe id="iframe-trailer" width="100%" height="400px" src="" frameborder="0" allowfullscreen=""></iframe>
393
394 </div>
395</div>
396<div class="overlay" style="width: 100%; height: 100%; position: fixed; left: 0px; top: 0px; z-index: 3; background: rgb(0, 0, 0); opacity: 0.9; display: none;"></div>
397
398<script type="text/javascript">
399$(document).ready(function () {
400 load_movie_iframe(<?php echo $_GET['server_id'];?>);
401});
402</script>
403
404<?php get_footer();?>