Skip to content

Instantly share code, notes, and snippets.

@yupe
Created September 5, 2014 10:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yupe/a8648e1f68408d30b5e4 to your computer and use it in GitHub Desktop.
Save yupe/a8648e1f68408d30b5e4 to your computer and use it in GitHub Desktop.
{% extends "layouts/main.twig" %}
{% block title %}{{ post.title }}{% endblock %}
{% block description %}{{ post.getQuote() }}{% endblock %}
{% block keywords %}yii, yiiframework, юпи!, yupe, блог, записи{% endblock %}
{% block content %}
<section id="blog-post" class="light-bg">
<div class="container inner-top-sm inner-bottom classic-blog">
<div class="row">
<div class="col-md-10 inner-right-sm ">
<div>
<div class="post format-gallery">
<div class="post-content">
<h1 class="post-title">{{ post.title }}</h1>
<p>{{ post.content | raw }}</p>
</div>
<!-- /.post-content -->
</div>
<!-- /.post -->
<div class="post-author">
<figure>
<div class="author-image icon-overlay icn-link">
<a href="{{ App.createUrl('/user/people/userInfo', {'username' : post.createUser.nick_name }) }}"><span
class="icn-more"></span><img
src="{{ post.createUser.getAvatar(120,120) }}"
alt="{{ post.createUser.getFullName() }}"></a>
</div>
<figcaption class="author-details">
<h3>Об авторе</h3>
<p><strong>{{ post.createUser.getFullName() }}</strong> {{ post.createUser.about }}
</p>
<ul class="meta">
<li class="author-posts">
<a href="{{ App.createUrl('/user/people/userInfo', {'username' : post.createUser.nick_name }) }}">Профиль</a>
</li>
{% if post.createUser.site %}
<li>
<a href="{{ post.createUser.site }}">{{ post.createUser.site }}</a>
</li>
{% endif %}
</ul>
</figcaption>
</figure>
</div>
<!-- /.post-author -->
{{ this.widget('application.modules.comment.widgets.CommentsListWidget', {'model' : post, 'modelId' : post.id, 'comments' : post.comments}, true) | raw }}
<!-- /#comments -->
{{ this.widget('application.modules.comment.widgets.CommentFormWidget', {'model' : post, 'modelId' : post.id, 'redirectTo' : this.createUrl('/blog/post/show/', {'slug' : post.slug})}, true) | raw }}
</div>
<!-- /.sidemeta -->
</div>
<!-- /.col -->
{% include 'views/blog/aside.twig' %}
</div>
<!-- /.row -->
</div>
<!-- /.container -->
</section>
<script type="text/javascript">
$(document).ready(function(){
$('img').addClass('img-responsive');
});
</script>
{% endblock %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment