Skip to content
Code-Schnipsel Gruppen Projekte
Commit ca849b88 erstellt von Michael Danielczok's avatar Michael Danielczok
Dateien durchsuchen

Merge branch 'cherry-pick-fa771496' into 'next-1.x'

fix: replace not allowed element to pass the html validator

See merge request !17
Übergeordnete 4de1042f 14c3e106
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
2 Merge Requests!18fix: consider structured data setting in faq category site type,!17fix: replace not allowed element to pass the html validator
Pipeline-Nr. 9186 mit Warnungen bestanden
...@@ -6,28 +6,14 @@ ...@@ -6,28 +6,14 @@
{* Template: default*} {* Template: default*}
{if $faqTemplate == 'default'} {if $faqTemplate == 'default'}
{if $offset} <section itemscope itemtype="https://schema.org/ItemList"
{*
This CSS is used to scroll the page down a bit when accessed with a # in the url.
By doing this the menu no longer hides the linked content.
*}
<style type="text/css">
:target::before {
content: '';
display: block;
height: {$offset}px;
margin-top: -{$offset}px;
}
</style>
{/if}
<section itemscope itemtype="http://schema.org/ItemList"
class="content-template quiqqer-faq clear-fix cologne-quiqqer-faq" class="content-template quiqqer-faq clear-fix cologne-quiqqer-faq"
data-qui="package/quiqqer/faq/bin/Category" data-qui="package/quiqqer/faq/bin/Category"
data-qui-options-offset="{$offset}" data-qui-options-offset="{$offset}"
{if $offset}style="--_qui-faq-scrollOffset: var(--qui-faq-scrollOffset, {$offset}px);"{/if}
> >
{if count($entries)} {if count($entries)}
<ul class="quiqqer-faq-list" id="faqList" name="faqList"> <ul class="quiqqer-faq-list" id="faqList">
{foreach $entries as $Faq} {foreach $entries as $Faq}
<li> <li>
<a href="{url site=$Site}#faq{$Faq->getId()}"> <a href="{url site=$Site}#faq{$Faq->getId()}">
...@@ -40,7 +26,7 @@ ...@@ -40,7 +26,7 @@
{/if} {/if}
{foreach $entries as $Faq} {foreach $entries as $Faq}
<article id="faq{$Faq->getId()}" class="clear-fix"> <article id="faq{$Faq->getId()}" class="quiqqer-faq__entry">
<header> <header>
<h2><span class="fa fa-file-text"></span> {$Faq->getAttribute('title')}</h2> <h2><span class="fa fa-file-text"></span> {$Faq->getAttribute('title')}</h2>
</header> </header>
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
{/if} {/if}
{* END language & currency switch *} {* END language & currency switch *}
<span class="cologne-header-control-user"> <div class="cologne-header-control-user">
{if $User->getId()} {if $User->getId()}
{$Avatar->create()} {$Avatar->create()}
{else} {else}
...@@ -34,6 +34,6 @@ ...@@ -34,6 +34,6 @@
<span class="cologne-header-control-user-loader"> <span class="cologne-header-control-user-loader">
<span class="fa fa-pulse fa-circle-o-notch"></span> <span class="fa fa-pulse fa-circle-o-notch"></span>
</span> </span>
</span> </div>
</div> </div>
</div> </div>
\ No newline at end of file
0% Lade oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren