Exception in template (Designs/TTonline/_parsed/Article.parsed.cshtml): System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
   at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Enumerator.MoveNext()
   at Dynamicweb.Modules.Searching.Rules.Parser.UnescapeStrings(String s)
   at Dynamicweb.Modules.Searching.Rules.Parser.GetValue(String value)
   at Dynamicweb.Modules.Searching.Rules.Parser.ParseSimpleExpression(String expression)
   at Dynamicweb.Modules.Searching.Rules.Parser.Parse(String input)
   at Dynamicweb.ItemPublisher.FilterHelper.ToXml(String filter)
   at Dynamicweb.ItemPublisher.Frontend.GetContentBySettings(String settings)
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at Dynamicweb.Extensibility.AddIns.AddInManager.InvokeFunction(Object instance, String functionName, Object[] arguments)
   at Dynamicweb.Rendering.TemplateBase`1.RenderItemList(Object settings)
   at CompiledRazorTemplates.Dynamic.bfccbceccfaca.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 BrandFusion.Dw.eCommerce @using Dynamicweb.Ecommerce.Products @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; } } @using Dna.ImageProcessor; @using Dynamicweb.Frontend.Devices; @{ string designName = GetString("Template:DesignBaseUrl").Replace("/Files/Templates/Designs/", "").Replace("/", ""); } @functions{ /// <summary> /// Returns the URL for the given ImageSettings. /// </summary> /// <param name="settings">The ImageSettings used to generate the URL. private static string GetImage(ImageSettings settings) { return settings.ToUrl(); } /// <summary> /// Returns the URL for the given ImageSettings. /// </summary> /// <param name="url">The URL to the image. /// <param name="settings">The ImageSettings used to generate the URL. public static string GetImage(string url, ImageSettings settings = null) { if (settings == null) { settings = new ImageSettings(); } settings.ImageUrl = url; return GetImage(settings); } /// <summary> /// Returns the URL for the given ImageSettings. /// </summary> /// <param name="url">The URL to the image. /// <param name="width">The requested width of the image. /// <param name="height">The requested height of the image. /// <param name="settings">The ImageSettings used to generate the URL. public static string GetImage(string url, int width, int height, ImageSettings settings = null) { if (settings == null) { settings = new ImageSettings(); } settings.Width = width; settings.Height = height; return GetImage(url, settings); } /// <summary> /// Returns the URL for the given ImageSettings. /// </summary> /// <param name="url">The URL to the image. /// <param name="width">The requested width of the image. /// <param name="height">The requested height of the image. /// <param name="widthTablet">The requested width of the image for a tablet device. /// <param name="heightTablet">The requested height of the image for a tablet device. /// <param name="widthMobile">The requested width of the image for a mobile device. /// <param name="heightMobile">The requested height of the image for a mobile device. /// <param name="settings">The ImageSettings used to generate the URL. public static string GetImage(string url, int width, int height, int widthTablet, int heightTablet, int widthMobile, int heightMobile, ImageSettings settings = null) { var currentDevice = Dynamicweb.Frontend.PageView.Current().Device; switch (currentDevice) { case DeviceType.Tablet: width = widthTablet != 0 ? widthTablet : width; height = heightTablet != 0 ? heightTablet : height; break; case DeviceType.Mobile: width = widthMobile != 0 ? widthMobile : width; height = heightMobile != 0 ? heightMobile : height; break; // default: Skip; just use existing width and height } if (settings == null) { settings = new ImageSettings(); } settings.ImageUrl = url; settings.Width = width; settings.Height = height; return GetImage(settings); } } @using System.Web @{ string articleImage = GetString("Item.ImaginePrincipala.Value"), articleTitle = GetString("Item.PageName"); string articleAutori = GetString("Item.Autori"); string articleSections = ""; string articleTagList = GetString("Item.Taguri"); string articleCompanyDe = GetString("Item.De_Companie"); string articleCompanyDespre = GetString("Item.Despre_Companie"); string articleCompanySiDespre = GetString("Item.Si_Despre_Companie"); string articleRelevantaGeografica = GetString("Item.RelevantaGeografica"); string articleViews = GetString("Item.Visits"); int articleSectiuneID = GetInteger("Item.SectiuneParinteId"); string articleID = GetString("Item.Id.Value"); bool AdserverBanner = GetBoolean("Item.Adserver_Banner.Value"); string linkBanner = GetString("Item.Link_Banner"); string imagineBanner = GetString("Item.Imagine_Banner"); string articlePersoana = ""; string linkAutor = ""; string filterValue1 = "Item.De_Companie ='"+ GetString("Item.De_Companie.Value") +"'"; string filterValue4 = "Item.Autori ='"+ GetString("Item.Autori.Value") +"'" + " and " + "Item.SectiuneParinteId !='" + GetString("Item.SectiuneParinteId.Value") +"'"; string filterValue3 = "Item.SectiuneParinteId ='"+ GetString("Item.SectiuneParinteId.Value") +"'" + " and " + "Item.Id !='" + articleID +"'" ; string filterValue2 = "Item.Autori ='"+ GetString("Item.Autori.Value") +"'" + " and " + "Item.Id !='" + GetString("Item.Id.Value") +"'" ; int counterAutor = 1; List<Autor> articleAutoriList = GetAutori(articleAutori); List<Sectiune> articleSectionsList = GetSectiuni(articleSections); List<Tag> articleTaguri = GetTaguri(articleTagList); List<Companie> articleDeCompanieList = GetCompany(articleCompanyDe); List<Companie> articleDespreCompanieList = GetCompany(articleCompanyDespre); List<Companie> articleSiDespreCompanieList = GetCompany(articleCompanySiDespre); int counterAutorSecundar = articleAutoriList.Count(); string nrEditie= GetString("Item.Editie.Value"); } <div class="row blog-content" data-stickyparent=""> <div class="col-xs-12 col-sm-12 col-md-8 col-lg-8 "> <article class="post-wrapper clearfix"> <header class="post-header"> <h1 class="post-title"> @GetString("DwPageName") </h1><!-- .post-title --> <a href='/Default.aspx?ID=@GetString("DwPageID_2")' class="category bg@(articleSectiuneID)"> @GetString("DwPageName_2") </a> <p class="simple-share"> @foreach (var articleAutor in articleAutoriList) { if(counterAutor == 1){ <span style="margin:0px!important;">@Translate("articolde","de") <a href="@articleAutor.Link">@articleAutor.Name</a></span> @SnippetStart("AutorName") @articleAutor.Name @SnippetEnd("AutorName") } else { <span style="margin:0px!important;">, <a href="@articleAutor.Link">@articleAutor.Name</a></span> @SnippetStart("AutorName") @articleAutor.Name @SnippetEnd("AutorName") } counterAutor++; } <span><span class="article-date"><i class="fa fa-clock-o"></i> @GetDate("Item.Data.Value").ToString("dd/MM/yyyy")</span></span> @if (@GetBoolean("Item.Vizite")) { <span><i class="fa fa-eye"></i> @articleViews viualizari</span> } </p> @if(!string.IsNullOrEmpty(articleImage)){ <figure class="image-overlay"> <img src="@articleImage" alt="@articleTitle"> </figure> } </header><!-- .post-header --> <div class="post-content clearfix"> @GetString("Item.Continut.Value") <hr> <!-- Banner articol --> @if(!string.IsNullOrEmpty(GetString("Item.Pdf"))) { <div class="row"> <div class="col-xs-12 col-pdf"> <a href='@GetString("Item.Pdf")'>PDF</a> </div> </div> } <!-- End Banner Articol --> <div class="row" style="text-align:center; margin-bottom: 20px;"> <!-- Large modal --> @if (@GetBoolean("Item.CereOferta")) { <button class="btn btn-primary" data-toggle="modal" data-target="#modalformularoferta" id="buton-modal-cere-detalii">@Translate("askForDetails","Cere detalii sau oferta")</button> } <div class="modal fade bd-example-modal-sm" id="modalformularoferta" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true" style="background-color:rgba(255,255,255, 0.7);"> <div class="modal-dialog modal-sm"> <div class="modal-content"> <div data-nume="test" class="form-wrapper"> @RenderParagraphContent(120) </div> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-primary" data-dismiss="modal">Inchide Formularul</button> </div> </div> </div> </div><!-- .post-content --> <footer class="post-meta"> @SnippetStart("Tags") <div class="tags-wrapper"> <ul class="tags-widget clearfix"> <li class="trending">@Translate("TAGURI","TAGURI"):</li> @foreach (var tag in articleTaguri) { <li><a href="@tag.Link"><b>@tag.Name</b></a></li> } </ul> </div><!-- .tags-wrapper --> @SnippetEnd("Tags") <div class=" clearfix"> <div class="share-buttons"> <!-- Go to www.addthis.com/dashboard to customize your tools --> <div class="addthis_inline_share_toolbox"></div> </div> </div> <div class="row"> @GetValue("DwNavigation(blogposts)") </div> @foreach (var articleAutor in articleAutoriList) { articlePersoana = @articleAutor.Persoana; linkAutor = @articleAutor.Link; } @if(articlePersoana == "Persoana" ){ <div class="author-box clearfix "> @if(counterAutorSecundar != 1 ){ <div class="col-xs-12"> <h5>Autori</h5> </div> } @foreach (var articleAutor in articleAutoriList) { string mainImage = !string.IsNullOrEmpty(@articleAutor.Image) ? GetImage(@articleAutor.Image, 100, 150) + "&bgcolor=white" : "/Files/Images/NoImage/100x150.png"; if(counterAutorSecundar == 1 ){ <div class="author-avatar"> <img alt="" src="@mainImage"> </div> <div class="author-info"> <h3><a href="@articleAutor.Link">@articleAutor.Name</a></h3> <p class="author-bio">@articleAutor.Description</p> <div class="author-contact"> </div> </div> } else { <div class="col-xs-12 col-sm-12 col-md-6"> <div class="col-xs-3"> @if(!String.IsNullOrEmpty(articleAutor.Image)){ <img alt="" src="@mainImage"> } else { <i class="fa fa-user-circle-o" aria-hidden="true"></i> } </div> <div class="col-xs-9"> <p class="simple-share"> <a href="@articleAutor.Link">@articleAutor.Name</a> </p> </div> </div> } } </div> } </footer> </article><!-- .post-wrapper --> <div class="related-posts clearfix"> <!-- Mid ad --> @if(AdserverBanner == true){ <div class="row" style="margin-bottom: 20px;"> <div class="mag-content clearfix"> <div class="row"> <div class="col-md-12"> <div class="ad666-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> </div> }else if( !string.IsNullOrEmpty(linkBanner) && !string.IsNullOrEmpty(imagineBanner) ){ <div class="row" style="margin-bottom: 20px;"> <div class="mag-content clearfix"> <div class="row"> <div class="col-md-12"> <div class="ad666-wrapper"> <a href="@linkBanner"> <img src="@imagineBanner"> </a> </div> </div> </div> </div> </div> } <!-- End Mid ad --> <div class="row"> @if(GetString("Item.SectiuneParinteId.Value") == "25"){ <div class="col-md-6"> <h3 class="block-title"><span>@Translate("De acelasi autor","De acelasi autor")</span></h3> @RenderItemList(new { ItemType = "Dw_Page", ListSourceType = "SelfArea", ItemFieldsList = "*", ListTemplate = "ItemPublisher/List/LoopRelatedArticleList.cshtml", ListShowFrom = 1, ListPageSize = 2, ListOrderBy = "Data", ListOrderByDirection = "Descending", Filter = filterValue4 }) </div> }else{ <div class="col-md-6"> <h3 class="block-title"><span>@Translate("De aceeasi companie","De aceeasi companie")</span></h3> @RenderItemList(new { ItemType = "Dw_Page", ListSourceType = "SelfArea", ItemFieldsList = "*", ListTemplate = "ItemPublisher/List/LoopRelatedArticleList.cshtml", ListShowFrom = 1, ListPageSize = 2, ListOrderBy = "Data", ListOrderByDirection = "Descending", Filter = filterValue2 }) </div> } <div class="col-md-6"> <h3 class="block-title"><span>@Translate("Din aceeasi sectiune","Din aceeasi sectiune")</span></h3> @RenderItemList(new { ItemType = "Dw_Page", ListSourceType = "SelfArea", ItemFieldsList = "*", ListTemplate = "ItemPublisher/List/LoopRelatedArticleList.cshtml", ListShowFrom = 1, ListPageSize = 2, ListOrderBy = "Data", ListOrderByDirection = "Descending", Filter = filterValue3 }) </div> </div> @{int counter = 0; var Produse = GetLoop("Item.Produse.Value"); if(Produse.Any()){ <h3 class="block-title"><span>Produse</span></h3> <div class="row"> <div class="col-md-12"> <div class="owl-carousel owl-theme"> @foreach(LoopItem i in Produse){ string mainImageRaw = i.GetString("Ecom:Product.ImageLarge.Default.Clean"); string mainImage = !string.IsNullOrEmpty(mainImageRaw) ? GetImage(mainImageRaw, 160, 120) + "&bgcolor=white" : "/Files/Images/NoImage/160x120.png"; string mainTitle = i.GetString("Ecom:Product.Name"); string mainURL = i.GetString("Ecom:Product.Link.Clean"); <div class="item"> @if(!string.IsNullOrEmpty(i.GetString("Ecom:Product.ImageLarge.Default.Clean"))){ <a href="@mainURL"><img src="@mainImage" width="160" height="100" alt=""></a> } else{ <a href="@mainURL"><img src="@areaLayoutPath/assets/img/demo/160x120.png" height="100" alt=""></a> } <h4><a href="@mainURL">@mainTitle</a></h4> </div> } </div> </div> </div> }else { string idCompanie = GetString("Item.De_Companie"); Dynamicweb.Content.Items.Item companie = null; if (!string.IsNullOrEmpty(idCompanie)){ companie = Dynamicweb.Content.Items.Item.GetItemById("Taxonomie_Companii", idCompanie); if(companie != null){ var ProduseReprezentative = ProductFacade.GetItemTypeProducts(companie["RepresentativeProducts"]); <!--Standard start --> <div class="row space-10"> @if(ProduseReprezentative.Any()){ <div class="col-xs-12"><h3 class="block-title"><span class="primary-color-border-bottom">Produse</span></h3></div> } <div class="col-xs-12"> <div class="carousel-produse"> <div class="owl-carousel owl-theme owl-redactori"> @foreach (var produsReprezentativ in ProduseReprezentative) { string mainImage = !string.IsNullOrEmpty(produsReprezentativ.ImageLarge) ? GetImage(produsReprezentativ.ImageLarge, 160, 120) + "&bgcolor=white" : "/Files/Images/NoImage/160x120.png"; if (counter <= 8 ) { <div class="item"> <figure class="image-overlay proportie-1 text-center"> <a href="/ibuysmart?ProductID=@(produsReprezentativ.Id)"> @if(!String.IsNullOrEmpty(@produsReprezentativ.ImageLarge)) { <img src="/Files/@(mainImage)" alt="@produsReprezentativ.Name" width="160" height="105" class=""> } else { <img src="http://placehold.it/350x150" alt="@produsReprezentativ.Name" class="img-responsive"> } </a> </figure> <header class="featured-header"> <h2><a href="/ibuysmart?ProductID=@(produsReprezentativ.Id)"> @produsReprezentativ.Name @counter </a></h2> <p class="manufacturer">Producator: <span>@produsReprezentativ.Manufacturer.Name</span></p> </header> </div> } counter++; } </div> </div> </div> </div> } } <!--End of idCompanie--> } <!--End of else--> } </div><!-- .related-post --> <div class="col-xs-12"> <div id="disqus_thread"></div> <script> /** * RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS. * LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables*/ /* var disqus_config = function () { this.page.url = PAGE_URL; // Replace PAGE_URL with your page's canonical URL variable this.page.identifier = PAGE_IDENTIFIER; // Replace PAGE_IDENTIFIER with your page's unique identifier variable }; */ (function() { // DON'T EDIT BELOW THIS LINE var d = document, s = d.createElement('script'); s.src = 'https://ttonlinero.disqus.com/embed.js'; s.setAttribute('data-timestamp', +new Date()); (d.head || d.body).appendChild(s); })(); </script> <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript> </div> @if(@GetInteger("DwAreaID") == 3){ <div class="row row-butoane-articol"> <div class="col-xs-12 col-sm-6 "><a href="/ibuysmart" class="btn btn-primary" style="background-color:#ffa700!important;">Go to I Buy Smart</a></div> <div class="col-xs-12 col-sm-6 "><a href="/industry-directory" class="btn btn-primary" style="background-color:#ffa700!important;">Go to Business Directory</a></div> <div class="col-xs-12 col-sm-6 "><a href="@linkAutor" class="btn btn-primary" style="background-color:#ffa700!important;">See other articles from the same company</a></div> <div class="col-xs-12 col-sm-6 "><a href="/en/romanian-industry-zoom" class="btn btn-primary" style="background-color:#ffa700!important;">Go to the T&T</a></div> <div class="col-xs-12 col-sm-6 "><a href="/en/romanian-industry-zoom/web-exclusive" class="btn btn-primary" style="background-color:#ffa700!important;">Go to the Web Exclusive Section</a></div> @if(!string.IsNullOrEmpty(GetString("Item.De_Companie"))){ <div class="col-xs-12 col-sm-6 "><a href='companie?companyID=@(GetString("Item.De_Companie"))' class="btn btn-primary" style="background-color:#ffa700!important;">Go to Company page</a></div> } </div> }else{ <div class="row row-butoane-articol"> <div class="col-xs-12 col-sm-6 "><a href="/ibuysmart" class="btn btn-primary" style="background-color:#ffa700!important;">Vezi catalogul de produse</a></div> <div class="col-xs-12 col-sm-6 "><a href="/industry-directory" class="btn btn-primary" style="background-color:#ffa700!important;">Vezi ghidul companiilor din industrie</a></div> <div class="col-xs-12 col-sm-6 "><a href="@linkAutor" class="btn btn-primary" style="background-color:#ffa700!important;">Vezi alte articole ale companiei autoare</a></div> <div class="col-xs-12 col-sm-6 "><a href="/revista" class="btn btn-primary" style="background-color:#ffa700!important;">Vezi sectiunile revistei T&T</a></div> <div class="col-xs-12 col-sm-6 "><a href="/revista/web-exclusive" class="btn btn-primary" style="background-color:#ffa700!important;">Vezi articole web exclusive</a></div> @if(!string.IsNullOrEmpty(GetString("Item.De_Companie"))){ <div class="col-xs-12 col-sm-6 "><a href='companie?companyID=@(GetString("Item.De_Companie"))' class="btn btn-primary" style="background-color:#ffa700!important;">Vezi pagina companiei autoare</a></div> } </div> } </div><!-- End Left big column --> <div class=" col-xs-12 col-sm-12 col-md-4 col-lg-4 sticky "> <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 --> <!-- Google Analytics --> <script> window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date; ga('create', 'UA-26068739-1', 'auto'); // START DIMENSIUNI // DIMENSIUNI PENTRU Romanian Industry Zoom: var dw_editie = '@nrEditie'; var dw_autor = '@articleAutori'; var dw_companie = '@articleCompanyDe'; var dw_data_aparitie = '@GetDate("Item.Data.Value").ToString("dd/MM/yyyy")'; // format dd.mm.yyyy ga('set', 'dimension1', dw_editie); ga('set', 'dimension2', dw_autor); ga('set', 'dimension3', dw_companie); ga('set', 'dimension9', dw_data_aparitie); // END DIMENSIUNI ga('send', 'pageview'); </script> <script async="" src='https://www.google-analytics.com/analytics.js'></script> <!-- End Google Analytics --> </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>