Error executing template "Designs/TTonlineNew/_parsed/Page.parsed.cshtml"
System.NullReferenceException: Object reference not set to an instance of an object.
   at CompiledRazorTemplates.Dynamic.RazorEngine_87c5abdb01f14a4ba8257f414aea0a6f.Execute() in Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\_parsed\Page.parsed.cshtml:line 1081
   at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context, TextWriter reader)
   at RazorEngine.Templating.RazorEngineService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)
   at RazorEngine.Templating.RazorEngineServiceExtensions.<>c__DisplayClass16_0.b__0(TextWriter writer)
   at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)
   at Dynamicweb.Rendering.Template.RenderRazorTemplate()

1 @inherits RazorTemplateBase<RazorTemplateModel<Template>> 2 @using Dynamicweb.Rendering 3 @using Dynamicweb.Content 4 @using System.Text.RegularExpressions 5 @using System.Web.UI.HtmlControls 6 @{ 7 8 string areaLayoutPath = "/Files/Templates/Designs/TTonline/"; 9 areaLayoutPath = areaLayoutPath.Substring(0, areaLayoutPath.LastIndexOf("/")); 10 11 string Layout_Style = GetString("Item.Area.Layout_Style.Value"), 12 Template_Style = GetString("Item.Area.Template_Style.Value"), 13 Sticky_Header = GetString("Item.Area.Sticky_Header.Value"), 14 Template_Color = GetString("Item.Area.Template_Color.Value"), 15 bodyStyle = Layout_Style + " " + Template_Style + " " + Sticky_Header + " " + Template_Color; 16 17 } 18 19 20 @inherits RazorTemplateBase<RazorTemplateModel<Template>> 21 @using Dynamicweb.Rendering; 22 @using System.Text.RegularExpressions 23 @using Dynamicweb.Notifications 24 @using Dynamicweb.Extensibility; 25 26 27 28 29 30 @helper OgMeta(string designName) 31 { 32 if (string.IsNullOrEmpty(System.Web.HttpContext.Current.Request.Params["ProductID"])) 33 { 34 @SnippetStart("OGMeta") 35 <meta test/=""> 36 <meta property="og:title" content='@GetString("Title")'> 37 @* <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'> *@ 38 <meta property="og:site_name" content='@Pageview.Area.Name'> 39 <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()'> 40 <meta property="og:description" content='@StripHtml(GetString("Meta.Description"))'> 41 <meta property="og:type" content="article"> 42 <meta property="og:locale" content='@Pageview.GlobalTags.GetTagByName("Global:Area.LongLang").Value.ToString().Replace("-", "_")'> 43 @SnippetEnd("OGMeta") 44 } 45 } 46 47 @helper HtmlHead(string designName) 48 { 49 string designFolder = GetString("Template:DesignBaseUrl"); 50 string robots = ""; 51 string ipCountry = "RO";//Dna.IP.Frontend.GetCountryCode(); 52 string countryCodeModule = !string.IsNullOrEmpty(ipCountry) ? ipCountry : "RO"; 53 string userCountryCode = (Pageview.User != null && !string.IsNullOrEmpty(Pageview.User.Country)) ? Pageview.User.Country : ipCountry; 54 string userState = Pageview.User != null ? Pageview.User.State : string.Empty; 55 string userAccountsNumber = (System.Web.HttpContext.Current.Session["AccountsNumber"] ?? "").ToString(); 56 robots = (GetBoolean("Item.Area.DemoBanner") || GetBoolean("Item.Area.NoIndex")) ? CommaSplittedString(robots, "noindex") : ""; 57 robots = (GetBoolean("Item.Area.DemoBanner") || GetBoolean("Item.Area.NoFollow")) ? CommaSplittedString(robots, "nofollow") : ""; 58 //System.Web.HttpContext.Current.Items["metatitle"] = "Here is some data"; 59 string pageTitle = System.Web.HttpContext.Current.Items["metatitle"] != null ? System.Web.HttpContext.Current.Items["metatitle"].ToString() : GetString("Title"); 60 61 <head> 62 <title>@GetValue("Title")</title> 63 @*<meta name="description" content="">*@ 64 <meta http-equiv="content-type" content="text/html; charset=utf-8"> 65 <meta name="viewport" content="initial-scale=1.0, width=device-width, user-scalable=no"> 66 <meta http-equiv="X-UA-Compatible" content="IE=edge"> 67 <meta name="SKYPE_TOOLBAR" content="SKYPE_TOOLBAR_PARSER_COMPATIBLE"> 68 69 <link rel="apple-touch-icon-precomposed" sizes="57x57" href="@(designFolder)images/apple-touch-icon-57x57.png"> 70 <link rel="apple-touch-icon-precomposed" sizes="114x114" href="@(designFolder)images/apple-touch-icon-114x114.png"> 71 <link rel="apple-touch-icon-precomposed" sizes="72x72" href="@(designFolder)images/apple-touch-icon-72x72.png"> 72 <link rel="apple-touch-icon-precomposed" sizes="144x144" href="@(designFolder)images/apple-touch-icon-144x144.png"> 73 <link rel="apple-touch-icon-precomposed" sizes="60x60" href="@(designFolder)images/apple-touch-icon-60x60.png"> 74 <link rel="apple-touch-icon-precomposed" sizes="120x120" href="@(designFolder)images/apple-touch-icon-120x120.png"> 75 <link rel="apple-touch-icon-precomposed" sizes="76x76" href="@(designFolder)images/apple-touch-icon-76x76.png"> 76 <link rel="apple-touch-icon-precomposed" sizes="152x152" href="@(designFolder)images/apple-touch-icon-152x152.png"> 77 <link rel="icon" type="image/png" href="@(designFolder)images/favicon-196x196.png" sizes="196x196"> 78 <link rel="icon" type="image/png" href="@(designFolder)images/favicon-96x96.png" sizes="96x96"> 79 <link rel="icon" type="image/png" href="@(designFolder)images/favicon-32x32.png" sizes="32x32"> 80 <link rel="icon" type="image/png" href="@(designFolder)images/favicon-16x16.png" sizes="16x16"> 81 <link rel="icon" type="image/png" href="@(designFolder)images/favicon-128.png" sizes="128x128"> 82 <meta name="application-name" content="&nbsp;"> 83 <meta name="msapplication-TileColor" content="#FFFFFF"> 84 <meta name="msapplication-TileImage" content="@(designFolder)images/mstile-144x144.png"> 85 <meta name="msapplication-square70x70logo" content="@(designFolder)images/mstile-70x70.png"> 86 <meta name="msapplication-square150x150logo" content="@(designFolder)images/mstile-150x150.png"> 87 <meta name="msapplication-wide310x150logo" content="@(designFolder)images/mstile-310x150.png"> 88 <meta name="msapplication-square310x310logo" content="@(designFolder)images/mstile-310x310.png"> 89 90 @if (!string.IsNullOrEmpty(robots)) 91 { 92 <meta name="robots" content="@robots"> 93 } 94 @OgMeta(designName) 95 @RenderSnippet("OGMeta") 96 @GetString("MetaTags") 97 @GetString("CopyRightNotice") 98 @GetString("Stylesheets") 99 100 @* <link rel="shortcut icon" href="@(designFolder)images/favicon.ico" type="image/x-icon"> *@ 101 102 <!-- Icon Font --> 103 @*<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">*@ 104 105 @{ 106 var minify = GetBoolean("Item.Area.Minify_CSS_And_JavaScript"); 107 var styleBundle = Dna.Optimizer.Renderer.RenderStyles(string.Format("{0}css", designFolder), minify:minify, recursive : true, virtualPathPrefix : "-main-styles", exclusions: new[] { "exceptions" }); 108 var scriptBundleHeader = Dna.Optimizer.Renderer.RenderScripts(string.Format("{0}js/header", designFolder), minify: minify, recursive : true, virtualPathPrefix : "-main-scripts-header",exclusions: new[] { "exceptions" }); 109 // var scriptBundleFooter = Dna.Optimizer.Renderer.RenderScripts(string.Format("{0}js/footer", designFolder), minify: minify, recursive : true, virtualPathPrefix : "-main-scripts-footer",exclusions: new[] { "exceptions" }); 110 } 111 @*<link rel="stylesheet" href="@styleBundle">*@ 112 @*<link rel="stylesheet" href="/Files/Templates/Designs/TTonlineNew/css/custom.css">*@ 113 <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"> 114 @* <link rel="stylesheet" href="/Files/Templates/Designs/TTonlineNew/dist/custom.css?v=8" async/=""> *@ 115 <link rel="stylesheet" href="/Files/Templates/Designs/TTonlineNew/dist2/app.bundle.css?v=1"> 116 @* <script src="@scriptBundleHeader"></script>*@ 117 <script src="/Files/Templates/Designs/TTonlineNew/assets/js/00_jquery_1.11.2_.min.js"></script> 118 @GetString("Javascripts") 119 @RenderSnippet("externalScripts") 120 @SnippetStart("externalScripts") @SnippetEnd("externalScripts") 121 <!--[if lte IE 9]> 122 <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script> 123 <script src="//cdnjs.cloudflare.com/ajax/libs/respond.js/1.1.0/respond.min.js"></script> 124 <![endif]--> 125 @*<script> 126 @RenderSnippet("jsVariables") 127 @SnippetStart("jsVariables") @SnippetEnd("jsVariables") 128 129 var obj_pages = { 130 str_miniCart: '@Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(GetString("Item.Area.MiniCart"))', 131 str_login: '@Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(GetString("Item.Area.Login"))', 132 str_globalTranslates: '@Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(GetString("Item.Area.GlobalTranslates"))', 133 str_contactPopup : '@Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(GetString("Item.Area.ContactUs_Popup"))', 134 str_cartInformation: '@Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(GetString("Item.Area.Cart_Information"))', 135 str_typeAhead : '@Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(GetString("Item.Area.TypeAhead"))' 136 }, 137 obj_user = { 138 str_country: '@userCountryCode', 139 str_state: '@userState', 140 str_accountsNumber:'@userAccountsNumber' 141 }, 142 obj_settings = { 143 str_contactTimeout: '@GetString("Item.Area.Time")', 144 str_cartQty: '@GetString("Ecom:Order.OrderLines.TotalProductQuantity")' 145 }, 146 obj_translates = { 147 str_seeAll: '@Translate("seeAllThe", "See all the")', 148 str_results: '@Translate("results", "results")' 149 }; 150 document.addEventListener('DOMContentLoaded', function(event) { 151 @UserDoesNotExist() 152 @RenderSnippet("jsOnLoadVariables") 153 @SnippetStart("jsOnLoadVariables") @SnippetEnd("jsOnLoadVariables") 154 @RenderSnippet("jsOnLoad") 155 @SnippetStart("jsOnLoad") @SnippetEnd("jsOnLoad") 156 }); 157 158 @if(!string.IsNullOrWhiteSpace(GetString("Item.Area.GoogleAnalytics"))) 159 { 160 <text> 161 (function (i, s, o, g, r, a, m) { 162 i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () { 163 (i[r].q = i[r].q || []).push(arguments) 164 }, i[r].l = 1 * new Date(); a = s.createElement(o), 165 m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m) 166 })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga'); 167 ga('create', '@GetString("Item.Area.GoogleAnalytics")', 'auto'); 168 ga('send', 'pageview'); 169 </text> 170 } 171 @SnippetStart("eCommerceTracking")@SnippetEnd("eCommerceTracking") 172 @RenderSnippet("eCommerceTracking") 173 </script> 174 175 <!-- Global site tag (gtag.js) - Google Ads: 970361168 --> 176 <script async="" src="https://www.googletagmanager.com/gtag/js?id=AW-970361168"></script> 177 <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'AW-970361168'); </script>*@ 178 179 <!-- Hotjar Tracking Code for https://ttonline.ro --> 180 @*<script> 181 (function(h,o,t,j,a,r){ 182 h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)}; 183 h._hjSettings={hjid:1231893,hjsv:6}; 184 a=o.getElementsByTagName('head')[0]; 185 r=o.createElement('script');r.async=1; 186 r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv; 187 a.appendChild(r); 188 })(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv='); 189 </script> 190 <!-- Global site tag (gtag.js) - Google Ads: 1010029401 --> 191 <script async="" src="https://www.googletagmanager.com/gtag/js?id=AW-1010029401"></script> 192 <script> 193 window.dataLayer = window.dataLayer || []; 194 function gtag(){dataLayer.push(arguments);} 195 gtag('js', new Date()); 196 197 gtag('config', 'AW-1010029401'); 198 </script>*@ 199 <!-- Google Tag Manager --> 200 201 <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': 202 203 new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], 204 205 j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 206 207 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); 208 209 })(window,document,'script','dataLayer','GTM-5WS5JXM');</script> 210 211 <!-- End Google Tag Manager --> 212 </head> 213 } 214 @helper UserDoesNotExist() 215 { 216 if (Dynamicweb.Environment.ExecutingContext.IsFrontEnd() && !Dynamicweb.Security.UserManagement.User.IsExtranetUserLoggedIn()) 217 { 218 if (!string.IsNullOrEmpty(System.Web.HttpContext.Current.Request.Params["Password"]) && !string.IsNullOrEmpty(System.Web.HttpContext.Current.Request.Params["Username"])) 219 { 220 @SnippetStart("jsOnLoad") 221 @:var showLogin = true; 222 @:alert("@Translate("yourUserNameOrPasswordDidntMatch", "Your user name or password didn't match. Please try again.")"); 223 @SnippetEnd("jsOnLoad") 224 } 225 } 226 } 227 @helper Logo(string cssclass, string companyName, string fileName) 228 { 229 if (!string.IsNullOrEmpty(System.Web.HttpContext.Current.Request.Params["print"])) 230 { 231 <div class="@cssclass"> 232 <a href="/"> 233 <img class="img-responsive hidden-print" src="/Files/Templates/Designs/TTonlineNew/images/@(fileName)" alt="@companyName" title="@companyName"> 234 <img class="img-responsive visible-print" src="/Files/Images/logo_TT.png" alt="@companyName" title="@companyName"> 235 </a> 236 </div> 237 } 238 else 239 { 240 <div class="@cssclass"> 241 <a href="/"> 242 <img class="img-responsive" src="/Files/Templates/Designs/TTonlineNew/images/@(fileName)" alt="@companyName" title="@companyName"> 243 </a> 244 </div> 245 } 246 } 247 248 @helper Copyright() 249 { 250 <div class="copyright">&copy; @DateTime.Now.Year @GetString("Item.Area.CompanyName") - @GetString("Item.Area.Copyright")</div> 251 } 252 @functions { 253 private string CommaSplittedString(string CommaSplittedString, string NewString) 254 { 255 256 if (!string.IsNullOrEmpty(CommaSplittedString)) 257 { 258 CommaSplittedString += ", "; 259 } 260 CommaSplittedString += NewString; 261 262 return CommaSplittedString; 263 } 264 public static string StripHtml(string source) 265 { 266 return Regex.Replace(source, "<.*?>", string.Empty); 267 } 268 } 269 @{ 270 string designName1 = "TTonline"; 271 string device = Pageview.Device.ToString(); 272 string firstPageId = GetString("DwAreaFirstPageID"); 273 string homeOrSubpage = GetString("DwAreaFirstPageID") == GetString("Global:Page.ID") ? "home" : "subpage"; 274 string print = !string.IsNullOrEmpty(System.Web.HttpContext.Current.Request.Params["print"]) ? "printOrPdf" : ""; 275 //string resultsPage = GetString("Item.Area.SearchResults"); 276 //string contactPage = GetString("Item.Area.ContactUs"); 277 string countryCode = "RO";//Dna.IP.Frontend.GetCountryCode(); 278 string longLang = Pageview.GlobalTags.GetTagByName("Global:Area.LongLang").Value.ToString(); 279 string languageClass = longLang == "ro-RO" ? "lang-ro" : "lang-en"; 280 //string email = GetString("Item.Area.Email"); 281 //string phone = GetString("Item.Area.Phone"); 282 283 //bool userIsLoggedIn = Dynamicweb.Security.UserManagement.User.IsExtranetUserLoggedIn(); 284 bool isPrint = !string.IsNullOrEmpty(System.Web.HttpContext.Current.Request.Params["print"]); 285 bool bol_backofficeLogged = Dynamicweb.Security.UserManagement.User.GetCurrentBackendUser() != null ? true : false; 286 List<LoopItem> socialMedia = GetLoop("Item.Area.SocialNetworks"); 287 List<LoopItem> websiteLanguages = GetLoop("WebsiteLanguages"); 288 string designFolder = GetString("Template:DesignBaseUrl"); 289 var minify = GetBoolean("Item.Area.Minify_CSS_And_JavaScript"); 290 //var scriptBundleFooter = Dna.Optimizer.Renderer.RenderScripts(string.Format("{0}js/footer", designFolder), minify, true, "-main-scripts-footer", new[] { "exceptions" }); 291 var scriptBundleFooter = Dna.Optimizer.Renderer.RenderScripts(string.Format("{0}js/footer", designFolder), minify: minify, recursive: true, virtualPathPrefix : "-main-scripts-footer", exclusions : new[] { "exceptions" }); 292 var ibuySmartPageId = GetPageIdByNavigationTag("catalog"); 293 var ibuySmartUrl = "/Default.aspx?ID=" + ibuySmartPageId; 294 var isMobile = Pageview.Device.ToString() == "Mobile" ? true : false; 295 296 } 297 <!DOCTYPE HTML> 298 <!--[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)]><!--> 299 <html lang="@(longLang)" class="@languageClass "> <!--<![endif]--> 300 301 @HtmlHead(designName1) 302 303 <body class="@bodyStyle tileStyle"> 304 <!-- Google Tag Manager (noscript) --> 305 306 <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5WS5JXM" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> 307 308 <!-- End Google Tag Manager (noscript) --> 309 310 <div id="main" class="header-style1"> 311 312 @{ 313 bool userIsLoggedIn = Dynamicweb.Security.UserManagement.User.IsExtranetUserLoggedIn(); 314 string logo = GetString("Item.Area.Logo"); 315 } 316 <header class="header-wrapper clearfix"> 317 318 <div class="header" id="header"> 319 <div class="container-fluid header-first-container"> 320 <div class="mag-content"> 321 <div class="container"> 322 <div class="row header-first-row"> 323 <div class="col-md-9 visible-lg visible-md" id="motto"> 324 <a class="logo" href="/Default.aspx?ID=@firstPageId" title="" rel="home"> 325 <img src="@logo"> 326 </a><!-- .logo --> 327 <h4>Industry – Business Opportunities</h4> 328 </div><!--End of col-md-9 visible-lg visible-md--> 329 330 <div class="col-md-2 visible-lg visible-md text-right username"> 331 332 @if (userIsLoggedIn) { 333 string userName = !string.IsNullOrWhiteSpace(Pageview.User.Name) ? Pageview.User.Name : string.Format("{0}{1}", Pageview.User.FirstName, Pageview.User.LastName); 334 335 <div class="welcomeBack hidden-print text-left"> 336 @Translate("welcome", "Welcome"), <span> @(!string.IsNullOrWhiteSpace(userName) ? userName : Pageview.User.UserName)</span> 337 </div> 338 } 339 340 </div> 341 <div id="social-icon" class="social-icon"> 342 <a class="twitter" href='@Pageview.Area.Item["LinkedInLink"]' target="_blank"> <i class="fa fa-linkedin fa-2x padding" aria-hidden="true"></i> </a> 343 <a class="facebook" href='@Pageview.Area.Item["FacebookLink"]' target="_blank"> <i class="fa fa-facebook fa-2x padding" aria-hidden="true"></i> </a> 344 <a class="twitter" href='@Pageview.Area.Item["YoutubeLink"]' target="_blank"> <i class="fa fa-youtube fa-2x padding" aria-hidden="true"></i> </a> 345 </div> 346 347 </div> 348 </div> 349 </div> 350 </div> 351 352 <div class="container-fluid header-second-container"> 353 <div class="mag-content"> 354 355 <div class="container"> 356 <div class="row header-second-row"> 357 <div class="col-md-12"> 358 359 <!-- Mobile Menu Button --> 360 <a class="navbar-toggle collapsed" id="nav-button" href="#mobile-nav"> 361 <span class="icon-bar"></span> 362 <span class="icon-bar"></span> 363 <span class="icon-bar"></span> 364 <span class="icon-bar"></span> 365 </a><!-- .navbar-toggle --> 366 <!-- Main Nav Wrapper --> 367 <nav class="navbar mega-menu"> 368 <a class="logo hidden-lg hidden-md" href="/Default.aspx?ID=@firstPageId" title="" rel="home"> 369 <img src="@logo"> 370 </a><!-- .logo --> 371 <!-- Navigation Menu --> 372 <div class="navbar-collapse collapse"> 373 @RenderNavigation(new { 374 template = "MainNavigation.xslt", 375 expandmode = "all", 376 id = "header-nav", 377 startlevel = 1, 378 listStyle = "top-navigation", 379 endlevel = 2 380 }) 381 </div><!-- .navbar-collapse --> 382 <!-- End Navigation Menu --> 383 384 385 386 <div class="btn-group dropdown-login"> 387 <button class="btn btn-default btn-sm dropdown-toggle dropdown-login" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> 388 <i class="fa fa-user fa-1x" aria-hidden="true">&nbsp; &nbsp;</i><span class=""></span> 389 </button> 390 <ul class="dropdown-menu"> 391 <!-- Button trigger modal --> 392 393 @if (userIsLoggedIn) 394 { 395 <li><a href="/Admin/Public/ExtranetLogoff.aspx?ID=1">Logout</a></li> 396 } else { 397 <li><a href="/Default.aspx?ID=4256">Log in</a></li> 398 <li><a href="/Default.aspx?ID=4255">@Translate("Inregistrare","Inregistrare")</a></li> 399 } 400 </ul> 401 </div> 402 <!-- Single button --> 403 404 <div class="header-right galaxy-s5 nexus-5x iphone-6"> 405 <div class="social-icons"> 406 407 @{ 408 var languageSwitcherValue = ""; 409 foreach (var language in GetLoop("Languages")) { 410 if (language.GetBoolean("IsCurrent")) { 411 languageSwitcherValue = language.GetString("Culture"); 412 } 413 } 414 } 415 @if (languageSwitcherValue == "ro-RO") { 416 <a href="/" class="selected">RO</a> <span>|</span> <a href="/Default.aspx?ID=5557">EN</a> 417 } 418 @if (languageSwitcherValue == "en-US") { 419 <a href="/">RO</a> <span>|</span> <a href="Default.aspx?ID=5557" class="selected">EN</a> 420 } 421 422 @* <a href="#" data-toggle="tooltip" data-placement="bottom" title="Facebook"><i class="fa fa-facebook fa-lg"></i></a> 423 <a href="#" data-toggle="tooltip" data-placement="bottom" title="Twitter"><i class="fa fa-twitter fa-lg"></i></a> 424 <a href="#" data-toggle="tooltip" data-placement="bottom" title="Google+"><i class="fa fa-google-plus fa-lg"></i></a> 425 <!-- Only for Fixed Sidebar Layout --> 426 <a href="#" class="fixed-button navbar-toggle" id="fixed-button"> 427 <i></i> 428 <i></i> 429 <i></i> 430 <i></i> 431 </a><!-- .fixed-button -->*@ 432 </div><!-- .social-icons --> 433 </div><!-- .header-right --> 434 435 436 437 @if(GetString("DwAreaID") == "1"){ 438 439 <div id="sb-search" class="sb-search sb-search-open"> 440 <div class="form-group" style="position: relative;"> 441 <form action="/cautare.aspx" method="GET"> 442 <input class="sb-search-input" placeholder="Termen de cautare..." type="text" value="" name="q" id="q"> 443 <input class="sb-search-submit btn-search" type="submit" value=""> 444 <span class="sb-icon-search fa fa-search" data-toggle="tooltip" data-placement="bottom" title="Search"></span> 445 </form> 446 </div> 447 </div> 448 }else { 449 450 <div id="sb-search" class="sb-search sb-search-open"> 451 <div class="form-group" style="position: relative;"> 452 <form action="/en/search.aspx" method="GET"> 453 <input class="sb-search-input" placeholder="Input keyword ...." type="text" value="" name="q" id="q"> 454 <input class="sb-search-submit btn-search" type="submit" value=""> 455 <span class="sb-icon-search fa fa-search" data-toggle="tooltip" data-placement="bottom" title="Search"></span> 456 </form> 457 </div> 458 </div> 459 } 460 461 462 463 464 465 </nav><!-- .navbar --> 466 467 468 </div> 469 </div> 470 </div> 471 </div> 472 </div><!--.container --> 473 </div><!-- .mag-content --> 474 </header></div><!-- .container --> 475 <!-- .header --> 476 477 <!-- .header-wrapper --> 478 479 <!-- Begin Main Wrapper --> 480 <div class="container main-wrapper"> 481 482 @if (string.IsNullOrEmpty(System.Web.HttpContext.Current.Request.Params["productid"])) 483 { 484 <div class="hidden-xs hidden-sm hidden-md skyscraper--left"> 485 <div class="sticky default"> 486 <span> 487 <ins data-revive-zoneid="2" data-revive-id="30be11c85ce356e14970630466da228f"></ins> 488 <script async="" src="//adserver.dotfusion.ro/revive/www/delivery/asyncjs.php"></script> 489 </span> 490 </div> 491 </div> 492 <div class="hidden-xs hidden-sm hidden-md skyscraper--right"> 493 <div class="sticky default"> 494 <span> 495 <ins data-revive-zoneid="3" data-revive-id="30be11c85ce356e14970630466da228f"></ins> 496 </span> 497 </div> 498 </div> 499 } 500 501 @if(@GetInteger("DwPageID") == 4228) 502 { 503 <style> 504 .ad728-wrapper { 505 margin: 40px auto 0px; 506 507 } 508 </style> 509 510 string logoSubheader = GetString("Item.Area.Logo_IBuySmart"); 511 string culoareFundal = !string.IsNullOrEmpty(GetString("Item.Area.CuloareFundal")) ? "background:" + GetString("Item.Area.CuloareFundal") + ";" : ""; 512 string culoareFont = !string.IsNullOrEmpty(GetString("Item.Area.CuloareFont")) ? "color:" + GetString("Item.Area.CuloareFont") + ";" : ""; 513 string textSubheader = GetString("Item.Area.Text"); 514 string dimensiuneFont = !string.IsNullOrEmpty(GetString("Item.Area.DimensiuneFont")) ? "font-size:" + GetString("Item.Area.DimensiuneFont") + ";" : ""; 515 516 517 <!-- Begin iBuySmart Main Mobile Banner --> 518 <div class="hidden-md hidden-lg hidden-xl mag-content clearfix " style="margin-top: 30px;"> 519 <div class="row"> 520 <div class="col-md-12"> 521 <div class="ad728-wrapper-mobile-main" style="min-height: 115px;display: flex;margin-top: 2em;justify-content: center;"> 522 <ins data-revive-zoneid="22" data-revive-id="30be11c85ce356e14970630466da228f"></ins> 523 <script async="" src="//adserver.dotfusion.ro/revive/www/delivery/asyncjs.php"></script> 524 </div> 525 </div> 526 </div> 527 </div> 528 <!-- End iBuySmart Main Mobile Banner --> 529 530 531 if (isMobile) 532 { 533 <div class="subheader row" style="@culoareFundal"> 534 <div class="row"> 535 <div class="col-xs-7"> 536 <a href="@ibuySmartUrl"><img src="@logoSubheader"></a> 537 </div> 538 <div class="col-xs-5"> 539 <h4 style="@culoareFont @dimensiuneFont">@textSubheader</h4> 540 </div> 541 </div> 542 <div class="row"> 543 <div class="col-xs-12">@RenderSnippet("SearchProduse")</div> 544 </div> 545 </div> 546 } 547 else 548 { 549 <div class="subheader row" style="@culoareFundal"> 550 <div class="col-xs-4"> 551 <a href="@ibuySmartUrl"><img src="@logoSubheader"></a> 552 </div> 553 <div class="col-xs-5"> 554 <h4 style="@culoareFont @dimensiuneFont">@textSubheader</h4> 555 </div> 556 <div class="col-xs-12 col-md-3">@RenderSnippet("SearchProduse")</div> 557 </div> 558 559 } 560 561 562 } 563 564 @if(@GetInteger("DwAreaID") == 3){ 565 <style> 566 .ad728-wrapper { 567 margin: 40px auto 0px; 568 } 569 </style> 570 571 string logoSubheader = GetString("Item.Area.LogoIndustryZoom"); 572 string culoareFundal = !string.IsNullOrEmpty(GetString("Item.Area.CuloareFundal_Industryzoom")) ? "background:" + GetString("Item.Area.CuloareFundal_Industryzoom") + ";" : ""; 573 string culoareFont = !string.IsNullOrEmpty(GetString("Item.Area.Culoare_Font_IndustryZoom")) ? "color:" + GetString("Item.Area.Culoare_Font_IndustryZoom") + ";" : ""; 574 string textSubheader = GetString("Item.Area.Text_Subheader_Industry_Zoom"); 575 string dimensiuneFont = !string.IsNullOrEmpty(GetString("Item.Area.Dimensiune_Font_IndustryZoom")) ? "font-size:" + GetString("Item.Area.Dimensiune_Font_IndustryZoom") + ";" : ""; 576 577 <div class="subheader row" style="@culoareFundal"> 578 @if (!string.IsNullOrEmpty(textSubheader)) { 579 <div class="col-xs-4"> 580 <img src="@logoSubheader"> 581 </div> 582 <div class="col-xs-5"> 583 <h4 style="@culoareFont @dimensiuneFont">@textSubheader</h4> 584 </div> 585 <div class="col-xs-12 col-md-3">@RenderSnippet("SearchProduse")</div> 586 } else { 587 <div class="col-xs-12 noPadding"> 588 <img src="@logoSubheader" style="margin: 10px 0 -30px 0;"> 589 </div> 590 } 591 </div> 592 593 } 594 595 596 @if(@GetInteger("DwPageID") == 4218 || @GetInteger("DwPageID") == 4271 || @GetInteger("DwPageID") == 8376 ){ 597 <style> 598 .ad728-wrapper { 599 margin: 40px auto 0px; 600 } 601 </style> 602 603 string logoSubheader = GetString("Item.Area.Logo_Companii"); 604 string culoareFundal = !string.IsNullOrEmpty(GetString("Item.Area.CuloareFundalCompanii")) ? "background:" + GetString("Item.Area.CuloareFundalCompanii") + ";" : ""; 605 string culoareFont = !string.IsNullOrEmpty(GetString("Item.Area.CuloareFontCompanii")) ? "color:" + GetString("Item.Area.CuloareFontCompanii") + ";" : ""; 606 string textSubheader = GetString("Item.Area.TextSubheaderCompanii"); 607 string dimensiuneFont = !string.IsNullOrEmpty(GetString("Item.Area.DimensiuneFontCompanii")) ? "font-size:" + GetString("Item.Area.DimensiuneFontCompanii") + ";" : ""; 608 609 if(@GetInteger("DwPageID") == 4218) { 610 <!-- Begin Main Mobile Banner --> 611 <div class="hidden-md hidden-lg hidden-xl mag-content clearfix " style="margin-top: 30px;"> 612 <div class="row"> 613 <div class="col-md-12"> 614 <div class="ad728-wrapper-mobile-main" style="min-height: 115px;display: flex;margin-top: 2em;justify-content: center;"> 615 <ins data-revive-zoneid="22" data-revive-id="30be11c85ce356e14970630466da228f"></ins> 616 <script async="" src="//adserver.dotfusion.ro/revive/www/delivery/asyncjs.php"></script> 617 </div> 618 </div> 619 </div> 620 </div> 621 <!-- End Main Mobile Banner --> 622 } 623 624 625 <div class="subheader row" style="@culoareFundal"> 626 <div class="col-xs-4"> 627 <img src="@logoSubheader"> 628 </div> 629 <div class="col-xs-8"> 630 <h4 style="@culoareFont; @dimensiuneFont">@textSubheader</h4> 631 </div> 632 </div> 633 634 } 635 636 637 @if(@GetInteger("DwPageID") != 4271) 638 { 639 <!-- Begin Sticky Mobile Banner --> 640 641 <div class="row sticky-mobile-container hidden hidden-md hidden-lg hidden-xl"> 642 <div class="col-md-12"> 643 <div class="ad728-wrapper-mobile" style="min-height:145px;"> 644 <ins data-revive-zoneid="23" data-revive-id="30be11c85ce356e14970630466da228f"></ins> 645 </div> 646 </div> 647 </div> 648 <!-- End Sticky Mobile Banner --> 649 } 650 651 @if(GetString("DwPageID") == "4228" || GetString("DwPageID") == "4218" || GetString("DwPageID") == "8376"){ 652 653 654 } else { 655 <!-- Begin Main Mobile Banner --> 656 <div class="hidden-md hidden-lg hidden-xl mag-content clearfix " style="margin-top: 30px;"> 657 <div class="row"> 658 <div class="col-md-12"> 659 <div class="ad728-wrapper-mobile-main" style="min-height: 115px;display: flex;margin-top: 2em;justify-content: center;"> 660 <ins data-revive-zoneid="22" data-revive-id="30be11c85ce356e14970630466da228f"></ins> 661 <script async="" src="//adserver.dotfusion.ro/revive/www/delivery/asyncjs.php"></script> 662 </div> 663 </div> 664 </div> 665 </div> 666 <!-- End Main Mobile Banner --> 667 668 669 <!-- Begin Main Banner --> 670 <div class="hidden-xs hidden-sm mag-content clearfix " style="margin-bottom: 30px; padding-left: 0px; padding-right: 0px;"> 671 <div class="row"> 672 <div class="col-md-12"> 673 674 <div class="ad728-wrapper" style="min-height:145px;"> 675 <ins data-revive-zoneid="1" data-revive-id="30be11c85ce356e14970630466da228f"></ins> 676 <script async="" src="//adserver.dotfusion.ro/revive/www/delivery/asyncjs.php"></script> 677 </div> 678 679 </div> 680 </div> 681 </div> 682 <!-- End Main Banner --> 683 684 } 685 686 @{ 687 string backgroundClassShop = (GetString("DwPageID") == "4228") ? "shop-background" : " "; 688 string backgroundClassCompanii = (GetString("DwPageID") == "4218" || GetString("DwPageID") == "8376" ) ? "companii-background" : " "; 689 string backgroundClassIndustry = (GetString("DwPageID") == "4271") ? "industry-background" : " "; 690 691 } 692 693 <div class="main-content mag-content clearfix @backgroundClassShop @backgroundClassCompanii @backgroundClassIndustry"> 694 695 @inherits RazorTemplateBase<RazorTemplateModel<Template>> 696 @using Dynamicweb.Rendering 697 @using Dynamicweb.Content 698 @using BrandFusion.Dw.eCommerce 699 @using Dynamicweb.Ecommerce.Products 700 701 @GetValue("Title(Article page)") 702 @GetValue("Description(Pagina de articol)") 703 @functions { 704 705 //public class Session 706 //{ 707 //public string Id; 708 //public string Title; 709 //public DateTime StartTime; 710 //public DateTime EndTime; 711 //public bool IsBreak; 712 //public string Description; 713 //public string Type; 714 //public string Url; 715 //public string AllowedGroups; 716 //public string Location; 717 //public string Level; 718 //public int NumberOfSeats; 719 //public int NumberOfReservedSeats; 720 //public List<Speaker> 721 //Speakers; 722 //public List<Speaker> 723 //Moderatori; 724 //public LoopItem Item; 725 //} 726 727 public class Autor 728 { 729 public string Id; 730 public string Name; 731 public string Link; 732 public string Description; 733 public string Image; 734 public string Persoana; 735 } 736 737 public class Companie 738 { 739 public string Id; 740 public string Name; 741 public string Link; 742 public string Logo; 743 } 744 745 public class RelevantaGeografica 746 { 747 public string Id; 748 public string Name; 749 public string Link; 750 } 751 752 public class Tag 753 { 754 public string Id; 755 public string Name; 756 public string Link; 757 } 758 759 public class Sectiune 760 { 761 public string Id; 762 public string Name; 763 public string Link; 764 } 765 766 public class Editie 767 { 768 public string Id; 769 public string Name; 770 public string Link; 771 } 772 773 774 775 public static string StripHtmlTagByCharArray(string htmlString) 776 { 777 char[] array = new char[htmlString.Length]; 778 int arrayIndex = 0; 779 bool inside = false; 780 781 for (int i = 0; i < htmlString.Length; i++) 782 { 783 char let = htmlString[i]; 784 if (let == '<') 785 { 786 inside = true; 787 continue; 788 } 789 if (let == '>') 790 { 791 inside = false; 792 continue; 793 } 794 if (!inside) 795 { 796 array[arrayIndex] = let; 797 arrayIndex++; 798 } 799 } 800 return new string(array, 0, arrayIndex); 801 } 802 803 804 private List<Autor> GetAutori(string autoriList) 805 { 806 var autori = new List<Autor> (); 807 808 if(!string.IsNullOrEmpty(autoriList)){ 809 string[] itemIdList = autoriList.Split(','); 810 foreach (string itemId in itemIdList) 811 { 812 var autor = Dynamicweb.Content.Items.Item.GetItemById("Taxonomie_Autori", itemId); 813 if (autor != null) 814 { 815 autori.Add(new Autor 816 { 817 Id = itemId, 818 Name = autor["Name"] != null ? autor["Name"].ToString() : "", 819 Image = autor["Image"] != null ? autor["Image"].ToString() : "", 820 Description = autor["Description"] != null ? autor["Description"].ToString() : "", 821 Link = "/Default.aspx?ID=4250&autor="+itemId, 822 Persoana = autor["Persoana_Companie"] != null ? autor["Persoana_Companie"].ToString() : "" 823 }); 824 } 825 } 826 } 827 828 return autori; 829 } 830 831 private List<RelevantaGeografica> GetRelevanta(string relevantaList) 832 { 833 var relevante = new List<RelevantaGeografica> (); 834 835 if(!string.IsNullOrEmpty(relevantaList)){ 836 string[] itemIdList = relevantaList.Split(','); 837 foreach (string itemId in itemIdList) 838 { 839 var relevanta = Dynamicweb.Content.Items.Item.GetItemById("RelevantaGeografica", itemId); 840 if (relevanta != null) 841 { 842 relevante.Add(new RelevantaGeografica 843 { 844 Id = itemId, 845 Name = relevanta["Name"] != null ? relevanta["Name"].ToString() : "", 846 Link = "" 847 }); 848 } 849 } 850 } 851 852 return relevante; 853 } 854 855 856 private List<Sectiune> GetSectiuni(string sectiuniList) 857 { 858 var sectiuni = new List<Sectiune> (); 859 860 return sectiuni; 861 862 } 863 864 private List<Tag> GetTaguri(string taguriList) 865 { 866 var taguri = new List<Tag>(); 867 if(!string.IsNullOrEmpty(taguriList)){ 868 string[] itemIdList = taguriList.Split(','); 869 foreach (string itemId in itemIdList) 870 { 871 var tag = Dynamicweb.Content.Items.Item.GetItemById("Taxonomie_Taguri", itemId); 872 if (tag != null) 873 { 874 taguri.Add(new Tag 875 { 876 Id = itemId, 877 Name = tag["Name"] != null ? tag["Name"].ToString() : "", 878 Link = "Default.aspx?ID=4252&tag="+itemId 879 }); 880 } 881 } 882 } 883 return taguri; 884 885 } 886 887 888 private List<Companie> GetCompany(string companyList) 889 { 890 var companies = new List<Companie> (); 891 if(!string.IsNullOrEmpty(companyList)){ 892 string[] itemIdList = companyList.Split(','); 893 foreach (string itemId in itemIdList) 894 { 895 var companie = Dynamicweb.Content.Items.Item.GetItemById("Taxonomie_Companii", itemId); 896 if (companie != null) 897 { 898 companies.Add(new Companie 899 { 900 Id = itemId, 901 Name = companie["Name"] != null ? companie["Name"].ToString() : "", 902 Logo = companie["Logo"] != null ? companie["Logo"].ToString() : "", 903 Link = "/Default.aspx?ID=4271&companie="+itemId 904 }); 905 } 906 } 907 } 908 return companies; 909 910 } 911 912 913 914 915 916 } 917 918 @using Dna.ImageProcessor; 919 @using Dynamicweb.Frontend.Devices; 920 921 @{ 922 string designName = GetString("Template:DesignBaseUrl").Replace("/Files/Templates/Designs/", "").Replace("/", ""); 923 } 924 925 @functions{ 926 /// <summary> 927 /// Returns the URL for the given ImageSettings. 928 /// </summary> 929 /// <param name="settings">The ImageSettings used to generate the URL. 930 private static string GetImage(ImageSettings settings) 931 { 932 return settings.ToUrl(); 933 } 934 935 /// <summary> 936 /// Returns the URL for the given ImageSettings. 937 /// </summary> 938 /// <param name="url">The URL to the image. 939 /// <param name="settings">The ImageSettings used to generate the URL. 940 public static string GetImage(string url, ImageSettings settings = null) 941 { 942 if (settings == null) 943 { 944 settings = new ImageSettings(); 945 } 946 settings.ImageUrl = url; 947 return GetImage(settings); 948 } 949 950 /// <summary> 951 /// Returns the URL for the given ImageSettings. 952 /// </summary> 953 /// <param name="url">The URL to the image. 954 /// <param name="width">The requested width of the image. 955 /// <param name="height">The requested height of the image. 956 /// <param name="settings">The ImageSettings used to generate the URL. 957 public static string GetImage(string url, int width, int height, ImageSettings settings = null) 958 { 959 if (settings == null) 960 { 961 settings = new ImageSettings(); 962 } 963 settings.Width = width; 964 settings.Height = height; 965 return GetImage(url, settings); 966 } 967 968 /// <summary> 969 /// Returns the URL for the given ImageSettings. 970 /// </summary> 971 /// <param name="url">The URL to the image. 972 /// <param name="width">The requested width of the image. 973 /// <param name="height">The requested height of the image. 974 /// <param name="widthTablet">The requested width of the image for a tablet device. 975 /// <param name="heightTablet">The requested height of the image for a tablet device. 976 /// <param name="widthMobile">The requested width of the image for a mobile device. 977 /// <param name="heightMobile">The requested height of the image for a mobile device. 978 /// <param name="settings">The ImageSettings used to generate the URL. 979 public static string GetImage(string url, int width, int height, int widthTablet, int heightTablet, int widthMobile, int heightMobile, ImageSettings settings = null) 980 { 981 var currentDevice = Dynamicweb.Frontend.PageView.Current().Device; 982 983 switch (currentDevice) 984 { 985 case DeviceType.Tablet: 986 width = widthTablet != 0 ? widthTablet : width; 987 height = heightTablet != 0 ? heightTablet : height; 988 break; 989 case DeviceType.Mobile: 990 width = widthMobile != 0 ? widthMobile : width; 991 height = heightMobile != 0 ? heightMobile : height; 992 break; 993 // default: Skip; just use existing width and height 994 } 995 if (settings == null) 996 { 997 settings = new ImageSettings(); 998 } 999 settings.ImageUrl = url; 1000 settings.Width = width; 1001 settings.Height = height; 1002 return GetImage(settings); 1003 } 1004 } 1005 @helper RenderPlaceholderImageOnLeft() 1006 { 1007 <div class="row"> 1008 <div class="col-md-4 col-xs-12"> 1009 <div class="pre-render-element pre-render-element--md"></div> 1010 </div> 1011 <div class="col-md-8 col-xs-12"> 1012 <div class="pre-render-element pre-render-element--title"></div> 1013 <div class="pre-render-element pre-render-element--title"></div> 1014 <div class="pre-render-element pre-render-element--text"></div> 1015 <div class="pre-render-element pre-render-element--text"></div> 1016 <div class="pre-render-element pre-render-element--text"></div> 1017 </div> 1018 </div> 1019 1020 } 1021 @helper RenderPlaceholderImageOnly(string imageSize) 1022 { 1023 <div class="pre-render-element @imageSize"></div> 1024 } 1025 1026 @helper RenderPlaceholderImageTop(string imageSize) 1027 { 1028 <div class="pre-render-element @imageSize"></div> 1029 <div class="pre-render-element pre-render-element--title"></div> 1030 <div class="pre-render-element pre-render-element--text"></div> 1031 <div class="pre-render-element pre-render-element--text"></div> 1032 <div class="pre-render-element pre-render-element--text"></div> 1033 } 1034 @helper RenderPlaceholderImageTopNoText(string imageSize) 1035 { 1036 <div class="pre-render-element @imageSize"></div> 1037 <div class="pre-render-element pre-render-element--title"></div> 1038 1039 } 1040 @helper RenderPlaceholderNoImage() 1041 { 1042 <div class="pre-render-element pre-render-element--title"></div> 1043 <div class="pre-render-element pre-render-element--title"></div> 1044 <div class="pre-render-element pre-render-element--text"></div> 1045 <div class="pre-render-element pre-render-element--text"></div> 1046 <div class="pre-render-element pre-render-element--text"></div> 1047 } 1048 1049 @helper RenderPlaceholderCaruselText() 1050 { 1051 <div class="item placeholder"> 1052 <div class="pre-render-element pre-render-element--md"></div> 1053 <div class="pre-render-element pre-render-element--title"></div> 1054 <div class="pre-render-element pre-render-element--text"></div> 1055 <div class="pre-render-element pre-render-element--text"></div> 1056 </div> 1057 } 1058 @helper RenderPlaceholderCaruselImage() 1059 { 1060 <div class="item"> 1061 <div class="pre-render-element pre-render-element--md"></div> 1062 </div> 1063 } 1064 @using System.Web 1065 @{ 1066 string articleImage = GetString("Item.ImaginePrincipala.Value"); 1067 string articleAutori = GetString("Item.Autori"); 1068 string articleCompanyDe = GetString("Item.De_Companie"); 1069 int articleSectiuneID = GetInteger("Item.SectiuneParinteId"); 1070 string articleID = GetString("Item.Id.Value"); 1071 bool AdserverBanner = GetBoolean("Item.Adserver_Banner.Value"); 1072 string linkBanner = GetString("Item.Link_Banner"); 1073 string imagineBanner = GetString("Item.Imagine_Banner"); 1074 string linkAutor = ""; 1075 string nrEditie= GetString("Item.Editie.Value"); 1076 1077 var pageId = GetPageIdByNavigationTag("ArticlesFeed").ToString(); 1078 var autorPageID = GetPageIdByNavigationTag("AutoriFeed").ToString(); 1079 var autorPage = GetPageIdByNavigationTag("PaginaAutori").ToString(); 1080 var pageService = new Dynamicweb.Content.PageService(); 1081 var articlesID = pageService.GetPageForItem("Dw_Page", articleID).ID; 1082 var currentPageId = GetInteger("DWPageID"); 1083 var currentPage = GetGlobalValue("Global:Page.ID").ToString(); 1084 } 1085 1086 1087 @SnippetStart("OGMeta") 1088 @{ 1089 var httpdomain = "http://" + GetGlobalValue("Global:Request.Host"); 1090 var og_item_image = Uri.EscapeUriString(logo); 1091 var og_page_image = Uri.EscapeUriString(articleImage); 1092 var ogimage = !string.IsNullOrWhiteSpace(og_page_image) ? string.Format("{0}{1}", httpdomain, og_page_image) : string.Format("{0}{1}", httpdomain, og_item_image); //httpdomain is declared in Master.cshtml 1093 } 1094 @if (!string.IsNullOrWhiteSpace(og_item_image) || !string.IsNullOrWhiteSpace(og_page_image)) 1095 { 1096 <meta property="og:image" content="@ogimage"> 1097 <meta property="og:image:width" content="600"> 1098 <meta property="og:image:height" content="600"> 1099 } 1100 @SnippetEnd("OGMeta") 1101 <div class="row blog-content" data-stickyparent=""> 1102 <div class="col-xs-12 col-sm-12 col-md-8 col-lg-8 "> 1103 <article class="post-wrapper clearfix"> 1104 <div class="first-container-article" data-template="ArticleBodyTemplate" data-json-feed="/Default.aspx?ID=@pageId&PageID=@articlesID&redirect=false"> 1105 @RenderPlaceholderImageTop("pre-render-element--xl") 1106 </div> 1107 </article><!-- .post-wrapper --> 1108 1109 @SnippetStart("Tags") 1110 <div class="sidebar-handlebars-wrapper" data-template="TagsTemplate" data-json-feed="/Default.aspx?ID=@pageId&PageID=@articlesID&redirect=false"> 1111 </div> 1112 @SnippetEnd("Tags") 1113 <div class="row"> 1114 @GetValue("DwNavigation(blogposts)") 1115 </div> 1116 <div class="related-posts clearfix"> 1117 <!-- Mid ad --> 1118 @if(AdserverBanner == true){ 1119 1120 <div class="row mb-20"> 1121 <div class="mag-content clearfix"> 1122 <div class="row"> 1123 <div class="col-md-12"> 1124 <div class="ad666-wrapper"> 1125 <ins data-revive-zoneid="1" data-revive-id="30be11c85ce356e14970630466da228f"></ins> 1126 <script async="" src="//adserver.dotfusion.ro/revive/www/delivery/asyncjs.php"></script> 1127 </div> 1128 </div> 1129 </div> 1130 </div> 1131 </div> 1132 }else if( !string.IsNullOrEmpty(linkBanner) && !string.IsNullOrEmpty(imagineBanner) ){ 1133 1134 <div class="row mb-20"> 1135 <div class="mag-content clearfix"> 1136 <div class="row"> 1137 <div class="col-md-12"> 1138 <div class="ad666-wrapper"> 1139 <a href="@linkBanner"> 1140 <img src="@imagineBanner"> 1141 1142 </a> 1143 </div> 1144 </div> 1145 </div> 1146 </div> 1147 </div> 1148 1149 } 1150 <!-- End Mid ad --> 1151 1152 <div class="row"> 1153 1154 <div class="col-md-6"> 1155 <h3 class="block-title"><span>@Translate("De acelasi autor","De acelasi autor")</span></h3> 1156 <div class="row author-template" data-template="SectionTemplate" data-json-feed="/Default.aspx?ID=@pageId&PageSize=3&SectiuneParinte=@articleSectiuneID&Excluded=@currentPageId&redirect=false"> 1157 <div style="margin-right: 5px"> 1158 @RenderPlaceholderImageTop("pre-render-element--md") 1159 @RenderPlaceholderImageTop("pre-render-element--md") 1160 </div> 1161 </div> 1162 </div> 1163 1164 <div class="col-md-6"> 1165 <h3 class="block-title"><span>@Translate("Din aceeasi sectiune","Din aceeasi sectiune")</span></h3> 1166 <div class="row section-template" data-template="SectionTemplate" data-json-feed="/Default.aspx?ID=@pageId&PageSize=3&redirect=false&SectiuneParinte=@articleSectiuneID&Excluded=@currentPageId,"> 1167 <div style="margin-left: 5px"> 1168 @RenderPlaceholderImageTop("pre-render-element--md") 1169 @RenderPlaceholderImageTop("pre-render-element--md") 1170 </div> 1171 </div> 1172 </div> 1173 </div> 1174 <div class="row row-butoane-articol"> 1175 <div class="col-xs-12 col-sm-6 "><a href="/revista" class="btn btn-primary btn-background">@Translate("VeziSectiunileRevisteiT&T", "Sectiunile revistei T&T")</a></div> 1176 <div class="col-xs-12 col-sm-6 "><a href="/revista/web-exclusive" class="btn btn-primary btn-background">@Translate("VeziArticoleWebExclusive", "Articole web exclusive")</a></div> 1177 </div> 1178 1179 @{ 1180 int counter = 0; 1181 var Produse = GetLoop("Item.Produse.Value"); 1182 var productPage = GetPageIdByNavigationTag("catalog"); 1183 1184 if (Produse.Any()) 1185 { 1186 <h3 class="block-title"><span>Produse</span></h3> 1187 <div class="row"> 1188 <div class="col-md-12"> 1189 <div class="owl-carousel owl-theme"> 1190 @foreach (LoopItem i in Produse) 1191 { 1192 string mainImageRaw = i.GetString("Ecom:Product.ImageLarge.Default.Clean"); 1193 string mainImage = !string.IsNullOrEmpty(mainImageRaw) ? GetImage(mainImageRaw, 160, 120) + "&bgcolor=white" : "/Files/Images/NoImage/160x120.png"; 1194 string mainTitle = i.GetString("Ecom:Product.Name"); 1195 string mainURL = i.GetString("Ecom:Product.Link.Clean"); 1196 1197 <div class="item"> 1198 @if (!string.IsNullOrEmpty(mainImage)) 1199 { 1200 <a href="@mainURL"><img src="@mainImage" width="160" height="120" alt=""></a> 1201 } 1202 else 1203 { 1204 <a href="@mainURL"><img src="/Files/Images/NoImage/160x120.png" height="120" alt=""></a> 1205 } 1206 <h4><a href="@mainURL">@mainTitle</a></h4> 1207 </div> 1208 1209 } 1210 </div> 1211 </div> 1212 </div> 1213 } 1214 else { 1215 var idCompanie = (GetString("Item.De_Companie") ?? "").Split(new[] { ',', ';' }, StringSplitOptions.RemoveEmptyEntries); 1216 Dynamicweb.Content.Items.Item companie = null; 1217 if (idCompanie.Any()){ 1218 companie = Dynamicweb.Content.Items.Item.GetItemById("Taxonomie_Companii", idCompanie.First()); 1219 string representativeProductsArray = companie != null && companie["RepresentativeProducts"] != null ? companie["RepresentativeProducts"].ToString() : ""; 1220 if(companie != null && representativeProductsArray != ""){ 1221 var ProduseReprezentative = ProductFacade.GetItemTypeProducts(representativeProductsArray); 1222 <!--Standard start --> 1223 if(ProduseReprezentative.Any()){ 1224 <div class="row space-10"> 1225 1226 <div class="col-xs-12"><h3 class="block-title"><span class="primary-color-border-bottom">Produse</span></h3></div> 1227 1228 <div class="col-xs-12"> 1229 <div class="carousel-produse"> 1230 <div class="owl-carousel owl-theme owl-redactori"> 1231 @foreach (var produsReprezentativ in ProduseReprezentative) { 1232 string mainImage = !string.IsNullOrEmpty(produsReprezentativ.ImageLarge) ? GetImage(produsReprezentativ.ImageLarge, 160, 120) + "&bgcolor=white" : "/Files/Images/NoImage/160x120.png"; 1233 var produsReprezentativManufacturer = produsReprezentativ.Manufacturer; 1234 if (counter <= 8 ) { 1235 <div class="item"> 1236 <figure class="image-overlay proportie-1 text-center"> 1237 <a href="/Default.aspx?ID=@productPage&ProductID=@(produsReprezentativ.Id)"> 1238 @if(!String.IsNullOrEmpty(@produsReprezentativ.ImageLarge)) 1239 { 1240 <img src="/Files@(mainImage)" alt="@produsReprezentativ.Name" width="160" height="120" class=""> 1241 } else { 1242 <img src="/Files/Images/NoImage/160x120.png" alt="@produsReprezentativ.Name" class="img-responsive"> 1243 } 1244 1245 </a> 1246 </figure> 1247 <header class="featured-header"> 1248 <h2><a href="/Default.aspx?ID=@productPage&ProductID=@(produsReprezentativ.Id)"> @produsReprezentativ.Name @counter </a></h2> 1249 @if(produsReprezentativManufacturer != null){ 1250 <p class="manufacturer">Producator: <span>@produsReprezentativ.Manufacturer.Name</span></p> 1251 } 1252 </header> 1253 </div> 1254 } 1255 counter++; 1256 } 1257 1258 </div> 1259 </div> 1260 </div> 1261 1262 1263 </div> 1264 } 1265 } 1266 1267 } 1268 <!--End of idCompanie--> 1269 } <!--End of else--> 1270 } 1271 1272 </div><!-- .related-post --> 1273 <!-- Comentarii --> 1274 <div class="comment_block"> 1275 <div class="col-xs-12"> 1276 <h4>Comentarii</h4> 1277 <div class="comment_block handlebars-wrapper" data-template="CommentsTemplate" data-json-feed="/Default.aspx?ID=25352&PAGEID=@currentPage&redirect=false"> <!--currentPage--> 1278 </div> 1279 </div> 1280 @if (Dynamicweb.Security.UserManagement.User.IsExtranetUserLoggedIn()){ 1281 <button class="btn btn-primary" id="AdaugaComentariu">Adauga Comentariu</button> 1282 } 1283 else 1284 { 1285 <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#loginModal"> 1286 Adauga Comentariu 1287 </button> 1288 } 1289 <div id="comentariuContainer" class="hidden"> 1290 <div class="create_new_comment"> 1291 @RenderParagraphContent(3037) 1292 </div> 1293 </div> 1294 </div> 1295 <!-- Login Modal --> 1296 <div class="modal fade" id="loginModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true"> 1297 <div class="modal-dialog" role="document"> 1298 <div class="modal-content-login"> 1299 <div class="modal-header"> 1300 <h5 class="modal-title" id="exampleModalLabel">Autentificare</h5> 1301 <button type="button" class="close" data-dismiss="modal" aria-label="Close"> 1302 <span aria-hidden="true">&times;</span> 1303 </button> 1304 </div> 1305 <div class="modal-body"> 1306 @RenderParagraphContent(3042) 1307 </div> 1308 </div> 1309 </div> 1310 </div> 1311 1312 1313 @if(@GetInteger("DwAreaID") == 3){ 1314 <div class="row row-butoane-articol"> 1315 <div class="col-xs-12 col-sm-6 "><a href="/ibuysmart" class="btn btn-primary btn-background">Go to I Buy Smart</a></div> 1316 <div class="col-xs-12 col-sm-6 "><a href="/Default.aspx?ID=4218" class="btn btn-primary btn-background">Go to Business Directory</a></div> 1317 <div class="col-xs-12 col-sm-6 "><a href="@linkAutor" class="btn btn-primary btn-background">See other articles from the same company</a></div> 1318 <div class="col-xs-12 col-sm-6 "><a href="/Default.aspx?ID=5676" class="btn btn-primary btn-background">Go to the T&T</a></div> 1319 <div class="col-xs-12 col-sm-6 "><a href="/Default.aspx?ID=6943" class="btn btn-primary btn-background">Go to the Web Exclusive Section</a></div> 1320 @if(!string.IsNullOrEmpty(GetString("Item.De_Companie"))){ 1321 <div class="col-xs-12 col-sm-6 "><a href='companie?companyID=@(GetString("Item.De_Companie"))' class="btn btn-primary btn-background">Go to Company page</a></div> 1322 } 1323 </div> 1324 1325 }else{ 1326 <div class="row row-butoane-articol"> 1327 <div class="col-xs-12 col-sm-4"><a href="/ibuysmart" class="btn btn-primary btn-background">@Translate("VeziCatalogulDeProduse", "Catalogul de produse")</a></div> 1328 <div class="col-xs-12 col-sm-4"><a href="/Default.aspx?ID=4218" class="btn btn-primary btn-background">@Translate("VeziGhidulCompaniilorDinIndustrie", "Ghidul companiilor din industrie")</a></div> 1329 @if(!string.IsNullOrEmpty(GetString("Item.De_Companie"))){ 1330 <div class="col-xs-12 col-sm-4"><a href='companie?companyID=@(GetString("Item.De_Companie"))' class="btn btn-primary btn-background">@Translate("VeziPaginaCompanieiAutoare", "Pagina companiei autoare")</a></div> 1331 } 1332 </div> 1333 } 1334 </div><!-- End Left big column --> 1335 1336 <div class=" col-xs-12 col-sm-12 col-md-4 col-lg-4 sticky "> 1337 <aside class="sidebar clearfix sidebar-container" style="margin-top: 34px;"> 1338 1339 <div class="widget adwidget "> 1340 <ins data-revive-zoneid="4" data-revive-id="30be11c85ce356e14970630466da228f"></ins> 1341 </div> 1342 1343 @{ 1344 var eventsPageID = GetPageIdByNavigationTag("EventsFeed"); 1345 } 1346 <div class="widget evenimentewidget" style="margin-bottom:10px;"> 1347 <h3 class="block-title"> 1348 <span><a href="Default.aspx?ID=4258">@Translate("Evenimente","Evenimente") </a></span> 1349 </h3> 1350 1351 <div id="myCarousel" class="carousel slide" data-ride="carousel"> 1352 <div class="carousel-inner sidebar-handlebars-wrapper" role="listbox" data-template="WidgetEvenimenteTemplate" data-json-feed="/Default.aspx?ID=@eventsPageID"> 1353 @*Handlebars goes here*@ 1354 @RenderPlaceholderImageTop("pre-render-element--md") 1355 </div> 1356 1357 <a class="carousel-control" href="#myCarousel" role="button" data-slide="prev" style="color: #ffa700;"> 1358 <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span> 1359 <span class="sr-only">Previous</span> 1360 </a> 1361 <a class="carousel-control" href="#myCarousel" role="button" data-slide="next" style="right: 0; left: auto; color: #ffa700;"> 1362 <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span> 1363 <span class="sr-only">Next</span> 1364 </a> 1365 </div> 1366 </div> 1367 1368 <script id="WidgetEvenimenteTemplate" type="text/x-handlebars-template"> 1369 {{#each EvenimenteContainer}} 1370 <div class="item"> 1371 <figure class="image-overlay"> 1372 <img src="/Admin/Public/GetImage.ashx?Image={{Afis}}&AlternativeImage=/Files/Images/Articole/download (1).png&Crop=5&Format=jpg&Width=350&Height=230" alt="{{title}}" class="img-responsive"> 1373 </figure> 1374 <span>{{title}}</span> 1375 <div class="description">{{{Descriere}}}</div> 1376 @if(GetInteger("DwAreaID") == 1){ 1377 <a href="{{link}}" style="z-index: 200;" target="_blank">Mai mult</a> 1378 }else{ 1379 <a href="{{link}}" style="z-index: 200;" target="_blank">Read More</a> 1380 } 1381 </div> 1382 {{/each}} 1383 </script> 1384 1385 1386 1387 1388 @{ 1389 var urlEditorial = "/Default.aspx?ID=" + GetPageIdByNavigationTag("ArticoleEditorial"); 1390 var feedPageID = GetPageIdByNavigationTag("ArticlesFeed"); 1391 } 1392 <div class="widget editorialwidget"> 1393 <div class="content sidebar-handlebars-wrapper" role="listbox" data-template="WidgetEditorialTemplate" data-json-feed="/Default.aspx?ID=@feedPageID&type=Editorial&PageSize=1&redirect=false"> 1394 @RenderPlaceholderNoImage() 1395 </div> 1396 </div> 1397 1398 <script id="WidgetEditorialTemplate" type="text/x-handlebars-template"> 1399 {{#ArticlesContainer}} 1400 {{#each Article}} 1401 <h3 class="block-title"><span><a href="@urlEditorial">@Translate("Editorial","Editorial")</a></span></h3> 1402 <article class="widget-post clearfix"> 1403 <h3><a href='/Default.aspx?ID={{pagePageID}}'>{{itemTitlu}}</a></h3> 1404 {{{itemSumar}}} 1405 <p class="text-right"><a href="/Default.aspx?ID={{pagePageID}}" id="editorialLink">@Translate("citeste","Mai mult")</a></p> 1406 </article> 1407 {{/each}} 1408 {{/ArticlesContainer}} 1409 1410 </script> 1411 <div class="widget adwidget" style=" margin-top: 20px; margin-bottom:25px;"> 1412 <ins data-revive-zoneid="5" data-revive-id="30be11c85ce356e14970630466da228f"></ins> 1413 </div> 1414 1415 1416 <div class="widget facebookwidget" style="margin-bottom:20px;"> 1417 <h3 class="block-title"><span> T&amp;T @@ Facebook</span></h3> 1418 <div class="content"> 1419 <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"> 1420 <div class="fb-xfbml-parse-ignore"> 1421 <blockquote cite="https://www.facebook.com/tehnicasitehnologie/"> 1422 <a href="https://www.facebook.com/tehnicasitehnologie/">T&amp;T - Tehnica si Tehnologie</a> 1423 </blockquote> 1424 </div> 1425 </div> 1426 </div> 1427 <div id="fb-root"></div> 1428 <script> 1429 (function(d, s, id) { 1430 var js, fjs = d.getElementsByTagName(s)[0]; 1431 if (d.getElementById(id)) return; 1432 js = d.createElement(s); js.id = id; 1433 js.async= "async"; 1434 js.src = "//connect.facebook.net/ro_RO/sdk.js#xfbml=1&version=v2.5"; 1435 fjs.parentNode.insertBefore(js, fjs); 1436 }(document, 'script', 'facebook-jssdk')); 1437 </script> 1438 1439 </div> 1440 1441 1442 <div class="widget twitterwidget" style="margin-bottom:0px;"> 1443 <h3 class="block-title"><span> T&amp;T @@ Twitter</span></h3> 1444 <div class="content"> 1445 <a class="twitter-timeline" data-width="365" data-height="108" data-theme="light" href="https://twitter.com/TTehnologie">Tweets by TTehnologie</a> 1446 </div> 1447 </div> 1448 1449 <div class="widget multimediawidget" style="margin-bottom:20px;"> 1450 @RenderItemList(new { 1451 ItemType = "Multimedia", 1452 ListSourceType = "Area", 1453 ListSourceArea = 1, 1454 ItemFieldsList = "*", 1455 ListTemplate = "/ItemPublisher/List/Sidebar-Multimedia.cshtml", 1456 ListPageSize = 10, 1457 ListOrderBy = "", 1458 ListOrderByDirection = "", 1459 Filter = "" 1460 }) 1461 </div> 1462 1463 @RenderSnippet("Tags") 1464 1465 1466 <div class="widget adwidget"> 1467 <div class="row" style="margin-bottom:50px;"> 1468 <div class="col-xs-6"> 1469 <ins data-revive-zoneid="13" data-revive-id="30be11c85ce356e14970630466da228f"></ins> 1470 <script async="" src="//adserver.dotfusion.ro/revive/www/delivery/asyncjs.php"></script> 1471 </div> 1472 <div class="col-xs-6"> 1473 <ins data-revive-zoneid="17" data-revive-id="30be11c85ce356e14970630466da228f"></ins> 1474 <script async="" src="//adserver.dotfusion.ro/revive/www/delivery/asyncjs.php"></script> 1475 </div> 1476 </div> 1477 <div class="row"> 1478 <div class="col-xs-6"> 1479 1480 <ins data-revive-zoneid="18" data-revive-id="30be11c85ce356e14970630466da228f"></ins> 1481 <script async="" src="//adserver.dotfusion.ro/revive/www/delivery/asyncjs.php"></script> 1482 </div> 1483 <div class="col-xs-6"> 1484 1485 <ins data-revive-zoneid="19" data-revive-id="30be11c85ce356e14970630466da228f"></ins> 1486 <script async="" src="//adserver.dotfusion.ro/revive/www/delivery/asyncjs.php"></script> 1487 </div> 1488 </div> 1489 </div> 1490 1491 @if(@GetPageIdByNavigationTag("Revista") != @GetInteger("DwPageID")) { 1492 1493 @RenderParagraphContent(164) 1494 } 1495 <div class="widget adwidget "> 1496 <ins data-revive-zoneid="6" data-revive-id="30be11c85ce356e14970630466da228f"></ins> 1497 </div> 1498 @{ 1499 var feedCititePageID = GetPageIdByNavigationTag("ArticlesCititeFeed"); 1500 DateTime currentDate = DateTime.Now; 1501 DateTime ago = currentDate.AddMonths(-4); 1502 var agoString = ago.ToString("yyyy.MM.dd"); 1503 var currentDateString = currentDate.ToString("yyyy.MM.dd"); 1504 } 1505 1506 <div class="widget tabwidget"> 1507 <ul class="nav nav-tabs" role="tablist" id="widget-tab"> 1508 <li role="presentation" class="active"><a href="#tab-recent" aria-controls="tab-recent" role="tab" data-toggle="tab">@Translate("recent","Cele mai noi")</a></li> 1509 <li role="presentation"><a href="#tab-popular" aria-controls="tab-popular" role="tab" data-toggle="tab">@Translate("popular","Cele mai citite")</a></li> 1510 </ul> 1511 <div class="tab-content"> 1512 <div role="tabpanel" class="tab-pane active sidebar-handlebars-wrapper" id="tab-recent" data-template="CeleMaiNoiTemplate" data-json-feed="/Default.aspx?ID=@feedPageID&PageSize=5&type=Articole&redirect=false"> 1513 @*Handlebars Template goes here*@ 1514 @RenderPlaceholderImageOnLeft() 1515 @RenderPlaceholderImageOnLeft() 1516 @RenderPlaceholderImageOnLeft() 1517 </div><!-- Recent Posts --> 1518 <div role="tabpanel" class="tab-pane sidebar-handlebars-wrapper" id="tab-popular" data-template="CeleMaiCititeTemplate" data-json-feed="/Default.aspx?ID=@feedCititePageID&PageSize=5&type=Articole&ArticleDate=@(agoString)&EndDate=@currentDateString&redirect=false"> 1519 $1$Handlebars Template goes here#1# 1520 </div><!-- Recent Posts --> 1521 </div> 1522 </div> 1523 1524 <script id="CeleMaiNoiTemplate" type="text/x-handlebars-template"> 1525 {{#ArticlesContainer}} 1526 {{#each Article}} 1527 <article class='widget-post clearfix'> 1528 <div class="simple-thumb"> 1529 <img src='/Admin/Public/GetImage.ashx?Image={{itemImaginePrincipala}}&AlternativeImage=/Files/Images/Articole/download (1).png&Crop=5&Format=jpg&Width=95&Height=90' alt="{{itemTitlu}}" /> 1530 </div> 1531 <header> 1532 <h3> 1533 <a href='/Default.aspx?ID={{pagePageID}}'>{{itemTitlu}}</a> 1534 </h3> 1535 </header> 1536 </article> 1537 {{/each}} 1538 {{/ArticlesContainer}} 1539 </script> 1540 1541 <script id="CeleMaiCititeTemplate" type="text/x-handlebars-template"> 1542 {{#ArticlesContainer}} 1543 {{#each Article}} 1544 <article class="widget-post clearfix"> 1545 <div class="simple-thumb"> 1546 <img src='/Admin/Public/GetImage.ashx?Image={{itemImaginePrincipala}}&AlternativeImage=/Files/Images/Articole/download (1).png&Crop=5&Format=jpg&Width=95&Height=80' alt="{{itemTitlu}}" /> 1547 </div> 1548 <header> 1549 <h3> 1550 <a href='/Default.aspx?ID={{pagePageID}}'>{{itemTitlu}}</a> 1551 </h3> 1552 <p class="simple-share"> 1553 <span><i class="fa fa-clock-o"></i>{{itemData}}</span> 1554 </p> 1555 </header> 1556 </article> 1557 {{/each}} 1558 {{/ArticlesContainer}} 1559 </script> 1560 1561 1562 <div class="widget adwidget "> 1563 <ins data-revive-zoneid="8" data-revive-id="30be11c85ce356e14970630466da228f"></ins> 1564 </div> 1565 1566 </aside> 1567 </div><!-- End last column --> 1568 1569 </div><!-- .blog-content --> 1570 1571 <!-- IBuy and IndustryDirectory--> 1572 <div class="row"> 1573 <div class="col-xs-12" style="margin: 30px 0;"> 1574 <div class="col-xs-12 col-sm-12 col-md-6 text-center"><a href='@Pageview.Area.Item["Link_Catalog"]' alt='@Pageview.Area.Item["Link_Catalog.Name"]' target="blank"><img src='@Pageview.Area.Item["Banner_Catalog"]' alt='@Pageview.Area.Item["Banner_Catalog.Name"]'></a></div> 1575 <div class="col-xs-12 col-sm-12 col-md-6 text-center"><a href='@Pageview.Area.Item["Link_Companii"]' alt='@Pageview.Area.Item["Link_Companii.Name"]' target="blank"><img src='@Pageview.Area.Item["Banner_Companii"]' alt='@Pageview.Area.Item["Banner_Companii.Name"]'></a></div> 1576 </div> 1577 </div> 1578 <!-- end IBuy and IndustryDirectory --> 1579 1580 <script id="ArticleBodyTemplate" type="text/x-handlebars-template"> 1581 {{#ArticlesContainer}} 1582 {{#each Article}} 1583 <header class="post-header"> 1584 <h1 class="post-title"> 1585 {{itemTitlu}} 1586 </h1><!-- .post-title --> 1587 <a href='/Default.aspx?ID={{itemSectiuneParinteId}}' class="category bg{{itemSectiuneParinteId}}"> 1588 {{itemSectiuneParinte}} 1589 </a> 1590 1591 <p class="simple-share"> 1592 <span class="m-0">@Translate("articolde","de") 1593 {{#foreach articleAutori}} 1594 {{#if $last}} 1595 <a href="{{Link}}">{{Name}}</a> 1596 {{else}} 1597 <a href="{{Link}}">{{Name}},</a> 1598 {{/if}} 1599 {{/foreach}} 1600 </span> 1601 <span><span class="article-date"><i class="fa fa-clock-o"></i> {{itemData}}</span></span> 1602 {{#if showItemVisits}} 1603 <span><i class="fa fa-eye"></i> {{itemVisits}} vizualizari</span> 1604 {{/if}} 1605 </p> 1606 {{#ifCond itemImaginePrincipala "!==" ""}} 1607 <figure class="image-overlay"> 1608 <img src="/Admin/Public/GetImage.ashx?Image={{itemImaginePrincipala}}&Crop=5&Format=jpg&Width=730&Height=355" alt="{{itemTitlu}}"> 1609 </figure> 1610 {{/ifCond}} 1611 </header><!-- .post-header --> 1612 <div class="post-content clearfix"> 1613 {{{itemContinut}}} 1614 <hr/> 1615 1616 <!-- Banner articol --> 1617 {{#ifCond pdf "!==" "" }} 1618 <div class="row"> 1619 <div class="col-xs-12 col-pdf"> 1620 <a href='{{pdf}}'>PDF</a> 1621 </div> 1622 </div> 1623 {{/ifCond}} 1624 <!-- End Banner Articol --> 1625 <div class="row text-center mb-20"> 1626 {{#if cereOferta}} 1627 @RenderCereOfertaButton("{{pagePageID}}") 1628 {{/if}} 1629 </div> 1630 </div><!-- .post-content --> 1631 <footer class="post-meta"> 1632 <div class=" clearfix"> 1633 <div class="share-buttons"> 1634 <!-- Go to www.addthis.com/dashboard to customize your tools --> 1635 <div class="addthis_inline_share_toolbox"></div> 1636 </div> 1637 <div class="col-md-12 hidden-md hidden-lg hidden-xl" data-banner> 1638 <ins data-revive-zoneid="24" data-revive-block="1" data-revive-blockcampaign="1" data-revive-id="30be11c85ce356e14970630466da228f"></ins> 1639 </div> 1640 <div class="author-section" data-template="AuthorsTemplate" data-json-feed="Default.aspx?ID=@autorPageID&redirect=false&Autor="> 1641 </div> 1642 </div> 1643 1644 </footer> 1645 1646 {{/each}} 1647 {{/ArticlesContainer}} 1648 </script> 1649 <script id="TagsTemplate" type="text/x-handlebars-template"> 1650 {{#ArticlesContainer}} 1651 {{#each Article}} 1652 <div class="tags-wrapper"> 1653 <ul class="tags-widget clearfix"> 1654 <li class="trending">@Translate("TAGURI","TAGURI"):</li> 1655 {{#articleTags}} 1656 <li><a href="{{Link}}"><b>{{Name}}</b></a></li> 1657 {{/articleTags}} 1658 1659 </ul> 1660 </div><!-- .tags-wrapper --> 1661 {{/each}} 1662 {{/ArticlesContainer}} 1663 </script> 1664 <script id="AuthorsTemplate" type="text/x-handlebars-template"> 1665 {{#ifCond counterAutori "!==" "1"}} 1666 <div class="col-xs-12"> 1667 <h5>Autori</h5> 1668 </div> 1669 <div class="col-xs-12 col-sm-12 col-md-12 evenimentewidget"> 1670 <span class="simple-share"> 1671 {{#foreach Autori}} 1672 {{#if $last}} 1673 {{#ifCond persoana_companie "===" "Persoana"}} 1674 <a href="/Default.aspx?ID=@autorPage&autor={{autorId}}">{{name}}</a> 1675 {{/ifCond}} 1676 {{else}} 1677 {{#ifCond persoana_companie "===" "Persoana"}} 1678 <a href="/Default.aspx?ID=@autorPage&autor={{autorId}}">{{name}}, </a> 1679 {{/ifCond}} 1680 {{/if}} 1681 {{/foreach}} 1682 </span> 1683 </div> 1684 {{/ifCond}} 1685 {{#ifCond counterAutori "===" "1"}} 1686 {{#Autori}} 1687 {{#ifCond persoana_companie "===" "Persoana"}} 1688 <div class="row row-butoane-articol"> 1689 <div class="col-xs-12 col-sm-12"><a href="/Default.aspx?ID=@autorPage&autor={{autorId}}" class="btn btn-primary btn-background">@Translate("VeziAlteArticoleAleAutorului", "Alte articole ale autorului")</a></div> 1690 </div> 1691 <div class="author-box clearfix"> 1692 <div class="author-avatar"> 1693 <img alt="" src="/Admin/Public/GetImage.ashx?Image={{imagine}}&AlternativeImage=/Files/Images/Articole/download (1).png&Crop=0&Format=jpg&Width=100&Height=150&bgcolor=white" > 1694 </div> 1695 <div class="author-info"> 1696 <h3><a href="/Default.aspx?ID=@autorPage&autor={{autorId}}">{{name}}</a></h3> 1697 <p class="author-bio">{{{description}}}</p> 1698 </div> 1699 </div> 1700 {{/ifCond}} 1701 {{#ifCond persoana_companie "===" "Persoana"}} 1702 <div class="row row-butoane-articol"> 1703 <div class="col-xs-12 col-sm-12"><a href="/Default.aspx?ID=@autorPage&autor={{autorId}}" class="btn btn-primary btn-background">@Translate("VeziAlteArticoleAleCompanieiAutoare", "Alte articole ale companiei autoare")</a></div> 1704 </div> 1705 {{/ifCond}} 1706 {{/Autori}} 1707 {{/ifCond}} 1708 </script> 1709 <script id="SectionTemplate" type="text/x-handlebars-template"> 1710 {{#ArticlesContainer}} 1711 {{#each Article}} 1712 <div class="col-xs-12"> 1713 <article class="news-block small-block" style="margin-bottom: 110px;"> 1714 <a href="/Default.aspx?ID={{pagePageID}}" class="overlay-link"> 1715 <figure class="image-overlay proportie-1"> 1716 <img src="/Admin/Public/GetImage.ashx?Image={{itemImaginePrincipala}}&AlternativeImage=/Files/Images/Articole/download (1).png&Crop=0&Format=jpg&Width=350&Height=230" alt="{{itemTitlu}}" class="img-responsive" /> 1717 </figure> 1718 </a> 1719 1720 <a href='/Default.aspx?ID={{itemSectiuneParinteId}}' class="bg{{itemSectiuneParinteId}} category">{{itemSectiuneParinte}}</a> 1721 <header class="news-details"> 1722 1723 <h3 class="news-title"><a href="/Default.aspx?ID={{pagePageID}}">{{itemTitlu}}</a></h3> 1724 <p class="simple-share"> 1725 <a href="#">{{itemSectiuneParinte}}</a> 1726 @Translate("articolde","de") 1727 {{#articleAutori}} 1728 <a href="{{Link}}">{{Name}}</a> 1729 {{/articleAutori}} 1730 <br/> 1731 <span><i class="fa fa-clock-o"></i> {{itemData}}</span> 1732 {{#if showItemVisits}} 1733 <span><i class="fa fa-eye"></i> {{itemVisits}} vizualizari</span> 1734 {{/if}} 1735 </p> 1736 </article><!-- News block --> <p> 1737 </div> 1738 {{/each}} 1739 {{/ArticlesContainer}} 1740 </script> 1741 <script id="CommentsTemplate" type="text/x-handlebars-template"> 1742 {{#each Comentarii}} 1743 <div class="new_comment"> 1744 <ul class="user_comment"> 1745 <div class="user_avatar"> 1746 <img src="/Admin/Public/GetImage.ashx?Image={{imagine}}&AlternativeImage=/Files/Images/Articole/download.png&Crop=0&Format=jpg&Width=350&Height=230"> 1747 </div> 1748 <div class="comment_body"> 1749 <p>{{comment}}</p> 1750 </div> 1751 <div class="comment_toolbar"> 1752 <div class="comment_details"> 1753 <ul> 1754 <li><i class="fa fa-clock-o"></i> {{ora}}</li> 1755 <li><i class="fa fa-calendar"></i> {{data}}</li> 1756 <li><i class="fa fa-pencil"></i> <span class="user"> {{nume}}</span></li> 1757 </ul> 1758 </div> 1759 </div> 1760 </ul> 1761 </div> 1762 {{/each}} 1763 </script> 1764 1765 @helper RenderCereOfertaButton(string pageId) 1766 { 1767 string articleLink = GetGlobalValue("Global:Request.Host") + "/Default.aspx?ID=" + pageId; 1768 1769 var termeniSiContitiiPageUrl = "/Default.aspx?ID=" + GetPageIdByNavigationTag("termsAndConditions"); 1770 <!-- Large modal --> 1771 <button class="btn btn-primary buton-oferta-lista" data-toggle="modal" data-target="#modalformularoferta" id="buton-modal-cere-detalii" data-product-link="@articleLink">@Translate("askForDetails","Cere detalii sau oferta")</button> 1772 1773 <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);"> 1774 <div class="modal-dialog modal-sm"> 1775 <div class="modal-content"> 1776 <div data-nume="test" class="form-wrapper"> 1777 @RenderParagraphContent(120) 1778 <div class="display-flex hidden"> 1779 <input class="subscribe-checkbox" type="checkbox" id="Suntdeacordcutermeniisiconditiilettonlinero" name="Suntdeacordcutermeniisiconditiilettonlinero" required="" checked="checked"> 1780 <p> @Translate("SuntDeAcord", "Sunt de acord cu ") <a class="termeniSiConditiiUrl" href="@termeniSiContitiiPageUrl">@Translate("termenii si conditiile")</a> @Translate("ttonline.ro") </p> 1781 </div> 1782 </div> 1783 </div> 1784 </div> 1785 <div class="modal-footer"> 1786 <button type="button" class="btn btn-primary" data-dismiss="modal">Inchide Formularul</button> 1787 </div> 1788 </div> 1789 } 1790 <div id="loading"></div> 1791 <div id="loader"><div class="loader-icon"></div></div> 1792 <!-- Google Analytics --> 1793 @*<script> 1794 window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date; 1795 ga('create', 'UA-26068739-1', 'auto'); 1796 // START DIMENSIUNI 1797 // DIMENSIUNI PENTRU Romanian Industry Zoom: 1798 var dw_editie = '@nrEditie'; 1799 var dw_autor = '@articleAutori'; 1800 var dw_companie = '@articleCompanyDe'; 1801 var dw_data_aparitie = '@GetDate("Item.Data.Value").ToString("dd/MM/yyyy")'; // format dd.mm.yyyy 1802 ga('set', 'dimension1', dw_editie); 1803 ga('set', 'dimension2', dw_autor); 1804 ga('set', 'dimension3', dw_companie); 1805 ga('set', 'dimension9', dw_data_aparitie); 1806 // END DIMENSIUNI 1807 ga('send', 'pageview'); 1808 </script> 1809 <script async="" src='https://www.google-analytics.com/analytics.js'></script> 1810 <!-- End Google Analytics -->*@ 1811 1812 1813 </div><!-- .main-content --> 1814 1815 @if (string.IsNullOrEmpty(System.Web.HttpContext.Current.Request.Params["productid"])) 1816 { 1817 <!-- End Main Banner --> 1818 <div class="mag-content clearfix sidebar-stop" style="max-width:1170px; padding-left: 0px; padding-right: 0px;"> 1819 <div class="row"> 1820 <div class="col-md-12"> 1821 <div class="ad728-wrapper" style="min-height:145px;"> 1822 <ins data-revive-zoneid="7" data-revive-id="30be11c85ce356e14970630466da228f"></ins> 1823 1824 </div> 1825 </div> 1826 </div> 1827 </div> 1828 <!-- End Main Banner --> 1829 } 1830 1831 </div><!-- .main-wrapper --> 1832 1833 1834 <!-- Footer --> 1835 1836 @{ 1837 1838 string AdresaLogoFooter= "https://" + GetGlobalValue("Global:Request.Host")+ "/Files/Images/tehnicmedia-logo.jpg"; 1839 bool includeTopWarning = System.Web.HttpContext.Current.Request.Cookies["Dynamicweb.CookieOptInLevel"] == null; 1840 1841 } 1842 1843 1844 <footer class="footer source-org vcard copyright clearfix" id="footer" role="contentinfo"> 1845 <div class="footer-main"> 1846 <div class="fixed-main"> 1847 <div class="container"> 1848 <div class="mag-content"> 1849 <div class="row"> 1850 <div class="col-md-5"> 1851 <div class="footer-block clearfix"> 1852 <h3>@Translate("link", "Link-uri utile"):</h3> 1853 1854 <ul class="footer-menu"> 1855 @foreach(LoopItem footerMenu in GetLoop("Item.Area.FooterMenu")) { 1856 1857 string footerLink = footerMenu.GetString("Item.Area.FooterMenu.FooterLinkUrl"), 1858 footerLinkText = footerMenu.GetString("Item.Area.FooterMenu.FooterLinkText.Value"), 1859 openInNewWindow = footerMenu.GetBoolean("Item.Area.FooterMenu.OpenInNewWindows") ? "_blank" : "_self"; 1860 1861 <li><a href="@footerLink" target='@openInNewWindow'>@footerLinkText</a></li> 1862 } 1863 </ul> 1864 </div> 1865 </div> 1866 <div class="col-md-3"> 1867 <div class="footer-block clearfix"> 1868 <h3>@Translate("aboutUs", "DESPRE NOI"):</h3> 1869 <p>@Pageview.Area.Item["FooterAbout"]</p> 1870 </div> 1871 </div> 1872 1873 <div class="col-md-3 col-md-offset-1"> 1874 <div class="footer-block clearfix"> 1875 <h3>@Translate("contactUs", "CONTACT"):</h3> 1876 <ul> 1877 <li><i class="fa fa-phone" aria-hidden="true"></i> &nbsp;@Pageview.Area.Item["Phone"]</li> 1878 <li><i class="fa fa-envelope" aria-hidden="true"></i> &nbsp;@Pageview.Area.Item["Email"]</li> 1879 <li> <i class="fa fa-map-marker" aria-hidden="true"></i> &nbsp;@Pageview.Area.Item["Address"]</li> 1880 1881 </ul> 1882 </div> 1883 </div> 1884 1885 </div> 1886 </div> 1887 </div> 1888 </div> 1889 </div> 1890 1891 <div class="footer-bottom clearfix"> 1892 <div class="fixed-main"> 1893 <div class="container"> 1894 <div class="mag-content"> 1895 <div class="row"> 1896 <div class="col-md-6"> 1897 <p>@Translate("copyright", "Copyright"): @Translate("TehnicMedia2017", "Tehnic Media") &copy; @DateTime.Now.Year. 1898 <a href="https://www.tehnicmedia.ro"><img src="@AdresaLogoFooter" width="" height=""></a></p> 1899 </div> 1900 <div class="col-md-6"> 1901 <div class="social-icons pull-right"> 1902 <a href='@Pageview.Area.Item["FacebookLink"]' target="_blank"><i class="fa fa-facebook" style="padding: 0px 8px;"></i></a> 1903 <a href='@Pageview.Area.Item["TwitterLink"]' target="_blank"><i class="fa fa-twitter" style="padding: 0px 8px;"></i></a> 1904 </div> 1905 </div> 1906 </div> 1907 </div> 1908 </div> 1909 </div> 1910 </div> 1911 1912 </footer> 1913 <!-- End Footer --> 1914 1915 1916 1917 <!-- Mobile Menu --> 1918 <nav id="mobile-nav"> 1919 <div> 1920 @RenderNavigation(new { 1921 template = "MainNavigationMobile.xslt", 1922 expandmode = "all", 1923 id = "mobile-nav", 1924 startlevel = 1, 1925 listStyle = "mobile-navigation", 1926 endlevel = 2 1927 }) 1928 </div> 1929 </nav> 1930 <!-- / Mobile Menu --> 1931 <div id="go-top-button" class="fa fa-angle-up" title="Scroll To Top"></div> 1932 <div class="mobile-overlay" id="mobile-overlay"></div> 1933 @* <script type="text/javascript" src="@scriptBundleFooter"></script>*@ 1934 1935 1936 1937 1938 @RenderSnippet("Modals") 1939 1940 1941 @Pageview.Area.Item["Analytics_Code"] 1942 <!-- Add to Calendar --> 1943 <script type="text/javascript">(function () { 1944 if (window.addtocalendar)if(typeof window.addtocalendar.start == "function")return; 1945 if (window.ifaddtocalendar == undefined) { window.ifaddtocalendar = 1; 1946 var d = document, s = d.createElement('script'), g = 'getElementsByTagName'; 1947 s.type = 'text/javascript';s.charset = 'UTF-8';s.async = true; 1948 s.src = ('https:' == window.location.protocol ? 'https' : 'http')+'://addtocalendar.com/atc/1.5/atc.min.js'; 1949 var h = d[g]('body')[0];h.appendChild(s); } 1950 })(); 1951 </script> 1952 1953 <!-- Go to www.addthis.com/dashboard to customize your tools --> 1954 <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-58b014abcccaba2d"></script> 1955 1956 <!-- Twitter Widget--> 1957 <!--<script type="text/javascript"> 1958 window.twttr = (function (d,s,id) { 1959 var t, js, fjs = d.getElementsByTagName(s)[0]; 1960 if (d.getElementById(id)) return; js=d.createElement(s); js.id=id; 1961 js.src="https://platform.twitter.com/widgets.js"; fjs.parentNode.insertBefore(js, fjs); 1962 return window.twttr || (t = { _e: [], ready: function(f){ t._e.push(f) } }); 1963 }(document, "script", "twitter-wjs")); 1964 </script>--> 1965 1966 <!-- Twitter Widget Loader --> 1967 1968 @RenderSnippet("bottomJS") 1969 1970 @*<!-- Start Scroll tracking --> 1971 <script src="@areaLayoutPath/assets/js/gascrolldepth.min.js"></script> 1972 <script> 1973 gascrolldepth.init({ 1974 elements: ['#mm-0', 'footer'], 1975 userTiming: true, 1976 gtmOverride: true, 1977 eventHandler: function(data) { 1978 if (data.event == "ScrollDistance") { 1979 ga('send', 'event', data.eventCategory, data.eventAction, data.eventLabel, data.eventValue); 1980 } 1981 } 1982 }); 1983 </script>*@ 1984 <!-- End Scroll tracking --> 1985 @*<script type="text/javascript"> 1986 1987 /* <![CDATA[ */ 1988 1989 var google_conversion_id = 1010029401; 1990 1991 var google_custom_params = window.google_tag_params; 1992 1993 var google_remarketing_only = true; 1994 1995 /* ]]> */ 1996 1997 </script>*@ 1998 1999 <script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js"></script> 2000 <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-multiselect/0.9.15/js/bootstrap-multiselect.min.js"></script> 2001 <script type="text/javascript" src="/Files/Templates/Designs/TTOnlineNew/dist/bundle.min.js?v=5"></script> 2002 <script type="text/javascript" src="/Files/Templates/Designs/TTOnlineNew/dist2/app.bundle.js"></script> 2003 <script src="/Files/Templates/Designs/TTonlineNew/assets/js/compare.js"></script> 2004 2005 @* 2006 <script type="text/javascript" src="/Files/Templates/Designs/TTOnlineNew/js/minified/00_libraries/00_handlebars.js"></script> 2007 <script type="text/javascript" src="/Files/Templates/Designs/TTOnlineNew/js/minified/00_libraries/05_axios.js"></script> 2008 <script type="text/javascript" src="/Files/Templates/Designs/TTOnlineNew/js/minified/00_libraries/10_es6promise.js"></script> 2009 <script type="text/javascript" src="/Files/Templates/Designs/TTOnlineNew/js/minified/05_custom/00_main.min.js"></script> 2010 <script type="text/javascript" src="/Files/Templates/Designs/TTOnlineNew/js/minified/05_custom/05_handlebarsHelper.min.js"></script> 2011 *@ 2012 @*<noscript> 2013 <div style="display:inline;"> 2014 <img height="1" width="1" style="border-style:none;" alt="" src="//googleads.g.doubleclick.net/pagead/viewthroughconversion/1010029401/?guid=ON&amp;script=0"> 2015 </div> 2016 </noscript>*@ 2017 <div id="loading"></div> 2018 </body> 2019 </html>