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