Inital commit
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
{block name='no-return-functions' append}
|
||||
{if $folder_id}
|
||||
{loop name="folder.seo.title" type="folder" id=$folder_id limit="1"}
|
||||
{$page_title = {$META_TITLE}}
|
||||
{$page_title = $META_TITLE}
|
||||
{/loop}
|
||||
{/if}
|
||||
{/block}
|
||||
@@ -30,19 +30,25 @@
|
||||
{if $folder_id}
|
||||
{$breadcrumbs = []}
|
||||
{loop name="folder_path" type="folder-path" folder=$folder_id}
|
||||
{$breadcrumbs[] = ['title' => {$TITLE}, 'url'=> {$URL}]}
|
||||
{$breadcrumbs[] = ['title' => {$TITLE}, 'url'=> {$URL nofilter}]}
|
||||
{/loop}
|
||||
{/if}
|
||||
{/block}
|
||||
|
||||
{block name="feeds"}
|
||||
<link rel="alternate" type="application/rss+xml" title="{intl l='All contents in'} {folder attr='title'}" href="{url path="/feed/content/{lang attr="locale"}/{folder attr="id"}"}" />
|
||||
<link rel="alternate" type="application/rss+xml" title="{intl l='All contents in'} {folder attr='title'}" href="{url path="/feed/content/%lang/%folder_id" lang={lang attr="locale"} folder_id={folder attr="id"}}" />
|
||||
{/block}
|
||||
|
||||
{* Content *}
|
||||
{block name="main-content"}
|
||||
{assign var="$folder_id" value={folder attr="id"}}
|
||||
{hook name="folder.top" folder="$folder_id"}
|
||||
<div class="main">
|
||||
<div class="col-main contents-list" role="main" aria-labelledby="main-label">
|
||||
{hook name="folder.main-top" folder="$folder_id"}
|
||||
<div class="col-main contents-list list-unstyled" role="main" aria-labelledby="main-label">
|
||||
|
||||
{hook name="folder.content-top" folder="$folder_id"}
|
||||
|
||||
{if $folder_id}
|
||||
{loop name="folder" type="folder" id=$folder_id limit="1"}
|
||||
<h1 id="main-label" class="page-header">{$TITLE}</h1>
|
||||
@@ -60,21 +66,20 @@
|
||||
<div id="folder-contents">
|
||||
<div class="contents">
|
||||
{ifloop rel="folder_content"}
|
||||
<ul>
|
||||
<ul class="list-unstyled">
|
||||
{loop name="folder_content" type="content" folder="$ID"}
|
||||
<li class="item">
|
||||
<article>
|
||||
<article class="row">
|
||||
{ifloop rel="content_thumbnail"}
|
||||
<a href="{$URL}" tabindex="-1" class="content-image">
|
||||
<a href="{$URL nofilter}" tabindex="-1" class="content-image overlay col-sm-2">
|
||||
{loop name="content_thumbnail" type="image" width="369" height="247" content=$ID limit="1"}
|
||||
<img src="{$IMAGE_URL}" alt="{$TITLE}">
|
||||
<img src="{$IMAGE_URL nofilter}" class="img-responsive" alt="{$TITLE}">
|
||||
{/loop}
|
||||
<span class="mask"></span>
|
||||
</a>
|
||||
{/ifloop}
|
||||
|
||||
<div class="content-info">
|
||||
<h3 class="name"><a href="{$URL}">{$TITLE}</a></h3>
|
||||
<div class="content-info col-sm-7">
|
||||
<h3 class="name"><a href="{$URL nofilter}">{$TITLE}</a></h3>
|
||||
|
||||
{if $CHAPO}
|
||||
<div class="short-description">
|
||||
@@ -88,7 +93,7 @@
|
||||
</ul>
|
||||
{/ifloop}
|
||||
{elseloop rel="folder_content"}
|
||||
<div class="folder-warning">
|
||||
<div class="alert alert-warning">
|
||||
{intl l="No Contents in this folder."}
|
||||
</div>
|
||||
{/elseloop}
|
||||
@@ -98,8 +103,8 @@
|
||||
{ifloop rel="blog.document"}
|
||||
<div class="documents">
|
||||
<ul>
|
||||
{loop name="blog.document" type="document" folder="{$ID}"}
|
||||
<li><a href="{$DOCUMENT_URL}" target="_blank">{$TITLE}</a></li>
|
||||
{loop name="blog.document" type="document" folder={$ID}}
|
||||
<li><a href="{$DOCUMENT_URL nofilter}" target="_blank">{$TITLE}</a></li>
|
||||
{/loop}
|
||||
</ul>
|
||||
</div>
|
||||
@@ -118,7 +123,7 @@
|
||||
<li class="item">
|
||||
<article>
|
||||
<div class="content-info">
|
||||
<h2 class="name"><a href="{$URL}">{$TITLE}</a></h2>
|
||||
<h2 class="name"><a href="{$URL nofilter}">{$TITLE}</a></h2>
|
||||
{if $CHAPO}
|
||||
<div class="short-description">
|
||||
{$CHAPO}
|
||||
@@ -131,8 +136,24 @@
|
||||
</ul>
|
||||
{/ifloop}
|
||||
{/if}
|
||||
|
||||
{hook name="folder.content-bottom" folder="$folder_id"}
|
||||
|
||||
</div>
|
||||
{hook name="folder.main-bottom" folder="$folder_id"}
|
||||
</div>
|
||||
{hook name="folder.bottom" folder="$folder_id"}
|
||||
{/block}
|
||||
|
||||
{block name="stylesheet"}
|
||||
{hook name="folder.stylesheet"}
|
||||
{/block}
|
||||
|
||||
{block name="after-javascript-include"}
|
||||
{hook name="folder.after-javascript-include"}
|
||||
{/block}
|
||||
|
||||
{block name="javascript-initialization"}
|
||||
{hook name="folder.javascript-initialization"}
|
||||
{/block}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user