Skip to content

Commit

Permalink
Add share and pdf download links to TOC [PUB-234]
Browse files Browse the repository at this point in the history
  • Loading branch information
web-dev-trev committed Aug 26, 2024
1 parent 49b876d commit aa08c59
Showing 1 changed file with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,36 @@
@slot('currentArticle', $currentArticle ?? null)
@endcomponent
@endif

<ul class="m-article-actions{{ (isset($variation)) ? ' '.$variation : '' }}" aria-labelledby="h-article-actions{{ (isset($variation)) ? $variation : '' }}">

@if (empty($hideShare))
<li class="m-article-actions__action">
@component('components.atoms._btn')
@slot('variation', 'btn--icon'.((isset($articleType) and $articleType === 'editorial') ? ' btn--senary' : '').((isset($btnVariation)) ? ' '.$btnVariation : ''))
@slot('font', '')
@slot('icon', 'icon--share--24')
@slot('behavior','sharePage')
@slot('ariaLabel','Share page')
@slot('dataAttributes',' data-share-url="' . ($shareUrl ?? '') . '"')
@endcomponent
</li>
@endif

@if (isset($pdfDownloadPath))
<li class="m-article-actions__action">
@component('components.atoms._btn')
@slot('variation', 'btn--icon ' . ((isset($btnVariation)) ? ' '.$btnVariation : ''))
@slot('font', '')
@slot('tag', 'a')
@slot('href', $pdfDownloadPath)
@slot('icon', 'icon--download--24')
@slot('ariaLabel','Download PDF')
@endcomponent
</li>
@endif

</ul>
</div>

<div class="o-sticky-sidebar__placeholder"></div>

0 comments on commit aa08c59

Please sign in to comment.