[ Mini Kiebo ]
Server: Windows NT AKFAR_SERVER 10.0 build 26200 (Windows 10) AMD64
Path:
D:
/
Jurnal PSCP
/
plugins
/
themes
/
oldGregg-main
/
templates
/
frontend
/
pages
/
[
Home
]
File: indexJournal.tpl
{** * templates/frontend/pages/indexJournal.tpl * * Copyright (c) 2018-2019 Vitalii Bezsheiko * Distributed under the GNU GPL v3. * * @brief Journal landing page * *} {extends "frontend/layouts/general.tpl"} {* passing variable *} {assign var="pageTitleTranslated" value=$currentJournal->getLocalizedName()} {block name="pageContent"} {if !empty($latestIssues)} <section class="box_primary"> <div class="container carousel-container"> <div id="carouselIssues" class="carousel slide carousel-fade" data-ride="carousel"> <div class="carousel-inner"> {foreach from=$latestIssues item=issue key=latestKey} <div class="carousel-item{if $latestKey==0} active{/if}{if $issue->getLocalizedDescription()} carousel-with-caption{/if}"> {if $issue->getLocalizedCoverImageUrl()} {assign var="coverUrl" value=$issue->getLocalizedCoverImageUrl()} {else} {assign var="coverUrl" value=$defaultCoverImageUrl} {/if} <a href="{url page="issue" op="view" path=$issue->getBestIssueId()}" class="carousel-img"> <img src="{$coverUrl}" class="img-fluid d-block{if !$issue->getLocalizedDescription()} m-auto{/if}"{if $issue->getLocalizedCoverImageAltText()} alt="{$issue->getLocalizedCoverImageAltText()|escape}"{/if}> </a> {if $issue->getLocalizedDescription()} <div class="carousel-caption"> <a class="caption-header" href="{url page="issue" op="view" path=$issue->getBestIssueId()}"> <h5>{$issue->getIssueIdentification()|escape}</h5> </a> <div class="carousel-text"> {$issue->getLocalizedDescription()|strip_unsafe_html} </div> </div> {/if} </div> {/foreach} </div> {if $latestIssues|count > 1} <a class="carousel-control-prev" href="#carouselIssues" role="button" data-slide="prev"> <span class="carousel-control-prev-icon" aria-hidden="true"></span> <span class="sr-only">{translate key="help.previous"}</span> </a> <a class="carousel-control-next" href="#carouselIssues" role="button" data-slide="next"> <span class="carousel-control-next-icon" aria-hidden="true"></span> <span class="sr-only">{translate key="help.next"}</span> </a> {/if} </div> </div> </section> {/if} {if $showSummary} <section class="container index-journal__desc"> <div class="row justify-content-center"> {assign var="thumb" value=$currentJournal->getLocalizedData('journalThumbnail')} {if $thumb} <div class="col-md-2"> {capture assign="url"}{url journal=$currentJournal->getPath()}{/capture} <img class="img-fluid" src="{$journalFilesPath}{$currentJournal->getId()}/{$thumb.uploadName|escape:"url"}"{if $thumb.altText} alt="{$thumb.altText|escape|default:''}"{/if}> </div> {/if} <div class="col-md-6"> {$currentJournal->getLocalizedSetting("description")} </div> </div> </section> {/if} {if ($numAnnouncementsHomepage && $announcements|@count)} <section class="container index-journal__announcements"> <div class="row"> {if ($numAnnouncementsHomepage && $announcements|@count)} <h2 class="list-content__title col-md-12"> {translate key="announcement.announcements"} </h2> {foreach name=announcements from=$announcements item=announcement} {if $smarty.foreach.announcements.iteration > $numAnnouncementsHomepage} {break} {/if} {if $smarty.foreach.announcements.iteration == 1} <article class="list-content__announcement first col-md-6"> <h3 class="list-content__announcement-title"> <a class="list-content__announcement-link" href="{url page="announcement" op="view" path=$announcement->getId()}"> {$announcement->getLocalizedTitle()|escape} </a> <small class="mt-2 text-muted d-block"> {$announcement->getDatePosted()} </small> </h3> {if $announcement->getLocalizedDescriptionShort()} <div class="list-content__announcement-description"> {$announcement->getLocalizedDescriptionShort()|strip_unsafe_html} </div> {elseif $announcement->getLocalizedDescription()} <div class="list-content__announcement-description"> {$announcement->getLocalizedDescription()|strip_unsafe_html|truncate:500:"..."} </div> {/if} </article> {/if} {if $smarty.foreach.announcements.iteration == 2} <ul class="list-content col-md-6"> {assign var="moreThanOneAnnouncement" value=true} {/if} {if $smarty.foreach.announcements.iteration > 1} <li class="list-content__announcement"> <h3 class="list-content__announcement-title"> <a class="list-content__announcement-link" href="{url page="announcement" op="view" path=$announcement->getId()}"> {$announcement->getLocalizedTitle()|escape} </a> <small class="mt-2 text-muted d-block"> {$announcement->getDatePosted()} </small> </h3> </li> {/if} {/foreach} {if $moreThanOneAnnouncement} </ul> {/if} {/if} </div> </section> {/if} {if !empty($publishedArticles) || !empty($popularArticles)} <section class="container{if !empty($categories) && $numCategoriesHomepage} no-border{/if}"> <div class="row justify-content-center"> {if !empty($publishedArticles)} <ul class="list-content col-md-6"> <h2 class="list-content__title">{translate key="plugins.gregg.latest"}</h2> {foreach from=$publishedArticles item="publishedArticle" key="number"} <li class="list-content__article"> {if $publishedArticle->getLocalizedTitle()} <h3 class="list-content__article-title"> <a class="list-content__article-link" href="{url page="article" op="view" path=$publishedArticle->getBestArticleId()}"> {$publishedArticle->getLocalizedTitle()|escape} </a> </h3> {/if} {if !empty($publishedArticle->getAuthors())} <ul class="list-content__article-authors"> {foreach from=$publishedArticle->getAuthors() item="publishedAuthor"} <li class="list-content__article-author"> <span>{$publishedAuthor->getFullName()}</span> </li> {/foreach} </ul> <small class="d-block text-muted mt-2">{translate key="submissions.published"} : {$publishedArticle->getDatePublished()|date_format:$dateFormatShort}</small> {/if} </li> {/foreach} </ul> {/if} {if !empty($popularArticles)} <ul class="list-content col-md-6"> <h2 class="list-content__title">{translate key="plugins.gregg.most-viewed"}</h2> {foreach from=$popularArticles item="popularArticle" key="popularNumber"} <li class="list-content__article"> {if $popularArticle["localized_title"]} <h3 class="list-content__article-title"> <a class="list-content__article-link" href="{url page="article" op="view" path=$popularNumber}"> {$popularArticle["localized_title"][{$locale}]|escape} </a> </h3> {/if} {if array_key_exists('authors', $popularArticle)} <ul class="list-content__article-authors"> {foreach from=$popularArticle['authors'] item="popularAuthor"} <li class="list-content__article-author"> <span>{$popularAuthor[{$locale}]['given_name']|escape}</span> <span>{$popularAuthor[{$locale}]['family_name']|escape}</span> </li> {/foreach} </ul> <small class="d-block text-muted mt-2">{translate key="submissions.published"} : {$popularArticle['date_published']|date_format:$dateFormatShort}</small> {/if} </li> {/foreach} </ul> {/if} </div> </section> {/if} {if !empty($categories) && $numCategoriesHomepage} <section class="box_primary index-journal__categories-header"> <h2> {translate key="plugins.gregg.journal.categories.title"} </h2> </section> <section class="container index-journal__categories"> <div class="row"> {foreach from=$categories item=category key=numCategory} {if $numCategory+1 > $numCategoriesHomepage} {break} {/if} {capture assign=categoryUrl}{url router=$smarty.const.ROUTE_PAGE page="catalog" op="category" path=$category->getPath()}{/capture} <div class="col-md-6 grid-item"> {if $category->getLocalizedTitle()} <a class="index-journal__categories-title-wrapper" href="{$categoryUrl}"> <h3 class="index-journal__categories-title">{$category->getLocalizedTitle()|escape}</h3> </a> {/if} {if $category->getImage()} <div class="index-journal__categories-img-wrapper"> <a class="image" href="{$categoryUrl}"> <img class="img-thumbnail" src="{url router=$smarty.const.ROUTE_PAGE page="catalog" op="fullSize" type="category" id=$category->getId()}" alt="{$category->getLocalizedTitle()|escape}" /> </a> </div> {/if} {if $category->getLocalizedDescription()} <div class="index-journal__categories-desc"> {$category->getLocalizedDescription()|strip_unsafe_html|truncate:400:"... <a href='{$categoryUrl}'>{translate key='plugins.themes.oldGregg.more'}</a>"} </div> {/if} </div> {/foreach} </div> </section> {/if} {capture assign="indexJournalHook"}{call_hook name="Templates::Index::journal"}{/capture} {if $indexJournalHook} <div class="container"> {call_hook name="Templates::Index::journal"} </div> {/if} {/block}