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