{* Тема оформления Experience v.1.0  для Alto CMS      *}
{* @licence     CC Attribution-ShareAlike   *}

{if Config::Get('view.masonry') && !Config::Get('view.masonry_sidebar') && in_array(Router::GetAction(), Config::Get('view.masonry_sidebar_pages'))}{$isMasonry = true}{/if}
<!-- Блок сайдбара -->
<div class="panel panel-default sidebar raised widget widget-type-stream">
    <div class="panel-body">
        <h4 class="panel-header">
            <i class="fa fa-microphone"></i>
            <a class="link link-lead link-clear link-dark"
               href="{router page='comments'}"
               title="{$aLang.widget_stream_comments_all}">{$aLang.widget_stream}</a>
            <a href="#"
               onclick="
                        var b = $(this).parents('.widget-type-stream')
                        b.height(b.height());
			            ls.widgets.load($('.js-widget-stream-navs a.active'), 'stream', null, function(html){
                            b.css('height', 'auto');
                            $('.js-widget-stream-content').html(html);
                            $('.widget-type-stream').css('height', 'auto');
                        });
                        return false;

               "
               class="link link-lead link-clear link-dark pull-right"><i class="fa fa-repeat large"></i></a>

        </h4>
        <div class="panel-navigation">
            <ul class="js-widget-stream-navs">
                {foreach $aWidgetParams.items as $sKey=>$aItem}
                    <li {if $aItem@first}class="active"{/if}>
                        <a onclick="$('.js-widget-stream-navs a').removeClass('active'); return false;"
                           href="#" class="link link-dual link-lead link-clear" data-toggle="tab" data-type="{$aItem.type}">
                            {*{if $aItem.type == 'comment'}<i class="fa fa-comment-o"></i>{/if}*}
                            {*{if $aItem.type == 'topic'}<i class="fa fa-file-o"></i>{/if}*}
                            {*{if $aItem.type == 'wall'}<i class="fa fa-bars"></i>{/if}*}
                            {$aLang[$aItem.text]}
                        </a>
                    </li>
                {/foreach}
                {hook run='widget_stream_nav_item'}
            </ul>
        </div>
        <div class="panel-content js-widget-stream-content" style="background-image: none;">

        </div>
    </div>
    {if $aWidgetParams.hide_footer != true}
        <div class="panel-footer">
            <a class="link link-dual link-lead link-clear" href="{router page='rss'}allcomments/"><i class="fa fa-rss"></i>RSS</a>
            <a class="link link-dual link-lead link-clear pull-right" href="{router page='comments'}"><i class="fa fa-comment"></i>{$aLang.widget_stream_comments_all}</a>
        </div>
    {/if}
</div>

