Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.
C# aspnet-corecsharpdockerdotnetecommerceecommerce-platformmongodbmulti-storemulti-vendornosqlonline-shopshoppingcart
@inject CustomerSettings customerSettings
@if (!customerSettings.HideNewsletterBlock)
{
<div class="newsletter mt-3 bg-info col-12" vue-island>
<div class="d-flex justify-content-center justify-content-lg-start">
<div class="newsletter-subscribe container w-100" id="newsletter-subscribe-block">
<div class="d-flex flex-row row">
<div class="col-lg-7 col-12 px-0 d-flex flex-column align-items-lg-start align-items-center">
<h2 class="newsletter-title">
@Loc["Newsletter.Title"]
</h2>
<div class="newsletter-desc">
@Loc["Newsletter.Desc"]
</div>
</div>
<div class="col-lg-5 col-12 px-lg-3 pe-lg-0 px-0 mt-lg-0 newsletter-inputs d-flex flex-column justify-content-center align-items-center">
<div class="input-group" role="group">
<input id="newsletter-email" class="input-group-text form-control newsletter-email"
placeholder="@Loc["Newsletter.Email.Placeholder"]" aria-label="@Loc["Newsletter.Email.Placeholder"]"/>
<label for="newsletter-email" class="visually-hidden">newsletter</label>
<div class="input-group-append">
<button class="btn btn-secondary newsletter-email-button" id="newsletter-subscribe-button" @@click="newsletterBox(@customerSettings.NewsletterBlockAllowToUnsubscribe.ToString().ToLower(), '@(Url.RouteUrl("SubscribeNewsletter"))')">
<i class="b-icon bi bi-envelope" aria-hidden="true"></i>
</button>
</div>
</div>
@if (customerSettings.NewsletterBlockAllowToUnsubscribe)
{
<div class="custom-controls-stacked newsletter-subscribe-unsubscribe justify-content-center w-100 pt-1">
<fieldset class="d-inline-flex justify-content-center w-100">
<div class="form-check mb-2">
<input value="newsletter_unsubscribe" id="newsletter_subscribe" ref="newsletterSubscribe" name="newsletter_block" type="radio" class="form-check-input" checked="checked">
<label class="form-check-label text-white" for="newsletter_subscribe">@Loc["Newsletter.Options.Subscribe"]</label>
</div>
<div class="form-check ms-3 mb-2">
<input value="newsletter_unsubscribe" id="newsletter_unsubscribe" name="newsletter_block" type="radio" class="form-check-input">
<label class="form-check-label text-white" for="newsletter_unsubscribe">@Loc["Newsletter.Options.Unsubscribe"]</label>
</div>
</fieldset>
</div>
}
<div class="newsletter-validation text-white text-center w-100">
<span id="subscribe-loading-progress" style="display: none;" class="please-wait">@Loc["Common.Wait..."]</span>
</div>
<div id="newsletter-result-block" style="display: none;" class="newsletter-result text-center text-white w-100">
<div class="alert alert-info">
</div>
</div>
</div>
</div>
<input type="hidden" id="newsletterbox" data-href="@(Url.RouteUrl("SubscribeNewsletter"))" data-allowtounsubscribe=@customerSettings.NewsletterBlockAllowToUnsubscribe/>
</div>
</div>
</div>
}