Advertisement
Guest User

Untitled

a guest
Apr 28th, 2019
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5.95 KB | None | 0 0
  1. @import models.users.User
  2. @(pagename: String, user: User)(content:Html)
  3. <html>
  4.     <head>
  5.         <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6.         <meta charset="UTF-8"/>
  7.  
  8.         <link rel="icon" type="image/png" href="@routes.Assets.versioned("images/favicon.png")">
  9.        
  10.      
  11.     <!-- Stylesheets -->
  12.     <link rel="stylesheet" href="/assets/css/bootstrap.min.css"/>
  13.     <link rel="stylesheet" href="/assets/css/font-awesome.min.css"/>
  14.     <link rel="stylesheet" href="/assets/css/owl.carousel.css"/>
  15.     <link rel="stylesheet" href="/assets/css/style.css"/>
  16.     <link rel="stylesheet" href="/assets/css/animate.css"/>
  17.  
  18.     <!-- Google Fonts -->
  19.     <link href="https://fonts.googleapis.com/css?family=Roboto:400,400i,500,500i,700,700i" rel="stylesheet">
  20.  
  21.    
  22.     <!--[if lt IE 9]>
  23.       <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
  24.       <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  25.     <![endif]-->
  26.      
  27.         <title>CDR Games</title>
  28.     </head>
  29.  
  30.     <body>
  31.  
  32.  
  33.    
  34.  
  35. <!-- Header section -->
  36.     <header class="header-section">
  37.         <div class="container">
  38.             <!-- logo -->
  39.             <img src="/assets/images/logo.png" width="120px" height="100px" alt="">
  40.             <div class="user-panel">
  41.                 @if(user != null) {
  42.  
  43.                         @if(user.isInstanceOf[models.users.Admin]){
  44.                
  45.                             <a href="@routes.AdminProductCtrl.adminPanel()"><span class="glyphicon glyphicon-cog"></span> Admin Panel</a></li>
  46.                 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  47.                         }
  48.                         @if(user.isInstanceOf[models.users.Customer]){
  49.                 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  50.                         <a href="@routes.ShoppingCtrl.showBasket()"><span class="glyphicon glyphicon-shopping-cart"></span> Basket</a>
  51.                 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  52.                        <a href="@routes.ShoppingCtrl.viewOrders()"><span class="glyphicon glyphicon-log-in"></span> View Orders</a>
  53.                 &nbsp;&nbsp;&nbsp;&nbsp;
  54.                             }
  55.                 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  56.                        <a href="@routes.HomeController.profile()">
  57.                             <i class="fa fa-user-circle-o"></i>
  58.                             @if(user!=null){
  59.                                 @user.getEmail} </span>
  60.                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  61.                         </a>
  62.                         <a href="@routes.LoginController.logout()"><span class="glyphicon glyphicon-log-in"></span> Logout</a>
  63.                 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  64.                     } else {
  65.                 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  66.                         <a href="@routes.HomeController.registerUser()"><span class="glyphicon glyphicon-user"></span> Sign Up</a>
  67.                 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  68.                         <a href="@routes.LoginController.login()"><span class="glyphicon glyphicon-log-in"></span> Login</a>
  69.                 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  70.                     }
  71.             </div>
  72.             <!-- responsive -->
  73.             <div class="nav-switch">
  74.                 <i class="fa fa-bars"></i>
  75.             </div>
  76.             <!-- site menu -->
  77.             <nav class="main-menu">
  78.                 <ul>
  79.                     <li><a href="@routes.HomeController.home()">Home</a></li>
  80.                     <li><a href="@routes.ProductCtrl.listProducts(0)">Products List</a></li>
  81.                     <li><a href="@routes.HomeController.contact()">Contact</a></li>
  82.  
  83.  
  84.                 </ul>
  85.             </nav>
  86.         </div>
  87.     </header>
  88.     <!-- Header section end -->
  89. <!-- Latest news section -->
  90. <div class="latest-news-section">
  91.     <div class="ln-title">Latest News</div>
  92.     <div class="news-ticker">
  93.         <div class="news-ticker-contant">
  94.             <div class="nt-item"><span class="new">new</span>Resident Evil 2 out now!</div>
  95.             <div class="nt-item"><span class="strategy">strategy</span>Civilization 6 out on Switch now. </div>
  96.             <div class="nt-item"><span class="racing">discount</span> Use BIGSAVINGS for 15% off.</div>
  97.         </div>
  98.     </div>
  99. </div>
  100.     <!-- Latest news section end -->
  101.  
  102.  
  103.  
  104.  
  105.  
  106. <!-- Recent game section  -->
  107.     <section class="recent-game-section spad set-bg" data-setbg="/assets/img/slider-2.jpg">
  108.         <div class="container">
  109.            
  110.             <div class="row">
  111.                 @content
  112.             </div>
  113.         </div>
  114.     </section>
  115.     <!-- Recent game section end -->
  116.  
  117.        
  118.         </nav>
  119.  
  120. </div>
  121.  
  122. <footer class="footer-section">
  123.     <div class="container">
  124.         <ul class="footer-menu">
  125.             <li><a href="@routes.HomeController.home()">Home</a></li>
  126.                     <li><a href="@routes.ProductCtrl.listProducts(0)">Products List</a></li>
  127.                     <li><a href="@routes.HomeController.contact()">Contact</a></li>
  128.         </ul>
  129.         <p class="copyright">
  130.             Copyright &copy;<script>document.write(new Date().getFullYear());</script> All rights reserved
  131.         </p>
  132.     </div>
  133. </footer>
  134.     </body>
  135. </html>
  136. <!--====== Javascripts & Jquery ======-->
  137.     <script src="/assets/js/jquery-3.2.1.min.js"></script>
  138.     <script src="/assets/js/bootstrap.min.js"></script>
  139.     <script src="/assets/js/owl.carousel.min.js"></script>
  140.     <script src="/assets/js/jquery.marquee.min.js"></script>
  141.     <script src="/assets/js/main.js"></script>
  142. <script>
  143.     (function($) { // Begin jQuery
  144.         $(function() { // DOM ready
  145.             // If a link has a dropdown, add sub menu toggle.
  146.             $('nav ul li a:not(:only-child)').click(function(e) {
  147.                 $(this).siblings('.nav-dropdown').toggle();
  148.                 // Close one dropdown when selecting another
  149.                 $('.nav-dropdown').not($(this).siblings()).hide();
  150.                 e.stopPropagation();
  151.             });
  152.             // Clicking away from dropdown will remove the dropdown class
  153.             $('html').click(function() {
  154.                 $('.nav-dropdown').hide();
  155.             });
  156.             // Toggle open and close nav styles on click
  157.             $('#nav-toggle').click(function() {
  158.                 $('nav ul').slideToggle();
  159.             });
  160.             // Hamburger to X toggle
  161.             $('#nav-toggle').on('click', function() {
  162.                 this.classList.toggle('active');
  163.             });
  164.         }); // end DOM ready
  165.     })(jQuery); // end jQuery
  166. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement