Error compiling template "Designs/ucn2015/_parsed/Studieretning.parsed.cshtml"
Line 1: The type or namespace name 'UCN' could not be found (are you missing a using directive or an assembly reference?)
1 @using UCN.Website.CustomModules.Helpers;
2
3 <!DOCTYPE html>
4 <!-- https://www.ucn.dk -->
5
6 @{
7 string Host = System.Web.HttpContext.Current.Request.Url.GetLeftPart(UriPartial.Authority);
8 if( Host.Contains("ucnnorth") || Host.Contains("ucnorth") )
9 {
10 System.Web.HttpContext.Current.Response.RedirectPermanent("http://www.ucn.dk/english");
11 }
12
13 @*if (!System.Web.HttpContext.Current.Request.IsSecureConnection)
14 {
15 System.Web.HttpContext.Current.Response.RedirectPermanent("https://" + System.Web.HttpContext.Current.Request.Url.Host + System.Web.HttpContext.Current.Request.RawUrl);
16 System.Web.HttpContext.Current.Response.End();
17 }*@
18
19 string presetSearch ="";
20 var r = System.Web.HttpContext.Current.Request["q"];
21
22 if( !string.IsNullOrEmpty(r) )
23 {
24 presetSearch = r;
25 }
26
27 var HideNav = GetBoolean("Item.Page.SkjulNavigation");
28 //// frontend files
29 string cssPath = "/Files/Templates/Designs/ucn2015/dist/css/master.min.css";
30 string jsfiles = "/Files/Templates/Designs/ucn2015/js/combinedscript.min.js";
31 string vendorFile = "/Files/Templates/Designs/ucn2015/dist/scripts/vendor.min.js";
32 string masterFile = "/Files/Templates/Designs/ucn2015/dist/scripts/master.min.js";
33
34 }
35 <html>
36 <head>
37 <meta http-equiv="X-UA-Compatible" content="IE=edge">
38 <meta charset="UTF-8">
39 <meta name="viewport" content="width=device-width, initial-scale=1">
40
41 <link rel="shortcut icon" type="image/ico" href="/Files/Templates/Designs/ucn2015/favicon.ico">
42
43 @*<!--Remove for production-->
44 <meta name="robots" content="noindex">
45 <!--Remove for production-->*@
46
47
48 <title>@GetValue("Title")</title>
49 @GetValue("MetaTags")
50 @GetValue("CopyRightNotice")
51
52
53
54 @*<link href="/Files/Templates/Designs/ucn2015/css/bootstrap-3.3.2.css" rel="stylesheet"><link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet">
55 <link href="/Files/Templates/Designs/ucn2015/js/jQuery.mmenu-master/dist/css/jquery.mmenu.all.css" type="text/css" rel="stylesheet">*@
56 @*<link href="/Files/Templates/Designs/ucn2015/css/style.css?v=107" rel="stylesheet">*@
57
58 @*<link href="/Files/Templates/Designs/ucn2015/css/newStyle.css?v=3" rel="stylesheet">*@
59
60
61 <link href="@Helpers.GetRevisionNumber(cssPath)" rel="stylesheet">
62
63 @*<style>.mm-menu .mm-listview > li .mm-arrow:after, .mm-menu .mm-listview > li .mm-next:after { border-color:transparent; }</style>
64 <link rel="stylesheet" href="/Files/Templates/Designs/ucn2015/css/print.css" type="text/css" media="print">*@
65 @*<link href="/Files/Templates/Designs/ucn2015/dist/css/master.min.css" rel="stylesheet">*@
66
67 <!--[if IE]>
68 <style>
69 .szc_smallbox { right:30px !important; }
70 </style>
71 <![endif]-->
72
73 <!-- Google Tag Manager -->
74 <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
75 new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
76 j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
77 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
78 })(window,document,'script','dataLayer','GTM-NBHL5FD');</script>
79 <!-- End Google Tag Manager -->
80
81 @GetValue("Stylesheets")
82 @GetValue("Javascripts")
83 </head>
84
85 <body>
86 <!-- Google Tag Manager (noscript) -->
87 <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-NBHL5FD" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
88 <!-- End Google Tag Manager (noscript) -->
89
90 <div id="fb-root"></div>
91 <script>(function(d, s, id) {
92 var js, fjs = d.getElementsByTagName(s)[0];
93 if (d.getElementById(id)) return;
94 js = d.createElement(s); js.id = id;
95 js.src = "//connect.facebook.net/da_DK/sdk.js#xfbml=1&version=v2.4&appId=245790212224546";
96 fjs.parentNode.insertBefore(js, fjs);
97 }(document, 'script', 'facebook-jssdk'));</script>
98
99 <div id="header">
100
101 @{
102 //string add = "display:block;";
103 int num = 0;
104 }
105
106 @if( Dynamicweb.eCommerce.Common.Context.Cart != null )
107 {
108 var cart = Dynamicweb.eCommerce.Common.Context.Cart;
109 num = cart.OrderLines.Count();
110 } else {
111 //add = "display:none;";
112 }
113
114 <text>
115 <div id="act2learn_basket" style="cursor:pointer;" onclick="location.href='/Default.aspx?ID=201359';">
116 <div class="count">
117 <i class="fa fa-shopping-cart" style="margin-right:3px;font-size:13px;"></i> <span class="quantity">@(num)</span>.
118 </div><!--
119 --><div class="participate">
120 <a href="/Default.aspx?ID=201359">Gå til tilmelding</a>
121 </div>
122 </div>
123 </text>
124
125
126 <!--@Snippet(HeaderStart)-->
127
128
129 <div class="container">
130
131 <div class="row desktop-navigation row-same-height">
132 <div class="col-sm-2 logo">
133 @{
134 var logoLink = Dynamicweb.Frontend.PageView.Current().Area.ID == 17 ? "/" : "/english";
135 }
136 <a href="@logoLink"><img border="0" class="img-logo" src="/Files/Templates/Designs/ucn2015/img/ucnlogo.svg" class="img-responsive"></a>
137 </div>
138 @if( HideNav )
139 {
140 <text><div class="navigation-replacer col-md-10"></div></text>
141 @("<div class='navigation-hider hidden'>")
142 }
143
144 <div class="col-sm-9 main-navigation">
145 @GetValue("DwNavigation(mainnavigationul)")
146 </div>
147 <div class="col-sm-1 lang-search">
148
149 @*<form action='@(Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl( Pageview.Area.Item["S_geside"].ToString()) )' method="get" class="top-search-form">
150 <input id="topSearchBox" name="q">
151 <button type="submit" value="" class="search-icon-top">
152 <svg class="search-icon-top-svg"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/Files/Templates/Designs/ucn2015/dist/icons/icons.svg#search"></use></svg>
153 </button>
154 </form>*@
155
156 @foreach (var language in GetLoop("Languages"))
157 {
158 if( !language.GetBoolean("IsCurrent") )
159 {
160 string GoTo = "";
161 if( !string.IsNullOrEmpty( language.GetString("PageID") ) && !language.GetBoolean("PageIsHidden") )
162 {
163 GoTo = Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl("default.aspx?id=" + language.GetString("PageID") );
164 }
165
166 if( language.GetString("Culture").Equals("en-GB") )
167 {
168 if( string.IsNullOrEmpty(GoTo) )
169 {
170 GoTo = "/english";
171 }
172
173 <text>
174 <span class="sel_lang"><a href='http://www.ucn.dk@(GoTo)' target="_self" title="Visit our English website" alt="Visit our English website"><img class="lang-flag" src="/Files/Templates/Designs/ucn2015/img/flag-gb.svg"></a></span>
175 </text>
176 } else {
177 <text>
178 <span class="sel_lang"><a href='http://www.ucn.dk@(GoTo)' target="_self" title="Besøg vores danske hjemmeside" alt="Besøg vores danske hjemmeside"><img class="lang-flag" src="/Files/Templates/Designs/ucn2015/img/flag-dk.svg"></a></span>
179 </text>
180
181 }
182 }
183 <!-- Culture: @(language.GetString("Culture")) - @(GetGlobalValue("Global:Area.Culture.Name").ToString())-->
184 }
185
186 @if( GetLoop("Languages").Count() <= 0 )
187 {
188 if( Dynamicweb.Frontend.PageView.Current().Area.ID == 17 )
189 {
190 <span class="sel_lang"><a href="http://www.ucn.dk/english" target="_self" title="Visit our English website" alt="Visit our English website"><img class="lang-flag" src="/Files/Templates/Designs/ucn2015/img/flag-gb.svg"></a></span>
191 } else {
192 <span class="sel_lang"><a href="http://www.ucn.dk" target="_self" title="Besøg vores danske hjemmeside" alt="Besøg vores danske hjemmeside"><img class="lang-flag" src="/Files/Templates/Designs/ucn2015/img/flag-dk.svg"></a></span>
193 }
194 }
195
196
197
198
199
200
201 </div>
202
203 @if( HideNav )
204 {
205 @("</div>")
206 }
207 </div>
208
209
210 <div class="row mobile-navigation">
211 <div class="pull-out mobile-navigation-sub " id="main-mobile-menu">
212 <div>
213 <div class="top-links">
214 @if( Dynamicweb.Frontend.PageView.Current().Area.ID == 17 )
215 {
216 <span class="sel_lang"><a href="http://www.ucn.dk/english" target="_self" title="Visit our English website" alt="Visit our English website"><img class="lang-flag" src="/Files/Templates/Designs/ucn2015/img/flag-gb.svg"></a></span>
217 } else {
218 <span class="sel_lang"><a href="http://www.ucn.dk" target="_self" title="Besøg vores danske hjemmeside" alt="Besøg vores danske hjemmeside"><img class="lang-flag" src="/Files/Templates/Designs/ucn2015/img/flag-dk.svg"></a></span>
219 }
220 </div>
221
222 <div class="mobile-search">
223 <form action='@(Pageview.Area.Item["S_geside"].ToString())' method="post">
224 <input type="text" name="q" placeholder='@(Translate("search","Søg"))' value="@(presetSearch)">
225 <button type="submit" value="" class="search-icon-mobile">
226 <svg class="search-icon-mobile-svg"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/Files/Templates/Designs/ucn2015/dist/icons/icons.svg#search"></use></svg>
227 </button>
228 </form>
229 </div>
230
231 @GetValue("DwNavigation(mainnavigationulmobile)")
232
233
234 </div>
235
236 </div>
237 <div>
238
239
240 <div class="button login-button" id="main-mobile-menu-button">
241 <a href="javascript:"><svg class="mobile-navigation-svg"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/Files/Templates/Designs/ucn2015/dist/icons/icons.svg#menu"></use></svg></a>
242 </div>
243
244 <div class="mobile-logo">
245 <a href='/Default.aspx?ID=@(Pageview.Area.get_Value("AreaFirstPage"))'><img border="0" src="/Files/Templates/Designs/ucn2015/img/ucnlogo.svg" class="mobile-logo-img"></a>
246 </div>
247
248 <div style="clear:both;"></div>
249 </div>
250
251
252 </div>
253
254 </div>
255 </div>
256
257
258
259 <!--Content-->
260
261
262
263 <div class="hidden-xs hidden-sm breadcrump">
264 <div class="container">
265 @GetValue("DwNavigation(breadcrump)")
266 </div>
267 </div>
268
269 <div id="myCarousel" class="carousel slide carousel--noSpecialIndicators">
270 <!-- Indicators -->
271 <ol class="carousel-indicators">
272
273 </ol>
274
275 <!-- Wrapper for slides -->
276 <div class="carousel-inner" role="listbox">
277
278 @GetValue("DwContent(topContent)")
279
280 </div>
281
282 <!-- Left and right controls -->
283 @*<a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
284 <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
285 <span class="sr-only">Previous</span>
286 </a>
287 <a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">
288 <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
289 <span class="sr-only">Next</span>
290 </a>*@
291 </div>
292
293
294 @GetValue("DwContent(modulesBeforeContent)")
295
296
297 <div class="container top-spacing bot-spacing">
298 <div class="row">
299 <div class="col-md-4 subnavigation">
300 <div class="toggle-subnavigation hasArrow">@GetString("DwPageName")</div>
301 @GetValue("DwNavigation(secondaryNavigation)")
302 </div>
303 <div class="col-md-8 text-padding">
304 <div class="row headline page">
305 <div class="col-md-12">
306 <h2 class="study__title">@(GetValue("Item.Overskrift"))</h2>
307 </div>
308 </div>
309 <div class="row">
310 <div class="col-md-9 study__body">
311 @(GetValue("Item.Indhold"))
312
313
314 @if( !string.IsNullOrEmpty( GetString("Item.L_sMereLink") ) )
315 {
316 <text>
317 <div class="inline-link">
318 <a href='@(GetValue("Item.L_sMereLink"))' class="button blueImpact" alt="@(GetValue(" item.l_smerealt"))"="">@(GetValue("Item.Linktekst"))</a>
319 </div>
320 </text>
321 }
322
323 </div>
324 <div class="col-md-3 Xcol-md-offset-1 study-info study__information">
325 @if( !GetBoolean("Item.SkjulFaktaboks") ) {
326 @*<img src="/Files/Templates/Designs/ucn2015/img/exclamation.png" class="top-exclamation">*@
327
328 <div>
329 <b>@(Translate("studyfield_time","Varighed"))</b>
330 <p>@(GetValue("Item.Varighed"))</p>
331 </div>
332
333 <div>
334 <b>@(Translate("studyfield_location","Sted"))</b>
335 @{
336 string lokation = GetString("Item.Studielokation");
337 if( lokation.Contains(",") ) {
338 lokation = lokation.Replace(",","<br>").Replace(" ","");
339 }
340 }
341 <p>@(lokation)</p>
342 </div>
343
344 <div>
345 <b>@(Translate("studyfield_language","Sprog"))</b>
346 @{
347 string[] All = null;
348
349 string sprog = GetString("Item.Sprog");
350 if( sprog.Contains(",") ) {
351 All = sprog.Replace(" ","").Split(',');
352 //sprog = sprog.Replace(",","<br>").Replace(" ","");
353 } else {
354 All = new string[]{ sprog };
355 }
356 }
357 <text>
358 <p>
359 @if( All != null )
360 {
361 foreach(string s in All)
362 {
363 <text>@(Translate("lang_" + s, s))<br></text>
364 }
365 }
366 </p>
367 </text>
368
369 </div>
370
371 <div>
372 <b>@(Translate("studyfield_internship","Praktik"))</b>
373 @(GetValue("Item.GenerelInformation"))
374 </div>
375
376 <div>
377 <b>@(Translate("studyfield_studystart","Studiestart"))</b>
378 @(GetValue("Item.Studiestart"))
379 </div>
380
381 }
382 </div>
383 </div>
384 </div>
385 </div>
386 </div>
387
388 @GetValue("DwContent(restModules)")
389
390 <!--Footer-->
391 <footer class="footer">
392 <div class="container footer-main">
393 <div class="footer-supergrafik"><svg class="footer-supergrafik-svg"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/Files/Templates/Designs/ucn2015/dist/icons/icons.svg#supergrafik"></use></svg> </div>
394 <div class="general-links">
395 @GetValue("DwNavigation(generallinksnavigation)")
396 </div>
397
398 <div class="global-mega-menu">
399 <div class="row">
400 @GetValue("DwNavigation(globalmegasuperaswesomemenu)")
401
402
403 <!--<div class="dwcontent" id="global-mega-super-aswesome-menu" title="Global menu" settings="items-allowed:GlobalMenuelement;template:Megamenu.cshtml;unwrap:true;"></div>-->
404 </div>
405 </div>
406
407 </div>
408 <div class="social-media-footer-max">
409 <div class="social-media-footer container">
410 <a href="/" class="social-media-footer-logo"><svg class="social-media-footer-svg"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/Files/Templates/Designs/ucn2015/dist/icons/icons.svg#logo-byline"></use></svg></a>
411 <div class="social-media-footer-departments">
412 <a href='@(Pageview.Area.Item["Omr_delink"].ToString())'>Aalborg</a>
413 <a href='@(Pageview.Area.Item["Omr_delink"].ToString())'>Hjørring</a>
414 <a href='@(Pageview.Area.Item["Omr_delink"].ToString())'>Thisted</a>
415 </div>
416 <div class="social-media-footer-text">
417 <div class="social-media-footer-phone">Tel. @(Pageview.Area.Item["Telefonnummer"])</div>
418 <a class="social-media-footer-email" href='mailto:@(Pageview.Area.Item["Email"].ToString())'>@(Pageview.Area.Item["Email"])</a>
419 </div>
420 <div class="social-icons">
421 @if( !string.IsNullOrEmpty( Pageview.Area.Item["Facebook"].ToString() ) )
422 {
423 <text>
424 <a href='@Pageview.Area.Item["Facebook"]' target="_blank">
425 <svg class="social-media-svg"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/Files/Templates/Designs/ucn2015/dist/icons/icons.svg#some-facebook"></use></svg>
426 </a>
427 </text>
428 }
429 @if( !string.IsNullOrEmpty( Pageview.Area.Item["Twitter"].ToString() ) )
430 {
431 <text>
432 <a href='@Pageview.Area.Item["Twitter"]' target="_blank">
433 <svg class="social-media-svg"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/Files/Templates/Designs/ucn2015/dist/icons/icons.svg#some-twitter"></use></svg>
434 </a>
435 </text>
436 }
437 @if( !string.IsNullOrEmpty( Pageview.Area.Item["Youtube"].ToString() ) )
438 {
439 <text>
440 <a href='@Pageview.Area.Item["Youtube"]' target="_blank">
441 <svg class="social-media-svg"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/Files/Templates/Designs/ucn2015/dist/icons/icons.svg#some-youtube"></use></svg>
442 </a>
443 </text>
444 }
445 @if( !string.IsNullOrEmpty( Pageview.Area.Item["Pinterest"].ToString() ) )
446 {
447 <text>
448 <a href='@Pageview.Area.Item["Pinterest"]' target="_blank">
449 <svg class="social-media-svg"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/Files/Templates/Designs/ucn2015/dist/icons/icons.svg#some-pinterest"></use></svg>
450 </a>
451 </text>
452 }
453 @if( !string.IsNullOrEmpty( Pageview.Area.Item["Google_"].ToString() ) )
454 {
455 <text>
456 <a href='@Pageview.Area.Item["Google_"]' target="_blank">
457 <svg class="social-media-svg"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/Files/Templates/Designs/ucn2015/dist/icons/icons.svg#some-googleplus"></use></svg>
458 </a>
459 </text>
460 }
461 @if( !string.IsNullOrEmpty( Pageview.Area.Item["Instagram"].ToString() ) )
462 {
463 <text>
464 <a href='@Pageview.Area.Item["Instagram"]' target="_blank">
465 <svg class="social-media-svg"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/Files/Templates/Designs/ucn2015/dist/icons/icons.svg#some-instagram"></use></svg>
466 </a>
467 </text>
468 }
469 </div>
470 </div>
471 </div>
472 </footer>
473 <script src="@Helpers.GetRevisionNumber(vendorFile)"></script>
474 <script src="@Helpers.GetRevisionNumber(jsfiles)"></script>
475 <!--<script src="js/carousel-swipe.js"></script>-->
476 <script src="@Helpers.GetRevisionNumber(masterFile)"></script>
477 <script type="text/javascript">
478
479 <!--@Snippet(Js)-->
480
481 /*$(function()
482 {
483 $('a[href']).each(function(index) {
484 if( $(this).attr('href') == "javascript:?_route=true" )
485 {
486 $(this).attr('href','javascript:');
487 }
488 });
489 });*/
490
491
492 @if( Dynamicweb.Frontend.PageView.Current().Area.ID == 17 )
493 {
494 <text>
495 var link ="/";
496 var Title = "Forside";
497 </text>
498 } else {
499 <text>
500 var link ="/english";
501 var Title = "Home";
502 </text>
503 }
504
505 $(function() {
506 $('.mobile-navigation-sub ul.M0').prepend( $('<li><a href="'+link+'">'+Title+'</a></li>') );
507
508 })
509 </script>
510
511 <!--@Snippet(BotInc)-->
512
513 <!--@OverrideRoute-->
514
515
516 <!--Siteimprove implementation-->
517 <script type="text/javascript">
518 /*<![CDATA[*/
519 (function() {
520 var sz = document.createElement('script'); sz.type = 'text/javascript'; sz.async = true;
521 sz.src = '//ssl.siteimprove.com/js/siteanalyze_63467.js';
522 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(sz, s);
523 })();
524 /*]]>*/
525 </script>
526 <!--Siteimprove end-->
527 <!-- Facebook Pixel Code -->
528 <script>
529 !function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
530 n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
531 n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
532 t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
533 document,'script','https://connect.facebook.net/en_US/fbevents.js');
534 fbq('init', '1072831816161505', {
535 em: 'insert_email_variable,'
536 });
537 fbq('track', 'PageView');
538 </script>
539 <noscript><img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=1072831816161505&ev=PageView&noscript=1"></noscript>
540 <!-- DO NOT MODIFY -->
541 <!-- End Facebook Pixel Code -->
542
543 <!-- Facebook Pixel Code -->
544 <script>
545 !function(f,b,e,v,n,t,s)
546 {if(f.fbq)return;n=f.fbq=function(){n.callMethod?
547 n.callMethod.apply(n,arguments):n.queue.push(arguments)};
548 if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
549 n.queue=[];t=b.createElement(e);t.async=!0;
550 t.src=v;s=b.getElementsByTagName(e)[0];
551 s.parentNode.insertBefore(t,s)}(window, document,'script',
552 'https://connect.facebook.net/en_US/fbevents.js');
553 fbq('init', '116529629020368');
554 fbq('track', 'PageView');
555 </script>
556 <noscript><img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=116529629020368&ev=PageView&noscript=1"></noscript>
557 <!-- End Facebook Pixel Code -->
558
559 </body>
560 </html>
561