{extends file="_index.tpl"} {block name="content"}

Каталог книг

{if $iBooksCount}
Всего книг: {$iBooksCount}
{/if}
{* Кнопка добавления *}
Добавить книгу
{* Категории в три колонки *} {if $aCategories}

Категории

{/if} {* Список книг в виде карточек *}

Последние книги

{if $aBooks && $aBooks|count > 0}
{foreach from=$aBooks item=oItem}
{if $oItem->getPhotoPath('200')} {$oItem->getItemTitle()|escape:'html'} {else}
📚
Нет обложки
{/if} {if $oItem->getItemPrice() > 0}
{$oItem->getItemPriceFormat()}
{else}
Бесплатно
{/if}

{$oItem->getItemTitle()|escape:'html'|truncate:60:'...'}

{$oItem->getDateAddFormatted()} {$oItem->getItemCountRead()}
{if $oItem->getItemTextShort()}
{$oItem->getItemTextShort()|strip_tags|truncate:120:'...'}
{/if} {if $oItem->getItemTags()}
{foreach from=$oItem->getTagsArray() item=sTag name=tags} {if $smarty.foreach.tags.index < 3} #{$sTag} {/if} {/foreach}
{/if}
Читать {if $oItem->getUserId() == $oUserCurrent->getId()} Редактировать {/if}
{/foreach}
{else}
📚

Книг пока нет

Станьте первым, кто добавит книгу в наш каталог!

Добавить первую книгу
{/if}
{* Постраничность *} {if $aPaging}
{$aPaging}
{/if}
{/block}">
Exception: Cannot load class "PluginBooks_ActionBooks"
See details in error.log