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