Skip to content

Commit

Permalink
w3c
Browse files Browse the repository at this point in the history
  • Loading branch information
ropalko committed Sep 14, 2022
1 parent c50b72e commit ffeddcd
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 12 deletions.
51 changes: 50 additions & 1 deletion .data/app.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<SexyContent FileVersion="07.00.00" MinimumRequiredVersion="07.04.02" ModuleVersion="14.07.00" ExportDate="2022-06-30T12:51:11.7263766+02:00">
<SexyContent FileVersion="07.00.00" MinimumRequiredVersion="07.04.02" ModuleVersion="14.07.01" ExportDate="2022-07-01T17:35:19.7467287+02:00">
<Header>
<App Guid="8258619d-a5d7-4f9a-9ef5-af9caac8dbaa" />
<Language Default="en-us" />
Expand Down Expand Up @@ -2771,19 +2771,68 @@
<Dimension DimensionID="146" ReadOnly="false" />
</Value>
</Entity>
<Entity TargetType="1" AssignmentObjectType="Default" AttributeSetStaticName="2SexyContent-ContentGroup" AttributeSetName="2SexyContent-ContentGroup" EntityGUID="801a61f4-02c6-461b-b78f-08fd994a8015" Json="True">
<Value Key="Content" Value="a6122fee-fb78-4507-bfac-6c239971fad3" Type="Entity" />
<Value Key="Presentation" Value="null" Type="Entity" />
<Value Key="Template" Value="bedafc8c-c1ec-445a-994d-fcce2b09e074" Type="Entity" />
</Entity>
<Entity TargetType="1" AssignmentObjectType="Default" AttributeSetStaticName="c9af98e2-ca7d-478e-972e-bf221bd0af8c" AttributeSetName="Channel" EntityGUID="a6122fee-fb78-4507-bfac-6c239971fad3">
<Value Key="Category" Value="6ad8e4d0-7e31-4604-8605-b9495e7c2b07" Type="Entity" />
<Value Key="Description" Value="&lt;p&gt;Lorem ipsum&lt;/p&gt;&#xA;&lt;p&gt;&amp;nbsp;&lt;/p&gt;" Type="String">
<Dimension DimensionID="146" ReadOnly="false" />
</Value>
<Value Key="Image" Value="file:6175" Type="Hyperlink">
<Dimension DimensionID="146" ReadOnly="false" />
</Value>
<Value Key="Language" Value="de-de" Type="String">
<Dimension DimensionID="146" ReadOnly="false" />
</Value>
<Value Key="License" Value="a958f5e2-3941-4070-849d-c0d3772427ab" Type="Entity" />
<Value Key="Owner" Value="2827581c-b4ed-48ad-9930-f3703c6c8d3b" Type="Entity" />
<Value Key="Title" Value="Test" Type="String">
<Dimension DimensionID="146" ReadOnly="false" />
</Value>
</Entity>
<Entity TargetType="1" AssignmentObjectType="Default" AttributeSetStaticName="d9fbf8a7-c656-426e-b820-e74943699af1" AttributeSetName="Episode" EntityGUID="0a9b6ae5-e29f-43a6-ba2a-56e16addfe33">
<Value Key="Audio" Value="file:6173" Type="Hyperlink">
<Dimension DimensionID="146" ReadOnly="false" />
</Value>
<Value Key="Author" Value="2827581c-b4ed-48ad-9930-f3703c6c8d3b" Type="Entity" />
<Value Key="Channels" Value="a6122fee-fb78-4507-bfac-6c239971fad3" Type="Entity" />
<Value Key="Date" Value="2022-06-30T00:00:00" Type="DateTime">
<Dimension DimensionID="146" ReadOnly="false" />
</Value>
<Value Key="Description" Value="&lt;p&gt;LOL&lt;/p&gt;" Type="String">
<Dimension DimensionID="146" ReadOnly="false" />
</Value>
<Value Key="Duration" Value="6" Type="Number">
<Dimension DimensionID="146" ReadOnly="false" />
</Value>
<Value Key="Explicit" Value="False" Type="Boolean">
<Dimension DimensionID="146" ReadOnly="false" />
</Value>
<Value Key="Title" Value="TestEpisode" Type="String">
<Dimension DimensionID="146" ReadOnly="false" />
</Value>
</Entity>
</Entities>
<PortalFiles>
<File Id="4453" RelativePath="adam\PodCast\dwAA-R31CUO68STevXUDqQ\Image\podcast logo.png" />
<File Id="4190" RelativePath="adam\PodCast\GTzLbJdOTUqkX81-6Zp_PA\Audio\lyricchords.mp3" />
<File Id="4191" RelativePath="adam\PodCast\7tjelP10MUC5Co3h_m1bPg\Audio\lyricslap.mp3" />
<File Id="6175" RelativePath="adam\PodCast2\7i8Spnj7B0W_rGwjmXH60w\Image\visual-reverse-image-search-v2_intro.jpg" />
<File Id="6173" RelativePath="adam\ImageHotspots3\qYVI1hkvqU-KAO70vE-8Bw\Image\visual-reverse-image-search-v2_intro.jpg" />
<File Id="6029" RelativePath="adam\PodCast2\340HITtockSiX9FO_tUu1Q\Image\tall img.png" />
</PortalFiles>
<PortalFolders>
<Folder Id="7011" RelativePath="adam/PodCast/dwAA-R31CUO68STevXUDqQ/Image/" />
<Folder Id="7013" RelativePath="adam/PodCast/GTzLbJdOTUqkX81-6Zp_PA/Audio/" />
<Folder Id="7015" RelativePath="adam/PodCast/7tjelP10MUC5Co3h_m1bPg/Audio/" />
<Folder Id="13793" RelativePath="adam/PodCast2/7i8Spnj7B0W_rGwjmXH60w/Image/" />
<Folder Id="13789" RelativePath="adam/ImageHotspots3/qYVI1hkvqU-KAO70vE-8Bw/Image/" />
<Folder Id="13427" RelativePath="adam/PodCast2/340HITtockSiX9FO_tUu1Q/Image/" />
<Folder Id="13414" RelativePath="adam/PodCast2/" />
<Folder Id="13426" RelativePath="adam/PodCast2/340HITtockSiX9FO_tUu1Q/" />
<Folder Id="13792" RelativePath="adam/PodCast2/7i8Spnj7B0W_rGwjmXH60w/" />
</PortalFolders>
</SexyContent>
6 changes: 3 additions & 3 deletions bs4/_Channel.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<div class="card border-0">
@Kit.Image.Picture(channel.Field("Image"), settings: imgSettings, width: "1000", imgClass:"w-100 rounded-sm")
<div class="card-body p-0">
<p class="card-text">
<div class="card-text mt-2">
<p class="text-muted">@episodes.Count() @Resources.Episodes</p>
<hr>
<div class="pc-channel-description-desktop d-none d-md-block">@Html.Raw(channel.Description)</div>
Expand All @@ -47,9 +47,9 @@
<h5 class="card-subtitle mb-3 pc-owner-name">@channel.Owner.FullName</h5>
<div class="pc-channel-description-mobile d-block d-md-none">@Html.Raw(channel.Description)</div>
<div class="pc-channel-category-rss d-flex">
<p class="card-text text-muted mb-0 align-self-end">
<div class="card-text text-muted mb-0 mt-2 align-self-end">
@(Text.Has(channel.Category.SubCategory) ? channel.Category.SubCategory : channel.Category.MainCategory)
</p>
</div>
<a class="badge badge-pill d-flex justify-content-center bg-secondary"
href='@Link.To(api: "api/PodCast/Rss", parameters: "pageid=" + CmsContext.Page.Id + "&moduleId=" + CmsContext.Module.Id + "&channelid=" + channel.EntityId)'
target="_blank">
Expand Down
19 changes: 11 additions & 8 deletions bs5/_Channel.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,26 @@
var channelToolbar = Kit.Toolbar.Default().Settings(hover:"left", autoAddMore:"start");

var episodeToolbar = Kit.Toolbar.Empty()
.Settings(hover: "left")
.Settings(hover: "left", show: "always")
.New("Episode", prefill:"Date=" + @DateTime.Now.ToString("yyyy-MM-dd")
+ "&prefill:Channels=" + channel.EntityGuid.ToString()
+ "&prefill:Author=" + channel.Owner.EntityGuid.ToString());

var channelIsDemoItem = channel.IsDemoItem;
}

<div class="app-podcast2 container mb-4" @channelToolbar.For(channel)>
<div class="app-podcast2 container mb-4" @channelToolbar.For(channel)>
<div class="row">
@* Left column with image, episode counter and channel description *@
<div class="col-12 col-md-4">
<div class="card border-0">
@Kit.Image.Picture(channel.Field("Image"), settings: imgSettings, width: "1000", imgClass:"w-100 rounded-sm")
@Kit.Image.Picture(channel.Field("Image"), settings: imgSettings, width: "1000", imgClass:"w-100 rounded-sm", imgAlt: channel.Title)
<div class="card-body p-0">
<p class="card-text">
<div class="card-text mt-2">
<p class="text-muted">@episodes.Count() @Resources.Episodes</p>
<hr>
<div class="pc-channel-description-desktop d-none d-md-block">@Html.Raw(channel.Description)</div>
</p>
</div>
</div>
</div>
</div>
Expand All @@ -47,9 +47,9 @@
<h5 class="card-subtitle mb-3 pc-owner-name">@channel.Owner.FullName</h5>
<div class="pc-channel-description-mobile d-block d-md-none">@Html.Raw(channel.Description)</div>
<div class="pc-channel-category-rss d-flex">
<p class="card-text text-muted mb-0 align-self-end">
<div class="card-text text-muted mb-0 mt-2 align-self-end">
@(Text.Has(channel.Category.SubCategory) ? channel.Category.SubCategory : channel.Category.MainCategory)
</p>
</div>
<a class="badge rounded-pill d-flex justify-content-center bg-secondary"
href='@Link.To(api: "api/PodCast/Rss", parameters: "pageid=" + CmsContext.Page.Id + "&moduleId=" + CmsContext.Module.Id + "&channelid=" + channel.EntityId)'
target="_blank">
Expand All @@ -63,7 +63,10 @@
</div>

@* Listing of episodes *@
<div @(channelIsDemoItem ? "" : episodeToolbar)>
@* <div @(channelIsDemoItem ? "" : episodeToolbar) class='@(Edit.Enabled && episodes.Count() == 0 ? "py-2" : "")'> *@
<div style="position: relative"> @* position: relative muss aktuell drauf sein, sonst ist auch bei hover die Toolbar an der falschen stelle *@
@(channelIsDemoItem ? "" : episodeToolbar.AsTag())

<ul class="list-group">
@foreach(var episode in episodes.OrderByDescending(e => e.Date)) {
@Html.Partial("./_Channel.PartEpisode.cshtml", new { Episode = episode })
Expand Down

0 comments on commit ffeddcd

Please sign in to comment.