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