Last active
September 13, 2017 05:25
-
-
Save akuikialie/6744ac6dce7df67c79a1bca262c8a3a1 to your computer and use it in GitHub Desktop.
catalog-folder-landing-page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Codeigniter 3 Project</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<!-- Bootstrap --> | |
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet"> | |
<link href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css" rel="stylesheet" /> | |
<link href="http://fonts.googleapis.com/css?family=Abel|Open+Sans:400,600" rel="stylesheet" /> | |
<style> | |
/* http://css-tricks.com/perfect-full-page-background-image/ */ | |
html { | |
background: url(img/6133364748_89f2365922_o.jpg) no-repeat center center fixed; | |
-webkit-background-size: cover; | |
-moz-background-size: cover; | |
-o-background-size: cover; | |
background-size: cover; | |
} | |
body { | |
padding-top: 20px; | |
font-size: 16px; | |
font-family: "Open Sans",serif; | |
background: transparent; | |
} | |
h1 { | |
font-family: "Abel", Arial, sans-serif; | |
font-weight: 400; | |
font-size: 40px; | |
} | |
/* Override B3 .panel adding a subtly transparent background */ | |
.panel { | |
background-color: rgba(255, 255, 255, 0.9); | |
} | |
.margin-base-vertical { | |
margin: 40px 0; | |
} | |
</style> | |
</head> | |
<body> | |
<div class="container"> | |
<div class="row"> | |
<?php | |
$dir = __DIR__.'/'; | |
if (is_dir($dir)) : | |
if ($dh = opendir($dir)) : | |
while (($file = readdir($dh)) !== false) : | |
if(filetype($dir . $file) == 'dir' && strlen($file) > 4) : | |
?> | |
<div class="col-md-4 panel panel-default" style=""> | |
<p align="center" style="margin-top:5%;font-size:25px"> | |
<strong><?= strtoupper($file) ?></strong> | |
</p> | |
<form class="margin-base-vertical"> | |
<p class="text-center"> | |
<a href="<?= 'http://docs.dev/masjidia-pos-docs/' ?>"> | |
<button type="button" class="btn btn-success btn-lg">Keep me posted</button> | |
</a> | |
</p> | |
</form> | |
</div> | |
<?php | |
endif; | |
endwhile; | |
closedir($dh); | |
endif; | |
endif; | |
?> | |
</div><!-- //row --> | |
</div> <!-- //container --> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment