Retour

NUMERISK

Une erreur s'est produite en traitant le calibre.
Expression socialsocial_page_url is undefined on line 73, column 81 in 10154#10192#12317710.
1<#assign branchDisplay = "" /> 
2<#if branch.getSiblings()?has_content> 
3    <#list branch.getSiblings() as node> 
4        <#if branchDisplay == ""> 
5            <#assign branchDisplay = node.getData() /> 
6        <#elseif !branchDisplay?contains(node.getData())> 
7            <#assign branchDisplay = branchDisplay + ", " + node.getData() /> 
8        </#if> 
9    </#list> 
10</#if> 
11 
12<article class="interior-society" > 
13     
14    <div class="interior-society-main" tabindex="0" > 
15         
16        <img class="interior-society-logo" src="${logo.getData()}" alt="Logo ${.vars['reserved-article-title'].data}" /> 
17         
18        <div class="interior-society-info"> 
19            <h2 class="interior-society-name">${.vars['reserved-article-title'].data}</h2> 
20            <p class="interior-society-short-desc">${short_desc.getData()}</p> 
21            <p class="interior-society-branch">Filière : <strong>${branchDisplay}</strong></p> 
22            <#if is_current.getData() == "true"> 
23                <p class="interior-society-branch">En cours d'accompagnement</p> 
24            </#if> 
25        </div> 
26         
27    </div> 
28     
29    <div class="interior-society-more"> 
30        <div class="interior-society-more-content"> 
31            <img class="interior-society-more-logo" src="${logo.getData()}" alt="Logo ${.vars['reserved-article-title'].data}" /> 
32            <h3 class="interior-society-more-name">${.vars['reserved-article-title'].data}</h3> 
33            <#if long_desc.getData() != ""> 
34                <p class="interior-society-more-short-desc">${long_desc.getData()}</p> 
35            <#else> 
36                <p class="interior-society-more-short-desc">${short_desc.getData()}</p> 
37            </#if> 
38            <p class="interior-society-more-branch">Filière : <strong>${branchDisplay}</strong></p> 
39            <#if is_current.getData() == "true"> 
40                <p class="interior-society-more-branch">En cours d'accompagnement</p> 
41            </#if> 
42            <#if director.getData() != ""> 
43                <p class="interior-society-more-branch">Dirigeant(s) : <strong>${director.getData()}</strong></p> 
44            </#if> 
45            <div class="interior-society-more-address-wrapper"> 
46                <#if address.getSiblings()?has_content> 
47                    <#list address.getSiblings() as add> 
48                        <#if add.getData() != ""> 
49                            <p class="interior-society-more-address">${add.getData()}</p> 
50                        </#if> 
51                    </#list> 
52                    </#if> 
53                <p class="interior-society-more-address">${city.getData()}</p> 
54                <#if tel.getData() != ""> 
55                    <p class="interior-society-more-address">${tel.getData()}</p> 
56                </#if> 
57                <#if mail.getData() != ""> 
58                    <p class="interior-society-more-address">${mail.getData()}</p> 
59                </#if> 
60            </div> 
61            <#if website.getSiblings()?has_content> 
62                <#list website.getSiblings() as web> 
63                    <#if web.getData() != ""> 
64                        <#assign webhost = websiteHost(web.getData()) /> 
65                        <p class="interior-society-more-website"><a href="${web.getData()}" target="_blank" rel="noopener noreferrer">${webhost}</a></p> 
66                    </#if> 
67                </#list> 
68            </#if> 
69            <#if social_page.getSiblings()?has_content> 
70                <#list social_page.getSiblings() as social> 
71                     
72                    <#if social.social_page_name.getData() != "" && social.social_page_url.getData() != "" > 
73                        <p class="interior-society-more-social-page"><a href="${socialsocial_page_url.getData()}" target="_blank" rel="noopener noreferrer">${socialsocial_page_name.getData()}</a></p> 
74                    </#if>  
75                </#list> 
76            </#if> 
77        </div> 
78    </div> 
79     
80</article> 
81 
82<#function websiteHost url > 
83    <#assign hostStart = url?index_of("//") /> 
84    <#if hostStart == -1> 
85        <#assign hostStart = -2 /> 
86    </#if> 
87    <#assign hostEnd = url?index_of("/",10) /> 
88    <#if hostEnd == -1> 
89        <#assign hostEnd = url?length /> 
90    </#if> 
91    <#return url[hostStart+2..hostEnd-1] /> 
92</#function>