Advertisement
Skorpius

Bootstrap Nav & Footer Template with CSS

Feb 10th, 2023 (edited)
1,327
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 8.00 KB | None | 0 0
  1. <?php
  2.  
  3.     //Line below goes on all pages that are PHP ONLY
  4.     defined('BASEPATH') OR exit('Direct script access is not permitted');
  5.  
  6.     //Line below goes on all pages with html - that the end user sees
  7.     define('BASEPATH', true);
  8.  
  9.     include "php/setup.php"; //Contains base settings such as $site_title & your constant below would go in that file
  10.  
  11.     //Constant defined
  12.     define("MYNAME", "Your_Name_Here");
  13.  
  14. ?>
  15. <!DOCTYPE html>
  16. <html lang="en">
  17. <head>
  18.     <meta charset="UTF-8">
  19.     <title><?php echo $site_title; ?></title>
  20.     <meta name="author" content="<?php echo MYNAME; ?>">
  21.     <meta name="description" content="Example description">
  22.     <meta name="viewport" content="width=device-width, initial-scale=1.0">
  23.     <meta name="generator" content="<?php echo MYNAME; ?> V01.1">
  24.     <!-- fontawesome icons -->
  25.     <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.1/css/all.css" integrity="sha384-vp86vTRFVJgpjF9jiIGPEEqYqlDwgyBgEF109VFjmqGmIY/Y4HV4d3Gp2irVfcrp" crossorigin="anonymous">
  26.     <!-- Bootstrap -->
  27.     <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
  28.     <!-- My css -->
  29.     <link rel="stylesheet" href="css/mystyles.css">
  30.     <!-- browser tab icon -->
  31.     <link rel="icon" type="image/png" href="favicon.ico">
  32.     <!-- JQuery Script -->
  33.     <script src="js/jquery.js"></script>
  34.  
  35.     <!-- Jquery UI -->
  36.     <link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/themes/sunny/jquery-ui.css">
  37.     <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
  38.  
  39.     <!-- for datatables -->
  40.     <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/ju/dt-1.10.25/datatables.min.css"/>
  41.  
  42.     <script  src="https://cdn.datatables.net/v/ju/dt-1.10.25/datatables.min.js"></script>
  43.  
  44.     <!-- lightbox css -->
  45.     <link rel="stylesheet" href="css/lightbox.min.css">
  46.     <script src="js/lightbox.min.js"></script>
  47.  
  48.     <!-- Dropdown on projects page -->
  49.     <script src="js/dropdown.js"></script>
  50. </head>
  51.  
  52. <body class="d-flex flex-column min-vh-100">
  53.  
  54. <nav class="navbar navbar-expand-lg bg-warning">
  55.   <div class="container-fluid">
  56.     <a class="navbar-brand fw-bold" href="#"><?php echo MYNAME; ?></a>
  57.     <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarText" aria-controls="navbarText" aria-expanded="false" aria-label="Toggle navigation">
  58.       <span class="navbar-toggler-icon"></span>
  59.     </button>
  60.     <div class="collapse navbar-collapse" id="navbarText">
  61.       <ul class="navbar-nav mx-auto mb-2 mb-lg-0 fs-5">
  62.         <li class="nav-item">
  63.           <a class="nav-link active" aria-current="page" href="#">Home</a>
  64.         </li>
  65.         <li class="nav-item">
  66.           <a class="nav-link" href="#">Projects</a>
  67.         </li>
  68.         <li class="nav-item">
  69.           <a class="nav-link" href="#">About</a>
  70.         </li>
  71.         <li class="nav-item">
  72.           <a class="nav-link" href="#">Contact</a>
  73.         </li>
  74.       </ul>
  75.       <form class="d-flex mb-2" role="search">
  76.       <input class="form-control me-2 " type="search" placeholder="Search" aria-label="Search">
  77.       <button class="btn btn-secondary" type="submit">Search</button>
  78.     </form>
  79.     </div>
  80.   </div>
  81. </nav>
  82.  
  83. <!-- END OF NAVBAR -->
  84.  
  85. <section class="p-4 bg-light">
  86.     <div class="container-md">
  87.         <!-- Content here -->
  88.         Section 1 - Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
  89.  
  90. Why do we use it?
  91. It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).
  92.  
  93.  
  94. Where does it come from?
  95. Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.
  96.     </div>
  97. </section>
  98.  
  99. <section class="p-4 bg-white">
  100.     Section 2
  101. </section>
  102.  
  103. <section class="p-4 bg-dark text-white">
  104.     Section 3
  105. </section>
  106.  
  107. <section class="p-4 bg-white">
  108.     Section 4
  109. </section>
  110.  
  111. <section class="p-4 bg-light">
  112.     Section 5
  113. </section>
  114.  
  115. <section class="p-4 bg-white">
  116.     Section 6
  117. </section>
  118.  
  119. <!-- FOOTER -->
  120.        
  121. <footer class="bg-dark text-white pt-3 pb-4 mt-auto">
  122.  
  123.     <div class="container text-center text-md-left">
  124.  
  125.     <div class="row align-items-center">
  126.  
  127.     <div class="col-md-12 col-lg-12 text-center">
  128.         <p> Copyright ©2020 All rights reserved<br class="visible-ss"> by:
  129.         <a href="#" style="text-decoration: none;">
  130.             <strong class="text-warning"><?php echo MYNAME; ?></strong>
  131.         </a></p>
  132.    
  133.         </div>
  134.  
  135.         <hr class="mb-4">
  136.  
  137.         </div>
  138.  
  139.         <div class="row text-center text-md-left">
  140.  
  141.             <div class="col-md-3 col-lg-3 col-xl-3 mx-auto mt-3">
  142.                 <h5 class="text-uppercase mb-4 font-weight-bold text-warning"><?php echo MYNAME; ?></h5>
  143.                 <p>Here you can use rows and columns to organize your footer content. Lorem ipsum dolor sit amet,
  144.           ital consectetur lorem ipsum dolor sit amet adipisicing elit.</p>
  145.                
  146.             </div>
  147.  
  148.             <div class="col-md-2 col-lg-2 col-xl-2 mx-auto mt-3">
  149.                 <h5 class="text-uppercase mb-4 font-weight-bold text-warning">Projects</h5>
  150.             <p>
  151.                 <a href="#" class="text-white" style="text-decoration: none;"> Recipe eBook</a>
  152.             </p>
  153.             <p>
  154.                 <a href="#" class="text-white" style="text-decoration: none;"> Useful Links</a>
  155.             </p>
  156.             <p>
  157.                 <a href="#" class="text-white" style="text-decoration: none;"> Database</a>
  158.             </p>
  159.             <p>
  160.                 <a href="#" class="text-white" style="text-decoration: none;"> Programming</a>
  161.             </p>
  162.  
  163.             </div>
  164.  
  165.             <div class="col-md-3 col-lg-2 col-xl-2 mx-auto mt-3">
  166.                 <h5 class="text-uppercase mb-4 font-weight-bold text-warning">Useful links</h5>
  167.             <p>
  168.                 <a href="#" class="text-white" style="text-decoration: none;"> Your Account</a>
  169.             </p>
  170.             <p>
  171.                 <a href="#" class="text-white" style="text-decoration: none;"> Become an Affiliates</a>
  172.             </p>
  173.             <p>
  174.                 <a href="#" class="text-white" style="text-decoration: none;">Shipping Rates</a>
  175.             </p>
  176.             <p>
  177.                 <a href="#" class="text-white" style="text-decoration: none;"> Help</a>
  178.             </p>
  179.             </div>
  180.            
  181.         </div>
  182.  
  183.     </div>
  184.    
  185. </footer>
  186.    
  187.    
  188.     <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js" integrity="sha384-w76AqPfDkMBDXo30jS1Sgez6pr3x5MlQ1ZAGC+nuZB+EYdgRZgiwxhTBTkF7CXvN" crossorigin="anonymous"></script>
  189. </body>
  190.  
  191. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement