" src="<?php echo $imgurl; ?> " alt="carousel"> <a href="<?php echo make_url_detail($tvpopulardata->id, $tvpopulardata->original_name, 'tv', 1, 1); ?> " class="hover-posts"> <span><i class="fa fa-play"></i></span> </a> </figure> <h6><a title="<?php echo $tvpopulardata->original_name; ?> " href="<?php echo make_url_detail($tvpopulardata->id, $tvpopulardata->original_name, 'tv', 1, 1); ?> "><?php echo $tvpopulardata->original_name; ?> </a></h6> </div> <?php } ?> </div><!-- end carousel --> <div class="row collapse"> <div class="large-12 columns text-center row-btn"> <a href="<?php echo base_url('tv/popular'); ?>
?> " alt="<?php echo $popularmoviedata->original_title; ?> " src="<?php echo $imgurl; ?> " alt="carousel"> <figcaption> <h5><?php echo $popularmoviedata->original_title; ?> </h5> <p>Popular Movies</p> </figcaption> </figure> <a title="<?php echo $popularmoviedata->original_title; ?> " href="<?php echo make_url_detail($popularmoviedata->id, $popularmoviedata->original_title, $type = 'movie', $season = 1, $episodes = 1); ?> " class="hover-posts"> <span><i class="fa fa-play"></i>Watch or Download Movie</span> </a> </div> <?php } ?> </div> </section><!-- End Premium Videos -->
" > <img alt='<?php echo $datanowplay->original_title; ?> ' src="<?php echo $imgurl; ?> " width="100%"> </a> </div> <?php $rnd = rand(1, 50) / 10; ?> <div class="movie__info"> <a href='<?php echo make_url_detail($datanowplay->id, $datanowplay->original_title, 'movie'); ?> ' class="movie__title"><?php echo $datanowplay->original_title; ?> </a> <p class="movie__time"><?php echo $datanowplay->release_date; ?> </p> <p class="movie__option">Language: <?php echo $datanowplay->original_language; ?> </p>
" > <img alt='<?php echo $datanowplay->original_name; ?> ' src="<?php echo $imgurl; ?> "> </a> </div> <?php $rnd = rand(1, 50) / 10; ?> <div class="movie__info"> <a href='<?php echo make_url_detail($datanowplay->id, $datanowplay->original_name, 'tv'); ?> ' class="movie__title" title="<?php echo $datanowplay->original_name; ?> "><?php echo $datanowplay->original_name; ?> </a> <p class="movie__time"><?php echo $datanowplay->first_air_date; ?> </p> <p class="movie__option">Language: <?php
" ><?php echo $termsdata; ?> </a></li> <?php } ?> </ul> <div class="category category--discuss category--count marginb-sm mobile-category ls-cat"> <h3 class="category__title">TV<br><span class="title-edition">Popular Series</span></h3> <ol> <?php foreach ($tvpopular->results as $popi => $PopularMovie) { ?> <li ><a class="category__item" href="<?php echo make_url_detail($PopularMovie->id, $PopularMovie->original_name, 'tv'); ?> " title="<?php echo $PopularMovie->original_name; ?> " ><?php echo $PopularMovie->original_name; ?> </a></li> <?php } ?> </ol> </div> <h3 class="heading-special lower--hight">TV Tags</h3> <ul class="tags tags--dark">
} ?> "> <div class="movie__images"> <a href="<?php echo make_url_detail($datagenre->id, $datagenre->original_title, 'movie'); ?> " class="movie-beta__link" title="<?php echo $datagenre->original_title; ?> " > <img alt='<?php echo $datagenre->original_title; ?> ' src="<?php echo $imgurl; ?> " width="100%" > </a> </div> <?php $rnd = rand(1, 50) / 10; ?> <div class="movie__info"> <a href='<?php echo make_url_detail($datagenre->id, $datagenre->original_title, 'movie'); ?> ' class="movie__title" title="<?php echo $datagenre->original_title; ?> " ><?php
?> " href="<?php echo make_url_detail($tvairingtodaydata->id, $tvairingtodaydata->original_name, $type = 'tv', $season = 1, $episodes = 1); ?> " class="hover-posts"> <span><i class="fa fa-play"></i></span> </a> </div> </div> <div class="media-object-section"> <div class="media-content"> <h6><a title="<?php echo $tvairingtodaydata->original_name; ?> " href="<?php echo make_url_detail($tvairingtodaydata->id, $tvairingtodaydata->original_name, $type = 'tv', $season = 1, $episodes = 1); ?> "><?php echo $tvairingtodaydata->original_name; ?> </a></h6> <p><i class="fa fa-user"></i><span>admin</span><i class="fa fa-clock-o"></i><span><?php echo $tvairingtodaydata->first_air_date; ?> </span></p> </div> </div> </div> <?php } }
<li><span class="best-voted"><?php echo $dtatop->original_title; ?> </span></li> <li> <p class="movie__time"><?php echo $dtatop->release_date; ?> </p> <p><?php echo getgenrebyid($dtatop->genre_ids); ?> </p> <!--<p>38 comments</p>--> </li> <li class="last-block"> <a href="<?php echo make_url_detail($dtatop->id, $dtatop->original_title, 'movie'); ?> " class="slide__link" title="<?php echo $dtatop->original_title; ?> " >more</a> </li> </ul> </div> <?php } ?> </div> </div>
"> <img alt='<?php echo $datamovie->original_name; ?> ' src="<?php echo $imgurl; ?> "> </a> </div> <?php $rnd = rand(1, 50) / 10; ?> <div class="movie__info"> <a href='<?php echo make_url_detail($datamovie->id, $datamovie->original_name, 'tv'); ?> ' class="movie__title" title="<?php echo $datamovie->original_name; ?> " ><?php echo $datamovie->original_name; ?> </a> <p class="movie__time"><?php echo $datamovie->first_air_date; ?> </p> <p class="movie__option"><?php
<i class="fa fa-eye"></i> <span><?php echo rand(500, 10000); ?> </span> </p> </div> <div class="post-summary"> <p><?php echo $topratedtvdata->overview; ?> </p> </div> <div class="post-button"> <a href="<?php echo make_url_detail($topratedtvdata->id, $topratedtvdata->original_name, $type = 'tv', $season = 1, $episodes = 1); ?> " class="secondary-button"><i class="fa fa-play-circle"></i>Watch <?php echo $topratedtvdata->original_name; ?> </a> </div> </div> </div> </div> <?php } ?> </div> </div> </div>
" width="100%"> </a> </div> <?php $rnd = rand(1, 50) / 10; ?> <div class="movie__info"> <a title="<?php if ($type == 'movie') { echo $datagenre->original_title; } elseif ($type == 'tv') { echo $datagenre->name; } ?> " href='<?php echo make_url_detail($datagenre->id, $tt, $type); ?> ' class="movie__title"><?php if ($type == 'movie') { echo $datagenre->original_title; } elseif ($type == 'tv') { echo $datagenre->name; } ?> </a> <p class="movie__time"><?php if ($type == 'movie') { echo $datagenre->release_date; } elseif ($type == 'tv') { echo $datagenre->first_air_date;
echo round($Similarmovie->vote_average, 1); ?> </span> <img alt='<?php echo $Similarmovie->original_title; ?> ' src="<?php echo $imgurl; ?> " width="100%"> </div> </div> <div class="col-sm-6 col-md-7"> <a href='<?php echo make_url_detail($Similarmovie->id, $Similarmovie->original_title, 'movie'); ?> ' title="<?php echo $Similarmovie->original_title; ?> " class="movie__title"><?php echo $Similarmovie->original_title; ?> </a> <p class="movie__time">Date: <?php echo $Similarmovie->release_date; ?> </p> <p class="movie__option"><?php echo getgenrebyid($Similarmovie->genre_ids);
public function sitemaps($namasitemap = '') { $datacount = $this->db->query("SELECT count(*) as jml FROM movie_data")->result_array(); if ($namasitemap == '') { $jumlah_sitemap = $datacount[0]['jml'] / 5000; //$jumlah_sitemap=150000/5000; if ($jumlah_sitemap < 1) { $jumlah_sitemap = 1; } header('Content-Type: application/xml'); echo '<?xml version="1.0" encoding="utf-8"?> <?xml-stylesheet type="text/xsl" href="' . base_url() . 'assets/xml-sitemap.xsl"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">\\n'; for ($i = 1; $i <= $jumlah_sitemap; $i++) { $tanggal = explode(' ', date('Y-m-d H:i:s')); $day = explode('-', $tanggal[0]); $time = explode(':', $tanggal[1]); $dt = date("c", mktime($time[0], $time[1], $time[2], $day[1], $day[2], $day[0])); $url = base_url('sitemaps/sitemap_' . $i . '_.xml'); echo '<url> <loc>' . $url . '</loc> <lastmod>' . $dt . '</lastmod> <changefreq>daily</changefreq> <priority>1</priority> </url>\\n'; } foreach ($data as $y => $datasitemap) { $tanggal = explode(' ', $datasitemap['date']); $day = explode('-', $tanggal[0]); $time = explode(':', $tanggal[1]); $dt = date("c", mktime($time[0], $time[1], $time[2], $day[1], $day[2], $day[0])); //make url if ($datasitemap['type'] == 'movie') { $url = make_url_detail($datasitemap['id_tmdb'], $datasitemap['keywords'], 'movie'); } elseif ($datasitemap['type'] == 'tv') { if ($datasitemap['parent_id_tmdb'] == 0) { $id_tmdb = $datasitemap['id_tmdb']; } elseif ($datasitemap['parent_id_tmdb'] != 0) { $id_tmdb = $datasitemap['parent_id_tmdb']; } $url = make_url_detail($id_tmdb, $datasitemap['keywords'], 'tv'); } echo '<url> <loc>' . $url . '</loc> <lastmod>' . $dt . '</lastmod> <changefreq>daily</changefreq> <priority>1</priority> </url>\\n'; } echo '</urlset>'; } else { $pgx = explode('_', $namasitemap); $pg = $pgx[1]; $perpage = 5000; $start = $perpage * $pg - $perpage; $data = $this->db->query("SELECT id, \tid_tmdb, parent_id_tmdb, seasons, episodes, keywords,date, type \tFROM movie_data LIMIT " . $start . "," . $perpage . "")->result_array(); header('Content-Type: application/xml'); echo '<?xml version="1.0" encoding="utf-8"?> <?xml-stylesheet type="text/xsl" href="' . base_url() . 'assets/xml-sitemap.xsl"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">\\n'; foreach ($data as $y => $datasitemap) { $tanggal = explode(' ', $datasitemap['date']); $day = explode('-', $tanggal[0]); $time = explode(':', $tanggal[1]); $dt = date("c", mktime($time[0], $time[1], $time[2], $day[1], $day[2], $day[0])); //make url if ($datasitemap['type'] == 'movie') { $url = make_url_detail($datasitemap['id_tmdb'], $datasitemap['keywords'], 'movie'); } elseif ($datasitemap['type'] == 'tv') { if ($datasitemap['parent_id_tmdb'] == 0) { $id_tmdb = $datasitemap['id_tmdb']; } elseif ($datasitemap['parent_id_tmdb'] != 0) { $id_tmdb = $datasitemap['parent_id_tmdb']; } $url = make_url_detail($id_tmdb, $datasitemap['keywords'], 'tv'); } echo '<url> <loc>' . $url . '</loc> <lastmod>' . $dt . '</lastmod> <changefreq>daily</changefreq> <priority>1</priority> </url>\\n'; } echo '</urlset>'; } }