Error executing template "Designs/BusinessDays/_parsed/ConferintaEveniment.parsed.cshtml"
System.NullReferenceException: Object reference not set to an instance of an object.
   at CompiledRazorTemplates.Dynamic.RazorEngine_aadb59cbc9dc42708f457af327d02ab6.Execute() in Z:\Sites\_dotFusion\www.businessdays.ro\FIles\Templates\Designs\BusinessDays\_parsed\ConferintaEveniment.parsed.cshtml:line 693
   at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context, TextWriter reader)
   at RazorEngine.Templating.RazorEngineCore.RunTemplate(ICompiledTemplate template, TextWriter writer, Object model, DynamicViewBag viewBag)
   at RazorEngine.Templating.RazorEngineService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)
   at RazorEngine.Templating.DynamicWrapperService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)
   at RazorEngine.Templating.RazorEngineServiceExtensions.<>c__DisplayClass16_0.b__0(TextWriter writer)
   at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)
   at RazorEngine.Templating.RazorEngineServiceExtensions.RunCompile(IRazorEngineService service, String name, Type modelType, Object model, DynamicViewBag viewBag)
   at RazorEngine.Templating.RazorEngineServiceExtensions.RunCompile(IRazorEngineService service, ITemplateSource templateSource, String name, Type modelType, Object model, DynamicViewBag viewBag)
   at Dynamicweb.Rendering.Template.RenderRazorTemplate()

1 @using System.Web; 2 @using Dynamicweb.Content; 3 @using Dynamicweb.Data; 4 @using Dynamicweb.Extensibility; 5 6 @functions { 7 8 //Item 9 10 public static string GetHomeItemProperty(int pageId, string itemType, string propertyName) 11 { 12 try 13 { 14 string propertyValue = ""; 15 string homeItemId = ""; 16 //Dynamicweb.Content.Page page = Dynamicweb.Content.Page.GetPageById(pageId); 17 //Dynamicweb.Content.Page page = ServiceLocator.Current.GetInstance<IPageService>().GetPage(pageId); 18 Dynamicweb.Content.Page page = ServiceLocator.Current.GetPageService().GetPage(pageId); 19 20 while (page != null) 21 { 22 if (page.ItemType.Equals(itemType)) 23 { 24 homeItemId = page.ItemId; 25 } 26 page = page.Parent; 27 } 28 if (!string.IsNullOrEmpty(homeItemId)) 29 { 30 try 31 { 32 Dynamicweb.Content.Items.Item item = Dynamicweb.Content.Items.Item.GetItemById(itemType, homeItemId); 33 propertyValue = item[propertyName].ToString(); 34 } 35 catch { } 36 } 37 38 return propertyValue; 39 } 40 catch(Exception ex) 41 { 42 throw new Exception("GetHomeItemProperty: " + ex.ToString()); 43 } 44 } 45 46 public static bool SetUserIdInItemList(string userId, string itemType, string itemId, string propertyName, bool insert = true) 47 { 48 try 49 { 50 51 52 bool succes = false; 53 if (!string.IsNullOrEmpty(userId) && userId != "0") 54 { 55 Dynamicweb.Content.Items.Item item = Dynamicweb.Content.Items.Item.GetItemById(itemType, itemId); 56 if (item != null) 57 { 58 string listValues = ""; 59 try 60 { 61 //daca e item nou creat adaugam direct userul 62 if (item[propertyName] == null || String.IsNullOrEmpty(item[propertyName].ToString())) 63 { 64 if (insert) 65 { 66 item[propertyName] = (listValues + "," + userId).TrimStart(','); 67 item.Save(); 68 succes = true; 69 } 70 } 71 else 72 { 73 listValues = item[propertyName].ToString(); 74 if (!("," + listValues + ",").Contains("," + userId + ",")) 75 { 76 if (insert) 77 { 78 item[propertyName] = (listValues + "," + userId).TrimStart(','); 79 item.Save(); 80 succes = true; 81 } 82 } 83 else 84 { 85 if (!insert) 86 { 87 item[propertyName] = ("," + listValues + ",").Replace("," + userId + ",", "").TrimEnd(',').TrimStart(','); 88 item.Save(); 89 succes = true; 90 } 91 } 92 } 93 } 94 catch { } 95 } 96 } 97 return succes; 98 } 99 catch(Exception ex) 100 { 101 throw new Exception("SetUserIdInItemList: " + ex.ToString()); 102 } 103 } 104 105 //Page 106 107 public static Dynamicweb.Content.Page GetPageByItem(string itemType, string itemId) 108 { 109 //Dynamicweb.Content.Page page = null; 110 //string sql = string.Format("SELECT * FROM Page WHERE PageItemType = '{0}' and PageItemId = '{1}'", itemType, itemId); 111 //// 😍 112 113 114 115 //var pages = Dynamicweb.Content.Page.GetPagesBySql(sql); 116 117 118 //if (pages.Count == 1) 119 //{ 120 // page = pages[0]; 121 //} 122 //return page; 123 try 124 { 125 126 var page = ServiceLocator.Current.GetInstance<IPageService>().GetPageForItem(itemType, itemId); 127 128 if (page == null) 129 { 130 throw new InvalidOperationException("The page for itemType {itemType}, itemId {itemId} does not exist."); 131 } 132 133 return page; 134 } 135 catch(Exception ex) 136 { 137 throw new Exception("GetPageByItem: " + ex.ToString()); 138 } 139 140 } 141 142 public static string GetPageUrlByItem(string itemType, string itemId) 143 { 144 // TODO: remove after checking 145 //Dynamicweb.Content.Page page = null; 146 //string pageUrl = ""; 147 148 //string sql = string.Format("SELECT * FROM Page WHERE PageItemType = '{0}' and PageItemId = '{1}'", itemType, itemId); 149 ////var pages = Dynamicweb.Content.Page.GetPagesBySql(sql); 150 //if (pages.Count == 1) 151 //{ 152 // page = pages[0]; 153 // pageUrl = Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(page.ID); 154 //} 155 //return pageUrl; 156 try 157 { 158 var page = ServiceLocator.Current.GetInstance<IPageService>().GetPageForItem(itemType, itemId); 159 160 return page == null ? "" : Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(page.ID); 161 } 162 catch(Exception ex) 163 { 164 throw new Exception("GetPageUrlByItem: " + ex.ToString()); 165 } 166 167 } 168 169 public static int GetMostRecentPageForThisItemType(string itemType) 170 { 171 try 172 { 173 int pageId = 0; 174 175 string sqlQuery = string.Format("SELECT PageID FROM Page WHERE pageitemtype = '{0}' order by CAST(ISNULL(PageItemId,0) AS int) DESC", itemType); 176 Int32.TryParse(Database.ExecuteScalar(sqlQuery).ToString(), out pageId); 177 178 return pageId; 179 } 180 catch(Exception ex) 181 { 182 throw new Exception("GetMostRecentPageForThisItemType: " + ex.ToString()); 183 } 184 185 } 186 187 public static int GetMostRecentItemIdForThisItemType(string itemType) 188 { 189 try 190 { 191 int pageItemId = 0; 192 193 string sqlQuery = string.Format("SELECT PageItemId FROM Page WHERE pageitemtype = '{0}' order by CAST(ISNULL(PageItemId,0) AS int) DESC", itemType); 194 Int32.TryParse(Database.ExecuteScalar(sqlQuery).ToString(), out pageItemId); 195 196 return pageItemId; 197 } 198 catch(Exception ex) 199 { 200 throw new Exception("GetMostRecentItemIdForThisItemType: " + ex.ToString()); 201 } 202 203 } 204 205 public static int GetPageByItemTypeAndParentPageId(string itemType, int parentPageId) 206 { 207 try 208 { 209 int pageId = 0; 210 211 string sqlQuery = string.Format("SELECT PageID FROM Page WHERE pageitemtype = '{0}' and PageParentPageID = '{1}'", itemType, parentPageId); 212 Int32.TryParse(Database.ExecuteScalar(sqlQuery).ToString(), out pageId); 213 214 return pageId; 215 } 216 catch(Exception ex) 217 { 218 throw new Exception("GetPageByItemTypeAndParentPageId: " + ex.ToString()); 219 } 220 } 221 222 public static int GetProcesInscrierePageId(int pageId) 223 { 224 try 225 { 226 int procesPageId = 0; 227 // Dynamicweb.Content.Page page = Dynamicweb.Content.Page.GetPageById(pageId); 228 Dynamicweb.Content.Page page = ServiceLocator.Current.GetInstance<IPageService>().GetPage(pageId); //Dynamicweb.Content.Page.GetPage(pageId); 229 while (page != null) 230 { 231 if (page.ItemType.ToLower() == "eveniment") 232 { 233 string sql = string.Format("SELECT PageID FROM Page WHERE PageParentPageID = '{0}' and PageMenuText = 'ProcesInscriere'", page.ID); 234 Int32.TryParse(Database.ExecuteScalar(sql).ToString(), out procesPageId); 235 break; 236 } 237 page = page.Parent; 238 } 239 return procesPageId; 240 } 241 catch(Exception ex) 242 { 243 throw new Exception("GetProcesInscrierePageId: " + ex.ToString()); 244 } 245 } 246 247 //Speakers 248 249 public static string GetConferinteBySpeakerId(string itemId) 250 { 251 try 252 { 253 string listIdsConferinte = ""; 254 255 string sql = string.Format("SELECT Id, Title FROM ItemType_Conferinta WHERE Id in (SELECT PageItemId FROM Page where PageItemType = 'conferinta') and (',' + RTRIM([Lista_Speakeri]) + ',') LIKE '%,{0},%' ORDER BY Data, OraInceput", itemId); 256 using (System.Data.IDataReader myReader = Database.CreateDataReader(sql.ToString())) 257 { 258 while (myReader.Read()) 259 { 260 listIdsConferinte += myReader["Id"].ToString() + ","; 261 } 262 } 263 listIdsConferinte = listIdsConferinte.TrimEnd(','); 264 265 return listIdsConferinte; 266 } 267 catch(Exception ex) 268 { 269 throw new Exception("GetConferinteBySpeakerId: " + ex.ToString()); 270 } 271 } 272 273 //User 274 275 public static bool CheckIfUserBoughtThisProduct(string userEmail, string productId) 276 { 277 try 278 { 279 bool result = false; 280 281 if (!string.IsNullOrEmpty(userEmail) && !string.IsNullOrEmpty(productId)) 282 { 283 string sql = string.Format("SELECT TOP 1 1 FROM EcomOrderLines where OrderLineProductID = '{0}' and OrderLineFieldValues like '%{1}%'", productId, userEmail); 284 285 using (System.Data.IDataReader myReader = Database.CreateDataReader(sql.ToString())) 286 { 287 while (myReader.Read()) 288 { 289 result = true; 290 break; 291 } 292 } 293 } 294 295 return result; 296 } 297 catch(Exception ex) 298 { 299 throw new Exception("CheckIfUserBoughtThisProduct: " + ex.ToString()); 300 } 301 302 } 303 304 } 305 @inherits RazorTemplateBase<RazorTemplateModel<Template>> 306 @using Dynamicweb.Rendering; 307 @using Dynamicweb.Modules.UserManagement; 308 @using Dynamicweb.Security.UserManagement; 309 @using Dynamicweb.Extensibility; 310 @using Dynamicweb.Content; 311 @using System 312 <!DOCTYPE html> 313 <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> 314 <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> 315 <!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> 316 <!--[if gt IE 8]> <html class="no-js"> <![endif]--> 317 <head> 318 319 @{ 320 321 var DisplayOptions = ""; 322 323 if (!string.IsNullOrEmpty(GetString("Item.Page.DisplayOptions"))){ 324 DisplayOptions = (GetString("Item.Page.DisplayOptions") == "wide") ? "container-wide" : ""; 325 326 } 327 328 @*string bannerImage = @BrandFusion.Dw.Functions.Item.GetHomeItemProperty(Convert.ToInt32(GetGlobalValue("Global:Page.ID")),"Eveniment","Banner").TrimStart('/'); 329 string bannerImageMobil = @BrandFusion.Dw.Functions.Item.GetHomeItemProperty(Convert.ToInt32(GetGlobalValue("Global:Page.ID")),"Eveniment","BannerMobil").TrimStart('/'); 330 string inscriereLink = @BrandFusion.Dw.Functions.Item.GetHomeItemProperty(Convert.ToInt32(GetGlobalValue("Global:Page.ID")),"Eveniment","Hyperlink").TrimStart('/');*@ 331 string bannerImage = @GetHomeItemProperty(Convert.ToInt32(GetGlobalValue("Global:Page.ID")),"Eveniment","Banner").TrimStart('/'); 332 string bannerImageMobil = @GetHomeItemProperty(Convert.ToInt32(GetGlobalValue("Global:Page.ID")),"Eveniment","BannerMobil").TrimStart('/'); 333 string inscriereLink = @GetHomeItemProperty(Convert.ToInt32(GetGlobalValue("Global:Page.ID")),"Eveniment","Hyperlink").TrimStart('/'); 334 string inscriereLinkCompare = inscriereLink; 335 336 337 338 } 339 340 @{ 341 342 if (!String.IsNullOrEmpty(inscriereLink) && inscriereLink.Length >= 26) 343 { 344 inscriereLinkCompare = inscriereLink.Substring(26); 345 346 } 347 348 349 } 350 351 <meta charset="utf-8"> 352 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 353 <meta name="viewport" content="width=device-width"> 354 355 <title>@GetValue("Title")</title> 356 @GetValue("MetaTags") 357 @GetValue("CopyRightNotice") 358 359 <link rel="profile" href="http://gmpg.org/xfn/11"> 360 <link rel="pingback" href="/Files/Templates/Designs/BusinessDays/xmlrpc.php"> 361 362 <!--[if lt IE 9]> 363 <script src="js/html5shiv.js"></script> 364 <script src="js/respond.min.js"></script> 365 <![endif]--> 366 367 @*foreach (LoopItem i in GetLoop("Item.Area.Groups") ){ 368 if (i.GetString("Item.Area.Group.Name") == "Header"){ 369 foreach (LoopItem j in i.GetLoop("Item.Area.Group.Fields")){ 370 <meta name='@j.GetString("Item.Area.Field.Name")' content='@j.GetString("Item.Area.Field.Value")'> 371 } 372 } 373 }*@ 374 375 <!--!Styles--> 376 <link href='//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,600,700,800,300&subset=latin,latin-ext' rel='stylesheet' type='text/css'> 377 <link rel="alternate" type="application/rss+xml" title="Business Days &raquo; Feed" href="/Files/Templates/Designs/BusinessDays/feed/"> 378 <link rel="alternate" type="application/rss+xml" title="Business Days &raquo; Comments Feed" href="/Files/Templates/Designs/BusinessDays/comments/feed/"> 379 <link rel='stylesheet' id='bootstrap-css' href='/Files/Templates/Designs/BusinessDays/assets/css/bootstrap.css' type='text/css' media='all'> 380 <link rel='stylesheet' id='plugin-css' href='/Files/Templates/Designs/BusinessDays/assets/css/plugin.css' type='text/css' media='all'> 381 <link rel='stylesheet' id='font-awesome-css' href='/Files/Templates/Designs/BusinessDays/assets/css/font-awesome.min.css?ver=1.0' type='text/css' media='all'> 382 <link rel='stylesheet' id='style-css' href='/Files/Templates/Designs/BusinessDays/assets/style.css' type='text/css' media='all'> 383 <link rel='stylesheet' id='style-css' href='/Files/Templates/Designs/BusinessDays/assets/style2.css' type='text/css' media='all'> 384 <link rel='stylesheet' id='responsive-css' href='/Files/Templates/Designs/BusinessDays/assets/css/responsive.css' type='text/css' media='all'> 385 <link rel='stylesheet' id='custom-css' href='/Files/Templates/Designs/BusinessDays/assets/css/ereven.css' type='text/css' media='all'> 386 <link rel='stylesheet' id='style-css' href='/Files/Templates/Designs/BusinessDays/assets/mobile.css' type='text/css' media='all'> 387 388 389 <link rel="shortcut icon" href="/Files/Templates/Designs/BusinessDays/assets/images/favicon.ico"> 390 391 <link rel='stylesheet' id='demo-css' href='/Files/Templates/Designs/BusinessDays/assets/css/color.css' type='text/css' media='all'> 392 <script type='text/javascript' src='/Files/Templates/Designs/BusinessDays/assets/js/jquery.js'></script> 393 <link rel='prev' title='Video' href='/Files/Templates/Designs/BusinessDays/shortcodes/video/'> 394 <link rel='next' title='About' href='/Files/Templates/Designs/BusinessDays/about/'> 395 <style type="text/css"> 396 .recentcomments a { 397 display:inline!important; 398 padding:0!important; 399 margin:0!important; 400 } 401 </style> 402 403 <!--[if lt IE 9]> 404 <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> 405 <script src="/Files/Templates/Designs/BusinessDays/assets/js/respond.js"></script> 406 <![endif]--> 407 408 409 <!--trackingjs start--> 410 <!--@Snippet(trackingJS)--> 411 <!-- start marketizator.com code --> 412 <link rel="dns-prefetch" href="//app.marketizator.com"> 413 <script type="text/javascript" src="//d2tgfbvjf3q6hn.cloudfront.net/js/84246f.js"></script> 414 <!-- end marketizator.com code --> 415 416 @*@BrandFusion.Dw.Functions.Item.GetHomeItemProperty( Convert.ToInt32(GetGlobalValue("Global:Page.ID")), "Eveniment","CodRemarketing") 417 @BrandFusion.Dw.Functions.Item.GetHomeItemProperty( Convert.ToInt32(GetGlobalValue("Global:Page.ID")), "Eveniment","GoogleAnalytics")*@ 418 @GetHomeItemProperty( Convert.ToInt32(GetGlobalValue("Global:Page.ID")), "Eveniment","CodRemarketing") 419 @GetHomeItemProperty( Convert.ToInt32(GetGlobalValue("Global:Page.ID")), "Eveniment","GoogleAnalytics") 420 <script type="text/javascript"> 421 var _gaq = _gaq || []; 422 _gaq.push(['_setAccount', 'UA-21447422-2']); 423 _gaq.push(['_trackPageview']); 424 425 (function() { 426 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; 427 ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js'; 428 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); 429 })(); 430 </script> 431 @GetString("Item.Area.Cod.Value") 432 433 @GetValue("Stylesheets") 434 @GetValue("Javascripts") 435 </head> 436 <body data-pageid='@GetGlobalValue("Global:Page.ID")' data-productpage='@GetValue("Item.Area.Catalog_Page")' data-paragraph='@GetValue("Item.Area.InstantSearch_Paragraph")' data-areaid='@GetGlobalValue("Global:Area.ID")'> 437 <!--[if lt IE 7]> 438 <p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p> 439 <![endif]--> 440 <div class="mobile-big-wrapper"> 441 442 <!-- Mobile Navigation --> 443 <div class="mobile-nav left-view"> 444 <div class="mobile-main-nav"> 445 @GetValue("DwNavigation(Navigation)") 446 </div> 447 <div class="mobile-secondary-nav"> 448 <ul> 449 <li><a href='/Default.aspx?ID=@(GetString("LongLang").Equals("ro-RO") ? "1" : "10347")'>@Translate("home","Acasa")</a></li> 450 <li><a href='/Default.aspx?ID=@(GetString("LongLang").Equals("ro-RO") ? "82" : "10355")'>Contact</a></li> 451 @{ 452 //string user2 = Dynamicweb.Frontend.PageView.Current().User.UserName; 453 //var currentUser = Dynamicweb.Security.UserManagement.User.GetCurrentExtranetUser(); 454 var currentUser2 = Dynamicweb.Security.UserManagement.User.GetCurrentExtranetUser(); 455 // string user2 = currentUser == null ? "" : currentUser.Name; 456 } 457 458 @if(currentUser2 == null) 459 { 460 <li><a href='/Default.aspx?ID=@(GetString("LongLang").Equals("ro-RO") ? "12" : "10392")'>@Translate("createnewuser","Creeaza cont utilizator")</a></li> 461 <li><a href='/Default.aspx?ID=@(GetString("LongLang").Equals("ro-RO") ? "14" : "10393")'>Login</a></li> 462 } else { 463 <li><a href='/Default.aspx?ID=@(GetString("LongLang").Equals("ro-RO") ? "33" : "10391")'>@Translate("myaccount","Contul meu")</a></li> 464 <li><a href='/Admin/Public/ExtranetLogoff.aspx?ID=@(GetString("LongLang").Equals("ro-RO") ? "1" : "10347")' alt="@currentUser2.Name">Logout</a></li> 465 } 466 </ul> 467 </div> 468 </div> 469 <!-- Mobile Navigation End --> 470 <div class="mobile-wrapper"> 471 <div id="wrapper"> 472 473 <header id="header" role="banner" class="bottom-2"> 474 <div class="fixedheader hidden-xs hidden-sm"> 475 @* 476 <pre>@string.Join("\n", Values.Select(e => string.Format("{0}: {1}", e.Key, System.Web.HttpUtility.HtmlEncode(e.Value))).ToArray())</pre> 477 *@ 478 <div class="container"> 479 <div class="pull-left"> 480 <div class="fullmenu"> 481 <nav> 482 @GetValue("DwNavigation(menumainmenu)") 483 </nav> 484 </div> 485 </div> 486 </div> 487 </div> 488 489 490 <div class="container"> 491 <!-- header cos --> 492 @if(!@GetBoolean("Ecom:Order.IsEmpty")) { 493 string aux = "product"; 494 <div class="produse pull-right"> 495 <small> 496 @if (@GetInteger("Ecom:Order.OrderLines.TotalProductQuantity") != 1) { 497 aux = "products"; 498 } 499 <a href='/Default.aspx?ID=@Pageview.Area.Item["CartPageId"]'>@GetValue("Ecom:Order.OrderLines.TotalProductQuantity") @aux</a> <text> - @GetValue("Ecom:Order.OrderLines.Total.PriceWithVAT")</text> 500 501 </small> 502 </div> 503 <div class="cos pull-right"> 504 <a href='/Default.aspx?ID=@Pageview.Area.Item["CartPageId"]' class="header-cos"><i class="fa fa-shopping-cart"></i> <small>@Translate("shoppingcart", "shopping cart")</small></a> 505 </div> 506 } 507 <!-- header navbar --> 508 <nav class="navbar"> 509 <ul class="nav navbar-nav navbar-right hidden-sm hidden-xs"> 510 <li><a href='/Default.aspx?ID=@GetValue("DwAreaFirstPageID")'>@Translate("home", "Acasa")</a></li> 511 <li><a href='/Default.aspx?ID=@Pageview.Area.Item["ContactPage_ID"]'>@Translate("contact", "Contact")</a></li> 512 @{ 513 //string user = "";//Dynamicweb.Frontend.PageView.Current().User.UserName; 514 var currentUser = Dynamicweb.Security.UserManagement.User.GetCurrentExtranetUser(); 515 //if( string.IsNullOrEmpty(user) ) 516 if( currentUser == null ) 517 { 518 <li><a href='/Default.aspx?ID=@Pageview.Area.Item["CreateAccountPage_ID"]'>@Translate("createNewAccount", "Creeaza cont utilizator")</a></li> 519 <li><a href='/Default.aspx?ID=@Pageview.Area.Item["LoginPAge_ID"]'>@Translate("login", "Login")</a></li> 520 } else { 521 <li><a href='/Default.aspx?ID=@Pageview.Area.Item["MyAccountPage_ID"]'>@Translate("myaccount", "Contul meu")</a></li> 522 <li><a href="/Admin/Public/ExtranetLogoff.aspx?ID=1" title="@currentUser.Name">@Translate("logout", "Logout")</a></li> 523 } 524 } 525 <li> 526 <a href='/Default.aspx?ID=1' id="selectorLangRO" class='@(GetString("Lang").Equals("ro") ? "active" : "")'> 527 <img src="/Files/Templates/Designs/BusinessDays/assets/images/ro.png" alt="" class="d_inline_m m_right_7"> 528 </a> 529 </li> 530 <li> 531 <a href='/Default.aspx?ID=10347' id="selectorLangEN" class='@(GetString("Lang").Equals("en") ? "active" : "")'> 532 <img src="/Files/Templates/Designs/BusinessDays/assets/images/uk.png" alt="" class="d_inline_m m_right_7"> 533 </a> 534 </li> 535 </ul> 536 </nav> 537 </div> 538 539 540 541 <div class="container"> 542 <div id="main-header" class="clearfix"> 543 <div class="logo" role="banner"> 544 <p class="site-title bottom-0"> 545 <a title="Business Days" rel="home" href=""> 546 <img class="logo_standard img-responsive" src="/Files/Templates/Designs/BusinessDays/uploads/2014/01/logo.jpg" alt="Business Days"> 547 </a> 548 </p> 549 <span class="site-description">Business Days</span> 550 </div> 551 <div class="responsive-menu col-xs-6 visible-xs visible-sm pull-left reset-padding-left"> 552 <i class="fa fa-bars"></i> 553 @* <p class="mobile-menu-bars">Meniu</p> *@ 554 <ul class="responsive-menu-list"> 555 <li> 556 <a href='/Default.aspx?ID=1' id="selectorLangRO" class='@(GetString("Lang").Equals("ro") ? "active" : "")'> 557 <img src="/Files/Templates/Designs/BusinessDays/assets/images/ro.png" alt="" class="d_inline_m m_right_7"> 558 </a> 559 </li> 560 <li> 561 <a href='/Default.aspx?ID=10347' id="selectorLangEN" class='@(GetString("Lang").Equals("en") ? "active" : "")'> 562 <img src="/Files/Templates/Designs/BusinessDays/assets/images/uk.png" alt="" class="d_inline_m m_right_7"> 563 </a> 564 </li> 565 </ul> 566 </div> 567 <div class="countdown-timer-wrapper pull-right hidden-xs hidden-sm"> 568 <!--@Global:Paragraph.Content(333)--> 569 </div> 570 </div> 571 <div id="mainmenu" class="fullmenu hidden-xs hidden-sm"> 572 <nav> 573 @GetValue("DwNavigation(menumainmenu1)") 574 </nav> 575 </div> 576 577 </div> 578 </header> 579 580 581 <div class="container"> 582 <div class="row"> 583 584 <div class="banner-image" style="padding: 0px 15px"> 585 @if (Dynamicweb.Core.Converter.ToBoolean(GetGlobalValue("Global:Device.IsMobile"))) { 586 <img src='/@bannerImageMobil' class="img-responsive"> 587 } else { 588 <img src='/@bannerImage' class="img-responsive"> 589 } 590 591 </div> 592 <div id="content" class="col-md-12 col-lg-12 tab-container"> 593 <div class="entry-content bottom-30"> 594 <div class="mobile-tab-navigation hidden-md hidden-lg visible-sm visible-xs"></div> 595 596 <div id="tab-1014904837" class="tabs clearfix main"> 597 @GetValue("DwNavigation(secmainmenu1)") 598 599 @*Include("Custom/GlobalFunctions.cshtml")*@ 600 @using System.Web.WebPages 601 <div class="ads below-header hidden-xs hidden-sm"></div> 602 <div id="heading" class="bottom-20"> 603 <div class="container"> 604 <div class="heading-content"> 605 <div class="row"> 606 <!-- <div id="heading-title" class="col-md-4 col-lg-4 col-sm-4"> 607 <h6 class="heading-title large bottom-0">&nbsp;</h6> 608 </div> --> 609 <!--breadcrumbs--> 610 <div id="breadcrumbs" class="col-md-12 col-lg-12 col-sm-12 hidden-xs"> 611 @GetValue("DwNavigation(breadcrumbs)") 612 </div> 613 </div> 614 </div> 615 </div> 616 </div> 617 <div class="ads below-heading hidden-xs hidden-sm"></div> 618 @{ 619 var post = Dynamicweb.Content.Items.Item.GetItemById("Conferinta", GetString("Item.Id")); 620 var postUrl = string.Format("/Default.aspx?ID={0}", Pageview.Page.ID); 621 string shareTitle = post["Title"].ToString().Replace(" ", "+").Replace("++", "+"); 622 //string speakerLink = @BrandFusion.Dw.Functions.Item.GetHomeItemProperty(Convert.ToInt32(GetGlobalValue("Global:Page.ID")),"Eveniment","SpeakerPage_ID").TrimStart('/'); 623 string speakerLink = @GetHomeItemProperty(Convert.ToInt32(GetGlobalValue("Global:Page.ID")),"Eveniment","SpeakerPage_ID").TrimStart('/'); 624 } 625 <section id="content-sidebar" class="container"> 626 <div class="row"> 627 <div id="content" class="col-md-8 col-lg-8 clearfix"> 628 <h1 class="entry-title bottom-10"> 629 <a rel="bookmark" href="@postUrl" title="@post[" title"]"="">@post["Title"]</a> 630 </h1> 631 <div class="entry-info clearfix bottom-10 top-0 timestamp-dark"> 632 @if (@post["Numar_Locuri"].ToString() != ""){ 633 634 int numarLocuri = post["Numar_Locuri"].ToString().AsInt(); 635 636 if (post["NumarLocuriRezervate"] != null && post["NumarLocuriRezervate"].ToString().AsInt() != 0){ 637 numarLocuri = numarLocuri - post["NumarLocuriRezervate"].ToString().AsInt(); 638 } 639 <span class="author vcard"> 640 <i class="fa fa-user"></i> 641 @Translate("numberOfSeats", "Numar de locuri"): @numarLocuri 642 </span> 643 644 } 645 <span class="time"> 646 <time class="published updated"> 647 <i class="fa fa-clock-o"></i>@string.Format("{0:d}", post["OraInceput"]) @string.Format("{0:t}", post["OraInceput"]) - @string.Format("{0:t}", post["Ora_Sfarsit"]) 648 </time> 649 </span> 650 @if (@post["Sala"].ToString() != ""){ 651 <span class=""> 652 <i class="fa fa-clock-o"></i>@Translate("Sala", "Sala"): @post["Sala"] 653 </span> 654 } 655 </div> 656 <div class="entry-content bottom-20"> 657 @post["Descriere"] 658 </div> 659 <div id="main">@GetValue("DwContent(main)")</div> 660 <div class="addthis_native_toolbox"> 661 <fb:like layout="button_count" show_faces="false" width="450" style="float:right;margin-top:-3px;"></fb:like> 662 </div> 663 <!-- 664 <div class="entry-meta bottom-20"> 665 <div class="post-social-share clearfix"> 666 <span><i class="fa fa-share"></i>Share</span> 667 <a href="http://www.facebook.com/sharer.php?u=@postUrl&amp;t=@shareTitle"><i class="fa fa-facebook"></i></a> 668 <a href="http://twitter.com/share?text=@post["Title"]&url=@postUrl&hashtags=businessdays"><i class="fa fa-twitter"></i></a> 669 <a href="http://linkedin.com/shareArticle?mini=true&amp;url=@postUrl&amp;title=@shareTitle"><i class="fa fa-linkedin"></i></a> 670 <a href="http://google.com/bookmarks/mark?op=edit&amp;bkmk=@postUrl&amp;title=@shareTitle"><i class="fa fa-google-plus"></i></a> 671 </div> 672 </div> 673 --> 674 <div class="prenebox bottom-30"> 675 <div class="row"> 676 @GetValue("DwNavigation(agendaeveniment1)") 677 </div> 678 </div> 679 680 <section id="content-list"> 681 @{ 682 string speakeri = GetValue("Item.Lista_Speakeri").ToString(); 683 if (!string.IsNullOrEmpty(speakeri)){ 684 <div class="newsbox clearfix"> 685 <div class="boxheading clearfix bottom-20"> 686 <h5 class="bottom-0 large pull-left">@Translate("listOfSpeakers", "Lista Speakeri")</h5> 687 </div> 688 <div class="speaker-list"> 689 @{ 690 string[] itemIdList2 = speakeri.Split(','); 691 foreach (string itemId in itemIdList2){ 692 var speaker = Dynamicweb.Content.Items.Item.GetItemById("Speaker", itemId); 693 string nume = speaker["Nume_Speaker"].ToString(); 694 var functie = speaker["Functie"]; 695 var companie = speaker["Companie"]; 696 var descriere = speaker["Descriere_Scurta"]; 697 var imagine = speaker["Imagine_Speaker"].ToString().TrimStart('/'); 698 699 <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 speaker-item speaker-item-eveniment"> 700 <div class="row"> 701 <div class="col-md-2 col-sm-2 col-xs-6"> 702 <div class="speaker-image"> <a href="@speakerLink&itemId=Speaker:@itemId"> <img class="img-responsive" src="/@imagine"> </a> </div> 703 </div> 704 <div class="col-md-10 speaker-mobile-fix"> 705 <div class="speaker-name speaker-name-special"> <a href="@speakerLink&itemId=Speaker:@itemId">@nume</a> </div> 706 <div class="speaker-position"><p>@functie, @companie</p></div> 707 <div class="speaker-shortdescription"><p>@descriere</p></div> 708 <a href="@speakerLink&itemId=Speaker:@itemId" class="btn-special-rho btn-speaker-absolute">@Translate("readMore", "Citeste mai mult")</a> 709 </div> 710 </div> 711 712 </div> 713 } 714 } 715 </div> 716 </div> 717 } 718 } 719 720 721 @{ 722 string moderatori = GetValue("Item.Moderatori").ToString(); 723 if (!string.IsNullOrEmpty(moderatori)){ 724 <div class="newsbox clearfix"> 725 <div class="boxheading clearfix bottom-20"> 726 <h5 class="bottom-0 large pull-left">@Translate("Moderators", "Moderatori")</h5> 727 </div> 728 <div class="speaker-list"> 729 @{ 730 string[] itemIdList2 = moderatori.Split(','); 731 foreach (string itemId in itemIdList2){ 732 var speaker = Dynamicweb.Content.Items.Item.GetItemById("Speaker", itemId); 733 string nume = speaker["Nume_Speaker"].ToString(); 734 var functie = speaker["Functie"]; 735 var companie = speaker["Companie"]; 736 var descriere = speaker["Descriere_Scurta"]; 737 var imagine = speaker["Imagine_Speaker"].ToString().TrimStart('/'); 738 739 <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 speaker-item speaker-item-eveniment"> 740 <div class="row"> 741 <div class="col-md-2 col-sm-2 col-xs-6"> 742 <div class="speaker-image"> <a href="@speakerLink&itemId=Speaker:@itemId"> <img class="img-responsive" src="/@imagine"> </a> </div> 743 </div> 744 <div class="col-md-10 speaker-mobile-fix"> 745 <div class="speaker-name"> <a href="@speakerLink&itemId=Speaker:@itemId">@nume</a> </div> 746 <div class="speaker-position"><p>@functie, @companie</p></div> 747 <div class="speaker-shortdescription"><p>@descriere</p></div> 748 <a href="@speakerLink&itemId=Speaker:@itemId" class="btn-special-rho btn-speaker-absolute">@Translate("readMore", "Citeste mai mult")</a> 749 </div> 750 </div> 751 752 </div> 753 } 754 } 755 </div> 756 </div> 757 } 758 } 759 </section> 760 761 762 763 764 765 </div> 766 <div id="sidebar" class="col-lg-4 col-md-4 top-30-sm top-30-xs"> 767 <aside id="ereven_popular_posts_widget-2" class="widget popupar post-list"> 768 <h5 class="large widgettile">@Translate("otherEventsInTheSameDay", "Alte evenimente in aceeasi zi")</h5> 769 @GetValue("DwNavigation(alteevenimente)") 770 </aside> 771 <!--@Global:Paragraph.Content(267)--> 772 </div> 773 </div> 774 </section> 775 776 <!-- Go to www.addthis.com/dashboard to customize your tools --> 777 <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-544f9ac03e8634bc" async="async"></script> 778 <script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script> 779 780 <script type="text/javascript"> 781 var addthis_share = { 782 url: document.URL 783 } 784 785 </script> 786 </div> 787 <!-- <div class=" divider clearfix striptags"></div> --> 788 </div> 789 </div> 790 791 792 </div> 793 </div> 794 <footer id="footer"> 795 <div id="widgetarea" class="light"> 796 <div class="container"> 797 <div class="widgetcontent"> 798 <div class="row"> 799 <div id="footer-widget-1" class="bottom-30-sm bottom-30-xs col-lg-4 col-md-4"> 800 801 @if (GetString("LongLang").Equals("ro-RO")) 802 { 803 804 @RenderParagraphContent(326); 805 806 } 807 else if (GetString("LongLang").Equals("en-US")) 808 { 809 @RenderParagraphContent(4502); 810 811 } 812 </div> 813 <div id="footer-widget-2" class="bottom-30-sm bottom-30-xs col-lg-4 col-md-4"> 814 <div id="recent-comments-3" class="widget widget_recent_comments bottom-xs-30 bottom-sm-30"> 815 <div class="widget-title"> 816 <h5 class="widgettile">@Translate("lastArticles", "Ultimele Articole")</h5> 817 </div> 818 @GetValue("DwNavigation(agendaeveniment)") 819 </div> 820 </div> 821 <div id="footer-widget-4" class="bottom-30-sm bottom-30-xs col-lg-4 col-md-4"> 822 <div id="ereven_twitter-2" class="widget last-tweet bottom-xs-30 bottom-sm-30"> 823 <div class="widget-title"> 824 <h5 class="widgettile">@Translate("socialMedia", "Social Media")</h5> 825 </div> 826 <div> 827 <ul id="social" class="social clearfix"> 828 <!-- <li><a rel="nofollow" href="http://www.flickr.com/photos/businessdays" target="_blank"><img src="http://www.businessdays.ro/wp-content/themes/bd/images/flickr_icon.jpg" alt="" /></a></li> --> 829 830 <li><a rel="nofollow" href="http://feeds.feedburner.com/businessday" target="_blank"><i class="fa fa-rss fa-3x"></i></a></li> 831 <li><a rel="nofollow" href="http://twitter.com/#!/businessdaysro" target="_blank"><i class="fa fa-twitter fa-3x"></i></a></li> 832 <li><a rel="nofollow" href="http://www.facebook.com/#!/BusinessDays" target="_blank"><i class="fa fa-facebook fa-3x"></i></a></li> 833 <li><a rel="nofollow" href="http://www.linkedin.com/groups/Business-Days-3766018" target="_blank"><i class="fa fa-linkedin fa-3x"></i></a></li> 834 <li><a rel="nofollow" href="https://picasaweb.google.com/businessdaysro" target="_blank"><span class="picasa-icon"></span></a></li> 835 <li><a rel="nofollow" href="http://www.youtube.com/businessdaysro" target="_blank"><i class="fa fa-youtube fa-3x"></i></a></li> 836 <li><a rel="nofollow" href="http://www.slideshare.net/businessdays" target="_blank"><span class="slideshare-icon"></span></a></li> 837 <li><a rel="nofollow" href="https://plus.google.com/113464854804572684798/" target="_blank"><i class="fa fa-google-plus fa-3x"></i></a></li> 838 </ul> 839 </div> 840 841 </div> 842 </div> 843 </div> 844 </div> 845 </div> 846 </div> 847 <div id="credit" class="light"> 848 <div class="container"> 849 <div class="row"> 850 <div class="col-lg-3 col-md-3"> 851 <span style="font-size:14px;">Copyright 2014 - @DateTime.Now.Year by Business Days. Powered by <a href="http://www.brandfusion.ro/" title="BrandFusion">BrandFusion</a></span> 852 </div> 853 <div class="col-lg-9 col-md-9 text-right"> 854 <nav class="footer-menu"> 855 @GetValue("DwNavigation(footermenu)") 856 </nav> 857 </div> 858 </div> 859 </div> 860 </div> 861 </footer> 862 </div> 863 </div> 864 </div> 865 866 <!-- <script type='text/javascript' src='/Files/Templates/Designs/BusinessDays/includes/js/mediaelement/wp-mediaelement.js'></script> --> 867 <script type='text/javascript' src='/Files/Templates/Designs/BusinessDays/assets/js/bootstrap.js'></script> 868 <script type='text/javascript' src='/Files/Templates/Designs/BusinessDays/assets/js/superfish.js'></script> 869 <script type='text/javascript' src='/Files/Templates/Designs/BusinessDays/assets/js/easing.js'></script> 870 <script type='text/javascript' src='/Files/Templates/Designs/BusinessDays/assets/js/caroufredsel.js'></script> 871 <script type='text/javascript' src='/Files/Templates/Designs/BusinessDays/assets/js/fitvids.js'></script> 872 <script type='text/javascript' src='/Files/Templates/Designs/BusinessDays/assets/js/ticker.js'></script> 873 <script type='text/javascript' src='/Files/Templates/Designs/BusinessDays/assets/js/flexslider.js'></script> 874 <!-- <script type='text/javascript' src='/Files/Templates/Designs/BusinessDays/assets/js/jpanelmenu.js'></script> --> 875 <script type='text/javascript' src='/Files/Templates/Designs/BusinessDays/assets/js/magnificpopup.js'></script> 876 <!-- <script type='text/javascript' src='/Files/Templates/Designs/BusinessDays/assets/js/twitter/tweet.js'></script> --> 877 <script type='text/javascript' src='/Files/Templates/Designs/BusinessDays/assets/js/masonry.js'></script> 878 <script type='text/javascript' src='/Files/Templates/Designs/BusinessDays/assets/js/affix.js'></script> 879 <script type='text/javascript' src='/Files/Templates/Designs/BusinessDays/assets/js/functions.js'></script> 880 <script type='text/javascript' src='/Files/Templates/Designs/BusinessDays/assets/js/custom.js'></script> 881 <script type='text/javascript' src='/Files/Templates/Designs/BusinessDays/assets/js/jquery.countdown.js'></script> 882 <script type='text/javascript' src='/Files/Templates/Designs/BusinessDays/assets/js/main.js'></script> 883 <script type='text/javascript' src='/Files/Templates/Designs/BusinessDays/assets/js/mobile-menu.js'></script> 884 <!--@Snippet(footerJS)--> 885 @GetString("Item.Area.Cod_Body.Value") 886 <script type="text/javascript"> 887 var _mfq = _mfq || []; 888 (function() { 889 var mf = document.createElement("script"); mf.type = "text/javascript"; mf.async = true; 890 mf.src = "//cdn.mouseflow.com/projects/70c59ee0-2c20-40a4-af33-50f75d54cdbc.js"; 891 document.getElementsByTagName("head")[0].appendChild(mf); 892 })(); 893 </script> 894 895 </body> 896