Skip to main content
处理模板时发生错误。
Expression root.selectSingleNode("dynamic-element[@name='url-linkedin']/dynamic-content") is undefined on line 28, column 16 in 10112#37001#82673923.
1<#assign sciezkaObrazkow = ''> 
2<#if request?? && request?has_content > 
3    <#assign sciezkaObrazkow = request['theme-display']["path-theme-images"]> 
4    <#assign longGroupIdFromRequest = getterUtil.getLong(request['theme-display']["scope-group-id"])> 
5    <#assign currentLocale = .locale> 
6</#if> 
7 
8<#if sciezkaObrazkow?has_content || sciezkaObrazkow?matches(".*/uj-lift-theme/images.*")> 
9 
10<#assign journalArticleService = serviceLocator.findService("com.liferay.portlet.journal.service.JournalArticleLocalService")> 
11 
12<#---------Article variables---------> 
13<#assign articleId = .vars['reserved-article-id'].data> 
14<#assign actualVersion = .vars['reserved-article-version'].data> 
15 
16<#assign 
17    article = journalArticleService.getArticle(getterUtil.getLong(groupId), articleId, getterUtil.getDouble(actualVersion)) 
18    content = article.getContentByLocale(locale) 
19    document = saxReaderUtil.read(content) 
20    root = document.getRootElement() 
21 
22    title = root.selectSingleNode("dynamic-element[@name='title']/dynamic-content").text 
23    facebook = root.selectSingleNode("dynamic-element[@name='url-facebook']/dynamic-content").text 
24    twitter = root.selectSingleNode("dynamic-element[@name='url-twitter']/dynamic-content").text 
25    youtube = root.selectSingleNode("dynamic-element[@name='url-youtube']/dynamic-content").text 
26    flickr = root.selectSingleNode("dynamic-element[@name='url-flickr']/dynamic-content").text 
27    instagram = root.selectSingleNode("dynamic-element[@name='url-instagram']/dynamic-content").text 
28    linkedin = root.selectSingleNode("dynamic-element[@name='url-linkedin']/dynamic-content").text 
29 
30    rss = root.selectSingleNode("dynamic-element[@name='url-rss']/dynamic-content").text 
31    bip = root.selectSingleNode("dynamic-element[@name='url-bip']/dynamic-content").text 
32/> 
33<#if root.selectSingleNode("dynamic-element[@name='urlSpotify']/dynamic-content")??> 
34    <#assign   spotify = root.selectSingleNode("dynamic-element[@name='urlSpotify']/dynamic-content").text /> 
35</#if> 
36<#if root.selectSingleNode("dynamic-element[@name='url-vk']/dynamic-content")??> 
37    <#assign vk = root.selectSingleNode("dynamic-element[@name='url-vk']/dynamic-content").text /> 
38</#if> 
39 
40 
41<section class="_cf main-socials"> 
42    <#if title?? && title?has_content && title?is_string> 
43        <div class="main-socials__heading"> 
44            ${title?string} 
45        </div> 
46    </#if> 
47    <div class="main-socials__left"> 
48        <#if facebook?? && facebook?has_content> 
49            <a class="_cf main-socials__item main-socials__item--facebook" 
50               href="${facebook}" title="Facebook"> 
51                <i class="icon icon-facebook"></i> 
52                <span class="main-socials__item-text">Facebook</span> 
53            </a> 
54        </#if> 
55        <#if twitter?? && twitter?has_content> 
56            <a class="_cf main-socials__item main-socials__item--twitter" 
57               href="${twitter}" title="Twitter"> 
58                <i class="icon icon-twitter"></i> 
59                <span class="main-socials__item-text">Twitter</span> 
60            </a> 
61        </#if> 
62        <#if youtube?? && youtube?has_content> 
63            <a class="_cf main-socials__item main-socials__item--youtube" 
64               href="${youtube}" title="Youtube"> 
65                <i class="icon icon-youtube"></i> 
66                <span class="main-socials__item-text">Youtube</span> 
67            </a> 
68        </#if> 
69        <#if flickr?? && flickr?has_content> 
70            <a class="_cf main-socials__item main-socials__item--flickr" 
71               href="${flickr}" title="Flickr"> 
72                <i class="icon icon-flickr"></i> 
73                <span class="main-socials__item-text">Flickr</span> 
74            </a> 
75        </#if> 
76        <#if instagram?? && instagram?has_content> 
77            <a class="_cf main-socials__item main-socials__item--instagram" 
78               href="${instagram}" title="Instagram UJ"> 
79                <i class="icon icon-instagram"></i> 
80                <span class="main-socials__item-text">Instagram</span> 
81            </a> 
82        </#if> 
83        <#if groupId==10172> 
84            <a class="_cf main-socials__item main-socials__item--instagram-misjauj" 
85               href="https://www.instagram.com/misjauj/" title="Instagram #MisjaUJ"> 
86                <i class="icon icon-instagram"></i> 
87                <span class="main-socials__item-text">#misjaUJ</span> 
88            </a> 
89        </#if> 
90 
91        <#if linkedin?? && linkedin?has_content> 
92            <a class="_cf main-socials__item main-socials__item--linkedin" 
93               href="${linkedin}" title="LinkedIn"> 
94                <i class="icon icon-linkedin"></i> 
95                <span class="main-socials__item-text">LinkedIn</span> 
96            </a> 
97        </#if> 
98        <#if spotify?? && spotify?has_content> 
99            <a class="_cf main-socials__item main-socials__item--spotify" 
100               href="${spotify}" title="Spotify"> 
101                <i class="icon icon-spotify"></i> 
102                <span class="main-socials__item-text">Spotify</span> 
103            </a> 
104        </#if> 
105        <#if vk?? && vk?has_content> 
106            <a class="_cf main-socials__item main-socials__item--vk" 
107               href="${vk}" title="VK"> 
108                <i class="icon icon-vk"></i> 
109                <span class="main-socials__item-text">VK</span> 
110            </a> 
111        </#if> 
112 
113    </div> 
114 
115    <#if (bip?? && bip?has_content) || (rss?? && rss?has_content)> 
116        <div class="main-socials__right"> 
117 
118            <#if bip?? && bip?has_content> 
119                <a class="_cf main-socials__item main-socials__item--right main-socials__item--bip" 
120                   href="${bip}" title="BIP"> 
121                <i class="icon icon-bip"></i> 
122                <span class="main-socials__item-text">BIP</span> 
123                </a> 
124            </#if> 
125            <#if rss?? && rss?has_content> 
126                <a class="_cf main-socials__item main-socials__item--right main-socials__item--rss" 
127                   href="${rss}" title="RSS"> 
128                <i class="icon icon-rss"></i> 
129                <span class="main-socials__item-text">RSS</span> 
130                </a> 
131            </#if> 
132 
133        </div> 
134    </#if> 
135 
136</section> 
137 
138<#else> 
139    <#if permissionChecker.getUserId() gt 100000> 
140        <p>Ten szablon przeznaczony jest tylko dla dedykowanej skórki UJ</p> 
141    </#if> 
142</#if>