Advertisement
Guest User

Untitled

a guest
Oct 24th, 2018
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ASP 21.56 KB | None | 0 0
  1. @using QuestGuru.Models
  2. @{
  3.     string cacheToken = "1";
  4. }
  5. <!DOCTYPE html>
  6. <html lang="en" class="wide wow-animation smoothscroll scrollTo">
  7. <head>
  8.     <!-- Site Title-->
  9.     <title>QuestGuru</title>
  10.     <meta http-equiv="Cache-Control" content="max-age=3600, must-revalidate"/>
  11.     <meta charset="utf-8">
  12.     <meta name="format-detection" content="telephone=no">
  13.     <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
  14.     <meta http-equiv="X-UA-Compatible" content="IE=Edge">
  15.     <meta name="keywords" content="">
  16.     <link rel="icon" href="/icon.png?token=@cacheToken" type="image/x-icon" async>
  17.     <meta name="cmsmagazine" content="678a0ea6255e10fc651b3d16885c119f" />
  18.  
  19.     <!-- Stylesheets-->
  20.     @*<link rel="stylesheet" href="/Content/css/style_black.css?token=@cacheToken">*@
  21.     @Styles.Render("~/bundles/styles")
  22.  
  23.     <!-- Fonts -->
  24.     <link href="https://fonts.googleapis.com/css?family=Roboto:300,300i,400,700&amp;subset=cyrillic&token=@cacheToken" rel="stylesheet" media="none" onload="if (media != 'all') media = 'all'">
  25.     <link href="~/Content/fonts/futura-bold_ff79676945948891835ba4ce3bdcbef6.woff?token=@cacheToken" rel="stylesheet" media="none" onload="if (media != 'all') media = 'all'">
  26.  
  27.     <!--[if lt IE 10]>
  28.         <div style="background: #212121; padding: 10px 0; box-shadow: 3px 3px 5px 0 rgba(0, 0, 0, .3); clear: both; text-align: center; position: relative; z-index: 1;">
  29.             <a href="http://windows.microsoft.com/en-US/internet-explorer/">
  30.                 <img src="images/ie8-panel/warning_bar_0000_us.jpg" border="0" height="42" width="820" alt="You are using an outdated browser. For a faster, safer browsing experience, upgrade for free today.">
  31.             </a>
  32.         </div>
  33.         <script src="js/html5shiv.min.js"></script>
  34.     <![endif]-->
  35.  
  36.     @{
  37.         var controllerName = HttpContext.Current.Request.RequestContext.RouteData.Values["controller"].ToString();
  38.         if (controllerName != "Admin")
  39.         {
  40.             @:@Html.Raw(Helpers.GetParametrValue("HeaderMeta"))
  41.         }
  42.     }
  43.  
  44.     <style>
  45.         .developed:hover {
  46.             color:#e37b00;
  47.         }
  48.     </style>
  49. </head>
  50. <body>
  51. <!-- Page-->
  52. <div class="page text-center">
  53. <!-- Page Header-->
  54. <header class="page-head">
  55.     <!-- RD Navbar Transparent-->
  56.     <div class="rd-navbar-wrap">
  57.         <nav data-md-device-layout="rd-navbar-fixed" data-lg-device-layout="rd-navbar-static" data-lg-stick-up-offset="110px" class="rd-navbar rd-navbar-logo-center rd-navbar-light" data-lg-auto-height="true" data-md-layout="rd-navbar-fixed" data-lg-layout="rd-navbar-static" data-lg-stick-up="true">
  58.             <div class="rd-navbar-inner">
  59.                 <div class="container">
  60.                     <div class="rd-navbar-top-block range range-lg-center range-lg-middle">
  61.                         <div class="cell-lg-3">
  62.                             <p class="veil reveal-lg-block">
  63.                                 @*<span class="mdi mdi-phone"></span> <a href="callto:+7 (952) 280-2000">+7 (952) 280-2000</a>*@
  64.                                 @{
  65.                                     var phone = Helpers.GetPhoneByCity(Request.Cookies["testCity"]?.Value);
  66.                                 }
  67.                                 <span class="mdi mdi-phone"></span> <a href="callto:@(phone)">@phone</a>
  68.                             </p>
  69.                         </div>
  70.  
  71.                         <div class="cell-lg-6 text-center">
  72.                             <!--Navbar Brand-->
  73.                             <div class="rd-navbar-brand">
  74.                                 <a href="/">
  75.                                     <img src='/Content/images/custom/qgLogo.png?token=@cacheToken' alt=''/>
  76.                                 </a>
  77.                             </div>
  78.                         </div>
  79.                         <div class="cell-lg-3">
  80.                             <p class="veil reveal-lg-block">
  81.                                 @*<select id="citySelect"></select>*@
  82.                                 @{
  83.                                     var cities = Helpers.GetCities();
  84.                                     var citiesListItems = cities.Select(city => new SelectListItem
  85.                                     {
  86.                                         Text = city.Name,
  87.                                         Value = city.Id.ToString()
  88.                                     }).ToList();
  89.                                 }
  90.                                 @Html.DropDownList("citySelect1", citiesListItems, null, new {@id = "citySelect1", @style = "border:none;", @class = "form-control"})
  91.                             </p>
  92.                         </div>
  93.                         <div class="cell-lg-3">
  94.                             <div class="form-search-wrap">
  95.                                 <!-- RD Search Form-->
  96.                                 @*<form action="search-results.html" method="GET" class="form-search rd-search">
  97.                                                 <div class="form-group">
  98.                                                     <label for="rd-navbar-form-search-widget" class="form-label form-search-label form-label-sm">Search</label>
  99.                                                     <input id="rd-navbar-form-search-widget" type="text" name="s" autocomplete="off" class="form-search-input input-sm form-control form-control-gray-lightest input-sm"/>
  100.                                                 </div>
  101.                                                 <button type="submit" class="form-search-submit"><span class="mdi mdi-magnify"></span></button>
  102.                                             </form>*@
  103.                                 @*<a target="_blank" href="https://yandex.ru/maps/-/CZDs6Rlv">СПб, пр. Луначарского д. 11 к. 3</a>*@
  104.                             </div>
  105.                         </div>
  106.                     </div>
  107.                     <!-- RD Navbar Panel-->
  108.                     <div class="rd-navbar-panel">
  109.                         <!-- RD Navbar Toggle-->
  110.                         <button data-rd-navbar-toggle=".rd-navbar, .rd-navbar-nav-wrap" class="rd-navbar-toggle">
  111.                             <span></span></button>
  112.                         <a class="phone mobile-phone hidden-lg" href="callto:@phone">
  113.                             <span class="mdi mdi-phone"></span>@phone</a>
  114.                         <!-- RD Navbar Top Panel Toggle-->
  115.                         @*<button data-rd-navbar-toggle=".rd-navbar, .form-search-wrap" class="rd-navbar-search-toggle">*@
  116.                         @*<a class="phone rd-navbar-search-toggle" href="callto:+7 (952) 280-2000"><span class="mdi-num mdi-phone-num"></span></a>*@
  117.                         @*</button>*@
  118.                     </div>
  119.                 </div>
  120.                 <div class="rd-navbar-menu-wrap">
  121.                     <div class="container">
  122.                         <div class="rd-navbar-nav-wrap">
  123.                             <div class="rd-navbar-mobile-scroll">
  124.                                 <!--Navbar Brand Mobile-->
  125.                                 <div class="rd-navbar-mobile-brand">
  126.                                     <a href="/">
  127.                                         <img width='221' src='/Content/images/custom/qgLogo.png?token=@cacheToken' alt=''/>
  128.                                     </a>
  129.                                 </div>
  130.                                 <!-- RD Navbar Nav-->
  131.                                 <ul class="rd-navbar-nav">
  132.                                     <li class="showOnStucked hidden">
  133.                                         <p class="veil reveal-lg-block">
  134.                                             <span class="mdi mdi-phone"></span> <a id="topPhone" href="callto:@phone">@phone</a>
  135.                                         </p>
  136.                                     </li>
  137.                                     <li class="hidden-lg">
  138.                                         @Html.DropDownList("citySelect2", citiesListItems, "-- Ваш город --", new {@id = "citySelect2", @class = "form-control"})
  139.                                     </li>
  140.                                     @{
  141.                                         var controller = HttpContext.Current.Request.RequestContext.RouteData.Values["controller"].ToString();
  142.                                     }
  143.                                     @if (controller == "Admin" || User.Identity.IsAuthenticated)
  144.                                     {
  145.                                         <li class="active">
  146.                                             <a href="/Admin/Index">
  147.                                                 <span>Админка</span></a>
  148.                                         </li>
  149.                                     }
  150.                                     <li class="">
  151.                                         <a href="/">
  152.                                             <span>Главная</span></a>
  153.                                     </li>
  154.                                     <li>
  155.                                         <a>Квесты</a>
  156.                                         <ul class="rd-navbar-dropdown">
  157.                                             @{
  158.                                                 var quests = Helpers.GetQuestsForMenu(Request.Cookies["testCity"]?.Value);
  159.                                             }
  160.                                             @foreach (var quest in quests)
  161.                                             {
  162.                                                 <li>
  163.                                                     <a href="@Url.Action("Quest", "Home", new {id = quest.Item2})">
  164.                                                         <span>@quest.Item1</span></a>
  165.                                                 </li>
  166.                                             }
  167.                                         </ul>
  168.  
  169.                                     </li>
  170.                                     <li>
  171.                                         <a href="/Home/Holidays">
  172.                                             <span>Праздники</span></a>
  173.                                     </li>
  174.                                     <li>
  175.                                         <a href="/Home/Gifts">
  176.                                             <span>В подарок</span></a>
  177.                                     </li>
  178.                                     <li>
  179.                                         <a href="/Home/Promotions">
  180.                                             <span>Акции</span>
  181.                                         </a>
  182.                                     </li>
  183.                                     <li>
  184.                                         <a href="/Home/Contacts">
  185.                                             <span>Контакты</span></a>
  186.                                     </li>
  187.  
  188.  
  189.                                     @*<li>
  190.                                                     <a href="@Url.Action("Quest", "Home", new {id = "e7d63c91-c118-4646-8954-a9b81fce98e2"})"><span>Форт Боярд</span></a>
  191.                                                 </li>
  192.                                                 <li>
  193.                                                     <a href="@Url.Action("Quest", "Home", new {id = "f5d8032c-2fd6-49b4-ace7-88f7522f368d"})"><span>Пятница 13</span></a>
  194.                                                 </li>*@
  195.                                 </ul>
  196.                                 @{
  197.                                     var c = HttpContext.Current.Request.RequestContext.RouteData.Values["controller"].ToString();
  198.                                 }
  199.  
  200.                                 @if (c == "Admin")
  201.                                 {
  202.                                     @Html.Partial("_MenuPartial")
  203.                                 }
  204.                             </div>
  205.                         </div>
  206.                     </div>
  207.                 </div>
  208.             </div>
  209.         </nav>
  210.     </div>
  211.     @if (ViewBag.Index != null && ViewBag.Index == true)
  212.     {
  213.         <!-- Swiper-->
  214.         <section class="section-relative" id="top">
  215.             <div data-loop="true" data-autoplay="true" data-slide-effect="fade" data-height="60vh" data-dragable="false" data-min-height="335px" data-dots="true" class="swiper-container swiper-slider">
  216.                 <div class="swiper-wrapper">
  217.                     @if (ViewBag.Mode != null && ViewBag.Mode == "slide")
  218.                     {
  219.                         if (ViewBag.Slides != null)
  220.                         {
  221.                             foreach (var s in ViewBag.Slides)
  222.                             {
  223.                                 <img src="/Content/slides/@s.Filename?token=@cacheToken" style="display: none" />
  224.                                 <div data-slide-bg="/Content/slides/@s.Filename?token=@cacheToken" class="swiper-slide swiper-slide-overlay-disable swiper-slide-center"></div>
  225.                             }
  226.                         }
  227.                     }
  228.                     else
  229.                     {
  230.                         if (ViewBag.SingleSlide != null)
  231.                         {
  232.                             var singleSlide = (Slide) ViewBag.SingleSlide;
  233.                             <div data-slide-bg="/Content/slides/@singleSlide.Filename?token=@cacheToken" class="swiper-slide swiper-slide-overlay-disable swiper-slide-center"></div>
  234.                         }
  235.                     }
  236.                     @*<div data-slide-bg="/Content/images/quests/fb2.jpg" class="swiper-slide swiper-slide-overlay-disable swiper-slide-center"></div>
  237.                                 <div data-slide-bg="/Content/images/quests/fb3.jpg" class="swiper-slide swiper-slide-overlay-disable swiper-slide-center"></div>
  238.                                 <div data-slide-bg="/Content/images/quests/p2.jpg" class="swiper-slide swiper-slide-overlay-disable swiper-slide-center"></div>*@
  239.                 </div>
  240.                 <!-- Swiper Pagination-->
  241.                 <div class="swiper-pagination swiper-pagination-type-2"></div>
  242.             </div>
  243.             <div class="section-center-absolute">
  244.                 @*<div class="text-extra-big text-white font-accent">QuestGuru</div>
  245.                             <br/><h5 class="text-regular text-white offset-top-10 font-accent">Лучшие квесты в реальности</h5>*@
  246.                 <div class="shell offset-top-41 offset-sm-top-66">
  247.                     @*<div class="range range-xs-center">
  248.                                     <div class="cell-sm-6 cell-md-5 cell-lg-4 cell-xl-5"><a href="shop.html" class="btn btn-block btn-primary btn-ellipse">shop now</a>
  249.                                     </div>
  250.                                     <div class="cell-sm-6 cell-md-5 cell-lg-4 cell-xl-5 offset-top-20 offset-sm-top-0"><a href="blog.html" class="btn btn-block btn-default btn-ellipse btn-anis-effect">view blog</a>
  251.                                     </div>
  252.                                 </div>*@
  253.                 </div>
  254.             </div>
  255.         </section>
  256.     }
  257. </header>
  258. <!-- Page Content-->
  259. <div class="mainBody">
  260.     @RenderBody()
  261. </div>
  262. <!-- Page Footers-->
  263. <!-- Footer variant 4-->
  264. <footer class="@*section-relative*@ section-34 page-footer bg-gray-base context-dark">
  265.     <div class="shell">
  266.         <div class="range range-sm-center text-lg-left">
  267.             <div class="cell-sm-12">
  268.                 <div class="range range-xs-center">
  269.                     <div class="cell-xs-12 cell-md-8 cell-md-push-2 text-md-right">
  270.                         <div class="hidden-xs visible-md visible-lg">
  271.                             <ul class="list-inline list-inline-dashed p text-darker list-inline-md list-inline-dashed-wide">
  272.                                 <li>
  273.                                     <a href="/#top">QuestGuru</a>
  274.                                 </li>
  275.                                 <li>
  276.                                     <a href="/#quests">Квесты</a>
  277.                                 </li>
  278.                                 @*                                        <li><a href="/#feedback">Отзывы</a></li>*@
  279.                             </ul>
  280.                         </div>
  281.                         <p>Мы в социальных сетях:</p>
  282.                         <ul class="list-inline list-inline-white offset-top-10 text-darker">
  283.                             <li>
  284.                                 <a href="http://www.tripadvisor.ru/Attraction_Review-g298507-d8134055-Reviews-QuestGuru-St_Petersburg_Northwestern_District.html" class="fa fa-tripadvisor"></a>
  285.                             </li>
  286.                             <li>
  287.                                 @{
  288.                                     var vk = Helpers.GetVkUrlBySity(Request.Cookies["testCity"]?.Value);
  289.                                 }
  290.                                 <a href="@vk" class="fa fa-vk"></a>
  291.                             </li>
  292.                             <li>
  293.                                 <a href="https://ru.foursquare.com/v/questguru/55491f1c498e402d3a845f3b" class="fa fa-foursquare"></a>
  294.                             </li>
  295.                         </ul>
  296.                         <a href="/Home/Pd">Политика обработки персональных данных</a>
  297.                     </div>
  298.                     <div class="cell-xs-12 cell-md-4 cell-md-push-1 offset-top-34 offset-md-top-0">
  299.                         <!-- Footer brand-->
  300.                         <div class="footer-brand">
  301.                             <a href="index.html">
  302.                                 @*<img width='221' height='32' style='margin-left: -6px;' src='/Content/images/logo-light.png' alt=''/>*@
  303.                             </a>
  304.                         </div>
  305.                         <p class="small text-darker offset-top-4">
  306.                             <a href="https://pqlab.ru" class="developed" target="_blank">developed by <img src="~/Content/favicon120-dark.png" width="40" height="40" /></a>
  307.                         </p>
  308.                     </div>
  309.                 </div>
  310.             </div>
  311.         </div>
  312.     </div>
  313. </footer>
  314. </div>
  315. <!-- Global Mailform Output-->
  316. <div id="form-output-global" class="snackbars"></div>
  317. <!-- PhotoSwipe Gallery-->
  318. <div tabindex="-1" role="dialog" aria-hidden="true" class="pswp">
  319.     <div class="pswp__bg"></div>
  320.     <div class="pswp__scroll-wrap">
  321.         <div class="pswp__container">
  322.             <div class="pswp__item"></div>
  323.             <div class="pswp__item"></div>
  324.             <div class="pswp__item"></div>
  325.         </div>
  326.         <div class="pswp__ui pswp__ui--hidden">
  327.             <div class="pswp__top-bar">
  328.                 <div class="pswp__counter"></div>
  329.                 <button title="Close (Esc)" class="pswp__button pswp__button--close"></button>
  330.                 <button title="Share" class="pswp__button pswp__button--share"></button>
  331.                 <button title="Toggle fullscreen" class="pswp__button pswp__button--fs"></button>
  332.                 <button title="Zoom in/out" class="pswp__button pswp__button--zoom"></button>
  333.                 <div class="pswp__preloader">
  334.                     <div class="pswp__preloader__icn">
  335.                         <div class="pswp__preloader__cut">
  336.                             <div class="pswp__preloader__donut"></div>
  337.                         </div>
  338.                     </div>
  339.                 </div>
  340.             </div>
  341.             <div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">
  342.                 <div class="pswp__share-tooltip"></div>
  343.             </div>
  344.             <button title="Previous (arrow left)" class="pswp__button pswp__button--arrow--left"></button>
  345.             <button title="Next (arrow right)" class="pswp__button pswp__button--arrow--right"></button>
  346.             <div class="pswp__caption">
  347.                 <div class="pswp__caption__center"></div>
  348.             </div>
  349.         </div>
  350.     </div>
  351. </div>
  352. <!-- Java script-->
  353. <script src="/Content/js/core.min.js?token=@cacheToken"></script>
  354. <script src="/Content/js/script.js?token=@cacheToken"></script>
  355. <script type="text/javascript" src="/Content/js/js.cookie.js?token=@cacheToken"></script>
  356. <script>
  357.     @if (User.Identity.IsAuthenticated && (User.Identity.Name == "VolgoAdmin" || User.Identity.Name == "AdminQuestVolgo"))
  358.     {
  359.         <text>
  360.             Cookies.set("testCity", "089ef6f6-8844-4067-b345-ec9bd75acf25");
  361.         </text>
  362.     }
  363. </script>
  364. <script type="text/javascript" src="/Content/js/geoLocation.js?token=@cacheToken"></script>
  365. <script type="text/javascript" src="/Content/js/citySelecting.js?token=@cacheToken"></script>
  366. <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js?token=@cacheToken" integrity="sha256-VazP97ZCwtekAsvgPBSUwPFKdrwD3unUfSGVYrahUqU=" crossorigin="anonymous"></script>    
  367. <script src="/Content/js/jquery.inputmask.bundle.min.js?token=@cacheToken"></script>
  368. <script type="text/javascript" src="/Content/js/js.cookie.js?token=@cacheToken"></script>
  369. <script type="text/javascript" src="/Content/js/geoLocation.js?token=@cacheToken"></script>
  370. <script type="text/javascript" src="/Content/js/citySelecting.js?token=@cacheToken"></script>
  371. <script type="text/javascript" src="/Scripts/moment.min.js?token=@cacheToken"></script>
  372.  
  373. @RenderSection("Scripts", false)
  374.  
  375. @if (controllerName != "Admin")
  376. {
  377.     @:@Html.Raw(Helpers.GetParametrValue("FooterMeta"))
  378. }
  379.  
  380.     <script type='text/javascript'>document.write(unescape("%3Cscript src='https://electro.gift/products/335388229/widget.js'; type='text/javascript'%3E%3C/script%3E"));</script>
  381. </body>
  382. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement