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_21aa77f00be4460ebdd11853dba4ecb0.Execute() in Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\_parsed\Page.parsed.cshtml:line 1074
   at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context, TextWriter reader)
   at RazorEngine.Templating.RazorEngineService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)
   at RazorEngine.Templating.RazorEngineServiceExtensions.<>c__DisplayClass16_0.b__0(TextWriter writer)
   at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)
   at Dynamicweb.Rendering.Template.RenderRazorTemplate()

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