Skip to content

Commit

Permalink
video gallery page corrected
Browse files Browse the repository at this point in the history
  • Loading branch information
prabhakar267 committed Feb 20, 2016
1 parent 74010f3 commit f8ac0c0
Showing 1 changed file with 31 additions and 16 deletions.
47 changes: 31 additions & 16 deletions videos.php
@@ -1,35 +1,49 @@
<?php
require 'inc/func.inc.php';
/**
* @Author: Prabhakar Gupta
* @Date: 2016-02-16 01:57:09
* @Last Modified by: Prabhakar Gupta
* @Last Modified time: 2016-02-20 06:03:01
*/

require_once 'inc/func.inc.php';

$icons_random = array(
'paperclip',
'file-o',
);
?>

?>
<!DOCTYPE html>
<html lang="en">

<head>
<?php include 'layout/meta.inc.php'; ?>
<?php

include 'layout/meta.inc.php';

?>
<style>
video {
width: 100% !important;
height: auto !important;
}
</style>
</head>

<body class="skin-black">
<?php include 'layout/header.inc.php'; ?>
<?php

include 'layout/header.inc.php';

?>
<div class="wrapper row-offcanvas row-offcanvas-left">
<?php include 'layout/leftpanel.inc.php'; ?>
<?php

include 'layout/leftpanel.inc.php';

?>
<aside class="right-side">
<section class="content">
<div class="row" style="margin-bottom:5px;">


<?php

$path = 'videos';
Expand All @@ -43,8 +57,8 @@

foreach ($files as $file) {
if(is_dir($path . '/' . $file)){
?>

?>
<div class="col-md-2">
<a href="?v=<?php echo $file; ?>">
<div class="stat">
Expand All @@ -55,31 +69,32 @@
</div>
</a>
</div>

<?php

} else {
?>

?>
<div class="col-md-4">
<div class="embed-responsive embed-responsive-16by9">
<video controls>
<source src="<?php echo $path . '/' . $file; ?>" type="video/mp4">
</video>
</div>
</div>

<?php

}
}
?>

?>
</div>
</section>
</aside>
</div>

<?php

include 'layout/scripts.inc.php';

?>
</body>
</html>
</html>

0 comments on commit f8ac0c0

Please sign in to comment.