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_eeb9774a0070405889b1e2fec662f65d.Execute() in Z:\Sites\_dotFusion\www.ttonline.ro\Files\Templates\Designs\TTonline\_parsed\Article.parsed.cshtml:line 1249
   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 } 780 781 @using Dna.ImageProcessor; 782 @using Dynamicweb.Frontend.Devices; 783 784 @{ 785 string designName = GetString("Template:DesignBaseUrl").Replace("/Files/Templates/Designs/", "").Replace("/", ""); 786 } 787 788 @functions{ 789 /// <summary> 790 /// Returns the URL for the given ImageSettings. 791 /// </summary> 792 /// <param name="settings">The ImageSettings used to generate the URL. 793 private static string GetImage(ImageSettings settings) 794 { 795 return settings.ToUrl(); 796 } 797 798 /// <summary> 799 /// Returns the URL for the given ImageSettings. 800 /// </summary> 801 /// <param name="url">The URL to the image. 802 /// <param name="settings">The ImageSettings used to generate the URL. 803 public static string GetImage(string url, ImageSettings settings = null) 804 { 805 if (settings == null) 806 { 807 settings = new ImageSettings(); 808 } 809 settings.ImageUrl = url; 810 return GetImage(settings); 811 } 812 813 /// <summary> 814 /// Returns the URL for the given ImageSettings. 815 /// </summary> 816 /// <param name="url">The URL to the image. 817 /// <param name="width">The requested width of the image. 818 /// <param name="height">The requested height of the image. 819 /// <param name="settings">The ImageSettings used to generate the URL. 820 public static string GetImage(string url, int width, int height, ImageSettings settings = null) 821 { 822 if (settings == null) 823 { 824 settings = new ImageSettings(); 825 } 826 settings.Width = width; 827 settings.Height = height; 828 return GetImage(url, settings); 829 } 830 831 /// <summary> 832 /// Returns the URL for the given ImageSettings. 833 /// </summary> 834 /// <param name="url">The URL to the image. 835 /// <param name="width">The requested width of the image. 836 /// <param name="height">The requested height of the image. 837 /// <param name="widthTablet">The requested width of the image for a tablet device. 838 /// <param name="heightTablet">The requested height of the image for a tablet device. 839 /// <param name="widthMobile">The requested width of the image for a mobile device. 840 /// <param name="heightMobile">The requested height of the image for a mobile device. 841 /// <param name="settings">The ImageSettings used to generate the URL. 842 public static string GetImage(string url, int width, int height, int widthTablet, int heightTablet, int widthMobile, int heightMobile, ImageSettings settings = null) 843 { 844 var currentDevice = Dynamicweb.Frontend.PageView.Current().Device; 845 846 switch (currentDevice) 847 { 848 case DeviceType.Tablet: 849 width = widthTablet != 0 ? widthTablet : width; 850 height = heightTablet != 0 ? heightTablet : height; 851 break; 852 case DeviceType.Mobile: 853 width = widthMobile != 0 ? widthMobile : width; 854 height = heightMobile != 0 ? heightMobile : height; 855 break; 856 // default: Skip; just use existing width and height 857 } 858 if (settings == null) 859 { 860 settings = new ImageSettings(); 861 } 862 settings.ImageUrl = url; 863 settings.Width = width; 864 settings.Height = height; 865 return GetImage(settings); 866 } 867 } 868 @using System.Web 869 @{ 870 string articleImage = GetString("Item.ImaginePrincipala.Value"), 871 articleTitle = GetString("Item.PageName"); 872 string articleAutori = GetString("Item.Autori"); 873 string articleSections = ""; 874 string articleTagList = GetString("Item.Taguri"); 875 string articleCompanyDe = GetString("Item.De_Companie"); 876 string articleCompanyDespre = GetString("Item.Despre_Companie"); 877 string articleCompanySiDespre = GetString("Item.Si_Despre_Companie"); 878 string articleRelevantaGeografica = GetString("Item.RelevantaGeografica"); 879 string articleViews = GetString("Item.Visits"); 880 int articleSectiuneID = GetInteger("Item.SectiuneParinteId"); 881 string articleID = GetString("Item.Id.Value"); 882 bool AdserverBanner = GetBoolean("Item.Adserver_Banner.Value"); 883 string linkBanner = GetString("Item.Link_Banner"); 884 string imagineBanner = GetString("Item.Imagine_Banner"); 885 string articlePersoana = ""; 886 string linkAutor = ""; 887 string filterValue1 = "Item.De_Companie ='"+ GetString("Item.De_Companie.Value") +"'"; 888 string filterValue4 = "Item.Autori ='"+ GetString("Item.Autori.Value") +"'" + " and " + "Item.SectiuneParinteId !='" + GetString("Item.SectiuneParinteId.Value") +"'"; 889 string filterValue3 = "Item.SectiuneParinteId ='"+ GetString("Item.SectiuneParinteId.Value") +"'" + " and " + "Item.Id !='" + articleID +"'" ; 890 string filterValue2 = "Item.Autori ='"+ GetString("Item.Autori.Value") +"'" + " and " + "Item.Id !='" + GetString("Item.Id.Value") +"'" ; 891 892 int counterAutor = 1; 893 894 List<Autor> articleAutoriList = GetAutori(articleAutori); 895 List<Sectiune> articleSectionsList = GetSectiuni(articleSections); 896 List<Tag> articleTaguri = GetTaguri(articleTagList); 897 List<Companie> articleDeCompanieList = GetCompany(articleCompanyDe); 898 List<Companie> articleDespreCompanieList = GetCompany(articleCompanyDespre); 899 List<Companie> articleSiDespreCompanieList = GetCompany(articleCompanySiDespre); 900 int counterAutorSecundar = articleAutoriList.Count(); 901 902 string nrEditie= GetString("Item.Editie.Value"); 903 904 } 905 906 @SnippetStart("OGMeta") 907 @{ 908 var httpdomain = "http://" + GetGlobalValue("Global:Request.Host"); 909 var og_item_image = Uri.EscapeUriString(logo); 910 var og_page_image = Uri.EscapeUriString(articleImage); 911 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 912 } 913 @if (!string.IsNullOrWhiteSpace(og_item_image) || !string.IsNullOrWhiteSpace(og_page_image)) 914 { 915 <meta property="og:image" content="@ogimage"> 916 <meta property="og:image:width" content="600"> 917 <meta property="og:image:height" content="600"> 918 } 919 @SnippetEnd("OGMeta") 920 <div class="row blog-content" data-stickyparent=""> 921 <div class="col-xs-12 col-sm-12 col-md-8 col-lg-8 "> 922 <article class="post-wrapper clearfix"> 923 <header class="post-header"> 924 <h1 class="post-title"> 925 @GetString("DwPageName") 926 </h1><!-- .post-title --> 927 928 <a href='/Default.aspx?ID=@GetString("DwPageID_2")' class="category bg@(articleSectiuneID)"> 929 @GetString("DwPageName_2") 930 </a> 931 932 933 <p class="simple-share"> 934 @foreach (var articleAutor in articleAutoriList) 935 { 936 if(counterAutor == 1){ 937 <span style="margin:0px!important;">@Translate("articolde","de") <a href="@articleAutor.Link">@articleAutor.Name</a></span> 938 @SnippetStart("AutorName") 939 @articleAutor.Name 940 @SnippetEnd("AutorName") 941 } else { 942 <span style="margin:0px!important;">, <a href="@articleAutor.Link">@articleAutor.Name</a></span> 943 @SnippetStart("AutorName") 944 @articleAutor.Name 945 @SnippetEnd("AutorName") 946 } counterAutor++; 947 } 948 949 <span><span class="article-date"><i class="fa fa-clock-o"></i> @GetDate("Item.Data.Value").ToString("dd/MM/yyyy")</span></span> 950 951 @if (@GetBoolean("Item.Vizite")) { 952 <span><i class="fa fa-eye"></i> @articleViews viualizari</span> 953 } 954 955 </p> 956 957 958 @if(!string.IsNullOrEmpty(articleImage)){ 959 <figure class="image-overlay"> 960 961 <img src="@articleImage" alt="@articleTitle"> 962 963 964 </figure> 965 } 966 </header><!-- .post-header --> 967 968 <div class="post-content clearfix"> 969 @GetString("Item.Continut.Value") 970 <hr> 971 972 <!-- Banner articol --> 973 @if(!string.IsNullOrEmpty(GetString("Item.Pdf"))) { 974 <div class="row"> 975 <div class="col-xs-12 col-pdf"> 976 <a href='@GetString("Item.Pdf")'>PDF</a> 977 </div> 978 </div> 979 } 980 <!-- End Banner Articol --> 981 982 983 984 <div class="row" style="text-align:center; margin-bottom: 20px;"> 985 <!-- Large modal --> 986 @if (@GetBoolean("Item.CereOferta")) { 987 <button class="btn btn-primary" data-toggle="modal" data-target="#modalformularoferta" id="buton-modal-cere-detalii">@Translate("askForDetails","Cere detalii sau oferta")</button> 988 } 989 <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);"> 990 <div class="modal-dialog modal-sm"> 991 <div class="modal-content"> 992 <div data-nume="test" class="form-wrapper"> 993 @RenderParagraphContent(120) 994 </div> 995 </div> 996 </div> 997 <div class="modal-footer"> 998 <button type="button" class="btn btn-primary" data-dismiss="modal">Inchide Formularul</button> 999 </div> 1000 </div> 1001 </div> 1002 1003 1004 </div><!-- .post-content --> 1005 1006 <footer class="post-meta"> 1007 1008 @SnippetStart("Tags") 1009 1010 <div class="tags-wrapper"> 1011 <ul class="tags-widget clearfix"> 1012 <li class="trending">@Translate("TAGURI","TAGURI"):</li> 1013 @foreach (var tag in articleTaguri) 1014 { 1015 <li><a href="@tag.Link"><b>@tag.Name</b></a></li> 1016 } 1017 </ul> 1018 </div><!-- .tags-wrapper --> 1019 @SnippetEnd("Tags") 1020 1021 1022 <div class=" clearfix"> 1023 <div class="share-buttons"> 1024 <!-- Go to www.addthis.com/dashboard to customize your tools --> 1025 <div class="addthis_inline_share_toolbox"></div> 1026 </div> 1027 @if(AdserverBanner == false){ 1028 <div class="row row-butoane-articol"> 1029 <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> 1030 </div> 1031 } 1032 </div> 1033 1034 <div class="row"> 1035 @GetValue("DwNavigation(blogposts)") 1036 </div> 1037 1038 @foreach (var articleAutor in articleAutoriList) 1039 { articlePersoana = @articleAutor.Persoana; 1040 linkAutor = @articleAutor.Link; 1041 1042 1043 } 1044 1045 1046 @if(articlePersoana == "Persoana" ){ 1047 1048 <div class="author-box clearfix "> 1049 @if(counterAutorSecundar != 1 ){ 1050 <div class="col-xs-12"> 1051 <h5>Autori</h5> 1052 </div> 1053 } 1054 1055 @foreach (var articleAutor in articleAutoriList) 1056 { 1057 1058 1059 string mainImage = !string.IsNullOrEmpty(@articleAutor.Image) ? GetImage(@articleAutor.Image, 100, 150) + "&bgcolor=white" : "/Files/Images/NoImage/100x150.png"; 1060 if(counterAutorSecundar == 1 ){ 1061 <div class="author-avatar"> 1062 1063 <img alt="" src="@mainImage"> 1064 1065 </div> 1066 <div class="author-info"> 1067 1068 1069 <h3><a href="@articleAutor.Link">@articleAutor.Name</a></h3> 1070 <p class="author-bio">@articleAutor.Description</p> 1071 1072 1073 <div class="author-contact"> 1074 1075 </div> 1076 </div> 1077 } else { 1078 <div class="col-xs-12 col-sm-12 col-md-6"> 1079 <div class="col-xs-3"> 1080 @if(!String.IsNullOrEmpty(articleAutor.Image)){ 1081 1082 <img alt="" src="@mainImage"> 1083 1084 } else { 1085 <i class="fa fa-user-circle-o" aria-hidden="true"></i> 1086 } 1087 1088 </div> 1089 <div class="col-xs-9"> 1090 <p class="simple-share"> 1091 <a href="@articleAutor.Link">@articleAutor.Name</a> 1092 </p> 1093 </div> 1094 1095 </div> 1096 1097 } 1098 1099 } 1100 1101 1102 </div> 1103 1104 } 1105 </footer> 1106 1107 </article><!-- .post-wrapper --> 1108 1109 1110 1111 1112 1113 <div class="related-posts clearfix"> 1114 <!-- Mid ad --> 1115 @if(AdserverBanner == true){ 1116 1117 <div class="row" style="margin-bottom: 20px;"> 1118 <div class="mag-content clearfix"> 1119 <div class="row"> 1120 <div class="col-md-12"> 1121 <div class="ad666-wrapper"> 1122 <ins data-revive-zoneid="1" data-revive-id="30be11c85ce356e14970630466da228f"></ins> 1123 <script async="" src="//adserver.dotfusion.ro/revive/www/delivery/asyncjs.php"></script> 1124 </div> 1125 </div> 1126 </div> 1127 </div> 1128 </div> 1129 }else if( !string.IsNullOrEmpty(linkBanner) && !string.IsNullOrEmpty(imagineBanner) ){ 1130 1131 <div class="row" style="margin-bottom: 20px;"> 1132 <div class="mag-content clearfix"> 1133 <div class="row"> 1134 <div class="col-md-12"> 1135 <div class="ad666-wrapper"> 1136 <a href="@linkBanner"> 1137 <img src="@imagineBanner"> 1138 1139 </a> 1140 </div> 1141 </div> 1142 </div> 1143 </div> 1144 </div> 1145 1146 <div class="row row-butoane-articol"> 1147 <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> 1148 </div> 1149 } 1150 <!-- End Mid ad --> 1151 1152 <div class="row"> 1153 1154 @if(GetString("Item.SectiuneParinteId.Value") == "25"){ 1155 <div class="col-md-6"> 1156 <h3 class="block-title"><span>@Translate("De acelasi autor","De acelasi autor")</span></h3> 1157 @RenderItemList(new { 1158 ItemType = "Dw_Page", 1159 ListSourceType = "SelfArea", 1160 ItemFieldsList = "*", 1161 ListTemplate = "ItemPublisher/List/LoopRelatedArticleList.cshtml", 1162 ListShowFrom = 1, 1163 ListPageSize = 2, 1164 ListOrderBy = "Data", 1165 ListOrderByDirection = "Descending", 1166 Filter = filterValue4 1167 }) 1168 1169 </div> 1170 }else{ 1171 1172 <div class="col-md-6"> 1173 <h3 class="block-title"><span>@Translate("De aceeasi companie","De aceeasi companie")</span></h3> 1174 @RenderItemList(new { 1175 ItemType = "Dw_Page", 1176 ListSourceType = "SelfArea", 1177 ItemFieldsList = "*", 1178 ListTemplate = "ItemPublisher/List/LoopRelatedArticleList.cshtml", 1179 ListShowFrom = 1, 1180 ListPageSize = 2, 1181 ListOrderBy = "Data", 1182 ListOrderByDirection = "Descending", 1183 Filter = filterValue2 1184 }) 1185 1186 </div> 1187 1188 1189 } 1190 1191 1192 1193 <div class="col-md-6"> 1194 <h3 class="block-title"><span>@Translate("Din aceeasi sectiune","Din aceeasi sectiune")</span></h3> 1195 @RenderItemList(new { 1196 ItemType = "Dw_Page", 1197 ListSourceType = "SelfArea", 1198 ItemFieldsList = "*", 1199 ListTemplate = "ItemPublisher/List/LoopRelatedArticleList.cshtml", 1200 ListShowFrom = 1, 1201 ListPageSize = 2, 1202 ListOrderBy = "Data", 1203 ListOrderByDirection = "Descending", 1204 Filter = filterValue3 1205 }) 1206 1207 </div> 1208 </div> 1209 1210 1211 <div class="row row-butoane-articol"> 1212 <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> 1213 <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> 1214 </div> 1215 1216 @{ 1217 int counter = 0; 1218 var Produse = GetLoop("Item.Produse.Value"); 1219 1220 if(Produse.Any()){ 1221 <h3 class="block-title"><span>Produse</span></h3> 1222 <div class="row"> 1223 <div class="col-md-12"> 1224 <div class="owl-carousel owl-theme"> 1225 @foreach(LoopItem i in Produse){ 1226 string mainImageRaw = i.GetString("Ecom:Product.ImageLarge.Default.Clean"); 1227 string mainImage = !string.IsNullOrEmpty(mainImageRaw) ? GetImage(mainImageRaw, 160, 120) + "&bgcolor=white" : "/Files/Images/NoImage/160x120.png"; 1228 string mainTitle = i.GetString("Ecom:Product.Name"); 1229 string mainURL = i.GetString("Ecom:Product.Link.Clean"); 1230 1231 <div class="item"> 1232 @if(!string.IsNullOrEmpty(i.GetString("Ecom:Product.ImageLarge.Default.Clean"))){ 1233 <a href="@mainURL"><img src="@mainImage" width="160" height="100" alt=""></a> 1234 }else{ 1235 <a href="@mainURL"><img src="@areaLayoutPath/assets/img/demo/160x120.png" height="100" alt=""></a> 1236 } 1237 <h4><a href="@mainURL">@mainTitle</a></h4> 1238 </div> 1239 1240 } 1241 </div> 1242 </div> 1243 </div> 1244 }else { 1245 string idCompanie = GetString("Item.De_Companie"); 1246 Dynamicweb.Content.Items.Item companie = null; 1247 if (!string.IsNullOrEmpty(idCompanie)){ 1248 companie = Dynamicweb.Content.Items.Item.GetItemById("Taxonomie_Companii", idCompanie); 1249 string representativeProductsArray = companie["RepresentativeProducts"] != null ? companie["RepresentativeProducts"].ToString() : ""; 1250 if(companie != null && representativeProductsArray != ""){ 1251 var ProduseReprezentative = ProductFacade.GetItemTypeProducts(representativeProductsArray); 1252 <!--Standard start --> 1253 if(ProduseReprezentative.Any()){ 1254 <div class="row space-10"> 1255 1256 <div class="col-xs-12"><h3 class="block-title"><span class="primary-color-border-bottom">Produse</span></h3></div> 1257 1258 <div class="col-xs-12"> 1259 <div class="carousel-produse"> 1260 <div class="owl-carousel owl-theme owl-redactori"> 1261 @foreach (var produsReprezentativ in ProduseReprezentative) { 1262 string mainImage = !string.IsNullOrEmpty(produsReprezentativ.ImageLarge) ? GetImage(produsReprezentativ.ImageLarge, 160, 120) + "&bgcolor=white" : "/Files/Images/NoImage/160x120.png"; 1263 var produsReprezentativManufacturer = produsReprezentativ.Manufacturer; 1264 if (counter <= 8 ) { 1265 <div class="item"> 1266 <figure class="image-overlay proportie-1 text-center"> 1267 <a href="/ibuysmart?ProductID=@(produsReprezentativ.Id)"> 1268 @if(!String.IsNullOrEmpty(@produsReprezentativ.ImageLarge)) { 1269 <img src="/Files/@(mainImage)" alt="@produsReprezentativ.Name" width="160" height="105" class=""> 1270 } else { 1271 <img src="http://placehold.it/350x150" alt="@produsReprezentativ.Name" class="img-responsive"> 1272 } 1273 1274 </a> 1275 </figure> 1276 <header class="featured-header"> 1277 <h2><a href="/ibuysmart?ProductID=@(produsReprezentativ.Id)"> @produsReprezentativ.Name @counter </a></h2> 1278 @if(produsReprezentativManufacturer != null){ 1279 <p class="manufacturer">Producator: <span>@produsReprezentativ.Manufacturer.Name</span></p> 1280 } 1281 </header> 1282 </div> 1283 } 1284 counter++; 1285 } 1286 1287 </div> 1288 </div> 1289 </div> 1290 1291 1292 </div> 1293 } 1294 } 1295 1296 } 1297 <!--End of idCompanie--> 1298 } <!--End of else--> 1299 } 1300 1301 1302 </div><!-- .related-post --> 1303 1304 <div class="col-xs-12"> 1305 <div id="disqus_thread"></div> 1306 <script> 1307 1308 /** 1309 * RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS. 1310 * LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables*/ 1311 /* 1312 var disqus_config = function () { 1313 this.page.url = PAGE_URL; // Replace PAGE_URL with your page's canonical URL variable 1314 this.page.identifier = PAGE_IDENTIFIER; // Replace PAGE_IDENTIFIER with your page's unique identifier variable 1315 }; 1316 */ 1317 (function() { // DON'T EDIT BELOW THIS LINE 1318 var d = document, s = d.createElement('script'); 1319 s.src = 'https://ttonlinero.disqus.com/embed.js'; 1320 s.setAttribute('data-timestamp', +new Date()); 1321 (d.head || d.body).appendChild(s); 1322 })(); 1323 </script> 1324 <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript> 1325 1326 </div> 1327 1328 1329 @if(@GetInteger("DwAreaID") == 3){ 1330 <div class="row row-butoane-articol"> 1331 <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> 1332 <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> 1333 <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> 1334 <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> 1335 <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> 1336 @if(!string.IsNullOrEmpty(GetString("Item.De_Companie"))){ 1337 <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> 1338 } 1339 </div> 1340 1341 }else{ 1342 <div class="row row-butoane-articol"> 1343 <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> 1344 <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> 1345 @if(!string.IsNullOrEmpty(GetString("Item.De_Companie"))){ 1346 <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> 1347 } 1348 </div> 1349 } 1350 </div><!-- End Left big column --> 1351 1352 <div class=" col-xs-12 col-sm-12 col-md-4 col-lg-4 sticky "> 1353 1354 <aside class="sidebar clearfix " style="margin-top: 34px;"> 1355 1356 <div class="widget adwidget "> 1357 <ins data-revive-zoneid="4" data-revive-id="30be11c85ce356e14970630466da228f"></ins> 1358 </div> 1359 1360 @if(GetInteger("DwAreaID") == 1){ 1361 <div class="widget evenimentewidget" style="margin-bottom:10px;"> 1362 1363 @RenderItemList(new { 1364 ItemType = "Eveniment", 1365 ListSourceType = "SelfArea", 1366 ItemFieldsList = "*", 1367 ListTemplate = "/ItemPublisher/List/Sidebar-Evenimente.cshtml", 1368 ListPageSize = 150, 1369 ListOrderBy = "Data_Inceput" 1370 1371 }) 1372 </div> 1373 1374 }else{ 1375 <div class="widget evenimentewidget" style="margin-bottom:10px;"> 1376 1377 @RenderItemList(new { 1378 ItemType = "Eveniment_EN", 1379 ListSourceType = "SelfArea", 1380 ItemFieldsList = "*", 1381 ListTemplate = "/ItemPublisher/List/Sidebar-Evenimente.cshtml", 1382 ListPageSize = 150, 1383 ListOrderBy = "Data_Inceput" 1384 1385 }) 1386 </div> 1387 1388 } 1389 1390 @{ 1391 string editorialFilterValue = "\"@\"" + "Item.Tip =='Editorial'"; 1392 editorialFilterValue = editorialFilterValue + "\"\""; 1393 } 1394 1395 1396 @{ 1397 int pageID = @GetInteger("DWPageID"); 1398 string tip = @GetString("Item.Tip"); 1399 } 1400 1401 1402 1403 @if( (@pageID != 25) && (@tip != "Editorial")){ 1404 1405 1406 <div class="widget editorialwidget" style="margin-bottom:0px;"> 1407 1408 <div class="content"> 1409 1410 @RenderItemList(new 1411 { 1412 ItemType = "DW_Page", 1413 ListSourceType = "SelfArea", 1414 ItemFieldsList = "*", 1415 ListTemplate = "ItemPublisher/List/Sidebar-Editorial.cshtml", 1416 ListPageSize = 1, 1417 ListOrderBy = "Data", 1418 ListOrderByDirection = "Descending", 1419 Filter = editorialFilterValue 1420 }) 1421 </div> 1422 </div> 1423 1424 } 1425 <div class="widget adwidget" style=" margin-top: 20px; margin-bottom:25px;"> 1426 <ins data-revive-zoneid="5" data-revive-id="30be11c85ce356e14970630466da228f"></ins> 1427 </div> 1428 1429 1430 <div class="widget facebookwidget" style="margin-bottom:20px;"> 1431 <h3 class="block-title"><span> T&amp;T @@ Facebook</span></h3> 1432 <div class="content"> 1433 <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"> 1434 <div class="fb-xfbml-parse-ignore"> 1435 <blockquote cite="https://www.facebook.com/tehnicasitehnologie/"> 1436 <a href="https://www.facebook.com/tehnicasitehnologie/">T&amp;T - Tehnica si Tehnologie</a> 1437 </blockquote> 1438 </div> 1439 </div> 1440 </div> 1441 <div id="fb-root"></div> 1442 <script> 1443 (function(d, s, id) { 1444 var js, fjs = d.getElementsByTagName(s)[0]; 1445 if (d.getElementById(id)) return; 1446 js = d.createElement(s); js.id = id; 1447 js.async= "async"; 1448 js.src = "//connect.facebook.net/ro_RO/sdk.js#xfbml=1&version=v2.5"; 1449 fjs.parentNode.insertBefore(js, fjs); 1450 }(document, 'script', 'facebook-jssdk')); 1451 </script> 1452 1453 </div> 1454 1455 1456 <div class="widget twitterwidget" style="margin-bottom:0px;"> 1457 <h3 class="block-title"><span> T&amp;T @@ Twitter</span></h3> 1458 <div class="content"> 1459 <a class="twitter-timeline" data-width="365" data-height="108" data-theme="light" href="https://twitter.com/TTehnologie">Tweets by TTehnologie</a> 1460 </div> 1461 </div> 1462 1463 <div class="widget multimediawidget" style="margin-bottom:20px;"> 1464 @RenderItemList(new { 1465 ItemType = "Multimedia", 1466 ListSourceType = "Area", 1467 ListSourceArea = 1, 1468 ItemFieldsList = "*", 1469 ListTemplate = "/ItemPublisher/List/Sidebar-Multimedia.cshtml", 1470 ListPageSize = 10, 1471 ListOrderBy = "", 1472 ListOrderByDirection = "", 1473 Filter = "" 1474 }) 1475 </div> 1476 1477 @RenderSnippet("Tags") 1478 1479 1480 <div class="widget adwidget"> 1481 <div class="row" style="margin-bottom:50px;"> 1482 <div class="col-xs-6"> 1483 <ins data-revive-zoneid="13" data-revive-id="30be11c85ce356e14970630466da228f"></ins> 1484 <script async="" src="//adserver.dotfusion.ro/revive/www/delivery/asyncjs.php"></script> 1485 </div> 1486 <div class="col-xs-6"> 1487 <ins data-revive-zoneid="17" data-revive-id="30be11c85ce356e14970630466da228f"></ins> 1488 <script async="" src="//adserver.dotfusion.ro/revive/www/delivery/asyncjs.php"></script> 1489 </div> 1490 </div> 1491 <div class="row"> 1492 <div class="col-xs-6"> 1493 1494 <ins data-revive-zoneid="18" data-revive-id="30be11c85ce356e14970630466da228f"></ins> 1495 <script async="" src="//adserver.dotfusion.ro/revive/www/delivery/asyncjs.php"></script> 1496 </div> 1497 <div class="col-xs-6"> 1498 1499 <ins data-revive-zoneid="19" data-revive-id="30be11c85ce356e14970630466da228f"></ins> 1500 <script async="" src="//adserver.dotfusion.ro/revive/www/delivery/asyncjs.php"></script> 1501 </div> 1502 </div> 1503 </div> 1504 1505 @if(@GetPageIdByNavigationTag("Revista") != @GetInteger("DwPageID")) { 1506 @RenderParagraphContent(164) 1507 } 1508 <div class="widget adwidget "> 1509 <ins data-revive-zoneid="6" data-revive-id="30be11c85ce356e14970630466da228f"></ins> 1510 </div> 1511 @{ 1512 1513 string filterArticles = "\"@\"" + "Item.Tip='Articole'"+ "\"\"";; 1514 1515 1516 } 1517 @if(GetInteger("DwAreaID") == 1){ 1518 <div class="widget tabwidget"> 1519 <ul class="nav nav-tabs" role="tablist" id="widget-tab"> 1520 <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> 1521 <li role="presentation"><a href="#tab-recent" aria-controls="tab-recent" role="tab" data-toggle="tab">@Translate("recent","Cele mai noi")</a></li> 1522 </ul> 1523 <div class="tab-content"> 1524 <div role="tabpanel" class="tab-pane active" id="tab-popular"> 1525 @RenderItemList(new 1526 { 1527 ItemType = "DW_Page", 1528 ListSourceType = "SelfArea", 1529 ItemFieldsList = "*", 1530 ListTemplate = "ItemPublisher/List/Sidebar-CeleMaiCitite.cshtml", 1531 ListPageSize = 5000, 1532 1533 @*Filter = @filterArticles*@ 1534 }) 1535 </div><!-- Recent Posts --> 1536 <div role="tabpanel" class="tab-pane" id="tab-recent"> 1537 @RenderItemList(new 1538 { 1539 ItemType = "DW_Page", 1540 ListSourceType = "SelfArea", 1541 ItemFieldsList = "*", 1542 ListTemplate = "ItemPublisher/List/Sidebar-CeleMaiNoi.cshtml", 1543 ListPageSize = 5, 1544 ListOrderBy = "Data", 1545 ListOrderByDirection = "Descending", 1546 Filter = @filterArticles 1547 }) 1548 </div><!-- Recent Posts --> 1549 </div> 1550 </div> 1551 }else{ 1552 1553 <div class="widget tabwidget"> 1554 <ul class="nav nav-tabs" role="tablist" id="widget-tab"> 1555 <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> 1556 <li role="presentation"><a href="#tab-recent" aria-controls="tab-recent" role="tab" data-toggle="tab">@Translate("recent","Cele mai noi")</a></li> 1557 </ul> 1558 <div class="tab-content"> 1559 <div role="tabpanel" class="tab-pane active" id="tab-popular"> 1560 @RenderItemList(new 1561 { 1562 ItemType = "DW_Page", 1563 ListSourceType = "SelfArea", 1564 //ListSourceArea= 3, 1565 ItemFieldsList = "*", 1566 ListTemplate = "ItemPublisher/List/Sidebar-CeleMaiCitite.cshtml", 1567 ListPageSize = 5000, 1568 Filter = @filterArticles 1569 }) 1570 </div><!-- Recent Posts --> 1571 <div role="tabpanel" class="tab-pane" id="tab-recent"> 1572 @RenderItemList(new 1573 { 1574 ItemType = "DW_Page", 1575 ListSourceType = "Area", 1576 ListSourceArea= 3, 1577 ItemFieldsList = "*", 1578 ListTemplate = "ItemPublisher/List/Sidebar-CeleMaiNoi.cshtml", 1579 ListPageSize = 5, 1580 ListOrderBy = "Data", 1581 ListOrderByDirection = "Descending", 1582 Filter = @filterArticles 1583 }) 1584 </div><!-- Recent Posts --> 1585 </div> 1586 </div> 1587 1588 } 1589 <div class="widget adwidget "> 1590 <ins data-revive-zoneid="8" data-revive-id="30be11c85ce356e14970630466da228f"></ins> 1591 </div> 1592 1593 </aside> 1594 1595 </div><!-- End last column --> 1596 1597 </div><!-- .blog-content --> 1598 1599 <!-- IBuy and IndustryDirectory--> 1600 <div class="row"> 1601 <div class="col-xs-12" style="margin: 30px 0;"> 1602 <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> 1603 <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> 1604 </div> 1605 </div> 1606 <!-- end IBuy and IndustryDirectory --> 1607 1608 1609 <!-- Google Analytics --> 1610 <script> 1611 window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date; 1612 ga('create', 'UA-26068739-1', 'auto'); 1613 1614 1615 // START DIMENSIUNI 1616 1617 // DIMENSIUNI PENTRU Romanian Industry Zoom: 1618 var dw_editie = '@nrEditie'; 1619 var dw_autor = '@articleAutori'; 1620 var dw_companie = '@articleCompanyDe'; 1621 var dw_data_aparitie = '@GetDate("Item.Data.Value").ToString("dd/MM/yyyy")'; // format dd.mm.yyyy 1622 1623 ga('set', 'dimension1', dw_editie); 1624 ga('set', 'dimension2', dw_autor); 1625 ga('set', 'dimension3', dw_companie); 1626 ga('set', 'dimension9', dw_data_aparitie); 1627 1628 // END DIMENSIUNI 1629 1630 1631 ga('send', 'pageview'); 1632 </script> 1633 <script async="" src='https://www.google-analytics.com/analytics.js'></script> 1634 <!-- End Google Analytics --> 1635 1636 1637 </div><!-- .main-content --> 1638 1639 @if (string.IsNullOrEmpty(System.Web.HttpContext.Current.Request.Params["productid"])) 1640 { 1641 <!-- End Main Banner --> 1642 <div class="mag-content clearfix sidebar-stop" style="max-width:1170px; padding-left: 0px; padding-right: 0px;"> 1643 <div class="row"> 1644 <div class="col-md-12"> 1645 <div class="ad728-wrapper"> 1646 <ins data-revive-zoneid="7" data-revive-id="30be11c85ce356e14970630466da228f"></ins> 1647 1648 </div> 1649 </div> 1650 </div> 1651 </div> 1652 <!-- End Main Banner --> 1653 } 1654 1655 </div><!-- .main-wrapper --> 1656 1657 1658 <!-- Footer --> 1659 1660 @{ 1661 1662 string AdresaLogoFooter= "https://" + GetGlobalValue("Global:Request.Host")+ "/Files/Images/tehnicmedia-logo.jpg"; 1663 } 1664 1665 1666 <footer class="footer source-org vcard copyright clearfix" id="footer" role="contentinfo"> 1667 <div class="footer-main"> 1668 <div class="fixed-main"> 1669 <div class="container"> 1670 <div class="mag-content"> 1671 <div class="row"> 1672 <div class="col-md-4"> 1673 <div class="footer-block clearfix"> 1674 <h3>@Translate("link", "Link-uri utile"):</h3> 1675 1676 <ul class="footer-menu"> 1677 @foreach(LoopItem footerMenu in GetLoop("Item.Area.FooterMenu")) { 1678 1679 string footerLink = footerMenu.GetString("Item.Area.FooterMenu.FooterLinkUrl"), 1680 footerLinkText = footerMenu.GetString("Item.Area.FooterMenu.FooterLinkText.Value"), 1681 openInNewWindow = footerMenu.GetBoolean("Item.Area.FooterMenu.OpenInNewWindows") ? "_blank" : "_self"; 1682 1683 <li><a href="@footerLink" target='@openInNewWindow'>@footerLinkText</a></li> 1684 } 1685 </ul> 1686 </div> 1687 </div> 1688 <div class="col-md-4"> 1689 <div class="footer-block clearfix"> 1690 <h3>@Translate("aboutUs", "DESPRE NOI"):</h3> 1691 <p>@Pageview.Area.Item["FooterAbout"]</p> 1692 </div> 1693 </div> 1694 1695 <div class="col-md-3 col-md-offset-1"> 1696 <div class="footer-block clearfix"> 1697 <h3>@Translate("contactUs", "CONTACT"):</h3> 1698 <ul> 1699 <li><i class="fa fa-phone" aria-hidden="true"></i> &nbsp;@Pageview.Area.Item["Phone"]</li> 1700 <li><i class="fa fa-envelope" aria-hidden="true"></i> &nbsp;@Pageview.Area.Item["Email"]</li> 1701 <li> <i class="fa fa-map-marker" aria-hidden="true"></i> &nbsp;@Pageview.Area.Item["Address"]</li> 1702 1703 </ul> 1704 </div> 1705 </div> 1706 1707 </div> 1708 </div> 1709 </div> 1710 </div> 1711 </div> 1712 1713 <div class="footer-bottom clearfix"> 1714 <div class="fixed-main"> 1715 <div class="container"> 1716 <div class="mag-content"> 1717 <div class="row"> 1718 <div class="col-md-6"> 1719 <p>@Translate("copyright", "Copyright"): @Translate("TehnicMedia2017", "Tehnic Media") &copy; @DateTime.Now.Year. 1720 <a href="http://www.tehnicmedia.ro"><img src="@AdresaLogoFooter" width="" height=""></a></p> 1721 </div> 1722 <div class="col-md-6"> 1723 <div class="social-icons pull-right"> 1724 <a href='@Pageview.Area.Item["FacebookLink"]' target="_blank"><i class="fa fa-facebook" style="padding: 0px 8px;"></i></a> 1725 <a href='@Pageview.Area.Item["TwitterLink"]' target="_blank"><i class="fa fa-twitter" style="padding: 0px 8px;"></i></a> 1726 </div> 1727 </div> 1728 </div> 1729 </div> 1730 </div> 1731 </div> 1732 </div> 1733 1734 </footer> 1735 <!-- End Footer --> 1736 1737 1738 1739 <!-- Mobile Menu --> 1740 <nav id="mobile-nav"> 1741 <div> 1742 @RenderNavigation(new { 1743 template = "MainNavigationMobile.xslt", 1744 expandmode = "all", 1745 id = "mobile-nav", 1746 startlevel = 1, 1747 listStyle = "mobile-navigation", 1748 endlevel = 2 1749 }) 1750 </div> 1751 </nav> 1752 <!-- / Mobile Menu --> 1753 <div id="go-top-button" class="fa fa-angle-up" title="Scroll To Top"></div> 1754 <div class="mobile-overlay" id="mobile-overlay"></div> 1755 1756 <script type="text/javascript" src="@scriptBundleFooter"></script> 1757 1758 1759 1760 @*Include("Custom/MasterFooter.cshtml")*@ 1761 @RenderSnippet("Modals") 1762 <!--<script type="text/javascript" src="assets/js/footer_scripts.js"></script>--> 1763 1764 @Pageview.Area.Item["Analytics_Code"] 1765 <!-- Add to Calendar --> 1766 <script type="text/javascript">(function () { 1767 if (window.addtocalendar)if(typeof window.addtocalendar.start == "function")return; 1768 if (window.ifaddtocalendar == undefined) { window.ifaddtocalendar = 1; 1769 var d = document, s = d.createElement('script'), g = 'getElementsByTagName'; 1770 s.type = 'text/javascript';s.charset = 'UTF-8';s.async = true; 1771 s.src = ('https:' == window.location.protocol ? 'https' : 'http')+'://addtocalendar.com/atc/1.5/atc.min.js'; 1772 var h = d[g]('body')[0];h.appendChild(s); } 1773 })(); 1774 </script> 1775 1776 <!-- Go to www.addthis.com/dashboard to customize your tools --> 1777 <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-58b014abcccaba2d"></script> 1778 1779 <!-- Twitter Widget--> 1780 <!--<script type="text/javascript"> 1781 window.twttr = (function (d,s,id) { 1782 var t, js, fjs = d.getElementsByTagName(s)[0]; 1783 if (d.getElementById(id)) return; js=d.createElement(s); js.id=id; 1784 js.src="https://platform.twitter.com/widgets.js"; fjs.parentNode.insertBefore(js, fjs); 1785 return window.twttr || (t = { _e: [], ready: function(f){ t._e.push(f) } }); 1786 }(document, "script", "twitter-wjs")); 1787 </script>--> 1788 1789 <!-- Twitter Widget Loader --> 1790 1791 @RenderSnippet("bottomJS") 1792 1793 <!-- Start Scroll tracking --> 1794 <script src="@areaLayoutPath/assets/js/gascrolldepth.min.js"></script> 1795 <script> 1796 gascrolldepth.init({ 1797 elements: ['#mm-0', 'footer'], 1798 userTiming: true, 1799 gtmOverride: true, 1800 eventHandler: function(data) { 1801 if (data.event == "ScrollDistance") { 1802 ga('send', 'event', data.eventCategory, data.eventAction, data.eventLabel, data.eventValue); 1803 } 1804 } 1805 }); 1806 </script> 1807 <!-- End Scroll tracking --> 1808 <script type="text/javascript"> 1809 1810 /* <![CDATA[ */ 1811 1812 var google_conversion_id = 1010029401; 1813 1814 var google_custom_params = window.google_tag_params; 1815 1816 var google_remarketing_only = true; 1817 1818 /* ]]> */ 1819 1820 </script> 1821 1822 <script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js"></script> 1823 <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-multiselect/0.9.15/js/bootstrap-multiselect.min.js"></script> 1824 1825 <noscript> 1826 <div style="display:inline;"> 1827 <img height="1" width="1" style="border-style:none;" alt="" src="//googleads.g.doubleclick.net/pagead/viewthroughconversion/1010029401/?guid=ON&amp;script=0"> 1828 </div> 1829 </noscript> 1830 <div id="loading"></div> 1831 </body> 1832 </html>