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