Skip to content

Commit

Permalink
templeting done
Browse files Browse the repository at this point in the history
  • Loading branch information
Fahad-Md-Kamal committed Feb 15, 2019
1 parent bba18b9 commit c442723
Show file tree
Hide file tree
Showing 8 changed files with 234 additions and 221 deletions.
221 changes: 0 additions & 221 deletions index.html

This file was deleted.

43 changes: 43 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@

<!-- head -->
<?php include_once"templating/head.php" ?>

<!-- Navigation -->
<?php include_once"templating/main_nav.php" ?>


<!-- Page Content -->
<div class="container">

<div class="row">

<div class="col-lg-3">

<h1 class="my-4">Shop Name</h1>
<?php include_once"templating/side_bar.php" ?>


</div>
<!-- /.col-lg-3 -->

<div class="col-lg-9">
<?php include_once"templating/slider.php" ?>


<!-- product list -->
<?php include_once"templating/product_list.php" ?>

<!-- /.row -->

</div>
<!-- /.col-lg-9 -->

</div>
<!-- /.row -->

</div>
<!-- /.container -->

<!-- Footer -->
<?php include_once"templating/footer_area.php" ?>

14 changes: 14 additions & 0 deletions templating/footer_area.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<footer class="py-5 bg-dark">
<div class="container">
<p class="m-0 text-center text-white">Copyright &copy; Your Website 2019</p>
</div>
<!-- /.container -->
</footer>

<!-- Bootstrap core JavaScript -->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
</body>

</html>
21 changes: 21 additions & 0 deletions templating/head.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html lang="en">

<head>

<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>Shop Homepage - Start Bootstrap Template</title>
<!-- Bootstrap core CSS -->
<link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="css/shop-homepage.css" rel="stylesheet">
</head>
<body>
26 changes: 26 additions & 0 deletions templating/main_nav.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top">
<div class="container">
<a class="navbar-brand" href="#">Start Bootstrap</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav ml-auto">
<li class="nav-item active">
<a class="nav-link" href="#">Home
<span class="sr-only">(current)</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">About</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Services</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Contact</a>
</li>
</ul>
</div>
</div>
</nav>
Loading

0 comments on commit c442723

Please sign in to comment.