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

Merge branch 'next-1.x' into '1.x'

fix: consider structured data setting in faq category site type

See merge request !18
Übergeordnete 2063bcc3 ca849b88
No related branches found
Tags 1.1.1
1 Merge Request!18fix: consider structured data setting in faq category site type
Pipeline #9187 mit Warnungen bestanden mit Phasen
in 47 Sekunden
...@@ -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>
...@@ -65,6 +51,10 @@ ...@@ -65,6 +51,10 @@
{/if} {/if}
{/foreach} {/foreach}
{if $faqStructuredData}
{$faqStructuredData}
{/if}
</section> </section>
{/if} {/if}
......
...@@ -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% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren