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

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