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