2014-03-04 10:34:05 +02:00
|
|
|
{**
|
|
|
|
* Статистика по пользователям
|
|
|
|
*
|
|
|
|
* @styles css/blocks.css
|
|
|
|
*}
|
|
|
|
|
2014-08-22 15:41:12 +03:00
|
|
|
{extends 'components/block/block.tpl'}
|
2014-03-04 10:34:05 +02:00
|
|
|
|
2014-08-22 15:41:12 +03:00
|
|
|
{block 'block_title'}
|
2014-10-06 18:54:48 +03:00
|
|
|
{lang 'blog.blocks.search.title'}
|
2014-08-22 15:41:12 +03:00
|
|
|
{/block}
|
2014-03-04 10:34:05 +02:00
|
|
|
|
2014-08-22 15:41:12 +03:00
|
|
|
{block 'block_options' append}
|
|
|
|
{$mods = "{$mods} blogs-search"}
|
|
|
|
{/block}
|
|
|
|
|
|
|
|
{block 'block_content'}
|
2014-10-06 18:54:48 +03:00
|
|
|
<h3>{lang 'blog.blocks.search.categories.title'}</h3>
|
2014-03-04 10:34:05 +02:00
|
|
|
|
|
|
|
{if $aBlogCategories}
|
2014-10-18 09:07:45 +03:00
|
|
|
{$items = [[
|
2014-04-28 13:34:54 +03:00
|
|
|
'name' => 'all',
|
2014-10-06 18:54:48 +03:00
|
|
|
'text' => {lang 'blog.blocks.search.categories.all'},
|
2014-04-28 13:34:54 +03:00
|
|
|
'url' => {router page='blogs'},
|
|
|
|
'attributes' => "data-search-type=\"blogs\" data-name=\"category\" data-value=\"0\"",
|
|
|
|
'classes' => 'js-search-ajax-option',
|
|
|
|
'count' => $iCountBlogsAll
|
2014-10-06 18:54:48 +03:00
|
|
|
]]}
|
2014-04-28 13:34:54 +03:00
|
|
|
|
2014-07-14 11:21:06 +03:00
|
|
|
{foreach $aBlogCategories as $aCategory}
|
|
|
|
{$oCategory=$aCategory.entity}
|
2014-10-18 09:07:45 +03:00
|
|
|
{$items[] = [
|
2014-07-14 11:21:06 +03:00
|
|
|
'text' => ($oCategory->getTitle()),
|
|
|
|
'url' => '#',
|
|
|
|
'attributes' => "data-search-type=\"blogs\" data-name=\"category\" data-value=\"{$oCategory->getId()}\" style=\"margin-left: {$aCategory.level * 20}px;\"",
|
2014-04-28 13:34:54 +03:00
|
|
|
'classes' => 'js-search-ajax-option',
|
2014-07-14 11:21:06 +03:00
|
|
|
'count' => $oCategory->getCountTargetOfDescendants()
|
2014-04-28 13:34:54 +03:00
|
|
|
]}
|
|
|
|
{/foreach}
|
|
|
|
|
|
|
|
{include 'components/nav/nav.tpl'
|
2014-10-16 10:31:34 +03:00
|
|
|
name = 'blogs_categories'
|
|
|
|
classes = 'actionbar-item-link'
|
|
|
|
activeItem = 'all'
|
|
|
|
mods = 'stacked pills'
|
2014-10-18 09:07:45 +03:00
|
|
|
items = $items}
|
2014-03-04 10:34:05 +02:00
|
|
|
{else}
|
2014-10-10 19:29:24 +03:00
|
|
|
{include 'components/alert/alert.tpl' text=$aLang.blog.categories.empty mods='empty'}
|
2014-03-04 10:34:05 +02:00
|
|
|
{/if}
|
|
|
|
|
|
|
|
<br>
|
|
|
|
|
|
|
|
{* Тип блога *}
|
2014-10-06 18:54:48 +03:00
|
|
|
<h3>{lang 'blog.blocks.search.type.title'}</h3>
|
|
|
|
|
2014-10-18 09:07:45 +03:00
|
|
|
{include 'components/field/field.radio.tpl' inputClasses='js-search-ajax-option' inputAttributes='data-search-type="blogs"' name='type' value='' checked=true label='Любой'}
|
|
|
|
{include 'components/field/field.radio.tpl' inputClasses='js-search-ajax-option' inputAttributes='data-search-type="blogs"' name='type' value='open' label='Открытый'}
|
|
|
|
{include 'components/field/field.radio.tpl' inputClasses='js-search-ajax-option' inputAttributes='data-search-type="blogs"' name='type' value='close' label='Закрытый'}
|
2014-03-04 10:34:05 +02:00
|
|
|
{/block}
|