Advertisement
Guest User

M-Wire.Com

a guest
Oct 2nd, 2021
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.13 KB | None | 0 0
  1.  
  2.  
  3. <?php $theme_dir = 'theme/default/'; ?>
  4. <?php if($this->common_model->get_ads_status('home_header')=='1'): ?>
  5. <!-- header ads -->
  6. <div id="ads" style="padding: 20px 0px;text-align: center;">
  7. <div class="container">
  8. <div class="row">
  9. <div class="col-md-12 text-center">
  10. <?php echo $this->common_model->get_ads('home_header'); ?>
  11. </div>
  12. </div>
  13. </div>
  14. </div>
  15. <!-- header ads -->
  16. <?php endif; ?>
  17. <?php
  18. $live_tv_publish = $this->db->get_where('config' , array('title' =>'live_tv_publish'))->row()->value;
  19. if($this->live_tv_model->get_featured_tv_status() && $live_tv_publish =='1'):
  20. ?>
  21. <!-- live tv section -->
  22. <div id="section-opt">
  23. <div class="container">
  24. <div class="row">
  25. <!-- Upcomming Movies -->
  26. <div class="col-md-12 col-sm-12">
  27. <div class="latest-movie movie-opt">
  28. <div class="movie-heading overflow-hidden"> <span><?php echo trans('featured_tv_channels'); ?></span>
  29. <div class="disable-bottom-line"></div>
  30. </div>
  31. </div>
  32. </div>
  33. </div>
  34. <div class="row">
  35. <div class="col-md-12 col-sm-12">
  36. <div class="owl-carousel live_tv_owl">
  37. <?php
  38. $featured_tvs =$this->live_tv_model->get_featured_live_tv();
  39. foreach ($featured_tvs as $tv):
  40. ?>
  41.  
  42. <div class="item">
  43. <figure class="figure">
  44. <?php if($tv['is_paid'] == '1'):?>
  45. <span class="tv-ribbon">VIP</span>
  46. <?php endif; ?>
  47. <a href="<?php echo base_url('live-tv/').$tv['slug'].'.html'; ?>">
  48. <div>
  49. <img class="owl-lazy" src="<?php echo base_url('uploads/default_image/tv_poster.jpg'); ?>" data-src="<?php echo $this->live_tv_model->get_tv_poster($tv['poster']); ?>" alt="<?php echo $tv['tv_name']; ?>" />
  50. </div>
  51. <figcaption class="figure-caption "><?php echo $tv['tv_name']; ?></figcaption>
  52. </a>
  53. </figure>
  54. </div>
  55. <?php endforeach; ?>
  56. </div>
  57. <script type = "text/javascript" >
  58. $('.live_tv_owl').owlCarousel({
  59. stagePadding: 0,
  60. /*the little visible images at the end of the carousel*/
  61. loop: true,
  62. rtl: false,
  63. lazyLoad: true,
  64. margin: 15,
  65. center: true,
  66. nav: true,
  67. navText: ['<i class="fa fa-angle-left"></i>', '<i class="fa fa-angle-right"></i>'],
  68. dots: false,
  69. responsive: {
  70. 0: {
  71. items: 2
  72. },
  73. 600: {
  74. items: 3
  75. },
  76. 800: {
  77. items: 4
  78. },
  79. 1000: {
  80. items: 4
  81. },
  82. 1200: {
  83. items: 5
  84. }
  85. }
  86. });
  87. </script>
  88. </div>
  89. </div>
  90. </div>
  91. </div>
  92. <?php endif; ?>
  93.  
  94. <div id="section-opt">
  95. <div class="container">
  96. <div class="movies-list-wrap mlw-latestmovie">
  97. <div class="ml-title m-b-10">
  98. <span class="pull-left title"><?php echo trans('latest_movies'); ?></span>
  99. <a href="<?php echo base_url('movies.html') ?>" class="pull-right cat-more"><?php echo trans('view_more'); ?>e »</a>
  100. <ul role="tablist" class="nav nav-tabs">
  101.  
  102. <li class="active">
  103. <a data-toggle="tab" role="tab" href="#latest-all" aria-expanded="true"><?php echo trans('all'); ?></a>
  104. </li>
  105. <?php
  106. $featured_genres = $this->common_model->get_features_genres(6);
  107. foreach ($featured_genres as $genre) :
  108. ?>
  109. <li class="">
  110. <a data-toggle="tab" role="tab" href="#<?php echo $genre['slug']; ?>" aria-expanded="false"><?php echo $genre['name'] ?></a>
  111. </li>
  112. <?php endforeach; ?>
  113. </ul>
  114. <div class="clearfix"></div>
  115. </div>
  116. <div class="tab-content">
  117. <div id="latest-all" class="movies-list movies-list-full tab-pane fade active in">
  118. <div class="row clean-preset">
  119. <div class="movie-container">
  120. <?php
  121. $latest_published_videos = $this->common_model->latest_published_videos();
  122. foreach ($latest_published_videos as $videos) :
  123. ?>
  124. <div class="col-md-2 col-sm-3 col-xs-6">
  125. <?php include('thumbnail.php'); ?>
  126. </div>
  127. <?php endforeach; ?>
  128. </div>
  129. </div>
  130. </div>
  131.  
  132. <?php
  133. $featured_genres = $this->common_model->get_features_genres(6);
  134. foreach ($featured_genres as $genre) :
  135. ?>
  136. <div id="<?php echo $genre['slug']; ?>" class="movies-list movies-list-full tab-pane fade">
  137. <div class="row clean-preset">
  138. <div class="movie-container">
  139. <?php
  140. $genre_videos = $this->genre_model->get_video_by_genre_id($genre['genre_id']);
  141. foreach ($genre_videos as $videos) :
  142. ?>
  143. <div class="col-md-2 col-sm-3 col-xs-6">
  144. <?php include('thumbnail.php'); ?>
  145. </div>
  146. <?php endforeach; ?>
  147. </div>
  148. </div>
  149. </div>
  150. <?php endforeach; ?>
  151. </div>
  152. </div>
  153. </div>
  154. </div>
  155.  
  156.  
  157. <?php
  158. $tv_series_publish = $this->db->get_where('config',array('title'=>'tv_series_publish'))->row()->value;
  159. if($tv_series_publish =='1'):
  160. ?>
  161.  
  162. <div id="section-opt">
  163. <div class="container">
  164. <div class="movies-list-wrap mlw-latestmovie">
  165. <div class="ml-title">
  166. <span class="pull-left title"><?php echo trans('tv_series_suggestion'); ?></span>
  167. <a href="<?php echo base_url(); ?>tv-series.html" class="pull-right cat-more"><?php echo trans('view_more'); ?> »</a>
  168. <ul role="tablist" class="nav nav-tabs">
  169. <li class="active"><a data-toggle="tab" role="tab" href="#hot-tvseries" aria-expanded="true"><?php echo trans('popular'); ?></a></li>
  170. <li class=""><a data-toggle="tab" role="tab" href="#top-today-tvseries" aria-expanded="false"><?php echo trans('top_view_today'); ?></a></li>
  171. <li><a data-toggle="tab" role="tab" href="#top-weekly-tvseries" aria-expanded="false"><?php echo trans('top_view_weekly'); ?></a></li>
  172. <li class=""><a data-toggle="tab" role="tab" href="#top-rating-tvseries" aria-expanded="false"><?php echo trans('top_rating'); ?></a></li>
  173. </ul>
  174. <div class="clearfix"></div>
  175. </div>
  176. <div class="tab-content">
  177. <!-- hot -->
  178. <div id="hot-tvseries" class="movies-list movies-list-full tab-pane fade active in">
  179. <div class="row clean-preset">
  180. <div class="movie-container">
  181. <?php $hot_videos = $this->common_model->get_hot_tvseries(); ?>
  182. <?php foreach ($hot_videos as $videos) :?>
  183. <div class="col-md-2 col-sm-3 col-xs-6">
  184. <?php include('thumbnail.php'); ?>
  185. </div>
  186. <?php endforeach; ?>
  187. </div>
  188. </div>
  189. </div>
  190.  
  191.  
  192. <!-- top-today -->
  193. <div id="top-today-tvseries" class="movies-list movies-list-full tab-pane fade in">
  194. <div class="row clean-preset">
  195. <div class="movie-container">
  196. <?php $top_today = $this->common_model->get_today_hot_tvseries(); ?>
  197. <?php foreach ($top_today as $videos) :?>
  198. <div class="col-md-2 col-sm-3 col-xs-6">
  199. <?php include('thumbnail.php'); ?>
  200. </div>
  201. <?php endforeach; ?>
  202. </div>
  203. </div>
  204. </div>
  205.  
  206. <!-- top-today -->
  207. <div id="top-weekly-tvseries" class="movies-list movies-list-full tab-pane fade in">
  208. <div class="row clean-preset">
  209. <div class="movie-container">
  210. <?php $top_rated_videos = $this->common_model->get_weekly_hot_tvseries(); ?>
  211. <?php foreach ($top_rated_videos as $videos) :?>
  212. <div class="col-md-2 col-sm-3 col-xs-6">
  213. <?php include('thumbnail.php'); ?>
  214. </div>
  215. <?php endforeach; ?>
  216. </div>
  217. </div>
  218. </div>
  219.  
  220.  
  221. <!-- top-today -->
  222. <div id="top-rating-tvseries" class="movies-list movies-list-full tab-pane fade in">
  223. <div class="row clean-preset">
  224. <div class="movie-container">
  225. <?php $top_rated_videos = $this->common_model->get_top_rated_tvseries(); ?>
  226. <?php foreach ($top_rated_videos as $videos) :?>
  227. <div class="col-md-2 col-sm-3 col-xs-6">
  228. <?php include('thumbnail.php'); ?>
  229. </div>
  230. <?php endforeach; ?>
  231. </div>
  232. </div>
  233. </div>
  234.  
  235.  
  236. </div>
  237. </div>
  238. </div>
  239. </div>
  240.  
  241.  
  242. <div id="section-opt">
  243. <div class="container">
  244. <div class="movies-list-wrap mlw-latestmovie">
  245. <div class="ml-title m-b-10">
  246. <span class="pull-left title"><?php echo trans('latest_tv_series'); ?></span>
  247. <a href="<?php echo base_url('tv-series.html') ?>" class="pull-right cat-more"><?php echo trans('view_more'); ?> »</a>
  248. <ul role="tablist" class="nav nav-tabs">
  249.  
  250. <li class="active">
  251. <a data-toggle="tab" role="tab" href="#latest-all-tvseries" aria-expanded="true"><?php echo trans('all'); ?></a>
  252. </li>
  253. <?php
  254. $featured_genres = $this->common_model->get_features_genres(6);
  255. foreach ($featured_genres as $genre) :
  256. ?>
  257. <li class="">
  258. <a data-toggle="tab" role="tab" href="#<?php echo $genre['slug']; ?>-tvseries" aria-expanded="false"><?php echo $genre['name'] ?></a>
  259. </li>
  260. <?php endforeach; ?>
  261. </ul>
  262. <div class="clearfix"></div>
  263. </div>
  264. <div class="tab-content">
  265. <div id="latest-all-tvseries" class="movies-list movies-list-full tab-pane fade active in">
  266. <div class="row clean-preset">
  267. <div class="movie-container">
  268. <?php
  269. $latest_published_videos = $this->common_model->latest_published_tv_series();
  270. foreach ($latest_published_videos as $videos) :
  271. ?>
  272. <div class="col-md-2 col-sm-3 col-xs-6">
  273. <?php include('thumbnail.php'); ?>
  274. </div>
  275. <?php endforeach; ?>
  276. </div>
  277. </div>
  278. </div>
  279.  
  280. <?php
  281. $featured_genres = $this->common_model->get_features_genres(6);
  282. foreach ($featured_genres as $genre) :
  283. ?>
  284. <div id="<?php echo $genre['slug']; ?>-tvseries" class="movies-list movies-list-full tab-pane fade">
  285. <div class="row clean-preset">
  286. <div class="movie-container">
  287. <?php
  288. $genre_videos = $this->genre_model->get_tvseries_by_genre_id($genre['genre_id']);
  289. foreach ($genre_videos as $videos) :
  290. ?>
  291. <div class="col-md-2 col-sm-3 col-xs-6">
  292. <?php include('thumbnail.php'); ?>
  293. </div>
  294. <?php endforeach; ?>
  295. </div>
  296. </div>
  297. </div>
  298. <?php endforeach; ?>
  299. </div>
  300. </div>
  301. </div>
  302. </div>
  303. <?php endif; ?>
  304.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement