You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
			
				
					25 lines
				
				652 B
			
		
		
			
		
	
	
					25 lines
				
				652 B
			| 
								 
											8 years ago
										 
									 | 
							
								<?php
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								/* @var $this yii\web\View */
							 | 
						||
| 
								 | 
							
								/* @var $model \core\entities\post\Post */
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								use yii\helpers\Html;
							 | 
						||
| 
								 | 
							
								use yii\helpers\Url;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								$url = Url::to(['post/post', 'id' =>$model->id]);
							 | 
						||
| 
								 | 
							
								?>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								<div class="post-item">
							 | 
						||
| 
								 | 
							
								    <?php if ($model->image): ?>
							 | 
						||
| 
								 | 
							
								        <div>
							 | 
						||
| 
								 | 
							
								            <a href="<?= Html::encode($url) ?>">
							 | 
						||
| 
								 | 
							
								                <img src="<?= Html::encode($model->getThumbFileUrl('image', 'list')) ?>" alt="" class="img-responsive" />
							 | 
						||
| 
								 | 
							
								            </a>
							 | 
						||
| 
								 | 
							
								        </div>
							 | 
						||
| 
								 | 
							
								    <?php endif; ?>
							 | 
						||
| 
								 | 
							
								    <div class="h2"><a href="<?= Html::encode($url) ?>"><?= Html::encode($model->title) ?></a></div>
							 | 
						||
| 
								 | 
							
								    <p><?= Yii::$app->formatter->asNtext($model->description) ?></p>
							 | 
						||
| 
								 | 
							
								</div>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								
							 |