<div id="content" class="content singlepost">
  {% if post == null %}
  <div class="alert alert-danger post-not-found">
    Post not found.
  </div>
  {% else %}
  <!-- Breadcrumb -->
  {{ breadcrumb|raw }}
  <!-- /Breadcrumb -->
  <div class="post" id="post-{{ post.id }}">
    <div class="post-heading">
      <h2 class="post-title">
        {{ post.title }}
      </h2>
      <span class="post-meta">
        Posted by {{ site.author_name }} on {{ post.time|date('d M Y - H:i') }}
      </span>
    </div>
    <div class="post-body">
      {{ post.content|raw }}
    </div>
Tags      :  
{% for post in post_tags %}
<a href="/tag/{{ post.tags }}/1.html">{{ post.tags }}</a>  
   {% endfor %}
    {% if site.settings.display_social_buttons == 'yes' %}
    <div class="social-buttons">
      <span>
        <a href="https://www.facebook.com/sharer/sharer.php?u={{ (site.url ~ '/' ~ post.link ~'.html')|url_encode }}&amp;t={{ post.title|url_encode }}" target="_blank" title="Share on Facebook"><img src="/images/social_icons/Facebook.png"/></a>
      </span>
      <span>
        <a href="https://twitter.com/intent/tweet?source={{ (site.url ~ '/' ~ post.link ~'.html')|url_encode }}&amp;text={{ post.title|url_encode }}" target="_blank" title="Tweet"><img src="/images/social_icons/Twitter.png"/></a>
      </span>
      <span>
        <a href="https://plus.google.com/share?url={{ (site.url ~ '/' ~ post.link ~'.html')|url_encode }}" target="_blank" title="Share on Google+"><img src="/images/social_icons/Google+.png"/></a>
      </span>
      <span>
        <a href="http://pinterest.com/pin/create/button/?url={{ (site.url ~ '/' ~ post.link ~'.html')|url_encode }}&amp;description={{ post.title|url_encode }}" target="_blank" title="Pin it"><img src="/images/social_icons/Pinterest.png"/></a>
      </span>
      <span>
        <a href="http://www.reddit.com/submit?url={{ (site.url ~ '/' ~ post.link ~'.html')|url_encode }}&amp;title={{ post.title|url_encode }}" target="_blank" title="Submit to Reddit"><img src="/images/social_icons/Reddit.png"/></span>
        <span><a href="http://www.linkedin.com/shareArticle?mini=true&amp;url={{ (site.url ~ '/' ~ post.link ~'.html')|url_encode }}&amp;title={{ post.title|url_encode }}&amp;summary=&amp;source={{ (site.url ~ '/' ~ post.link ~'.html')|url_encode }}" target="_blank" title="Share on LinkedIn"><img src="/images/social_icons/LinkedIn.png"/></a>
      </span>
    </div>
    {% endif %}
    <!-- // -->
    {% if site.author_id == user.id %}
    <div class="admin-post-action">
      <a href="{{ powered.url }}/account/switch_blog/{{ site.id }}?redirect_uri={{ (powered.url~'/posts/edit/'~post.id)|url_encode }}">Edit</a>
      {% if post.status == 'draft' %}
      <a href="{{ powered.url }}/account/switch_blog/{{ site.id }}?redirect_uri={{ (powered.url~'/posts/publish_post/'~post.id)|url_encode }}">Publish</a>
      {% endif %}
      <a href="{{ powered.url }}/account/switch_blog/{{ site.id }}?redirect_uri={{ (powered.url~'/posts/delete/'~post.id)|url_encode }}">Delete</a>
    </div>
    {% endif %}
  </div>
  {% if site.settings.posts_list_in_singlepost != 'none' and recent_posts != null %}
  <div class="recent-posts">
    <h3>
      {{ site.settings.posts_list_in_singlepost == 'recent_posts' ? 'Recent Posts' : 'Related Posts' }}
    </h3>
    <ul>
      {% for r_post in recent_posts %}
      <li>
        <a href="/{{ r_post.link }}.html">{{ r_post.title }}</a>
      </li>
      {% endfor %}
    </ul>
  </div>
  {% endif %}
  <!-- Comments -->
  {% if allow_comments %}
  <div class="comment-info">
    <h3>
      Comments
    </h3>
    <h4>
      {{ posts.total_comments }} Responds for &quot;{{ post.title }}&quot;
    </h4>
  </div>
  <div class="comments" id="comments">
    {% if total_comments == 0 %}
    <div class="alert alert-danger">
      Empty comment.
    </div>
    {% else %}
    <!-- // -->
    {% for comment in comments %}
    <div class="comment {{ comment.status == 'moderated' ? 'moderated' : ''}}" id="comment-{{ comment.id }}">
      <div class="pull-left">
        <img src="{{ powered.url }}/files/users/avatar/{{ comment.author_id }}-48.png" alt="" class="comment-object"/>
      </div>
      <div class="comment-body">
        <a class="comment-heading" href="{{ comment.author_homepage }}">
        <strong>{{ comment.author_name }}</strong>
        </a>
        <div class="comment-meta">
          <span>
            {{ comment.time|date('d M Y - H:i') }}
          </span>
        </div>
        <p>

       {{ comment.text|raw }}

        </p>
        {% if user.id == site.author_id %}
        <div class="admin-comment-action">
          {% if comment.status == 'moderated' %}
          <a href="{{ powered.url ~ '/account/switch_blog/' ~ site.id ~ '?redirect_uri=' ~ (powered.url~'/comments/publish_comment/' ~ comment.id~'?redirect_uri='~(site.url~'/'~post.link~'.html#comment-'~comment.id)|url_encode|url_encode)|url_encode }}">Publish</a>
          <a href="{{ powered.url ~ '/account/switch_blog/' ~ site.id ~ '?redirect_uri=' ~ (powered.url~'/comments/mark_as_spam/' ~ comment.id~'?redirect_uri='~(site.url~'/'~post.link~'.html#comments')|url_encode|url_encode)|url_encode }}">Spam</a>
          {% elseif comment.status == 'published' %}
          <a href="{{ powered.url ~ '/account/switch_blog/' ~ site.id ~ '?redirect_uri=' ~ (powered.url~'/comments/mark_as_spam/' ~ comment.id~'?redirect_uri='~(site.url~'/'~post.link~'.html#comments')|url_encode|url_encode)|url_encode }}">Spam</a>
          {% endif %}
          <a href="{{ powered.url ~ '/account/switch_blog/' ~ site.id ~ '?redirect_uri=' ~ (powered.url~'/comments/delete_comment/' ~ comment.id~'?redirect_uri='~(site.url~'/'~post.link~'.html#comments')|url_encode|url_encode)|url_encode }}">Delete</a>
        </div>
        {% endif %}
      </div>
    </div>
    {% endfor %}
    <!-- // -->
    {% endif %}
  </div>
  {% if allow_new_comment %}
  <div class="comment-form" id="new-comment">
    <h3>
      New Comment
    </h3>
    {% if new_comment_published != false %}
    <div class="alert alert-success">
      Comment successfully added and has been published.
    </div>
    {% elseif new_comment_moderated != false %}
    <div class="alert alert-warning">
      Comment successfully added and will be published after administrator approval.
    </div>
    {% elseif new_comment_errors != false %}
    <div class="alert alert-danger">
      <strong>
        Error!
      </strong>
      <ol class="list-unstyled">
        {% for err_k,err_v in new_comment_errors %}
        <li>
          {{ err_v }}
        </li>
        {% endfor %}
      </ol>
    </div>
    {% endif %}
    <!-- FORM -->
    {{ form_comment_open|raw }}
    <div class="form-group">
      <label for="author">
        Name
      </label>
      <input class="form-control" type="text" name="author" value="{{ form_comment_value.author }}" id="author" required="required" {{ form_comment_value.author ? 'readonly' : '' }}/>
    </div>
    <div class="form-group">
      <label for="email">
        Email
      </label>
      <input class="form-control" type="email" name="email" value="{{ form_comment_value.email }}" id="email" {{ (site.settings.comment_require_email=='yes' ? 'required="required"' : '') ~ (form_comment_value.email ? ' readonly' : '') }}/>
    </div>
    <div class="form-group">
      <label for="homepage">
        Homepage
      </label>
      <input class="form-control" type="url" name="homepage" value="{{ form_comment_value.homepage }}" id="homepage" />
    </div>
    <div class="form-group">
      <label for="comment_text">
        Comment
      </label>
      <textarea class="form-control" name="comment_text" id="comment_text" rows="8" required="required">{{ form_comment_value.comment_text }}</textarea>
      <div class="help-block">You may use these HTML tags and attributes: &lt;a href=&quot;&quot; title=&quot;&quot;&gt; &lt;abbr title=&quot;&quot;&gt; &lt;acronym title=&quot;&quot;&gt; &lt;b&gt; &lt;blockquote cite=&quot;&quot;&gt; &lt;cite&gt; &lt;code&gt; &lt;del datetime=&quot;&quot;&gt; &lt;em&gt; &lt;i&gt; &lt;q cite=&quot;&quot;&gt; &lt;strong&gt;</div>
    </div>
    {% if form_comment_captcha == true %}
    <div class="form-group captcha">
      <label for="captcha">
        Captcha
      </label>
      <img class="captcha" src="/captcha.png" style="width: 128; height: 48; border: 0;" alt="Please refresh..."/>
      <input class="form-control" type="text" name="captcha" id="captcha" maxlength="5" required="requred"/>
    </div>
    {% endif %}
    <p>
      <button class="btn" type="submit">
        Send Comment
      </button>
    </p>
    {% if is_user and (site.author_id != user.id) %} {% if subscribe_comment == false %}
    <div class="checkbox">
      <label>
        <input type="checkbox" name="subscribe" value="1" checked="checked"/>
        <span>
          Subscribe updates comment
        </span>
      </label>
    </div>
    {% else %}
    <div class="checkbox">
      <label>
        <input type="checkbox" name="subscribe" value="2"/>
        <span>
          Unsubscribe updates comment
        </span>
      </label>
    </div>
    {% endif %} {% endif %} {{ form_comment_close|raw }}
    <!-- / FORM -->
  </div>
  {% else %}
  <!-- // -->
  {% if site.settings.comment_user == 'users' %}
  <div class="alert alert-warning new-comment-closed">
    New comments are only allowed for registered users.
  </div>
  {% elseif site.settings.comment_user == 'friends' %}
  <div class="alert alert-warning new-comment-closed">
    New comments are only allowed for friends.
  </div>
  {% elseif site.settings.comment_user == 'followers' %}
  <div class="alert alert-warning new-comment-closed">
    New comments are only allowed for followers.
  </div>
  {% elseif site.settings.close_comment_older_posts == 'yes' %}
  <div class="alert alert-warning new-comment-closed">
    New comments are closed because the post has been more than 14 days.
  </div>
  {% endif %}
  <!-- // -->
  {% endif %}
  <!-- // -->
  {% endif %}
  <!-- /Comments -->
  {% endif %}
</div>https://www.facebook.com/sharer/sharer.php?u={{ (site.url ~ label for=