<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class AuthUsr extends CI_Controller {
private $view = "frontend/v_akun/";
private $redirect = "authusr";
public function __construct(){
parent::__construct();
//Load model
$this->load->model('M_authusr');
}
public function index()
{
$this->session->sess_destroy();
$data = array(
'read'=> ''
);
$this->template->load('frontend/template',$this->view.'login', $data);
}
public function login()
{
error_reporting(0);
$id = $this->input->post('email_user');
$pwd = md5($this->input->post('pswd_user'));
$data = $this->M_authusr->CekLogin('user','email_user',$id);
if($data['pswd_user'] == $pwd AND $data['email_user'] == $id){
$array = array(
'email_user' => $data['email_user'],
'nama_user' => $data['nama_user'],
'IsUser' => 2
);
$this->session->set_userdata($array);
redirect('kontak','refresh');
}else{
echo "<script>alert('Username atau Password salah!');</script>";
redirect('authusr','refresh');
}
}
public function logout(){
$this->session->sess_destroy();
redirect('authusr','refresh');
}
}
defined('BASEPATH') OR exit('No direct script access allowed');
class AuthUsr extends CI_Controller {
private $view = "frontend/v_akun/";
private $redirect = "authusr";
public function __construct(){
parent::__construct();
//Load model
$this->load->model('M_authusr');
}
public function index()
{
$this->session->sess_destroy();
$data = array(
'read'=> ''
);
$this->template->load('frontend/template',$this->view.'login', $data);
}
public function login()
{
error_reporting(0);
$id = $this->input->post('email_user');
$pwd = md5($this->input->post('pswd_user'));
$data = $this->M_authusr->CekLogin('user','email_user',$id);
if($data['pswd_user'] == $pwd AND $data['email_user'] == $id){
$array = array(
'email_user' => $data['email_user'],
'nama_user' => $data['nama_user'],
'IsUser' => 2
);
$this->session->set_userdata($array);
redirect('kontak','refresh');
}else{
echo "<script>alert('Username atau Password salah!');</script>";
redirect('authusr','refresh');
}
}
public function logout(){
$this->session->sess_destroy();
redirect('authusr','refresh');
}
}
2. application/models/M_akunusr.php
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class M_authusr extends CI_Model {
public function CekLogin($table,$pk,$id){
$this->db->where($pk, $id);
return $this->db->get($table)->row_array();
}
}
defined('BASEPATH') OR exit('No direct script access allowed');
class M_authusr extends CI_Model {
public function CekLogin($table,$pk,$id){
$this->db->where($pk, $id);
return $this->db->get($table)->row_array();
}
}
3. application/views/frontend/v_akun/login.php
<div class="contact-title">
<h2>Login</h2>
</div>
<div class="col-12 col-lg-12">
<div class="contact-form-area">
<form action="<?php echo site_url('authusr/login') ?>" method="post">
<div class="row">
<div class="col-12 col-lg-6">
<input type="text" class="form-control" id="name" name="email_user" placeholder="Masukan Email"><br>
<input type="password" class="form-control" id="name" name=pswd_user placeholder="Masukan Password"><br>
<button class="btn newspaper-btn mt-30 w-100" type="submit">Login</button>
</div>
<div class="col-12 col-lg-6">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam eu metus sit amet odio sodales placerat. Sed varius leo ac leo fermentum, eu cursus nunc maximus. Integer convallis nisi nibh
untuk daftar <a href="<?php echo site_url('AkunUsr') ?>">klik dsini</a>
</div>
</div>
</form>
</div>
</div>
<h2>Login</h2>
</div>
<div class="col-12 col-lg-12">
<div class="contact-form-area">
<form action="<?php echo site_url('authusr/login') ?>" method="post">
<div class="row">
<div class="col-12 col-lg-6">
<input type="text" class="form-control" id="name" name="email_user" placeholder="Masukan Email"><br>
<input type="password" class="form-control" id="name" name=pswd_user placeholder="Masukan Password"><br>
<button class="btn newspaper-btn mt-30 w-100" type="submit">Login</button>
</div>
<div class="col-12 col-lg-6">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam eu metus sit amet odio sodales placerat. Sed varius leo ac leo fermentum, eu cursus nunc maximus. Integer convallis nisi nibh
untuk daftar <a href="<?php echo site_url('AkunUsr') ?>">klik dsini</a>
</div>
</div>
</form>
</div>
</div>
4. application/views/frontend/template.php
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="description" content="">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- The above 4 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<!-- Title -->
<title>The News Paper - News & Lifestyle Magazine Template</title>
<!-- Favicon -->
<link rel="icon" href="<?php echo base_url(); ?>assets/frontend/img/core-img/favicon.ico">
<!-- Core Stylesheet -->
<link rel="stylesheet" href="<?php echo base_url(); ?>assets/frontend/style.css">
</head>
<body>
<!-- ##### Header Area Start ##### -->
<header class="header-area">
<!-- Top Header Area -->
<div class="top-header-area">
<div class="container">
<div class="row">
<div class="col-12">
<div class="top-header-content d-flex align-items-center justify-content-between">
<!-- Logo -->
<div class="logo">
<a href="<?php echo base_url(); ?>assets/frontend/index.html"><img src="<?php echo base_url(); ?>assets/frontend/img/core-img/logo.png" alt=""></a>
</div>
<!-- Login Search Area -->
<div class="login-search-area d-flex align-items-center">
<!-- Login -->
<div class="login d-flex">
<a href="<?php echo base_url(); ?>assets/frontend/#">Login</a>
<a href="<?php echo base_url(); ?>assets/frontend/#">Register</a>
</div>
<!-- Search Form -->
<div class="search-form">
<form action="#" method="post">
<input type="search" name="search" class="form-control" placeholder="Search">
<button type="submit"><i class="fa fa-search" aria-hidden="true"></i></button>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Navbar Area -->
<div class="newspaper-main-menu" id="stickyMenu">
<div class="classy-nav-container breakpoint-off">
<div class="container">
<!-- Menu -->
<nav class="classy-navbar justify-content-between" id="newspaperNav">
<!-- Logo -->
<div class="logo">
<a href="<?php echo base_url(); ?>assets/frontend/index.html"><img src="<?php echo base_url(); ?>assets/frontend/img/core-img/logo.png" alt=""></a>
</div>
<!-- Navbar Toggler -->
<div class="classy-navbar-toggler">
<span class="navbarToggler"><span></span><span></span><span></span></span>
</div>
<!-- Menu -->
<div class="classy-menu">
<!-- close btn -->
<div class="classycloseIcon">
<div class="cross-wrap"><span class="top"></span><span class="bottom"></span></div>
</div>
<!-- Nav Start -->
<div class="classynav">
<ul>
<li class="active"><a href="<?php echo site_url('berandausr') ?>">Beranda</a></li>
<li><a href="#">Pages</a>
<ul class="dropdown">
<li><a href="#">Home</a></li>
<li><a href="#">Catagories</a></li>
<li><a href="#">Single Articles</a></li>
<li><a href="#">About Us</a></li>
<li><a href="#">Contact</a></li>
</ul>
</li>
<li><a href="<?php echo site_url('beritausr') ?>">Berita</a></li>
<li><a href="<?php echo site_url('kontak') ?>">Kontak</a></li>
<!--LogikaLogin-->
<?php if($this->session->userdata('IsUser')==2) { ?>
<li><a href="#">Hai, <?php echo $this->session->userdata('email_user'); ?></a>
<ul class="dropdown">
<li><a href="#">Akun Saya</a></li>
<li><a href="#">Catagories</a></li>
<li><a href="#">Single Articles</a></li>
<li><a href="#">About Us</a></li>
<li><a href="<?php echo site_url('authusr/logout') ?>">Keluar</a></li>
</ul>
</li>
<?php
}
else{
?>
<li><a href="<?php echo site_url('authusr') ?>">Login</a></li>
<?php
}
?>
<!--EndLogikaLogin-->
</ul>
</div>
<!-- Nav End -->
</div>
</nav>
</div>
</div>
</div>
</header>
<!-- ##### Header Area End ##### -->
<!-- ##### Hero Area Start ##### -->
<div class="hero-area">
<div class="container">
<div class="row align-items-center">
<div class="col-12 col-lg-8">
<!-- Breaking News Widget -->
<div class="breaking-news-area d-flex align-items-center">
<div class="news-title">
<p>Breaking News</p>
</div>
<div id="breakingNewsTicker" class="ticker">
<ul>
<li><a href="<?php echo base_url(); ?>assets/frontend/#">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</a></li>
<li><a href="<?php echo base_url(); ?>assets/frontend/#">Welcome to Colorlib Family.</a></li>
<li><a href="<?php echo base_url(); ?>assets/frontend/#">Nam eu metus sitsit amet, consec!</a></li>
</ul>
</div>
</div>
</div>
<!-- Hero Add -->
<div class="col-12 col-lg-4">
<div class="hero-add">
<a href="<?php echo base_url(); ?>assets/frontend/#"><img src="<?php echo base_url(); ?>assets/frontend/img/bg-img/hero-add.gif" alt=""></a>
</div>
</div>
</div>
</div>
</div>
<!-- ##### Hero Area End ##### -->
<!-- ##### Featured Post Area Start ##### -->
<div class="featured-post-area">
<div class="container">
<div class="row">
<div class="col-12 col-md-6 col-lg-8">
<div class="row">
<!--isi content-->
<?php echo $contents ?>
<!--end isi content-->
<!-- Single Post -->
</div>
</div>
<div class="col-12 col-md-6 col-lg-4">
<!-- Single Featured Post -->
<div class="single-blog-post small-featured-post d-flex">
<div class="post-thumb">
<a href="<?php echo base_url(); ?>assets/frontend/#"><img src="<?php echo base_url(); ?>assets/frontend/img/bg-img/19.jpg" alt=""></a>
</div>
<div class="post-data">
<a href="<?php echo base_url(); ?>assets/frontend/#" class="post-catagory">Finance</a>
<div class="post-meta">
<a href="<?php echo base_url(); ?>assets/frontend/#" class="post-title">
<h6>Pellentesque mattis arcu massa, nec fringilla turpis eleifend id.</h6>
</a>
<p class="post-date"><span>7:00 AM</span> | <span>April 14</span></p>
</div>
</div>
</div>
<!-- Single Featured Post -->
<div class="single-blog-post small-featured-post d-flex">
<div class="post-thumb">
<a href="<?php echo base_url(); ?>assets/frontend/#"><img src="<?php echo base_url(); ?>assets/frontend/img/bg-img/20.jpg" alt=""></a>
</div>
<div class="post-data">
<a href="<?php echo base_url(); ?>assets/frontend/#" class="post-catagory">Politics</a>
<div class="post-meta">
<a href="<?php echo base_url(); ?>assets/frontend/#" class="post-title">
<h6>Sed a elit euismod augue semper congue sit amet ac sapien.</h6>
</a>
<p class="post-date"><span>7:00 AM</span> | <span>April 14</span></p>
</div>
</div>
</div>
<!-- Single Featured Post -->
<div class="single-blog-post small-featured-post d-flex">
<div class="post-thumb">
<a href="<?php echo base_url(); ?>assets/frontend/#"><img src="<?php echo base_url(); ?>assets/frontend/img/bg-img/21.jpg" alt=""></a>
</div>
<div class="post-data">
<a href="<?php echo base_url(); ?>assets/frontend/#" class="post-catagory">Health</a>
<div class="post-meta">
<a href="<?php echo base_url(); ?>assets/frontend/#" class="post-title">
<h6>Pellentesque mattis arcu massa, nec fringilla turpis eleifend id.</h6>
</a>
<p class="post-date"><span>7:00 AM</span> | <span>April 14</span></p>
</div>
</div>
</div>
<br><br>
<div class="section-heading">
<h6>World News</h6>
</div>
<!-- Single Post -->
<div class="single-blog-post style-2">
<div class="post-thumb">
<a href="<?php echo base_url(); ?>assets/frontend/#"><img src="<?php echo base_url(); ?>assets/frontend/img/bg-img/7.jpg" alt=""></a>
</div>
<div class="post-data">
<a href="<?php echo base_url(); ?>assets/frontend/#" class="post-title">
<h6>Orci varius natoque penatibus et magnis</h6>
</a>
<div class="post-meta">
<div class="post-date"><a href="<?php echo base_url(); ?>assets/frontend/#">February 11, 2018</a></div>
</div>
</div>
</div>
<!-- Single Post -->
<div class="single-blog-post style-2">
<div class="post-thumb">
<a href="<?php echo base_url(); ?>assets/frontend/#"><img src="<?php echo base_url(); ?>assets/frontend/img/bg-img/8.jpg" alt=""></a>
</div>
<div class="post-data">
<a href="<?php echo base_url(); ?>assets/frontend/#" class="post-title">
<h6>Orci varius natoque penatibus et magnis</h6>
</a>
<div class="post-meta">
<div class="post-date"><a href="<?php echo base_url(); ?>assets/frontend/#">February 11, 2018</a></div>
</div>
</div>
</div>
<!-- Single Post -->
<div class="single-blog-post style-2">
<div class="post-thumb">
<a href="<?php echo base_url(); ?>assets/frontend/#"><img src="<?php echo base_url(); ?>assets/frontend/img/bg-img/9.jpg" alt=""></a>
</div>
<div class="post-data">
<a href="<?php echo base_url(); ?>assets/frontend/#" class="post-title">
<h6>Orci varius natoque penatibus et magnis</h6>
</a>
<div class="post-meta">
<div class="post-date"><a href="<?php echo base_url(); ?>assets/frontend/#">February 11, 2018</a></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- ##### Featured Post Area End ##### -->
<!-- ##### Footer Add Area Start ##### -->
<div class="footer-add-area">
<div class="container">
<div class="row">
<div class="col-12">
<div class="footer-add">
<a href="<?php echo base_url(); ?>assets/frontend/#"><img src="<?php echo base_url(); ?>assets/frontend/img/bg-img/footer-add.gif" alt=""></a>
</div>
</div>
</div>
</div>
</div>
<!-- ##### Footer Add Area End ##### -->
<!-- ##### Footer Area Start ##### -->
<footer class="footer-area">
<!-- Main Footer Area -->
<div class="main-footer-area">
<div class="container">
<div class="row">
<!-- Footer Widget Area -->
<div class="col-12 col-sm-6 col-lg-4">
<div class="footer-widget-area mt-80">
<!-- Footer Logo -->
<div class="footer-logo">
<a href="<?php echo base_url(); ?>assets/frontend/index.html"><img src="<?php echo base_url(); ?>assets/frontend/img/core-img/logo.png" alt=""></a>
</div>
<!-- List -->
<ul class="list">
<li><a href="<?php echo base_url(); ?>assets/frontend/mailto:contact@youremail.com">contact@youremail.com</a></li>
<li><a href="<?php echo base_url(); ?>assets/frontend/tel:+4352782883884">+43 5278 2883 884</a></li>
<li><a href="<?php echo base_url(); ?>assets/frontend/http://yoursitename.com">www.yoursitename.com</a></li>
</ul>
</div>
</div>
<!-- Footer Widget Area -->
<div class="col-12 col-sm-6 col-lg-2">
<div class="footer-widget-area mt-80">
<!-- Title -->
<h4 class="widget-title">Politics</h4>
<!-- List -->
<ul class="list">
<li><a href="<?php echo base_url(); ?>assets/frontend/#">Business</a></li>
<li><a href="<?php echo base_url(); ?>assets/frontend/#">Markets</a></li>
<li><a href="<?php echo base_url(); ?>assets/frontend/#">Tech</a></li>
<li><a href="<?php echo base_url(); ?>assets/frontend/#">Luxury</a></li>
</ul>
</div>
</div>
<!-- Footer Widget Area -->
<div class="col-12 col-sm-4 col-lg-2">
<div class="footer-widget-area mt-80">
<!-- Title -->
<h4 class="widget-title">Featured</h4>
<!-- List -->
<ul class="list">
<li><a href="<?php echo base_url(); ?>assets/frontend/#">Football</a></li>
<li><a href="<?php echo base_url(); ?>assets/frontend/#">Golf</a></li>
<li><a href="<?php echo base_url(); ?>assets/frontend/#">Tennis</a></li>
<li><a href="<?php echo base_url(); ?>assets/frontend/#">Motorsport</a></li>
<li><a href="<?php echo base_url(); ?>assets/frontend/#">Horseracing</a></li>
<li><a href="<?php echo base_url(); ?>assets/frontend/#">Equestrian</a></li>
<li><a href="<?php echo base_url(); ?>assets/frontend/#">Sailing</a></li>
<li><a href="<?php echo base_url(); ?>assets/frontend/#">Skiing</a></li>
</ul>
</div>
</div>
<!-- Footer Widget Area -->
<div class="col-12 col-sm-4 col-lg-2">
<div class="footer-widget-area mt-80">
<!-- Title -->
<h4 class="widget-title">FAQ</h4>
<!-- List -->
<ul class="list">
<li><a href="<?php echo base_url(); ?>assets/frontend/#">Aviation</a></li>
<li><a href="<?php echo base_url(); ?>assets/frontend/#">Business</a></li>
<li><a href="<?php echo base_url(); ?>assets/frontend/#">Traveller</a></li>
<li><a href="<?php echo base_url(); ?>assets/frontend/#">Destinations</a></li>
<li><a href="<?php echo base_url(); ?>assets/frontend/#">Features</a></li>
<li><a href="<?php echo base_url(); ?>assets/frontend/#">Food/Drink</a></li>
<li><a href="<?php echo base_url(); ?>assets/frontend/#">Hotels</a></li>
<li><a href="<?php echo base_url(); ?>assets/frontend/#">Partner Hotels</a></li>
</ul>
</div>
</div>
<!-- Footer Widget Area -->
<div class="col-12 col-sm-4 col-lg-2">
<div class="footer-widget-area mt-80">
<!-- Title -->
<h4 class="widget-title">+More</h4>
<!-- List -->
<ul class="list">
<li><a href="<?php echo base_url(); ?>assets/frontend/#">Fashion</a></li>
<li><a href="<?php echo base_url(); ?>assets/frontend/#">Design</a></li>
<li><a href="<?php echo base_url(); ?>assets/frontend/#">Architecture</a></li>
<li><a href="<?php echo base_url(); ?>assets/frontend/#">Arts</a></li>
<li><a href="<?php echo base_url(); ?>assets/frontend/#">Autos</a></li>
<li><a href="<?php echo base_url(); ?>assets/frontend/#">Luxury</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<!-- Bottom Footer Area -->
<div class="bottom-footer-area">
<div class="container h-100">
<div class="row h-100 align-items-center">
<div class="col-12">
<!-- Copywrite -->
<p><!-- Link back to Colorlib can't be removed. Template is licensed under CC BY 3.0. -->
Copyright ©<script>document.write(new Date().getFullYear());</script> All rights reserved | This template is made with <i class="fa fa-heart-o" aria-hidden="true"></i> by <a href="<?php echo base_url(); ?>assets/frontend/https://colorlib.com" target="_blank">Colorlib</a>
<!-- Link back to Colorlib can't be removed. Template is licensed under CC BY 3.0. --></p>
</div>
</div>
</div>
</div>
</footer>
<!-- ##### Footer Area Start ##### -->
<!-- ##### All Javascript Files ##### -->
<!-- jQuery-2.2.4 js -->
<script src="<?php echo base_url(); ?>assets/frontend/js/jquery/jquery-2.2.4.min.js"></script>
<!-- Popper js -->
<script src="<?php echo base_url(); ?>assets/frontend/js/bootstrap/popper.min.js"></script>
<!-- Bootstrap js -->
<script src="<?php echo base_url(); ?>assets/frontend/js/bootstrap/bootstrap.min.js"></script>
<!-- All Plugins js -->
<script src="<?php echo base_url(); ?>assets/frontend/js/plugins/plugins.js"></script>
<!-- Active js -->
<script src="<?php echo base_url(); ?>assets/frontend/js/active.js"></script>
</body>
</html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="description" content="">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- The above 4 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<!-- Title -->
<title>The News Paper - News & Lifestyle Magazine Template</title>
<!-- Favicon -->
<link rel="icon" href="<?php echo base_url(); ?>assets/frontend/img/core-img/favicon.ico">
<!-- Core Stylesheet -->
<link rel="stylesheet" href="<?php echo base_url(); ?>assets/frontend/style.css">
</head>
<body>
<!-- ##### Header Area Start ##### -->
<header class="header-area">
<!-- Top Header Area -->
<div class="top-header-area">
<div class="container">
<div class="row">
<div class="col-12">
<div class="top-header-content d-flex align-items-center justify-content-between">
<!-- Logo -->
<div class="logo">
<a href="<?php echo base_url(); ?>assets/frontend/index.html"><img src="<?php echo base_url(); ?>assets/frontend/img/core-img/logo.png" alt=""></a>
</div>
<!-- Login Search Area -->
<div class="login-search-area d-flex align-items-center">
<!-- Login -->
<div class="login d-flex">
<a href="<?php echo base_url(); ?>assets/frontend/#">Login</a>
<a href="<?php echo base_url(); ?>assets/frontend/#">Register</a>
</div>
<!-- Search Form -->
<div class="search-form">
<form action="#" method="post">
<input type="search" name="search" class="form-control" placeholder="Search">
<button type="submit"><i class="fa fa-search" aria-hidden="true"></i></button>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Navbar Area -->
<div class="newspaper-main-menu" id="stickyMenu">
<div class="classy-nav-container breakpoint-off">
<div class="container">
<!-- Menu -->
<nav class="classy-navbar justify-content-between" id="newspaperNav">
<!-- Logo -->
<div class="logo">
<a href="<?php echo base_url(); ?>assets/frontend/index.html"><img src="<?php echo base_url(); ?>assets/frontend/img/core-img/logo.png" alt=""></a>
</div>
<!-- Navbar Toggler -->
<div class="classy-navbar-toggler">
<span class="navbarToggler"><span></span><span></span><span></span></span>
</div>
<!-- Menu -->
<div class="classy-menu">
<!-- close btn -->
<div class="classycloseIcon">
<div class="cross-wrap"><span class="top"></span><span class="bottom"></span></div>
</div>
<!-- Nav Start -->
<div class="classynav">
<ul>
<li class="active"><a href="<?php echo site_url('berandausr') ?>">Beranda</a></li>
<li><a href="#">Pages</a>
<ul class="dropdown">
<li><a href="#">Home</a></li>
<li><a href="#">Catagories</a></li>
<li><a href="#">Single Articles</a></li>
<li><a href="#">About Us</a></li>
<li><a href="#">Contact</a></li>
</ul>
</li>
<li><a href="<?php echo site_url('beritausr') ?>">Berita</a></li>
<li><a href="<?php echo site_url('kontak') ?>">Kontak</a></li>
<!--LogikaLogin-->
<?php if($this->session->userdata('IsUser')==2) { ?>
<li><a href="#">Hai, <?php echo $this->session->userdata('email_user'); ?></a>
<ul class="dropdown">
<li><a href="#">Akun Saya</a></li>
<li><a href="#">Catagories</a></li>
<li><a href="#">Single Articles</a></li>
<li><a href="#">About Us</a></li>
<li><a href="<?php echo site_url('authusr/logout') ?>">Keluar</a></li>
</ul>
</li>
<?php
}
else{
?>
<li><a href="<?php echo site_url('authusr') ?>">Login</a></li>
<?php
}
?>
<!--EndLogikaLogin-->
</ul>
</div>
<!-- Nav End -->
</div>
</nav>
</div>
</div>
</div>
</header>
<!-- ##### Header Area End ##### -->
<!-- ##### Hero Area Start ##### -->
<div class="hero-area">
<div class="container">
<div class="row align-items-center">
<div class="col-12 col-lg-8">
<!-- Breaking News Widget -->
<div class="breaking-news-area d-flex align-items-center">
<div class="news-title">
<p>Breaking News</p>
</div>
<div id="breakingNewsTicker" class="ticker">
<ul>
<li><a href="<?php echo base_url(); ?>assets/frontend/#">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</a></li>
<li><a href="<?php echo base_url(); ?>assets/frontend/#">Welcome to Colorlib Family.</a></li>
<li><a href="<?php echo base_url(); ?>assets/frontend/#">Nam eu metus sitsit amet, consec!</a></li>
</ul>
</div>
</div>
</div>
<!-- Hero Add -->
<div class="col-12 col-lg-4">
<div class="hero-add">
<a href="<?php echo base_url(); ?>assets/frontend/#"><img src="<?php echo base_url(); ?>assets/frontend/img/bg-img/hero-add.gif" alt=""></a>
</div>
</div>
</div>
</div>
</div>
<!-- ##### Hero Area End ##### -->
<!-- ##### Featured Post Area Start ##### -->
<div class="featured-post-area">
<div class="container">
<div class="row">
<div class="col-12 col-md-6 col-lg-8">
<div class="row">
<!--isi content-->
<?php echo $contents ?>
<!--end isi content-->
<!-- Single Post -->
</div>
</div>
<div class="col-12 col-md-6 col-lg-4">
<!-- Single Featured Post -->
<div class="single-blog-post small-featured-post d-flex">
<div class="post-thumb">
<a href="<?php echo base_url(); ?>assets/frontend/#"><img src="<?php echo base_url(); ?>assets/frontend/img/bg-img/19.jpg" alt=""></a>
</div>
<div class="post-data">
<a href="<?php echo base_url(); ?>assets/frontend/#" class="post-catagory">Finance</a>
<div class="post-meta">
<a href="<?php echo base_url(); ?>assets/frontend/#" class="post-title">
<h6>Pellentesque mattis arcu massa, nec fringilla turpis eleifend id.</h6>
</a>
<p class="post-date"><span>7:00 AM</span> | <span>April 14</span></p>
</div>
</div>
</div>
<!-- Single Featured Post -->
<div class="single-blog-post small-featured-post d-flex">
<div class="post-thumb">
<a href="<?php echo base_url(); ?>assets/frontend/#"><img src="<?php echo base_url(); ?>assets/frontend/img/bg-img/20.jpg" alt=""></a>
</div>
<div class="post-data">
<a href="<?php echo base_url(); ?>assets/frontend/#" class="post-catagory">Politics</a>
<div class="post-meta">
<a href="<?php echo base_url(); ?>assets/frontend/#" class="post-title">
<h6>Sed a elit euismod augue semper congue sit amet ac sapien.</h6>
</a>
<p class="post-date"><span>7:00 AM</span> | <span>April 14</span></p>
</div>
</div>
</div>
<!-- Single Featured Post -->
<div class="single-blog-post small-featured-post d-flex">
<div class="post-thumb">
<a href="<?php echo base_url(); ?>assets/frontend/#"><img src="<?php echo base_url(); ?>assets/frontend/img/bg-img/21.jpg" alt=""></a>
</div>
<div class="post-data">
<a href="<?php echo base_url(); ?>assets/frontend/#" class="post-catagory">Health</a>
<div class="post-meta">
<a href="<?php echo base_url(); ?>assets/frontend/#" class="post-title">
<h6>Pellentesque mattis arcu massa, nec fringilla turpis eleifend id.</h6>
</a>
<p class="post-date"><span>7:00 AM</span> | <span>April 14</span></p>
</div>
</div>
</div>
<br><br>
<div class="section-heading">
<h6>World News</h6>
</div>
<!-- Single Post -->
<div class="single-blog-post style-2">
<div class="post-thumb">
<a href="<?php echo base_url(); ?>assets/frontend/#"><img src="<?php echo base_url(); ?>assets/frontend/img/bg-img/7.jpg" alt=""></a>
</div>
<div class="post-data">
<a href="<?php echo base_url(); ?>assets/frontend/#" class="post-title">
<h6>Orci varius natoque penatibus et magnis</h6>
</a>
<div class="post-meta">
<div class="post-date"><a href="<?php echo base_url(); ?>assets/frontend/#">February 11, 2018</a></div>
</div>
</div>
</div>
<!-- Single Post -->
<div class="single-blog-post style-2">
<div class="post-thumb">
<a href="<?php echo base_url(); ?>assets/frontend/#"><img src="<?php echo base_url(); ?>assets/frontend/img/bg-img/8.jpg" alt=""></a>
</div>
<div class="post-data">
<a href="<?php echo base_url(); ?>assets/frontend/#" class="post-title">
<h6>Orci varius natoque penatibus et magnis</h6>
</a>
<div class="post-meta">
<div class="post-date"><a href="<?php echo base_url(); ?>assets/frontend/#">February 11, 2018</a></div>
</div>
</div>
</div>
<!-- Single Post -->
<div class="single-blog-post style-2">
<div class="post-thumb">
<a href="<?php echo base_url(); ?>assets/frontend/#"><img src="<?php echo base_url(); ?>assets/frontend/img/bg-img/9.jpg" alt=""></a>
</div>
<div class="post-data">
<a href="<?php echo base_url(); ?>assets/frontend/#" class="post-title">
<h6>Orci varius natoque penatibus et magnis</h6>
</a>
<div class="post-meta">
<div class="post-date"><a href="<?php echo base_url(); ?>assets/frontend/#">February 11, 2018</a></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- ##### Featured Post Area End ##### -->
<!-- ##### Footer Add Area Start ##### -->
<div class="footer-add-area">
<div class="container">
<div class="row">
<div class="col-12">
<div class="footer-add">
<a href="<?php echo base_url(); ?>assets/frontend/#"><img src="<?php echo base_url(); ?>assets/frontend/img/bg-img/footer-add.gif" alt=""></a>
</div>
</div>
</div>
</div>
</div>
<!-- ##### Footer Add Area End ##### -->
<!-- ##### Footer Area Start ##### -->
<footer class="footer-area">
<!-- Main Footer Area -->
<div class="main-footer-area">
<div class="container">
<div class="row">
<!-- Footer Widget Area -->
<div class="col-12 col-sm-6 col-lg-4">
<div class="footer-widget-area mt-80">
<!-- Footer Logo -->
<div class="footer-logo">
<a href="<?php echo base_url(); ?>assets/frontend/index.html"><img src="<?php echo base_url(); ?>assets/frontend/img/core-img/logo.png" alt=""></a>
</div>
<!-- List -->
<ul class="list">
<li><a href="<?php echo base_url(); ?>assets/frontend/mailto:contact@youremail.com">contact@youremail.com</a></li>
<li><a href="<?php echo base_url(); ?>assets/frontend/tel:+4352782883884">+43 5278 2883 884</a></li>
<li><a href="<?php echo base_url(); ?>assets/frontend/http://yoursitename.com">www.yoursitename.com</a></li>
</ul>
</div>
</div>
<!-- Footer Widget Area -->
<div class="col-12 col-sm-6 col-lg-2">
<div class="footer-widget-area mt-80">
<!-- Title -->
<h4 class="widget-title">Politics</h4>
<!-- List -->
<ul class="list">
<li><a href="<?php echo base_url(); ?>assets/frontend/#">Business</a></li>
<li><a href="<?php echo base_url(); ?>assets/frontend/#">Markets</a></li>
<li><a href="<?php echo base_url(); ?>assets/frontend/#">Tech</a></li>
<li><a href="<?php echo base_url(); ?>assets/frontend/#">Luxury</a></li>
</ul>
</div>
</div>
<!-- Footer Widget Area -->
<div class="col-12 col-sm-4 col-lg-2">
<div class="footer-widget-area mt-80">
<!-- Title -->
<h4 class="widget-title">Featured</h4>
<!-- List -->
<ul class="list">
<li><a href="<?php echo base_url(); ?>assets/frontend/#">Football</a></li>
<li><a href="<?php echo base_url(); ?>assets/frontend/#">Golf</a></li>
<li><a href="<?php echo base_url(); ?>assets/frontend/#">Tennis</a></li>
<li><a href="<?php echo base_url(); ?>assets/frontend/#">Motorsport</a></li>
<li><a href="<?php echo base_url(); ?>assets/frontend/#">Horseracing</a></li>
<li><a href="<?php echo base_url(); ?>assets/frontend/#">Equestrian</a></li>
<li><a href="<?php echo base_url(); ?>assets/frontend/#">Sailing</a></li>
<li><a href="<?php echo base_url(); ?>assets/frontend/#">Skiing</a></li>
</ul>
</div>
</div>
<!-- Footer Widget Area -->
<div class="col-12 col-sm-4 col-lg-2">
<div class="footer-widget-area mt-80">
<!-- Title -->
<h4 class="widget-title">FAQ</h4>
<!-- List -->
<ul class="list">
<li><a href="<?php echo base_url(); ?>assets/frontend/#">Aviation</a></li>
<li><a href="<?php echo base_url(); ?>assets/frontend/#">Business</a></li>
<li><a href="<?php echo base_url(); ?>assets/frontend/#">Traveller</a></li>
<li><a href="<?php echo base_url(); ?>assets/frontend/#">Destinations</a></li>
<li><a href="<?php echo base_url(); ?>assets/frontend/#">Features</a></li>
<li><a href="<?php echo base_url(); ?>assets/frontend/#">Food/Drink</a></li>
<li><a href="<?php echo base_url(); ?>assets/frontend/#">Hotels</a></li>
<li><a href="<?php echo base_url(); ?>assets/frontend/#">Partner Hotels</a></li>
</ul>
</div>
</div>
<!-- Footer Widget Area -->
<div class="col-12 col-sm-4 col-lg-2">
<div class="footer-widget-area mt-80">
<!-- Title -->
<h4 class="widget-title">+More</h4>
<!-- List -->
<ul class="list">
<li><a href="<?php echo base_url(); ?>assets/frontend/#">Fashion</a></li>
<li><a href="<?php echo base_url(); ?>assets/frontend/#">Design</a></li>
<li><a href="<?php echo base_url(); ?>assets/frontend/#">Architecture</a></li>
<li><a href="<?php echo base_url(); ?>assets/frontend/#">Arts</a></li>
<li><a href="<?php echo base_url(); ?>assets/frontend/#">Autos</a></li>
<li><a href="<?php echo base_url(); ?>assets/frontend/#">Luxury</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<!-- Bottom Footer Area -->
<div class="bottom-footer-area">
<div class="container h-100">
<div class="row h-100 align-items-center">
<div class="col-12">
<!-- Copywrite -->
<p><!-- Link back to Colorlib can't be removed. Template is licensed under CC BY 3.0. -->
Copyright ©<script>document.write(new Date().getFullYear());</script> All rights reserved | This template is made with <i class="fa fa-heart-o" aria-hidden="true"></i> by <a href="<?php echo base_url(); ?>assets/frontend/https://colorlib.com" target="_blank">Colorlib</a>
<!-- Link back to Colorlib can't be removed. Template is licensed under CC BY 3.0. --></p>
</div>
</div>
</div>
</div>
</footer>
<!-- ##### Footer Area Start ##### -->
<!-- ##### All Javascript Files ##### -->
<!-- jQuery-2.2.4 js -->
<script src="<?php echo base_url(); ?>assets/frontend/js/jquery/jquery-2.2.4.min.js"></script>
<!-- Popper js -->
<script src="<?php echo base_url(); ?>assets/frontend/js/bootstrap/popper.min.js"></script>
<!-- Bootstrap js -->
<script src="<?php echo base_url(); ?>assets/frontend/js/bootstrap/bootstrap.min.js"></script>
<!-- All Plugins js -->
<script src="<?php echo base_url(); ?>assets/frontend/js/plugins/plugins.js"></script>
<!-- Active js -->
<script src="<?php echo base_url(); ?>assets/frontend/js/active.js"></script>
</body>
</html>
Tidak ada komentar:
Posting Komentar