mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 19:42:38 +02:00
NetFlix Style
This commit is contained in:
parent
9df9d8e3d2
commit
c1f03c7d1d
2 changed files with 8 additions and 4 deletions
|
@ -53,7 +53,7 @@ $category = Category::getAllCategories();
|
||||||
$poster = $images->poster;
|
$poster = $images->poster;
|
||||||
?>
|
?>
|
||||||
<div class="carousel-cell tile " >
|
<div class="carousel-cell tile " >
|
||||||
<div class="slide thumbsImage" videos_id="<?php echo $value['id']; ?>" poster="<?php echo $poster; ?>" cat="<?php echo $cat['clean_name']; ?>" video="<?php echo $value['clean_title']; ?>" iframe="<?php echo $global['webSiteRootURL']; ?>videoEmbeded/<?php echo $value['clean_title']; ?>">
|
<div class="slide thumbsImage" videos_id="<?php echo $value['id']; ?>" poster="<?php echo $poster; ?>" video="<?php echo $value['clean_title']; ?>" iframe="<?php echo $global['webSiteRootURL']; ?>videoEmbeded/<?php echo $value['clean_title']; ?>">
|
||||||
<div class="tile__media ">
|
<div class="tile__media ">
|
||||||
<img alt="<?php echo $value['title']; ?>" class="tile__img thumbsJPG ing img-responsive carousel-cell-image" data-flickity-lazyload="<?php echo $img; ?>" />
|
<img alt="<?php echo $value['title']; ?>" class="tile__img thumbsJPG ing img-responsive carousel-cell-image" data-flickity-lazyload="<?php echo $img; ?>" />
|
||||||
<?php
|
<?php
|
||||||
|
@ -112,7 +112,7 @@ $category = Category::getAllCategories();
|
||||||
$poster = $images->poster;
|
$poster = $images->poster;
|
||||||
?>
|
?>
|
||||||
<div class="carousel-cell tile " >
|
<div class="carousel-cell tile " >
|
||||||
<div class="slide thumbsImage" videos_id="<?php echo $value['id']; ?>" poster="<?php echo $poster; ?>" cat="<?php echo $cat['clean_name']; ?>" video="<?php echo $value['clean_title']; ?>" iframe="<?php echo $global['webSiteRootURL']; ?>videoEmbeded/<?php echo $value['clean_title']; ?>">
|
<div class="slide thumbsImage" videos_id="<?php echo $value['id']; ?>" poster="<?php echo $poster; ?>" video="<?php echo $value['clean_title']; ?>" iframe="<?php echo $global['webSiteRootURL']; ?>videoEmbeded/<?php echo $value['clean_title']; ?>">
|
||||||
<div class="tile__media ">
|
<div class="tile__media ">
|
||||||
<img alt="<?php echo $value['title']; ?>" class="tile__img thumbsJPG ing img-responsive carousel-cell-image" data-flickity-lazyload="<?php echo $img; ?>" />
|
<img alt="<?php echo $value['title']; ?>" class="tile__img thumbsJPG ing img-responsive carousel-cell-image" data-flickity-lazyload="<?php echo $img; ?>" />
|
||||||
<?php
|
<?php
|
||||||
|
@ -170,7 +170,7 @@ $category = Category::getAllCategories();
|
||||||
$poster = $images->poster;
|
$poster = $images->poster;
|
||||||
?>
|
?>
|
||||||
<div class="carousel-cell tile " >
|
<div class="carousel-cell tile " >
|
||||||
<div class="slide thumbsImage" videos_id="<?php echo $value['id']; ?>" poster="<?php echo $poster; ?>" cat="<?php echo $cat['clean_name']; ?>" video="<?php echo $value['clean_title']; ?>" iframe="<?php echo $global['webSiteRootURL']; ?>videoEmbeded/<?php echo $value['clean_title']; ?>">
|
<div class="slide thumbsImage" videos_id="<?php echo $value['id']; ?>" poster="<?php echo $poster; ?>" video="<?php echo $value['clean_title']; ?>" iframe="<?php echo $global['webSiteRootURL']; ?>videoEmbeded/<?php echo $value['clean_title']; ?>">
|
||||||
<div class="tile__media ">
|
<div class="tile__media ">
|
||||||
<img alt="<?php echo $value['title']; ?>" class="tile__img thumbsJPG ing img-responsive carousel-cell-image" data-flickity-lazyload="<?php echo $img; ?>" />
|
<img alt="<?php echo $value['title']; ?>" class="tile__img thumbsJPG ing img-responsive carousel-cell-image" data-flickity-lazyload="<?php echo $img; ?>" />
|
||||||
<?php
|
<?php
|
||||||
|
|
|
@ -91,7 +91,11 @@ $(function () {
|
||||||
});
|
});
|
||||||
video = $(this).attr('video');
|
video = $(this).attr('video');
|
||||||
cat = $(this).attr('cat');
|
cat = $(this).attr('cat');
|
||||||
$('.playBtn').attr('href', webSiteRootURL+'cat/'+cat+'/video/'+video);
|
var href = 'video/'+video;
|
||||||
|
if(cat && typeof cat != 'undefined'){
|
||||||
|
href = 'cat/'+cat+'/'+href;
|
||||||
|
}
|
||||||
|
$('.playBtn').attr('href', webSiteRootURL+href);
|
||||||
loadPlayLists();
|
loadPlayLists();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue