Exception in template (Designs/TTonline/_parsed/ContentTaguri.parsed.cshtml): System.NullReferenceException: Object reference not set to an instance of an object.
   at CompiledRazorTemplates.Dynamic.feeffbdebb.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()
@inherits RazorTemplateBase<RazorTemplateModel<Template>> @using Dynamicweb.Rendering @using Dynamicweb.Content @using System.Text.RegularExpressions @using System.Web.UI.HtmlControls @{ string areaLayoutPath = "/Files/Templates/Designs/TTonline/"; areaLayoutPath = areaLayoutPath.Substring(0, areaLayoutPath.LastIndexOf("/")); string Layout_Style = GetString("Item.Area.Layout_Style.Value"), Template_Style = GetString("Item.Area.Template_Style.Value"), Sticky_Header = GetString("Item.Area.Sticky_Header.Value"), Template_Color = GetString("Item.Area.Template_Color.Value"), bodyStyle = Layout_Style + " " + Template_Style + " " + Sticky_Header + " " + Template_Color; } @inherits RazorTemplateBase<RazorTemplateModel<Template>> @using Dynamicweb.Rendering; @using System.Text.RegularExpressions @helper OgMeta(string designName) { if (string.IsNullOrEmpty(System.Web.HttpContext.Current.Request.Params["ProductID"])) { @SnippetStart("OGMeta")<meta property="og:title" content='@GetString("Title")'> <meta property="og:image" content='@Pageview.GlobalTags.GetTagByName("Global:Request.Scheme").Value.ToString()://@Pageview.GlobalTags.GetTagByName("Global:Request.Host").Value.ToString()/Files/Templates/Designs/@designName/images/logo.png'> <meta property="og:site_name" content='@GetString("Item.Area.CompanyName")'> <meta property="og:url" content='@Pageview.GlobalTags.GetTagByName("Global:Request.Scheme").Value.ToString()://@Pageview.GlobalTags.GetTagByName("Global:Request.Host").Value.ToString()@Pageview.GlobalTags.GetTagByName("Global:Pageview.Url").Value.ToString()'> <meta property="og:description" content='@StripHtml(GetString("Meta.Description"))'> <meta property="og:type" content="article"> <meta property="og:locale" content='@Pageview.GlobalTags.GetTagByName("Global:Area.LongLang").Value.ToString().Replace("-", "_")'> @SnippetEnd("OGMeta") } } @helper HtmlHead(string designName) { string designFolder = GetString("Template:DesignBaseUrl"); string robots = ""; string ipCountry = "RO";//Dna.IP.Frontend.GetCountryCode(); string countryCodeModule = !string.IsNullOrEmpty(ipCountry) ? ipCountry : "RO"; string userCountryCode = (Pageview.User != null && !string.IsNullOrEmpty(Pageview.User.Country)) ? Pageview.User.Country : ipCountry; string userState = Pageview.User != null ? Pageview.User.State : string.Empty; string userAccountsNumber = (System.Web.HttpContext.Current.Session["AccountsNumber"] ?? "").ToString(); robots = (GetBoolean("Item.Area.DemoBanner") || GetBoolean("Item.Area.NoIndex")) ? CommaSplittedString(robots, "noindex") : ""; robots = (GetBoolean("Item.Area.DemoBanner") || GetBoolean("Item.Area.NoFollow")) ? CommaSplittedString(robots, "nofollow") : ""; <head> <title>@GetValue("Title")</title> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <meta name="viewport" content="initial-scale=1.0, width=device-width, user-scalable=no"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="SKYPE_TOOLBAR" content="SKYPE_TOOLBAR_PARSER_COMPATIBLE"> @if (!string.IsNullOrEmpty(robots)) { <meta name="robots" content="@robots"> } @OgMeta(designName) @RenderSnippet("OGMeta") @GetString("MetaTags") @GetString("CopyRightNotice") @GetString("Stylesheets") <link rel="shortcut icon" href="@(designFolder)images/favicon.ico" type="image/x-icon"> @{ var minify = GetBoolean("Item.Area.Minify_CSS_And_JavaScript"); var styleBundle = Dna.Optimizer.Renderer.RenderStyles(string.Format("{0}css", designFolder), minify, true, "-main-styles", new[] { "exceptions" }); var scriptBundleHeader = Dna.Optimizer.Renderer.RenderScripts(string.Format("{0}js/header", designFolder), minify, true, "-main-scripts-header", new[] { "exceptions" }); var scriptBundleFooter = Dna.Optimizer.Renderer.RenderScripts(string.Format("{0}js/footer", designFolder), minify, true, "-main-scripts-footer", new[] { "exceptions" }); } <link rel="stylesheet" href="@styleBundle"> <script src="@scriptBundleHeader"></script> @GetString("Javascripts") @RenderSnippet("externalScripts") @SnippetStart("externalScripts") @SnippetEnd("externalScripts") <!--[if lte IE 9]> <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/respond.js/1.1.0/respond.min.js"></script> <![endif]--> <script> @RenderSnippet("jsVariables") @SnippetStart("jsVariables") @SnippetEnd("jsVariables") var obj_pages = { str_miniCart: '@Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(GetString("Item.Area.MiniCart"))', str_login: '@Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(GetString("Item.Area.Login"))', str_globalTranslates: '@Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(GetString("Item.Area.GlobalTranslates"))', str_contactPopup : '@Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(GetString("Item.Area.ContactUs_Popup"))', str_cartInformation: '@Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(GetString("Item.Area.Cart_Information"))', str_typeAhead : '@Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(GetString("Item.Area.TypeAhead"))' }, obj_user = { str_country: '@userCountryCode', str_state: '@userState', str_accountsNumber:'@userAccountsNumber' }, obj_settings = { str_contactTimeout: '@GetString("Item.Area.Time")', str_cartQty: '@GetString("Ecom:Order.OrderLines.TotalProductQuantity")' }, obj_translates = { str_seeAll: '@Translate("seeAllThe", "See all the")', str_results: '@Translate("results", "results")' }; $(function () { @UserDoesNotExist() @RenderSnippet("jsOnLoadVariables") @SnippetStart("jsOnLoadVariables") @SnippetEnd("jsOnLoadVariables") @RenderSnippet("jsOnLoad") @SnippetStart("jsOnLoad") @SnippetEnd("jsOnLoad") }); @if(!string.IsNullOrWhiteSpace(GetString("Item.Area.GoogleAnalytics"))) { <text> (function (i, s, o, g, r, a, m) { i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () { (i[r].q = i[r].q || []).push(arguments) }, i[r].l = 1 * new Date(); a = s.createElement(o), m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m) })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga'); ga('create', '@GetString("Item.Area.GoogleAnalytics")', 'auto'); ga('send', 'pageview'); </text> } @SnippetStart("eCommerceTracking")@SnippetEnd("eCommerceTracking") @RenderSnippet("eCommerceTracking") </script> </head> } @helper UserDoesNotExist() { if (Dynamicweb.Environment.ExecutingContext.IsFrontEnd() && !Dynamicweb.Security.UserManagement.User.IsExtranetUserLoggedIn()) { if (!string.IsNullOrEmpty(System.Web.HttpContext.Current.Request.Params["Password"]) && !string.IsNullOrEmpty(System.Web.HttpContext.Current.Request.Params["Username"])) { @SnippetStart("jsOnLoad") @:var showLogin = true; @:alert("@Translate("yourUserNameOrPasswordDidntMatch", "Your user name or password didn't match. Please try again.")"); @SnippetEnd("jsOnLoad") } } } @helper Logo(string cssclass, string companyName, string fileName) { if (!string.IsNullOrEmpty(System.Web.HttpContext.Current.Request.Params["print"])) { <div class="@cssclass"> <a href="/"> <img class="img-responsive hidden-print" src="/Files/Templates/Designs/TTonline/images/@(fileName)" alt="@companyName" title="@companyName"> <img class="img-responsive visible-print" src="/Files/Templates/Designs/Martec/images/logo.png" alt="@companyName" title="@companyName"> </a> </div> } else { <div class="@cssclass"> <a href="/"> <img class="img-responsive" src="/Files/Templates/Designs/TTonline/images/@(fileName)" alt="@companyName" title="@companyName"> </a> </div> } } @helper Copyright() { <div class="copyright">&copy; @DateTime.Now.Year @GetString("Item.Area.CompanyName") - @GetString("Item.Area.Copyright")</div> } @functions { private string CommaSplittedString(string CommaSplittedString, string NewString) { if (!string.IsNullOrEmpty(CommaSplittedString)) { CommaSplittedString += ", "; } CommaSplittedString += NewString; return CommaSplittedString; } public static string StripHtml(string source) { return Regex.Replace(source, "<.*?>", string.Empty); } } @{ string designName1 = "TTonline"; string device = Pageview.Device.ToString(); string homeOrSubpage = GetString("DwAreaFirstPageID") == GetString("Global:Page.ID") ? "home" : "subpage"; string print = !string.IsNullOrEmpty(System.Web.HttpContext.Current.Request.Params["print"]) ? "printOrPdf" : ""; //string resultsPage = GetString("Item.Area.SearchResults"); //string contactPage = GetString("Item.Area.ContactUs"); string countryCode = "RO";//Dna.IP.Frontend.GetCountryCode(); string longLang = Pageview.GlobalTags.GetTagByName("Global:Area.LongLang").Value.ToString(); //string email = GetString("Item.Area.Email"); //string phone = GetString("Item.Area.Phone"); //bool userIsLoggedIn = Dynamicweb.Security.UserManagement.User.IsExtranetUserLoggedIn(); bool isPrint = !string.IsNullOrEmpty(System.Web.HttpContext.Current.Request.Params["print"]); bool bol_backofficeLogged = Dynamicweb.Security.UserManagement.User.GetCurrentBackendUser() != null ? true : false; List<LoopItem> socialMedia = GetLoop("Item.Area.SocialNetworks"); List<LoopItem> websiteLanguages = GetLoop("WebsiteLanguages"); string designFolder = GetString("Template:DesignBaseUrl"); var minify = GetBoolean("Item.Area.Minify_CSS_And_JavaScript"); var scriptBundleFooter = Dna.Optimizer.Renderer.RenderScripts(string.Format("{0}js/footer", designFolder), minify, true, "-main-scripts-footer", new[] { "exceptions" }); } <!DOCTYPE HTML> <!--[if lt IE 8 ]><html class="ie7" lang="@(longLang)"><![endif]--><!--[if IE 8 ]><html class="ie8" lang="@(longLang)"><![endif]--><!--[if IE 9 ]><html class="ie9" lang="@(longLang)"><![endif]--><!--[if (gt IE 9)|!(IE)]><!--> <html lang="@(longLang)"><!--<![endif]--> @HtmlHead(designName1) <body class="@bodyStyle tileStyle"> <div id="main" class="header-style1"> @{ bool userIsLoggedIn = Dynamicweb.Security.UserManagement.User.IsExtranetUserLoggedIn(); } <header class="header-wrapper clearfix"> <div class="header" id="header"> <div class="container-fluid header-first-container"> <div class="mag-content"> <div class="container"> <div class="row header-first-row"> <div class="col-md-9 visible-lg visible-md" id="motto"> <a class="logo" href="/" title="" rel="home"> <img src="/Files/Images/logo_TT.png"> </a><!-- .logo --> <h4>Industry – Business Opportunities</h4> </div><!--End of col-md-9 visible-lg visible-md--> <div class="col-md-2 visible-lg visible-md text-right username"> @if (userIsLoggedIn) { string userName = !string.IsNullOrWhiteSpace(Pageview.User.Name) ? Pageview.User.Name : string.Format("{0}{1}", Pageview.User.FirstName, Pageview.User.LastName); <div class="welcomeBack hidden-print text-left"> @Translate("welcome", "Welcome"), <span> @(!string.IsNullOrWhiteSpace(userName) ? userName : Pageview.User.UserName)</span> </div> } </div> <div id="social-icon" class="social-icon"> <a class="facebook" href='@Pageview.Area.Item["FacebookLink"]' target="_blank"> <i class="fa fa-facebook fa-2x padding" aria-hidden="true"></i> </a> <a class="twitter" href='@Pageview.Area.Item["TwitterLink"]' target="_blank"> <i class="fa fa-twitter fa-2x padding" aria-hidden="true"></i> </a> </div> </div> </div> </div> </div> <div class="container-fluid header-second-container"> <div class="mag-content"> <div class="container"> <div class="row header-second-row"> <div class="col-md-12"> <!-- Mobile Menu Button --> <a class="navbar-toggle collapsed" id="nav-button" href="#mobile-nav"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </a><!-- .navbar-toggle --> <!-- Main Nav Wrapper --> <nav class="navbar mega-menu"> <a class="logo hidden-lg hidden-md" href="/" title="" rel="home"> <img src="/Files/Images/logo_TT.png"> </a><!-- .logo --> <!-- Navigation Menu --> <div class="navbar-collapse collapse"> @RenderNavigation(new { template = "MainNavigation.xslt", expandmode = "all", id = "header-nav", startlevel = 1, listStyle = "top-navigation", endlevel = 3 }) </div><!-- .navbar-collapse --> <!-- End Navigation Menu --> <div class="btn-group dropdown-login"> <button class="btn btn-default btn-sm dropdown-toggle dropdown-login" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <i class="fa fa-user fa-1x" aria-hidden="true">&nbsp; &nbsp;</i><span class=""></span> </button> <ul class="dropdown-menu"> <!-- Button trigger modal --> @if (userIsLoggedIn) { <li><a href="/Admin/Public/ExtranetLogoff.aspx?ID=1">Logout</a></li> } else { <li><a href="/login">Log in</a></li> <li><a href="/inregistrare">@Translate("Inregistrare","Inregistrare")</a></li> } </ul> </div> <!-- Single button --> <div class="header-right galaxy-s5 nexus-5x iphone-6"> <div class="social-icons"> @{ var languageSwitcherValue = ""; foreach (var language in GetLoop("Languages")) { if (language.GetBoolean("IsCurrent")) { languageSwitcherValue = language.GetString("Culture"); } } } @if (languageSwitcherValue == "ro-RO") { <a href="/" class="selected">RO</a> <span>|</span> <a href="/en/homepage-en">EN</a> } @if (languageSwitcherValue == "en-US") { <a href="/">RO</a> <span>|</span> <a href="/en/homepage-en" class="selected">EN</a> } @* <a href="#" data-toggle="tooltip" data-placement="bottom" title="Facebook"><i class="fa fa-facebook fa-lg"></i></a> <a href="#" data-toggle="tooltip" data-placement="bottom" title="Twitter"><i class="fa fa-twitter fa-lg"></i></a> <a href="#" data-toggle="tooltip" data-placement="bottom" title="Google+"><i class="fa fa-google-plus fa-lg"></i></a> <!-- Only for Fixed Sidebar Layout --> <a href="#" class="fixed-button navbar-toggle" id="fixed-button"> <i></i> <i></i> <i></i> <i></i> </a><!-- .fixed-button -->*@ </div><!-- .social-icons --> </div><!-- .header-right --> @if(GetString("DwAreaID") == "1"){ <div id="sb-search" class="sb-search"> <div class="form-group" style="position: relative;"> <form action="/cautare.aspx" method="GET"> <input class="sb-search-input" placeholder="Termen de cautare..." type="text" value="" name="q" id="q"> <input class="sb-search-submit" type="submit" value=""> <span class="sb-icon-search fa fa-search" data-toggle="tooltip" data-placement="bottom" title="Search"></span> </form> </div> </div> }else { <div id="sb-search" class="sb-search"> <div class="form-group" style="position: relative;"> <form action="/en/search.aspx" method="GET"> <input class="sb-search-input" placeholder="Input keyword ...." type="text" value="" name="q" id="q"> <input class="sb-search-submit" type="submit" value=""> <span class="sb-icon-search fa fa-search" data-toggle="tooltip" data-placement="bottom" title="Search"></span> </form> </div> </div> } </nav><!-- .navbar --> </div> </div> </div> </div> </div><!--.container --> </div><!-- .mag-content --> </header></div><!-- .container --> <!-- .header --> <!-- .header-wrapper --> <!-- Begin Main Wrapper --> <div class="container main-wrapper"> @if (string.IsNullOrEmpty(System.Web.HttpContext.Current.Request.Params["productid"])) { <div class="sticky top"> <span class="hidden-xs hidden-sm hidden-md skyscraper-left"> <ins data-revive-zoneid="2" data-revive-id="30be11c85ce356e14970630466da228f"></ins> <script async="" src="//adserver.dotfusion.ro/revive/www/delivery/asyncjs.php"></script> </span> </div> <div class="sticky top"> <span class="hidden-xs hidden-sm hidden-md skyscraper-right"> <ins data-revive-zoneid="3" data-revive-id="30be11c85ce356e14970630466da228f"></ins> </span> </div> } @if(@GetInteger("DwPageID") == 4228) { <style> .ad728-wrapper { margin: 40px auto 0px; } </style> string logoSubheader = @GetString("Item.Area.Logo_IBuySmart"); string culoareFundal = @GetString("Item.Area.CuloareFundal"); string culoareFont = @GetString("Item.Area.CuloareFont"); string textSubheader = @GetString("Item.Area.Text"); string dimensiuneFont = @GetString("Item.Area.DimensiuneFont"); <div class="subheader row" style="background: @culoareFundal"> <div class="col-xs-4"> <img src="@logoSubheader"> </div> <div class="col-xs-5"> <h4 style="color: @culoareFont; font-size: @dimensiuneFont">@textSubheader</h4> </div> <div class="col-xs-12 col-md-3">@RenderSnippet("SearchProduse")</div> </div> } @if(@GetInteger("DwAreaID") == 3){ <style> .ad728-wrapper { margin: 40px auto 0px; } </style> string logoSubheader = @GetString("Item.Area.LogoIndustryZoom"); string culoareFundal = @GetString("Item.Area.CuloareFundal_Industryzoom"); string culoareFont = @GetString("Item.Area.Culoare_Font_IndustryZoom"); string textSubheader = @GetString("Item.Area.Text_Subheader_Industry_Zoom"); string dimensiuneFont = @GetString("Item.Area.Dimensiune_Font_IndustryZoom"); <div class="subheader row" style="background: @culoareFundal"> <div class="col-xs-4"> <img src="@logoSubheader"> </div> <div class="col-xs-5"> <h4 style="color: @culoareFont; font-size: @dimensiuneFont">@textSubheader</h4> </div> <div class="col-xs-12 col-md-3">@RenderSnippet("SearchProduse")</div> </div> } @if(@GetInteger("DwPageID") == 4218 || @GetInteger("DwPageID") == 4271 || @GetInteger("DwPageID") == 8376 ){ <style> .ad728-wrapper { margin: 40px auto 0px; } </style> string logoSubheader = @GetString("Item.Area.Logo_Companii"); string culoareFundal = @GetString("Item.Area.CuloareFundalCompanii"); string culoareFont = @GetString("Item.Area.CuloareFontCompanii"); string textSubheader = @GetString("Item.Area.TextSubheaderCompanii"); string dimensiuneFont = @GetString("Item.Area.DimensiuneFontCompanii"); <div class="subheader row" style="background: @culoareFundal"> <div class="col-xs-4"> <img src="@logoSubheader"> </div> <div class="col-xs-8"> <h4 style="color: @culoareFont; font-size: @dimensiuneFont">@textSubheader</h4> </div> </div> } @if(GetString("DwPageID") == "4228" || GetString("DwPageID") == "4218" || GetString("DwPageID") == "8376"){ }else{ <!-- Begin Main Banner --> <div class="mag-content clearfix " style="margin-bottom: 30px; padding-left: 0px; padding-right: 0px;"> <div class="row"> <div class="col-md-12"> <div class="ad728-wrapper"> <ins data-revive-zoneid="1" data-revive-id="30be11c85ce356e14970630466da228f"></ins> <script async="" src="//adserver.dotfusion.ro/revive/www/delivery/asyncjs.php"></script> </div> </div> </div> </div> <!-- End Main Banner --> } @{ string backgroundClassShop = (GetString("DwPageID") == "4228") ? "shop-background" : " "; string backgroundClassCompanii = (GetString("DwPageID") == "4218" || GetString("DwPageID") == "8376" ) ? "companii-background" : " "; string backgroundClassIndustry = (GetString("DwPageID") == "4271") ? "industry-background" : " "; } <div class="main-content mag-content clearfix @backgroundClassShop @backgroundClassCompanii @backgroundClassIndustry"> @inherits RazorTemplateBase<RazorTemplateModel<Template>> @using Dynamicweb.Rendering @using Dynamicweb.Content @using System.Linq; @using System.Web; @GetValue("Title(Article page)") @GetValue("Description(Pagina de articol)") @functions { //public class Session //{ //public string Id; //public string Title; //public DateTime StartTime; //public DateTime EndTime; //public bool IsBreak; //public string Description; //public string Type; //public string Url; //public string AllowedGroups; //public string Location; //public string Level; //public int NumberOfSeats; //public int NumberOfReservedSeats; //public List<Speaker> //Speakers; //public List<Speaker> //Moderatori; //public LoopItem Item; //} public class Autor { public string Id; public string Name; public string Link; public string Description; public string Image; public string Persoana; } public class Companie { public string Id; public string Name; public string Link; public string Logo; } public class RelevantaGeografica { public string Id; public string Name; public string Link; } public class Tag { public string Id; public string Name; public string Link; } public class Sectiune { public string Id; public string Name; public string Link; } public class Editie { public string Id; public string Name; public string Link; } public static string StripHtmlTagByCharArray(string htmlString) { char[] array = new char[htmlString.Length]; int arrayIndex = 0; bool inside = false; for (int i = 0; i < htmlString.Length; i++) { char let = htmlString[i]; if (let == '<') { inside = true; continue; } if (let == '>') { inside = false; continue; } if (!inside) { array[arrayIndex] = let; arrayIndex++; } } return new string(array, 0, arrayIndex); } private List<Autor> GetAutori(string autoriList) { var autori = new List<Autor> (); if(!string.IsNullOrEmpty(autoriList)){ string[] itemIdList = autoriList.Split(','); foreach (string itemId in itemIdList) { var autor = Dynamicweb.Content.Items.Item.GetItemById("Taxonomie_Autori", itemId); if (autor != null) { autori.Add(new Autor { Id = itemId, Name = autor["Name"] != null ? autor["Name"].ToString() : "", Image = autor["Image"] != null ? autor["Image"].ToString() : "", Description = autor["Description"] != null ? autor["Description"].ToString() : "", Link = "/Default.aspx?ID=4250&autor="+itemId, Persoana = autor["Persoana_Companie"] != null ? autor["Persoana_Companie"].ToString() : "" }); } } } return autori; } private List<RelevantaGeografica> GetRelevanta(string relevantaList) { var relevante = new List<RelevantaGeografica> (); if(!string.IsNullOrEmpty(relevantaList)){ string[] itemIdList = relevantaList.Split(','); foreach (string itemId in itemIdList) { var relevanta = Dynamicweb.Content.Items.Item.GetItemById("RelevantaGeografica", itemId); if (relevanta != null) { relevante.Add(new RelevantaGeografica { Id = itemId, Name = relevanta["Name"] != null ? relevanta["Name"].ToString() : "", Link = "" }); } } } return relevante; } private List<Sectiune> GetSectiuni(string sectiuniList) { var sectiuni = new List<Sectiune> (); return sectiuni; } private List<Tag> GetTaguri(string taguriList) { var taguri = new List<Tag>(); if(!string.IsNullOrEmpty(taguriList)){ string[] itemIdList = taguriList.Split(','); foreach (string itemId in itemIdList) { var tag = Dynamicweb.Content.Items.Item.GetItemById("Taxonomie_Taguri", itemId); if (tag != null) { taguri.Add(new Tag { Id = itemId, Name = tag["Name"] != null ? tag["Name"].ToString() : "", Link = "Default.aspx?ID=4252&tag="+itemId }); } } } return taguri; } private List<Companie> GetCompany(string companyList) { var companies = new List<Companie> (); if(!string.IsNullOrEmpty(companyList)){ string[] itemIdList = companyList.Split(','); foreach (string itemId in itemIdList) { var companie = Dynamicweb.Content.Items.Item.GetItemById("Taxonomie_Companii", itemId); if (companie != null) { companies.Add(new Companie { Id = itemId, Name = companie["Name"] != null ? companie["Name"].ToString() : "", Logo = companie["Logo"] != null ? companie["Logo"].ToString() : "", Link = "/Default.aspx?ID=4271&companie="+itemId }); } } } return companies; } } @{ string queryAutor = HttpContext.Current.Request.QueryString["tag"]; var autori = GetTaguri(queryAutor); var numeAutor = autori.FirstOrDefault().Name; } <div class="row blog-content" data-stickyparent=""> <div class="col-md-8" data-stickycolumn=""> <article class="post-wrapper clearfix"> @* <header class="post-header"> <h1 class="post-title"> @GetString("DwPageName"): @if (numeAutor != null) { @numeAutor } </h1><!-- .post-title --> </header><!-- .post-header --> *@ <h3 class="block-title"> @if (numeAutor != null) { <span>#@numeAutor</span> } </h3> <div class="post-content clearfix"> @GetValue("DwContent(maincontent)") </div><!-- .post-content --> </article><!-- .post-wrapper --> <!-- Mid ad --> @* <div class="row"> <div class="col-md-12"> <div class="ad728-wrapper mid-wrapper"> <a href="#"> <img src="http://placehold.it/728x90" alt=""> </a> </div> </div> </div> *@ <!-- End Mid ad --> </div><!-- End Left big column --> <div class="col-md-4" data-stickycolumn=""> <aside class="sidebar clearfix " style="margin-top: 34px;"> <div class="widget adwidget "> <ins data-revive-zoneid="4" data-revive-id="30be11c85ce356e14970630466da228f"></ins> </div> @if(GetInteger("DwAreaID") == 1){ <div class="widget evenimentewidget" style="margin-bottom:10px;"> @RenderItemList(new { ItemType = "Eveniment", ListSourceType = "SelfArea", ItemFieldsList = "*", ListTemplate = "/ItemPublisher/List/Sidebar-Evenimente.cshtml", ListPageSize = 150, ListOrderBy = "Data_Inceput" }) </div> }else{ <div class="widget evenimentewidget" style="margin-bottom:10px;"> @RenderItemList(new { ItemType = "Eveniment_EN", ListSourceType = "SelfArea", ItemFieldsList = "*", ListTemplate = "/ItemPublisher/List/Sidebar-Evenimente.cshtml", ListPageSize = 150, ListOrderBy = "Data_Inceput" }) </div> } @{ string editorialFilterValue = "\"@\"" + "Item.Tip =='Editorial'"; editorialFilterValue = editorialFilterValue + "\"\""; } @{ int pageID = @GetInteger("DWPageID"); string tip = @GetString("Item.Tip"); } @if( (@pageID != 25) && (@tip != "Editorial")){ <div class="widget editorialwidget" style="margin-bottom:0px;"> <div class="content"> @RenderItemList(new { ItemType = "DW_Page", ListSourceType = "SelfArea", ItemFieldsList = "*", ListTemplate = "ItemPublisher/List/Sidebar-Editorial.cshtml", ListPageSize = 1, ListOrderBy = "Data", ListOrderByDirection = "Descending", Filter = editorialFilterValue }) </div> </div> } <div class="widget adwidget" style=" margin-top: 20px; margin-bottom:25px;"> <ins data-revive-zoneid="5" data-revive-id="30be11c85ce356e14970630466da228f"></ins> </div> @*<div class="widget tagwidget"> <h3 class="block-title"><span>@Translate("Tags","Tags")</span></h3> @RenderItemList(new { ItemType = "Taxonomie_Taguri", ListSourceType = "ItemEntries", ItemFieldsList = "*", ListTemplate = "ItemPublisher/List/Sidebar-Taguri.cshtml", ListPageSize = 10, ListOrderBy = "Usage", ListOrderByDirection = "Descending" }) </div> *@ <div class="widget facebookwidget" style="margin-bottom:20px;"> <h3 class="block-title"><span> T&amp;T @@ Facebook</span></h3> <div class="content"> <div class="fb-page" data-adapt-container-width="true" data-hide-cover="false" data-href="https://www.facebook.com/tehnicasitehnologie/" data-show-facepile="false" data-show-posts="false" data-small-header="true"> <div class="fb-xfbml-parse-ignore"> <blockquote cite="https://www.facebook.com/tehnicasitehnologie/"> <a href="https://www.facebook.com/tehnicasitehnologie/">T&amp;T - Tehnica si Tehnologie</a> </blockquote> </div> </div> </div> <div id="fb-root"></div> <script> (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.async= "async"; js.src = "//connect.facebook.net/ro_RO/sdk.js#xfbml=1&version=v2.5"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk')); </script> </div> <div class="widget twitterwidget" style="margin-bottom:0px;"> <h3 class="block-title"><span> T&amp;T @@ Twitter</span></h3> <div class="content"> <a class="twitter-timeline" data-width="365" data-height="108" data-theme="light" href="https://twitter.com/TTehnologie">Tweets by TTehnologie</a> </div> </div> <div class="widget multimediawidget" style="margin-bottom:20px;"> @RenderItemList(new { ItemType = "Multimedia", ListSourceType = "Area", ListSourceArea = 1, ItemFieldsList = "*", ListTemplate = "/ItemPublisher/List/Sidebar-Multimedia.cshtml", ListPageSize = 10, ListOrderBy = "", ListOrderByDirection = "", Filter = "" }) </div> @RenderSnippet("Tags") <div class="widget adwidget"> <div class="row" style="margin-bottom:50px;"> <div class="col-xs-6"> <ins data-revive-zoneid="13" data-revive-id="30be11c85ce356e14970630466da228f"></ins> <script async="" src="//adserver.dotfusion.ro/revive/www/delivery/asyncjs.php"></script> </div> <div class="col-xs-6"> <ins data-revive-zoneid="17" data-revive-id="30be11c85ce356e14970630466da228f"></ins> <script async="" src="//adserver.dotfusion.ro/revive/www/delivery/asyncjs.php"></script> </div> </div> <div class="row"> <div class="col-xs-6"> <ins data-revive-zoneid="18" data-revive-id="30be11c85ce356e14970630466da228f"></ins> <script async="" src="//adserver.dotfusion.ro/revive/www/delivery/asyncjs.php"></script> </div> <div class="col-xs-6"> <ins data-revive-zoneid="19" data-revive-id="30be11c85ce356e14970630466da228f"></ins> <script async="" src="//adserver.dotfusion.ro/revive/www/delivery/asyncjs.php"></script> </div> </div> </div> @RenderParagraphContent(164) <div class="widget adwidget "> <ins data-revive-zoneid="6" data-revive-id="30be11c85ce356e14970630466da228f"></ins> </div> @{ string filterArticles = "\"@\"" + "Item.Tip='Articole'"+ "\"\"";; } @if(GetInteger("DwAreaID") == 1){ <div class="widget tabwidget"> <ul class="nav nav-tabs" role="tablist" id="widget-tab"> <li role="presentation" class="active"><a href="#tab-popular" aria-controls="tab-popular" role="tab" data-toggle="tab">@Translate("popular","Cele mai citite")</a></li> <li role="presentation"><a href="#tab-recent" aria-controls="tab-recent" role="tab" data-toggle="tab">@Translate("recent","Cele mai noi")</a></li> </ul> <div class="tab-content"> <div role="tabpanel" class="tab-pane active" id="tab-popular"> @RenderItemList(new { ItemType = "DW_Page", ListSourceType = "SelfArea", ItemFieldsList = "*", ListTemplate = "ItemPublisher/List/Sidebar-CeleMaiCitite.cshtml", ListPageSize = 5000, Filter = @filterArticles }) </div><!-- Recent Posts --> <div role="tabpanel" class="tab-pane" id="tab-recent"> @RenderItemList(new { ItemType = "DW_Page", ListSourceType = "SelfArea", ItemFieldsList = "*", ListTemplate = "ItemPublisher/List/Sidebar-CeleMaiNoi.cshtml", ListPageSize = 5, ListOrderBy = "Data", ListOrderByDirection = "Descending", Filter = @filterArticles }) </div><!-- Recent Posts --> </div> </div> }else{ <div class="widget tabwidget"> <ul class="nav nav-tabs" role="tablist" id="widget-tab"> <li role="presentation" class="active"><a href="#tab-popular" aria-controls="tab-popular" role="tab" data-toggle="tab">@Translate("popular","Cele mai citite")</a></li> <li role="presentation"><a href="#tab-recent" aria-controls="tab-recent" role="tab" data-toggle="tab">@Translate("recent","Cele mai noi")</a></li> </ul> <div class="tab-content"> <div role="tabpanel" class="tab-pane active" id="tab-popular"> @RenderItemList(new { ItemType = "DW_Page", ListSourceType = "SelfArea", //ListSourceArea= 3, ItemFieldsList = "*", ListTemplate = "ItemPublisher/List/Sidebar-CeleMaiCitite.cshtml", ListPageSize = 5000, Filter = @filterArticles }) </div><!-- Recent Posts --> <div role="tabpanel" class="tab-pane" id="tab-recent"> @RenderItemList(new { ItemType = "DW_Page", ListSourceType = "Area", ListSourceArea= 3, ItemFieldsList = "*", ListTemplate = "ItemPublisher/List/Sidebar-CeleMaiNoi.cshtml", ListPageSize = 5, ListOrderBy = "Data", ListOrderByDirection = "Descending", Filter = @filterArticles }) </div><!-- Recent Posts --> </div> </div> } <div class="widget adwidget "> <ins data-revive-zoneid="8" data-revive-id="30be11c85ce356e14970630466da228f"></ins> </div> </aside> </div><!-- End last column --> </div><!-- .blog-content --> </div><!-- .main-content --> @if (string.IsNullOrEmpty(System.Web.HttpContext.Current.Request.Params["productid"])) { <!-- End Main Banner --> <div class="mag-content clearfix sidebar-stop" style="max-width:1170px; padding-left: 0px; padding-right: 0px;"> <div class="row"> <div class="col-md-12"> <div class="ad728-wrapper"> <ins data-revive-zoneid="7" data-revive-id="30be11c85ce356e14970630466da228f"></ins> </div> </div> </div> </div> <!-- End Main Banner --> } </div><!-- .main-wrapper --> <!-- Footer --> @{ string AdresaLogoFooter= "https://" + GetGlobalValue("Global:Request.Host")+ "/Files/Images/tehnicmedia-logo.jpg"; } <footer class="footer source-org vcard copyright clearfix" id="footer" role="contentinfo"> <div class="footer-main"> <div class="fixed-main"> <div class="container"> <div class="mag-content"> <div class="row"> <div class="col-md-4"> <div class="footer-block clearfix"> <h3>@Translate("link", "Link-uri utile"):</h3> <ul class="footer-menu"> @foreach(LoopItem footerMenu in GetLoop("Item.Area.FooterMenu")) { string footerLink = footerMenu.GetString("Item.Area.FooterMenu.FooterLinkUrl"), footerLinkText = footerMenu.GetString("Item.Area.FooterMenu.FooterLinkText.Value"), openInNewWindow = footerMenu.GetBoolean("Item.Area.FooterMenu.OpenInNewWindows") ? "_blank" : "_self"; <li><a href="@footerLink" target='@openInNewWindow'>@footerLinkText</a></li> } </ul> </div> </div> <div class="col-md-4"> <div class="footer-block clearfix"> <h3>@Translate("aboutUs", "DESPRE NOI"):</h3> <p>@Pageview.Area.Item["FooterAbout"]</p> </div> </div> <div class="col-md-3 col-md-offset-1"> <div class="footer-block clearfix"> <h3>@Translate("contactUs", "CONTACT"):</h3> <ul> <li><i class="fa fa-phone" aria-hidden="true"></i> &nbsp;@Pageview.Area.Item["Phone"]</li> <li><i class="fa fa-envelope" aria-hidden="true"></i> &nbsp;@Pageview.Area.Item["Email"]</li> <li> <i class="fa fa-map-marker" aria-hidden="true"></i> &nbsp;@Pageview.Area.Item["Address"]</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="footer-bottom clearfix"> <div class="fixed-main"> <div class="container"> <div class="mag-content"> <div class="row"> <div class="col-md-6"> <p>@Translate("copyright", "Copyright"): @Translate("TehnicMedia2017", "Tehnic Media") &copy; @DateTime.Now.Year. <a href="http://www.tehnicmedia.ro"><img src="@AdresaLogoFooter" width="" height=""></a></p> </div> <div class="col-md-6"> <div class="social-icons pull-right"> <a href='@Pageview.Area.Item["FacebookLink"]' target="_blank"><i class="fa fa-facebook" style="padding: 0px 8px;"></i></a> <a href='@Pageview.Area.Item["TwitterLink"]' target="_blank"><i class="fa fa-twitter" style="padding: 0px 8px;"></i></a> </div> </div> </div> </div> </div> </div> </div> </footer> <!-- End Footer --> <!-- Mobile Menu --> <nav id="mobile-nav"> <div> @RenderNavigation(new { template = "MainNavigationMobile.xslt", expandmode = "all", id = "mobile-nav", startlevel = 1, listStyle = "mobile-navigation", endlevel = 2 }) </div> </nav> <!-- / Mobile Menu --> <div id="go-top-button" class="fa fa-angle-up" title="Scroll To Top"></div> <div class="mobile-overlay" id="mobile-overlay"></div> <script type="text/javascript" src="@scriptBundleFooter"></script> @*Include("Custom/MasterFooter.cshtml")*@ @RenderSnippet("Modals") <!--<script type="text/javascript" src="assets/js/footer_scripts.js"></script>--> @Pageview.Area.Item["Analytics_Code"] <!-- Add to Calendar --> <script type="text/javascript">(function () { if (window.addtocalendar)if(typeof window.addtocalendar.start == "function")return; if (window.ifaddtocalendar == undefined) { window.ifaddtocalendar = 1; var d = document, s = d.createElement('script'), g = 'getElementsByTagName'; s.type = 'text/javascript';s.charset = 'UTF-8';s.async = true; s.src = ('https:' == window.location.protocol ? 'https' : 'http')+'://addtocalendar.com/atc/1.5/atc.min.js'; var h = d[g]('body')[0];h.appendChild(s); } })(); </script> <!-- 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-58b014abcccaba2d"></script> <!-- Twitter Widget--> <!--<script type="text/javascript"> window.twttr = (function (d,s,id) { var t, js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js=d.createElement(s); js.id=id; js.src="https://platform.twitter.com/widgets.js"; fjs.parentNode.insertBefore(js, fjs); return window.twttr || (t = { _e: [], ready: function(f){ t._e.push(f) } }); }(document, "script", "twitter-wjs")); </script>--> <!-- Twitter Widget Loader --> @RenderSnippet("bottomJS") <!-- Start Scroll tracking --> <script src="@areaLayoutPath/assets/js/gascrolldepth.min.js"></script> <script> gascrolldepth.init({ elements: ['#mm-0', 'footer'], userTiming: true, gtmOverride: true, eventHandler: function(data) { if (data.event == "ScrollDistance") { ga('send', 'event', data.eventCategory, data.eventAction, data.eventLabel, data.eventValue); } } }); </script> <!-- End Scroll tracking --> <script type="text/javascript"> /* <![CDATA[ */ var google_conversion_id = 1010029401; var google_custom_params = window.google_tag_params; var google_remarketing_only = true; /* ]]> */ </script> <script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js"></script> <noscript> <div style="display:inline;"> <img height="1" width="1" style="border-style:none;" alt="" src="//googleads.g.doubleclick.net/pagead/viewthroughconversion/1010029401/?guid=ON&amp;script=0"> </div> </noscript> </body> </html>