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