Viewing file: header.php (6.88 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php include('conn.php'); error_reporting(E_ALL); ini_set('display_errors', 0); session_start(); ?>
<!DOCTYPE html> <html lang="en">
<!-- Basic --> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- Mobile Metas --> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Site Metas --> <title>ALP Astrology Blogs</title> <meta name="keywords" content=""> <meta name="description" content=""> <meta name="author" content="">
<!-- Site Icons --> <link rel="shortcut icon" href="images/logo_fav.png" type="image/x-icon" /> <link rel="apple-touch-icon" href="images/apple-touch-icon.png">
<!-- Design fonts --> <link href="https://fonts.googleapis.com/css?family=Droid+Sans:400,700" rel="stylesheet">
<!-- Bootstrap core CSS --> <link href="css/bootstrap.css" rel="stylesheet"> <!-- Swiper CSS --> <link rel="stylesheet" href="https://unpkg.com/swiper/swiper-bundle.min.css" />
<!-- Swiper JS --> <script src="https://unpkg.com/swiper/swiper-bundle.min.js"></script>
<!-- FontAwesome Icons core CSS --> <link href="css/font-awesome.min.css" rel="stylesheet">
<!-- Custom styles for this template --> <link href="style.css" rel="stylesheet">
<!-- Responsive styles for this template --> <link href="css/responsive.css" rel="stylesheet">
<!-- Colors for this template --> <link href="css/colors.css" rel="stylesheet">
<!-- Version Garden CSS for this template --> <link href="css/version/garden.css" rel="stylesheet">
<!--[if lt IE 9]> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> <![endif]-->
</head>
<body>
<div id="wrapper"> <div class="collapse top-search" id="collapseExample"> <div class="card card-block"> <div class="newsletter-widget text-center"> <form class="form-inline"> <input type="text" class="form-control" placeholder="What you are looking for?"> <button type="submit" class="btn btn-primary"><i class="fa fa-search"></i></button> </form> </div><!-- end newsletter --> </div> </div><!-- end top-search -->
<div class="topbar-section"> <div class="container-fluid"> <div class="row"> <div class="col-lg-7 col-md-6 col-sm-6 hidden-xs-down"> <div class="topsocial"> <a href="#" data-toggle="tooltip" data-placement="bottom" title="Facebook"><i class="fa fa-facebook"></i></a> <a href="#" data-toggle="tooltip" data-placement="bottom" title="Youtube"><i class="fa fa-youtube"></i></a> <a href="#" data-toggle="tooltip" data-placement="bottom" title="Instagram"><i class="fa fa-instagram"></i></a> </div><!-- end social --> </div><!-- end col -->
<div class="col-lg-3 col-md-6 col-sm-6 col-xs-6"> <?php if (empty($_SESSION['email'])): ?> <i class="fa fa-user" style="cursor:pointer;margin-top: 10px;" data-toggle="modal" data-target="#addUserModal"> Subscribe</i> <?php else: ?> <i class="fa fa-user" style="margin-top: 10px;"> </i> <?php endif; ?> <span style='margin:5px;'><?= htmlspecialchars($_SESSION['email']) ?></span>
<!-- Modal Structure --> <div class="modal fade" id="addUserModal" tabindex="-1" role="dialog" aria-labelledby="addUserModalLabel" aria-hidden="true"> <div class="modal-dialog" role="document"> <form id="addUserForm" method="POST" action="./subs_user.php"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="addUserModalLabel">Subscribe</h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <div class="form-group"> <label for="userEmail" style="color: black;">Email address</label> <input type="email" class="form-control" id="userEmail" name="email" required> </div> </div> <div class="modal-footer"> <button type="submit" name="submit" class="btn btn-primary">Submit</button> <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button> </div> </div> </form> </div> </div>
</div><!-- end col --> <div class="col-lg-2 col-md-6 col-sm-6 col-xs-6"> <span style='margin-top:10px;'> <a href="https://jothidam.tv/admin/login.php" style="cursor:pointer;margin-top: 10px;"><i class="fa fa-sign-in" aria-hidden="true"> LogIn</i></a> </span> </div><!-- end col -->
</div><!-- end row --> </div><!-- end header-logo --> </div><!-- end topbar -->
<div class="header-section"> <div class="container"> <div class="row"> <div class="col-md-12"> <div class="logo"> <a href="index.php"><img src="images/logo_blog.png" alt=""></a> </div><!-- end logo --> </div> </div><!-- end row --> </div><!-- end header-logo --> </div><!-- end header -->
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> <!-- <script> <?php if (empty($_SESSION['email'])): ?> $(document).ready(function() { $('#addUserModal').modal('show'); }); <?php endif; ?> </script> -->
|