<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" xmlns:v="http://typo3.org/ns/FluidTYPO3/Vhs/ViewHelpers" data-namespace-typo3-fluid="true">

<f:layout name="Default"/>

<f:section name="Main">
    <h4>{f:translate(key: 'ifuLink.header', extensionName: 'seragwiessner_sitepackage')}</h4>

    <f:comment>
        <p>{f:translate(key: 'ifuLink.desc', extensionName: 'seragwiessner_sitepackage')}</p>
    </f:comment>

    <ul class="list list-unstyled">
        <f:for each="{data.pages_items}" as="data_item">
            <li>
                <f:if condition="{v:page.language(pageUid: data_item.uid)} > 1">
                    <f:then>
                        <v:page.link pageUid="{data_item.uid}" target="_blank" additionalParams="{'L':'1'}" pageTitleAs="title"><f:render section="link" arguments="{title:title}"/></v:page.link>
                    </f:then>
                    <f:else>
                        <v:page.link pageUid="{data_item.uid}" target="_blank" pageTitleAs="title"><f:render section="link" arguments="{title:title}"/></v:page.link>
                    </f:else>
                </f:if>
            </li>
        </f:for>
    </ul>
</f:section>

<f:section name="link">
    <i class="icon-ifu text-primary"></i> {f:translate(key: 'ifuLink.linkPrefix', extensionName: 'seragwiessner_sitepackage')} {title}
</f:section>
