Advertisement
Guest User

Untitled

a guest
Jul 25th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.63 KB | None | 0 0
  1. @inherits Umbraco.Web.Mvc.UmbracoViewPage
  2.  
  3. @{
  4. var umbracohelper = new UmbracoHelper(UmbracoContext.Current);
  5.  
  6. var headerContent = umbracohelper.TypedContent(1244);
  7. var LogoImage = headerContent.GetPropertyValue<IPublishedContent>("desktopLogo");
  8. var Menu = umbracohelper.TypedContent(1495);
  9. Layout = null;
  10. int i = 0;
  11. int navIndex = 0;
  12.  
  13.  
  14.  
  15. }
  16.  
  17.  
  18. <div class="fixed_nav">
  19. <div class="row show-for-medium-up" id="header">
  20. <div class="medium-5 large-4 columns">
  21. <div class="logo">
  22. <a href="/" title="Abercrombie & Kent Destination Management" id="logo">
  23. <img src="@LogoImage.Url" alt="test">
  24. </a>
  25. </div>
  26. </div>
  27.  
  28. <div class="medium-3 large-5 columns">
  29. @if (@headerContent.HasValue("headerLinkText"))
  30. {
  31. <p class="mice_link"><a href="@headerContent.GetPropertyValue("headerLink")" title="@headerContent.GetPropertyValue("headerLinkText")">@headerContent.GetPropertyValue("headerLinkText")</a></p>
  32. }
  33. </div>
  34. @* <p class="mice_link hide-div"><a href="@headerContent.GetPropertyValue("headerLink")" title="@headerContent.GetPropertyValue("headerLinkText")">@headerContent.GetPropertyValue("headerLinkText")</a></p>*@
  35. <div class="medium-4 large-3 columns right">
  36. <div class="search">
  37. <form class="frm_search" action="/results/" method="GET">
  38. <input id="searchTerm" type="text" class="search_box" name="query" placeholder="Search" value="" autocomplete="off">
  39. <input type="submit" value="search" id="btn_search2" class="btn_search">
  40. </form>
  41. </div>
  42. </div>
  43. </div>
  44. <div class="row nav">
  45. <div id="nav" class="hide-for-small">
  46. <ul class="">
  47. @foreach (var item in Menu.Children)
  48. {
  49. <li class="separator"><span>x</span></li>
  50. <li>
  51.  
  52.  
  53. <a href="@item.Url.ToLower().Replace("destinations","")" target="_self">@item.Name</a>
  54.  
  55. @if (item.Children.Count() != 0)
  56. {
  57. <div class="drop_nav destinations">
  58. <ul>
  59. @foreach (var child in item.Children.ToList())
  60. {
  61. {
  62. i++;
  63. navIndex = 0;
  64. var a = child.Children.Count();
  65. }
  66. if (child.Children.Count() != 0)
  67. {
  68. foreach (var location in child.Children.Where(x => x.DocumentTypeAlias == "menuItem"))
  69. {
  70. <li class="@("nav"+(i).ToString()+(navIndex==0?" top":""))">
  71. <a href="@location.Url.Replace("destinations/", "").Replace("navigation" + i.ToString() + "/", "")" target="_self">@location.Name</a>
  72.  
  73. @if (location.Children.Count() != 0)
  74. {
  75. <ul>
  76. @foreach (var hasChild in location.Children)
  77. {
  78. <li>
  79. <a href="@hasChild.Url.Replace("destinations/","").Replace("navigation"+i.ToString()+"/","")" target="_self">@hasChild.Name</a>
  80. </li>
  81. }
  82. </ul>
  83. }
  84. </li>
  85. { navIndex++; }
  86. }
  87. }
  88. }
  89. </ul>
  90. </div>
  91.  
  92.  
  93. }
  94.  
  95.  
  96.  
  97. </li>
  98. }
  99.  
  100.  
  101.  
  102. </ul>
  103. <span id="nav-just"></span>
  104. </div>
  105. </div>
  106. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement