diff --git a/Models/BootstrapAccordionItem.cs b/Models/BootstrapAccordionItem.cs deleted file mode 100644 index f3924f4a..00000000 --- a/Models/BootstrapAccordionItem.cs +++ /dev/null @@ -1,10 +0,0 @@ -using Microsoft.AspNetCore.Mvc.Localization; -using OrchardCore.DisplayManagement; - -namespace Lombiq.HelpfulExtensions.Models; - -public class BootstrapAccordionItem -{ - public LocalizedHtmlString Title { get; set; } - public IShape Shape { get; set; } -} diff --git a/Readme.md b/Readme.md index dd9276df..9f61714f 100644 --- a/Readme.md +++ b/Readme.md @@ -54,20 +54,6 @@ Includes: Adds a dump of metadata to the output about every shape. This will help you understand how a shape is displayed and how you can override it. Just check out the HTML output. You can see a video demo of this feature in action [on YouTube](https://www.youtube.com/watch?v=WI4TEKVc9SA). -### Helpful Shapes - -Adds common constructs you can use in your views. - -#### BootstrapAccordion - -It displays an [accordion powered by Bootstrap](https://getbootstrap.com/docs/4.0/components/collapse/#accordion-example). It displays shapes as content. The `Children` property is required. - -```html - -``` - ### Security Extensions diff --git a/Views/BootstrapAccordion.cshtml b/Views/BootstrapAccordion.cshtml deleted file mode 100644 index d8e60eed..00000000 --- a/Views/BootstrapAccordion.cshtml +++ /dev/null @@ -1,53 +0,0 @@ -@using Lombiq.HelpfulExtensions.Models -@using OrchardCore.Mvc.Utilities - -@{ - var additionalClasses = Model.AdditionalClasses?.ToString() ?? string.Empty; -} - -
- @foreach (BootstrapAccordionItem items in Model.Children) - { - var id = items.Title.Value.HtmlClassify(); - -
-
-
@items.Title
-
- -
-
- -
-
- -
-
- @await DisplayAsync(items.Shape) -
-
-
- } -
- -