Error executing template "Designs/TTonlineNew/_parsed/Article.parsed.cshtml"
System.NullReferenceException: Object reference not set to an instance of an object.
   at CompiledRazorTemplates.Dynamic.RazorEngine_444152189a1d404bbf8c9723ff1b4db5.Execute() in Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonlineNew\_parsed\Article.parsed.cshtml:line 1261
   at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context, TextWriter reader)
   at RazorEngine.Templating.RazorEngineService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)
   at RazorEngine.Templating.RazorEngineServiceExtensions.<>c__DisplayClass16_0.b__0(TextWriter writer)
   at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)
   at Dynamicweb.Rendering.Template.RenderRazorTemplate()

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