Exception in template (Designs/BusinessDays/_parsed/ConferintaEveniment.parsed.cshtml): System.NullReferenceException: Object reference not set to an instance of an object.
   at CompiledRazorTemplates.Dynamic.ccdeddffecec.Execute()
   at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context)
   at RazorEngine.Templating.TemplateService.Run(ITemplate template, DynamicViewBag viewBag)
   at RazorEngine.Templating.TemplateService.Parse(String razorTemplate, Object model, DynamicViewBag viewBag, String cacheName)
   at RazorEngine.Razor.Parse[T](String razorTemplate, T model, String cacheName)
   at Dynamicweb.Rendering.Template.RenderRazorTemplate()
@using System.Web; @using Dynamicweb.Content; @using Dynamicweb.Data; @using Dynamicweb.Extensibility; @functions { //Item public static string GetHomeItemProperty(int pageId, string itemType, string propertyName) { try { string propertyValue = ""; string homeItemId = ""; //Dynamicweb.Content.Page page = Dynamicweb.Content.Page.GetPageById(pageId); //Dynamicweb.Content.Page page = ServiceLocator.Current.GetInstance<IPageService>().GetPage(pageId); Dynamicweb.Content.Page page = ServiceLocator.Current.GetPageService().GetPage(pageId); while (page != null) { if (page.ItemType.Equals(itemType)) { homeItemId = page.ItemId; } page = page.Parent; } if (!string.IsNullOrEmpty(homeItemId)) { try { Dynamicweb.Content.Items.Item item = Dynamicweb.Content.Items.Item.GetItemById(itemType, homeItemId); propertyValue = item[propertyName].ToString(); } catch { } } return propertyValue; } catch(Exception ex) { throw new Exception("GetHomeItemProperty: " + ex.ToString()); } } public static bool SetUserIdInItemList(string userId, string itemType, string itemId, string propertyName, bool insert = true) { try { bool succes = false; if (!string.IsNullOrEmpty(userId) && userId != "0") { Dynamicweb.Content.Items.Item item = Dynamicweb.Content.Items.Item.GetItemById(itemType, itemId); if (item != null) { string listValues = ""; try { //daca e item nou creat adaugam direct userul if (item[propertyName] == null || String.IsNullOrEmpty(item[propertyName].ToString())) { if (insert) { item[propertyName] = (listValues + "," + userId).TrimStart(','); item.Save(); succes = true; } } else { listValues = item[propertyName].ToString(); if (!("," + listValues + ",").Contains("," + userId + ",")) { if (insert) { item[propertyName] = (listValues + "," + userId).TrimStart(','); item.Save(); succes = true; } } else { if (!insert) { item[propertyName] = ("," + listValues + ",").Replace("," + userId + ",", "").TrimEnd(',').TrimStart(','); item.Save(); succes = true; } } } } catch { } } } return succes; } catch(Exception ex) { throw new Exception("SetUserIdInItemList: " + ex.ToString()); } } //Page public static Dynamicweb.Content.Page GetPageByItem(string itemType, string itemId) { //Dynamicweb.Content.Page page = null; //string sql = string.Format("SELECT * FROM Page WHERE PageItemType = '{0}' and PageItemId = '{1}'", itemType, itemId); //// 😍 //var pages = Dynamicweb.Content.Page.GetPagesBySql(sql); //if (pages.Count == 1) //{ // page = pages[0]; //} //return page; try { var page = ServiceLocator.Current.GetInstance<IPageService>().GetPageForItem(itemType, itemId); if (page == null) { throw new InvalidOperationException("The page for itemType {itemType}, itemId {itemId} does not exist."); } return page; } catch(Exception ex) { throw new Exception("GetPageByItem: " + ex.ToString()); } } public static string GetPageUrlByItem(string itemType, string itemId) { // TODO: remove after checking //Dynamicweb.Content.Page page = null; //string pageUrl = ""; //string sql = string.Format("SELECT * FROM Page WHERE PageItemType = '{0}' and PageItemId = '{1}'", itemType, itemId); ////var pages = Dynamicweb.Content.Page.GetPagesBySql(sql); //if (pages.Count == 1) //{ // page = pages[0]; // pageUrl = Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(page.ID); //} //return pageUrl; try { var page = ServiceLocator.Current.GetInstance<IPageService>().GetPageForItem(itemType, itemId); return page == null ? "" : Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(page.ID); } catch(Exception ex) { throw new Exception("GetPageUrlByItem: " + ex.ToString()); } } public static int GetMostRecentPageForThisItemType(string itemType) { try { int pageId = 0; string sqlQuery = string.Format("SELECT PageID FROM Page WHERE pageitemtype = '{0}' order by CAST(ISNULL(PageItemId,0) AS int) DESC", itemType); Int32.TryParse(Database.ExecuteScalar(sqlQuery).ToString(), out pageId); return pageId; } catch(Exception ex) { throw new Exception("GetMostRecentPageForThisItemType: " + ex.ToString()); } } public static int GetMostRecentItemIdForThisItemType(string itemType) { try { int pageItemId = 0; string sqlQuery = string.Format("SELECT PageItemId FROM Page WHERE pageitemtype = '{0}' order by CAST(ISNULL(PageItemId,0) AS int) DESC", itemType); Int32.TryParse(Database.ExecuteScalar(sqlQuery).ToString(), out pageItemId); return pageItemId; } catch(Exception ex) { throw new Exception("GetMostRecentItemIdForThisItemType: " + ex.ToString()); } } public static int GetPageByItemTypeAndParentPageId(string itemType, int parentPageId) { try { int pageId = 0; string sqlQuery = string.Format("SELECT PageID FROM Page WHERE pageitemtype = '{0}' and PageParentPageID = '{1}'", itemType, parentPageId); Int32.TryParse(Database.ExecuteScalar(sqlQuery).ToString(), out pageId); return pageId; } catch(Exception ex) { throw new Exception("GetPageByItemTypeAndParentPageId: " + ex.ToString()); } } public static int GetProcesInscrierePageId(int pageId) { try { int procesPageId = 0; // Dynamicweb.Content.Page page = Dynamicweb.Content.Page.GetPageById(pageId); Dynamicweb.Content.Page page = ServiceLocator.Current.GetInstance<IPageService>().GetPage(pageId); //Dynamicweb.Content.Page.GetPage(pageId); while (page != null) { if (page.ItemType.ToLower() == "eveniment") { string sql = string.Format("SELECT PageID FROM Page WHERE PageParentPageID = '{0}' and PageMenuText = 'ProcesInscriere'", page.ID); Int32.TryParse(Database.ExecuteScalar(sql).ToString(), out procesPageId); break; } page = page.Parent; } return procesPageId; } catch(Exception ex) { throw new Exception("GetProcesInscrierePageId: " + ex.ToString()); } } //Speakers public static string GetConferinteBySpeakerId(string itemId) { try { string listIdsConferinte = ""; 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); using (System.Data.IDataReader myReader = Database.CreateDataReader(sql.ToString())) { while (myReader.Read()) { listIdsConferinte += myReader["Id"].ToString() + ","; } } listIdsConferinte = listIdsConferinte.TrimEnd(','); return listIdsConferinte; } catch(Exception ex) { throw new Exception("GetConferinteBySpeakerId: " + ex.ToString()); } } //User public static bool CheckIfUserBoughtThisProduct(string userEmail, string productId) { try { bool result = false; if (!string.IsNullOrEmpty(userEmail) && !string.IsNullOrEmpty(productId)) { string sql = string.Format("SELECT TOP 1 1 FROM EcomOrderLines where OrderLineProductID = '{0}' and OrderLineFieldValues like '%{1}%'", productId, userEmail); using (System.Data.IDataReader myReader = Database.CreateDataReader(sql.ToString())) { while (myReader.Read()) { result = true; break; } } } return result; } catch(Exception ex) { throw new Exception("CheckIfUserBoughtThisProduct: " + ex.ToString()); } } } @inherits RazorTemplateBase<RazorTemplateModel<Template>> @using Dynamicweb.Rendering; @using Dynamicweb.Modules.UserManagement; @using Dynamicweb.Security.UserManagement; @using Dynamicweb.Extensibility; @using Dynamicweb.Content; @using System <!DOCTYPE html> <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> <!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> <!--[if gt IE 8]> <html class="no-js"> <![endif]--> <head> @{ var DisplayOptions = ""; if (!string.IsNullOrEmpty(GetString("Item.Page.DisplayOptions"))){ DisplayOptions = (GetString("Item.Page.DisplayOptions") == "wide") ? "container-wide" : ""; } @*string bannerImage = @BrandFusion.Dw.Functions.Item.GetHomeItemProperty(Convert.ToInt32(GetGlobalValue("Global:Page.ID")),"Eveniment","Banner").TrimStart('/'); string bannerImageMobil = @BrandFusion.Dw.Functions.Item.GetHomeItemProperty(Convert.ToInt32(GetGlobalValue("Global:Page.ID")),"Eveniment","BannerMobil").TrimStart('/'); string inscriereLink = @BrandFusion.Dw.Functions.Item.GetHomeItemProperty(Convert.ToInt32(GetGlobalValue("Global:Page.ID")),"Eveniment","Hyperlink").TrimStart('/');*@ string bannerImage = @GetHomeItemProperty(Convert.ToInt32(GetGlobalValue("Global:Page.ID")),"Eveniment","Banner").TrimStart('/'); string bannerImageMobil = @GetHomeItemProperty(Convert.ToInt32(GetGlobalValue("Global:Page.ID")),"Eveniment","BannerMobil").TrimStart('/'); string inscriereLink = @GetHomeItemProperty(Convert.ToInt32(GetGlobalValue("Global:Page.ID")),"Eveniment","Hyperlink").TrimStart('/'); string inscriereLinkCompare = inscriereLink; } @{ if (!String.IsNullOrEmpty(inscriereLink) && inscriereLink.Length >= 26) { inscriereLinkCompare = inscriereLink.Substring(26); } } <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="viewport" content="width=device-width"> <title>@GetValue("Title")</title> @GetValue("MetaTags") @GetValue("CopyRightNotice") <link rel="profile" href="http://gmpg.org/xfn/11"> <link rel="pingback" href="/Files/Templates/Designs/BusinessDays/xmlrpc.php"> <!--[if lt IE 9]> <script src="js/html5shiv.js"></script> <script src="js/respond.min.js"></script> <![endif]--> @*foreach (LoopItem i in GetLoop("Item.Area.Groups") ){ if (i.GetString("Item.Area.Group.Name") == "Header"){ foreach (LoopItem j in i.GetLoop("Item.Area.Group.Fields")){ <meta name='@j.GetString("Item.Area.Field.Name")' content='@j.GetString("Item.Area.Field.Value")'> } } }*@ <!--!Styles--> <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'> <link rel="alternate" type="application/rss+xml" title="Business Days &raquo; Feed" href="/Files/Templates/Designs/BusinessDays/feed/"> <link rel="alternate" type="application/rss+xml" title="Business Days &raquo; Comments Feed" href="/Files/Templates/Designs/BusinessDays/comments/feed/"> <link rel='stylesheet' id='bootstrap-css' href='/Files/Templates/Designs/BusinessDays/assets/css/bootstrap.css' type='text/css' media='all'> <link rel='stylesheet' id='plugin-css' href='/Files/Templates/Designs/BusinessDays/assets/css/plugin.css' type='text/css' media='all'> <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'> <link rel='stylesheet' id='style-css' href='/Files/Templates/Designs/BusinessDays/assets/style.css' type='text/css' media='all'> <link rel='stylesheet' id='style-css' href='/Files/Templates/Designs/BusinessDays/assets/style2.css' type='text/css' media='all'> <link rel='stylesheet' id='responsive-css' href='/Files/Templates/Designs/BusinessDays/assets/css/responsive.css' type='text/css' media='all'> <link rel='stylesheet' id='custom-css' href='/Files/Templates/Designs/BusinessDays/assets/css/ereven.css' type='text/css' media='all'> <link rel='stylesheet' id='style-css' href='/Files/Templates/Designs/BusinessDays/assets/mobile.css' type='text/css' media='all'> <link rel="shortcut icon" href="/Files/Templates/Designs/BusinessDays/assets/images/favicon.ico"> <link rel='stylesheet' id='demo-css' href='/Files/Templates/Designs/BusinessDays/assets/css/color.css' type='text/css' media='all'> <script type='text/javascript' src='/Files/Templates/Designs/BusinessDays/assets/js/jquery.js'></script> <link rel='prev' title='Video' href='/Files/Templates/Designs/BusinessDays/shortcodes/video/'> <link rel='next' title='About' href='/Files/Templates/Designs/BusinessDays/about/'> <style type="text/css"> .recentcomments a { display:inline!important; padding:0!important; margin:0!important; } </style> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="/Files/Templates/Designs/BusinessDays/assets/js/respond.js"></script> <![endif]--> <!--trackingjs start--> <!--@Snippet(trackingJS)--> <!-- start marketizator.com code --> <link rel="dns-prefetch" href="//app.marketizator.com"> <script type="text/javascript" src="//d2tgfbvjf3q6hn.cloudfront.net/js/84246f.js"></script> <!-- end marketizator.com code --> @*@BrandFusion.Dw.Functions.Item.GetHomeItemProperty( Convert.ToInt32(GetGlobalValue("Global:Page.ID")), "Eveniment","CodRemarketing") @BrandFusion.Dw.Functions.Item.GetHomeItemProperty( Convert.ToInt32(GetGlobalValue("Global:Page.ID")), "Eveniment","GoogleAnalytics")*@ @GetHomeItemProperty( Convert.ToInt32(GetGlobalValue("Global:Page.ID")), "Eveniment","CodRemarketing") @GetHomeItemProperty( Convert.ToInt32(GetGlobalValue("Global:Page.ID")), "Eveniment","GoogleAnalytics") <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-21447422-2']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script> @GetString("Item.Area.Cod.Value") @GetValue("Stylesheets") @GetValue("Javascripts") </head> <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")'> <!--[if lt IE 7]> <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> <![endif]--> <div class="mobile-big-wrapper"> <!-- Mobile Navigation --> <div class="mobile-nav left-view"> <div class="mobile-main-nav"> @GetValue("DwNavigation(Navigation)") </div> <div class="mobile-secondary-nav"> <ul> <li><a href='/Default.aspx?ID=@(GetString("LongLang").Equals("ro-RO") ? "1" : "10347")'>@Translate("home","Acasa")</a></li> <li><a href='/Default.aspx?ID=@(GetString("LongLang").Equals("ro-RO") ? "82" : "10355")'>Contact</a></li> @{ //string user2 = Dynamicweb.Frontend.PageView.Current().User.UserName; //var currentUser = Dynamicweb.Security.UserManagement.User.GetCurrentExtranetUser(); var currentUser2 = Dynamicweb.Security.UserManagement.User.GetCurrentExtranetUser(); // string user2 = currentUser == null ? "" : currentUser.Name; } @if(currentUser2 == null) { <li><a href='/Default.aspx?ID=@(GetString("LongLang").Equals("ro-RO") ? "12" : "10392")'>@Translate("createnewuser","Creeaza cont utilizator")</a></li> <li><a href='/Default.aspx?ID=@(GetString("LongLang").Equals("ro-RO") ? "14" : "10393")'>Login</a></li> } else { <li><a href='/Default.aspx?ID=@(GetString("LongLang").Equals("ro-RO") ? "33" : "10391")'>@Translate("myaccount","Contul meu")</a></li> <li><a href='/Admin/Public/ExtranetLogoff.aspx?ID=@(GetString("LongLang").Equals("ro-RO") ? "1" : "10347")' alt="@currentUser2.Name">Logout</a></li> } </ul> </div> </div> <!-- Mobile Navigation End --> <div class="mobile-wrapper"> <div id="wrapper"> <header id="header" role="banner" class="bottom-2"> <div class="fixedheader hidden-xs hidden-sm"> @* <pre>@string.Join("\n", Values.Select(e => string.Format("{0}: {1}", e.Key, System.Web.HttpUtility.HtmlEncode(e.Value))).ToArray())</pre> *@ <div class="container"> <div class="pull-left"> <div class="fullmenu"> <nav> @GetValue("DwNavigation(menumainmenu)") </nav> </div> </div> </div> </div> <div class="container"> <!-- header cos --> @if(!@GetBoolean("Ecom:Order.IsEmpty")) { string aux = "produs"; <div class="produse pull-right"> <small> @if (@GetInteger("Ecom:Order.OrderLines.TotalProductQuantity") != 1) { aux = "produse"; } <a href='/Default.aspx?ID=@Pageview.Area.Item["CartPageId"]'>@GetValue("Ecom:Order.OrderLines.TotalProductQuantity") @aux</a> <text> - @GetValue("Ecom:Order.OrderLines.Total.PriceWithVAT")</text> </small> </div> <div class="cos pull-right"> <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> </div> } <!-- header navbar --> <nav class="navbar"> <ul class="nav navbar-nav navbar-right hidden-sm hidden-xs"> <li><a href='/Default.aspx?ID=@GetValue("DwAreaFirstPageID")'>@Translate("home", "Acasa")</a></li> <li><a href='/Default.aspx?ID=@Pageview.Area.Item["ContactPage_ID"]'>@Translate("contact", "Contact")</a></li> @{ //string user = "";//Dynamicweb.Frontend.PageView.Current().User.UserName; var currentUser = Dynamicweb.Security.UserManagement.User.GetCurrentExtranetUser(); //if( string.IsNullOrEmpty(user) ) if( currentUser == null ) { <li><a href='/Default.aspx?ID=@Pageview.Area.Item["CreateAccountPage_ID"]'>@Translate("createNewAccount", "Creeaza cont utilizator")</a></li> <li><a href='/Default.aspx?ID=@Pageview.Area.Item["LoginPAge_ID"]'>@Translate("login", "Login")</a></li> } else { <li><a href='/Default.aspx?ID=@Pageview.Area.Item["MyAccountPage_ID"]'>@Translate("myaccount", "Contul meu")</a></li> <li><a href="/Admin/Public/ExtranetLogoff.aspx?ID=1" title="@currentUser.Name">@Translate("logout", "Logout")</a></li> } } <li> <a href='/Default.aspx?ID=1' id="selectorLangRO" class='@(GetString("Lang").Equals("ro") ? "active" : "")'> <img src="/Files/Templates/Designs/BusinessDays/assets/images/ro.png" alt="" class="d_inline_m m_right_7"> </a> </li> <li> <a href='/Default.aspx?ID=10347' id="selectorLangEN" class='@(GetString("Lang").Equals("en") ? "active" : "")'> <img src="/Files/Templates/Designs/BusinessDays/assets/images/uk.png" alt="" class="d_inline_m m_right_7"> </a> </li> </ul> </nav> </div> <div class="container"> <div id="main-header" class="clearfix"> <div class="logo" role="banner"> <p class="site-title bottom-0"> <a title="Business Days" rel="home" href=""> <img class="logo_standard img-responsive" src="/Files/Templates/Designs/BusinessDays/uploads/2014/01/logo.jpg" alt="Business Days"> </a> </p> <span class="site-description">Business Days</span> </div> <div class="responsive-menu col-xs-6 visible-xs visible-sm pull-left reset-padding-left"> <i class="fa fa-bars"></i> @* <p class="mobile-menu-bars">Meniu</p> *@ <ul class="responsive-menu-list"> <li> <a href='/Default.aspx?ID=1' id="selectorLangRO" class='@(GetString("Lang").Equals("ro") ? "active" : "")'> <img src="/Files/Templates/Designs/BusinessDays/assets/images/ro.png" alt="" class="d_inline_m m_right_7"> </a> </li> <li> <a href='/Default.aspx?ID=10347' id="selectorLangEN" class='@(GetString("Lang").Equals("en") ? "active" : "")'> <img src="/Files/Templates/Designs/BusinessDays/assets/images/uk.png" alt="" class="d_inline_m m_right_7"> </a> </li> </ul> </div> <div class="countdown-timer-wrapper pull-right hidden-xs hidden-sm"> <!--@Global:Paragraph.Content(333)--> </div> </div> <div id="mainmenu" class="fullmenu hidden-xs hidden-sm"> <nav> @GetValue("DwNavigation(menumainmenu1)") </nav> </div> </div> </header> <div class="container"> <div class="row"> <div class="banner-image" style="padding: 0px 15px"> @if (Dynamicweb.Core.Converter.ToBoolean(GetGlobalValue("Global:Device.IsMobile"))) { <img src='/@bannerImageMobil' class="img-responsive"> } else { <img src='/@bannerImage' class="img-responsive"> } </div> <div id="content" class="col-md-12 col-lg-12 tab-container"> <div class="entry-content bottom-30"> <div class="mobile-tab-navigation hidden-md hidden-lg visible-sm visible-xs"></div> @if (GetGlobalValue("Global:Pageview.Url") != inscriereLinkCompare) { <div class="quick-inscriere hidden-md hidden-lg clearfix"> <a href="@inscriereLink" class="btn-inscriere">@Translate("SignUpToEvent","Inscrie-te la eveniment")</a> <p class="hidden">@GetGlobalValue("Global:Pageview.Url")</p> <p class="hidden">@inscriereLinkCompare</p> </div> } <div id="tab-1014904837" class="tabs clearfix main"> @GetValue("DwNavigation(secmainmenu1)") @*Include("Custom/GlobalFunctions.cshtml")*@ @using System.Web.WebPages <div class="ads below-header hidden-xs hidden-sm"></div> <div id="heading" class="bottom-20"> <div class="container"> <div class="heading-content"> <div class="row"> <!-- <div id="heading-title" class="col-md-4 col-lg-4 col-sm-4"> <h6 class="heading-title large bottom-0">&nbsp;</h6> </div> --> <!--breadcrumbs--> <div id="breadcrumbs" class="col-md-12 col-lg-12 col-sm-12 hidden-xs"> @GetValue("DwNavigation(breadcrumbs)") </div> </div> </div> </div> </div> <div class="ads below-heading hidden-xs hidden-sm"></div> @{ var post = Dynamicweb.Content.Items.Item.GetItemById("Conferinta", GetString("Item.Id")); var postUrl = string.Format("/Default.aspx?ID={0}", Pageview.Page.ID); string shareTitle = post["Title"].ToString().Replace(" ", "+").Replace("++", "+"); //string speakerLink = @BrandFusion.Dw.Functions.Item.GetHomeItemProperty(Convert.ToInt32(GetGlobalValue("Global:Page.ID")),"Eveniment","SpeakerPage_ID").TrimStart('/'); string speakerLink = @GetHomeItemProperty(Convert.ToInt32(GetGlobalValue("Global:Page.ID")),"Eveniment","SpeakerPage_ID").TrimStart('/'); } <section id="content-sidebar" class="container"> <div class="row"> <div id="content" class="col-md-8 col-lg-8 clearfix"> <h1 class="entry-title bottom-10"> <a rel="bookmark" href="@postUrl" title="@post[" title"]"="">@post["Title"]</a> </h1> <div class="entry-info clearfix bottom-10 top-0 timestamp-dark"> @if (@post["Numar_Locuri"].ToString() != ""){ int numarLocuri = post["Numar_Locuri"].ToString().AsInt(); if (post["NumarLocuriRezervate"] != null && post["NumarLocuriRezervate"].ToString().AsInt() != 0){ numarLocuri = numarLocuri - post["NumarLocuriRezervate"].ToString().AsInt(); } <span class="author vcard"> <i class="fa fa-user"></i> @Translate("numberOfSeats", "Numar de locuri"): @numarLocuri </span> } <span class="time"> <time class="published updated"> <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"]) </time> </span> @if (@post["Sala"].ToString() != ""){ <span class=""> <i class="fa fa-clock-o"></i>@Translate("Sala", "Sala"): @post["Sala"] </span> } </div> <div class="entry-content bottom-20"> @post["Descriere"] </div> <div id="main">@GetValue("DwContent(main)")</div> <div class="addthis_native_toolbox"> <fb:like layout="button_count" show_faces="false" width="450" style="float:right;margin-top:-3px;"></fb:like> </div> <!-- <div class="entry-meta bottom-20"> <div class="post-social-share clearfix"> <span><i class="fa fa-share"></i>Share</span> <a href="http://www.facebook.com/sharer.php?u=@postUrl&amp;t=@shareTitle"><i class="fa fa-facebook"></i></a> <a href="http://twitter.com/share?text=@post["Title"]&url=@postUrl&hashtags=businessdays"><i class="fa fa-twitter"></i></a> <a href="http://linkedin.com/shareArticle?mini=true&amp;url=@postUrl&amp;title=@shareTitle"><i class="fa fa-linkedin"></i></a> <a href="http://google.com/bookmarks/mark?op=edit&amp;bkmk=@postUrl&amp;title=@shareTitle"><i class="fa fa-google-plus"></i></a> </div> </div> --> <div class="prenebox bottom-30"> <div class="row"> @GetValue("DwNavigation(agendaeveniment1)") </div> </div> <section id="content-list"> @{ string speakeri = GetValue("Item.Lista_Speakeri").ToString(); if (!string.IsNullOrEmpty(speakeri)){ <div class="newsbox clearfix"> <div class="boxheading clearfix bottom-20"> <h5 class="bottom-0 large pull-left">@Translate("listOfSpeakers", "Lista Speakeri")</h5> </div> <div class="speaker-list"> @{ string[] itemIdList2 = speakeri.Split(','); foreach (string itemId in itemIdList2){ var speaker = Dynamicweb.Content.Items.Item.GetItemById("Speaker", itemId); string nume = speaker["Nume_Speaker"].ToString(); var functie = speaker["Functie"]; var companie = speaker["Companie"]; var descriere = speaker["Descriere_Scurta"]; var imagine = speaker["Imagine_Speaker"].ToString().TrimStart('/'); <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 speaker-item speaker-item-eveniment"> <div class="row"> <div class="col-md-2 col-sm-2 col-xs-6"> <div class="speaker-image"> <a href="@speakerLink&itemId=Speaker:@itemId"> <img class="img-responsive" src="/@imagine"> </a> </div> </div> <div class="col-md-10 speaker-mobile-fix"> <div class="speaker-name speaker-name-special"> <a href="@speakerLink&itemId=Speaker:@itemId">@nume</a> </div> <div class="speaker-position"><p>@functie, @companie</p></div> <div class="speaker-shortdescription"><p>@descriere</p></div> <a href="@speakerLink&itemId=Speaker:@itemId" class="btn-special-rho btn-speaker-absolute">@Translate("readMore", "Citeste mai mult")</a> </div> </div> </div> } } </div> </div> } } @{ string moderatori = GetValue("Item.Moderatori").ToString(); if (!string.IsNullOrEmpty(moderatori)){ <div class="newsbox clearfix"> <div class="boxheading clearfix bottom-20"> <h5 class="bottom-0 large pull-left">@Translate("Moderators", "Moderatori")</h5> </div> <div class="speaker-list"> @{ string[] itemIdList2 = moderatori.Split(','); foreach (string itemId in itemIdList2){ var speaker = Dynamicweb.Content.Items.Item.GetItemById("Speaker", itemId); string nume = speaker["Nume_Speaker"].ToString(); var functie = speaker["Functie"]; var companie = speaker["Companie"]; var descriere = speaker["Descriere_Scurta"]; var imagine = speaker["Imagine_Speaker"].ToString().TrimStart('/'); <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 speaker-item speaker-item-eveniment"> <div class="row"> <div class="col-md-2 col-sm-2 col-xs-6"> <div class="speaker-image"> <a href="@speakerLink&itemId=Speaker:@itemId"> <img class="img-responsive" src="/@imagine"> </a> </div> </div> <div class="col-md-10 speaker-mobile-fix"> <div class="speaker-name"> <a href="@speakerLink&itemId=Speaker:@itemId">@nume</a> </div> <div class="speaker-position"><p>@functie, @companie</p></div> <div class="speaker-shortdescription"><p>@descriere</p></div> <a href="@speakerLink&itemId=Speaker:@itemId" class="btn-special-rho btn-speaker-absolute">@Translate("readMore", "Citeste mai mult")</a> </div> </div> </div> } } </div> </div> } } </section> </div> <div id="sidebar" class="col-lg-4 col-md-4 top-30-sm top-30-xs"> <aside id="ereven_popular_posts_widget-2" class="widget popupar post-list"> <h5 class="large widgettile">@Translate("otherEventsInTheSameDay", "Alte evenimente in aceeasi zi")</h5> @GetValue("DwNavigation(alteevenimente)") </aside> <!--@Global:Paragraph.Content(267)--> </div> </div> </section> <!-- Go to www.addthis.com/dashboard to customize your tools --> <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-544f9ac03e8634bc" async="async"></script> <script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script> <script type="text/javascript"> var addthis_share = { url: document.URL } </script> </div> <!-- <div class=" divider clearfix striptags"></div> --> </div> </div> </div> </div> <footer id="footer"> <div id="widgetarea" class="light"> <div class="container"> <div class="widgetcontent"> <div class="row"> <div id="footer-widget-1" class="bottom-30-sm bottom-30-xs col-lg-4 col-md-4"> @if (GetString("LongLang").Equals("ro-RO")) { @RenderParagraphContent(326); } else if (GetString("LongLang").Equals("en-US")) { @RenderParagraphContent(4502); } </div> <div id="footer-widget-2" class="bottom-30-sm bottom-30-xs col-lg-4 col-md-4"> <div id="recent-comments-3" class="widget widget_recent_comments bottom-xs-30 bottom-sm-30"> <div class="widget-title"> <h5 class="widgettile">@Translate("lastArticles", "Ultimele Articole")</h5> </div> @GetValue("DwNavigation(agendaeveniment)") </div> </div> <div id="footer-widget-4" class="bottom-30-sm bottom-30-xs col-lg-4 col-md-4"> <div id="ereven_twitter-2" class="widget last-tweet bottom-xs-30 bottom-sm-30"> <div class="widget-title"> <h5 class="widgettile">@Translate("socialMedia", "Social Media")</h5> </div> <div> <ul id="social" class="social clearfix"> <!-- <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> --> <li><a rel="nofollow" href="http://feeds.feedburner.com/businessday" target="_blank"><i class="fa fa-rss fa-3x"></i></a></li> <li><a rel="nofollow" href="http://twitter.com/#!/businessdaysro" target="_blank"><i class="fa fa-twitter fa-3x"></i></a></li> <li><a rel="nofollow" href="http://www.facebook.com/#!/BusinessDays" target="_blank"><i class="fa fa-facebook fa-3x"></i></a></li> <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> <li><a rel="nofollow" href="https://picasaweb.google.com/businessdaysro" target="_blank"><span class="picasa-icon"></span></a></li> <li><a rel="nofollow" href="http://www.youtube.com/businessdaysro" target="_blank"><i class="fa fa-youtube fa-3x"></i></a></li> <li><a rel="nofollow" href="http://www.slideshare.net/businessdays" target="_blank"><span class="slideshare-icon"></span></a></li> <li><a rel="nofollow" href="https://plus.google.com/113464854804572684798/" target="_blank"><i class="fa fa-google-plus fa-3x"></i></a></li> </ul> </div> </div> </div> </div> </div> </div> </div> <div id="credit" class="light"> <div class="container"> <div class="row"> <div class="col-lg-3 col-md-3"> <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> </div> <div class="col-lg-9 col-md-9 text-right"> <nav class="footer-menu"> @GetValue("DwNavigation(footermenu)") </nav> </div> </div> </div> </div> </footer> </div> </div> </div> <!-- <script type='text/javascript' src='/Files/Templates/Designs/BusinessDays/includes/js/mediaelement/wp-mediaelement.js'></script> --> <script type='text/javascript' src='/Files/Templates/Designs/BusinessDays/assets/js/bootstrap.js'></script> <script type='text/javascript' src='/Files/Templates/Designs/BusinessDays/assets/js/superfish.js'></script> <script type='text/javascript' src='/Files/Templates/Designs/BusinessDays/assets/js/easing.js'></script> <script type='text/javascript' src='/Files/Templates/Designs/BusinessDays/assets/js/caroufredsel.js'></script> <script type='text/javascript' src='/Files/Templates/Designs/BusinessDays/assets/js/fitvids.js'></script> <script type='text/javascript' src='/Files/Templates/Designs/BusinessDays/assets/js/ticker.js'></script> <script type='text/javascript' src='/Files/Templates/Designs/BusinessDays/assets/js/flexslider.js'></script> <!-- <script type='text/javascript' src='/Files/Templates/Designs/BusinessDays/assets/js/jpanelmenu.js'></script> --> <script type='text/javascript' src='/Files/Templates/Designs/BusinessDays/assets/js/magnificpopup.js'></script> <!-- <script type='text/javascript' src='/Files/Templates/Designs/BusinessDays/assets/js/twitter/tweet.js'></script> --> <script type='text/javascript' src='/Files/Templates/Designs/BusinessDays/assets/js/masonry.js'></script> <script type='text/javascript' src='/Files/Templates/Designs/BusinessDays/assets/js/affix.js'></script> <script type='text/javascript' src='/Files/Templates/Designs/BusinessDays/assets/js/functions.js'></script> <script type='text/javascript' src='/Files/Templates/Designs/BusinessDays/assets/js/custom.js'></script> <script type='text/javascript' src='/Files/Templates/Designs/BusinessDays/assets/js/jquery.countdown.js'></script> <script type='text/javascript' src='/Files/Templates/Designs/BusinessDays/assets/js/main.js'></script> <script type='text/javascript' src='/Files/Templates/Designs/BusinessDays/assets/js/mobile-menu.js'></script> <!--@Snippet(footerJS)--> @GetString("Item.Area.Cod_Body.Value") <script type="text/javascript"> var _mfq = _mfq || []; (function() { var mf = document.createElement("script"); mf.type = "text/javascript"; mf.async = true; mf.src = "//cdn.mouseflow.com/projects/70c59ee0-2c20-40a4-af33-50f75d54cdbc.js"; document.getElementsByTagName("head")[0].appendChild(mf); })(); </script> </body>