Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sbsoft
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ildar Safiullin
sbsoft
Commits
7f5b6201
Commit
7f5b6201
authored
Mar 28, 2018
by
Ildar Safiullin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
шаблоны
parent
86532493
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
84 additions
and
3 deletions
+84
-3
templates/preview/asset publisher/Other news categories.ftl
+55
-0
templates/preview/asset publisher/all news.ftl
+26
-0
templates/preview/asset publisher/top news.ftl
+3
-3
No files found.
templates/preview/asset publisher/Other news categories.ftl
0 → 100644
View file @
7f5b6201
<style>
#topnews h2{
margin-top: 10px;
}
#topnews .news-item .news-content h2 {
font-size: 17px;
}
#topnews .display-style-icon .lfr-asset-item h2 {
font-size: 16px;
}
</style>
<div id="topnews">
<#if entries?has_content>
<ul class="display-style-icon list-unstyled row">
<#list entries as curEntry>
<#assign
entryId = curEntry.getEntryId()
assetRenderer = curEntry.getAssetRenderer()
entryTitle = htmlUtil.escape(assetRenderer.getTitle(locale))
viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, curEntry, true)
/>
<#assign docXml = saxReaderUtil.read(curEntry.getAssetRenderer().getArticle().getContent()) />
<#assign ddmimg = docXml.valueOf("//dynamic-element[@name='ddmimg']/dynamic-content/text()") />
<li class="lfr-asset-item " data-qa-id="row">
<div class="taglib-vertical-card entry-display-style">
<div class="card">
<div class="aspect-ratio aspect-ratio-bg-center aspect-ratio-bg-cover">
<div class="date"><@getMetadataField fieldName="create-date" /></div>
<h2>
<a href="/mainnews/-/asset_publisher/JEqB8cNCGfpS/content/${assetRenderer.getUrlTitle()}?redirect=news">${curEntry.getTitle(locale)}</a>
</h2>
</div>
</div>
</div>
</li>
</#list>
</ul>
</#if>
</div>
<#macro getMetadataField fieldName>
<span class="metadata-entry">
<#assign dateFormat = "dd MMM yyyy" />
<#if fieldName == "create-date">
${dateUtil.getDate(entry.getCreateDate(), dateFormat, locale)}
</#if>
</span>
</#macro>
\ No newline at end of file
templates/preview/asset publisher/all news.ftl
0 → 100644
View file @
7f5b6201
<style>
.rating-label{
display:none;
}
</style>
<#assign dateFormat = "dd.MM.yyyy" />
<ul class="news_list list-unstyled">
<#if entries?has_content>
<#list entries as entry>
<#assign
entryId = entry.getEntryId()
assetRenderer = entry.getAssetRenderer()
entryTitle = htmlUtil.escape(assetRenderer.getTitle(locale))
viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, entry, true)
/>
<li>
<div class="date color_red">${dateUtil.getDate(entry.getModifiedDate(), dateFormat, locale)}</div>
<a href="/mainnews/-/asset_publisher/JEqB8cNCGfpS/content/${assetRenderer.getUrlTitle()}?redirect=news">
${entry.getTitle(locale)}
</a>
</li>
</#list>
</#if>
</ul>
\ No newline at end of file
templates/preview/asset publisher/top news.ftl
View file @
7f5b6201
...
@@ -28,10 +28,10 @@
...
@@ -28,10 +28,10 @@
<img src="${ddmimg}" alt="" title="" class="news-image">
<img src="${ddmimg}" alt="" title="" class="news-image">
<div class="news-content">
<div class="news-content">
<div class="date"><@getMetadataField fieldName="create-date" /></div>
<div class="date"><@getMetadataField fieldName="create-date" /></div>
<h2><a href="/mainnews/-/asset_publisher/JEqB8cNCGfpS/content/${assetRenderer.getUrlTitle()}?redirect=
/newsroom
">${curEntry.getTitle(locale)}</a></h2>
<h2><a href="/mainnews/-/asset_publisher/JEqB8cNCGfpS/content/${assetRenderer.getUrlTitle()}?redirect=
news
">${curEntry.getTitle(locale)}</a></h2>
<p>${curEntry.getTitle(locale)}</p>
<p>${curEntry.getTitle(locale)}</p>
<p class="learn-more">
<p class="learn-more">
<a href="/mainnews/-/asset_publisher/JEqB8cNCGfpS/content/${assetRenderer.getUrlTitle()}?redirect=
/newsroom
">
<a href="/mainnews/-/asset_publisher/JEqB8cNCGfpS/content/${assetRenderer.getUrlTitle()}?redirect=
news
">
<button type="button" class="btn btn-primary">Подробнее</button>
<button type="button" class="btn btn-primary">Подробнее</button>
</a>
</a>
</p>
</p>
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
<div class="aspect-ratio aspect-ratio-bg-center aspect-ratio-bg-cover">
<div class="aspect-ratio aspect-ratio-bg-center aspect-ratio-bg-cover">
<div class="date"><@getMetadataField fieldName="create-date" /></div>
<div class="date"><@getMetadataField fieldName="create-date" /></div>
<h2>
<h2>
<a href="/mainnews/-/asset_publisher/JEqB8cNCGfpS/content/${assetRenderer.getUrlTitle()}?redirect=
/newsroom
">${curEntry.getTitle(locale)}</a>
<a href="/mainnews/-/asset_publisher/JEqB8cNCGfpS/content/${assetRenderer.getUrlTitle()}?redirect=
news
">${curEntry.getTitle(locale)}</a>
</h2>
</h2>
</div>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment