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