ArticlePage.html 1.69 KB
Newer Older
Dainis Abols's avatar
Dainis Abols committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
      data-namespace-typo3-fluid="true">

<article class="searchResults__resultItem">
    <f:link.typolink parameter="{uid}" class="searchResults__resultImage">
        <div class="fittingImage">
            <f:if condition="{imgUrl}">
                <f:then>
                    <img src="{imgUrl}"/>
                </f:then>
                <f:else>
                    <v:resource.image identifier="{v:page.resources.fal(uid: uid) -> v:iterator.extract(key: 'id')}"/>
                </f:else>
            </f:if>
        </div>
    </f:link.typolink>

    <f:link.typolink parameter="{uid}">
        <div class="searchResults__resultTitle" style="color: black;">
            <f:format.html>{title}</f:format.html>
        </div>
    </f:link.typolink>
    <div class="searchResults__resultContent">
        <div class="searchResults__resultMeta">
            <span class="searchResults__resultDate">
26
                <f:format.date format="{f:translate(key:'LLL:EXT:lu_search/Resources/Private/Language/locallang.xlf:dateTimeFormat')}">{date_published}</f:format.date>
Dainis Abols's avatar
Dainis Abols committed
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
            </span>
            <span class="searchResults__resultCategory">
                <f:translate key="results.page"/>
            </span>
        </div>
        <div class="searchResults__resultText" style="overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;">
            <f:format.html>{body}</f:format.html>
        </div>
        <div class="searchResults__resultLink">
            <a href="{siteUrl}" target="_blank">{siteName}<i class="icon-lu-outsource"></i></a>
        </div>
    </div>

</article>

42
</html>