<?php

use yii\helpers\Html;

/* @var $this yii\web\View */
/* @var $model common\modules\blog\models\Post */

?>


<div class="blog_container">
    <div class="container">
        <div class="row">
            <div class="col-md-8 col-xs-8 col-sm-12">
                <section class="blog">
                    <h1><?=$model->lang->title?></h1>
                    <article class="article_short">
                        <div class="article_short_head">
                            <span class="article_short_date"><?=date('d.m.Y', $model->created_at)?></span>
                            <!-- <span class="article_short_view">
                                180
                                <div class="blog_toltip_left">Количество просмотров</div>
                            </span> -->
                            <!-- <ul class="article_short_social">
                                <li>
                                    <a href="#"><img src="/images/icon/sh_social_vk.png" height="30" width="30" alt=""></a>
                                    <a href="#"><img src="/images/icon/sh_social_fb.png" height="30" width="30" alt=""></a>
                                    <a href="#"><img src="/images/icon/sh_social_tw.png" height="30" width="30" alt=""></a>
                                    <a href="#"><img src="/images/icon/sh_social_gp.png" height="30" width="30" alt=""></a>
                                    <a href="#"><img src="/images/icon/sh_social_t.png" height="30" width="30" alt=""></a>
                                </li>
                            </ul> -->
                        </div>
                        <div class="article_short_tags">

                            <?php foreach ($model->postTags as $tag) : ?>

                                <a href="<?=$tag->url;?>"># <?=$tag->name?></a>

                            <?php endforeach; ?>
                            
                        </div>
                        <div class="article_short_txt">

                            <?php if($model->preview) :
                                echo Html::img($model->preview);
                            endif; ?>

                            <?=$model->lang->text?>
                        </div>
                    </article>
                    
                    <?=$this->render('_subscribe', ['title' => 'Запись в блоге: ' . $model->lang->title])?>

                </section>
            </div>
            
            <?=$this->render('_sidebar', ['model' => $model])?>

        </div>
    </div>
</div>

<!-- <div class="end_keys_neft"></div> -->

<?=$this->render('@app/views/layouts/footer');?>
