private static HtmlBuilder LogoImage( this HtmlBuilder hb, Context context, bool showTitle, bool existsTenantImage) { return(existsTenantImage && !context.Publish ? hb.Img( id: "CorpLogo", src: Locations.Get( context: context, parts: new string[] { "Binaries", "TenantImageLogo", BinaryUtilities.TenantImagePrefix( context, SiteSettingsUtilities.TenantsSiteSettings(context), context.TenantId, Images.ImageData.SizeTypes.Logo) })) : hb.Img( id: "CorpLogo", src: Locations.Images( context: context, parts: showTitle ? "logo-corp.png" : "logo-corp-with-title.png"))); }