{block name="et-snippet-slider-related-link"}
    {$context = $context|default:'none'}
    {$link = $link|default:null}
    {$label = $label|default:null}
    {$displayMode = $displayMode|default:'link'}
    {$alignmentHorizontal = $alignmentHorizontal|default:'center'}
    {if !empty($link) && !empty($label)}
        <div class="et-snippet-slider-related-link et-context-{$context} et-align-horizontal-{$alignmentHorizontal}">
            {capture name='sliderRelatedLinkLabel'}{include file="widgets/base/textfield.tpl" value=$label type='span'}{/capture}
            {include file='widgets/base/button.tpl' variant="{($displayMode === 'button') ? 'primary':'link'}" label="{$smarty.capture.sliderRelatedLinkLabel}" href="{$link.href}" isExternal="{$link.external}" title="{$link.title}"}
        </div>
    {/if}
{/block}
