Google+ links now appear only when viewing a specific post

This commit is contained in:
Polonkai Gergely 2012-12-21 11:46:00 +01:00
parent 7626abfd26
commit 6c004eea89

View File

@ -1,5 +1,5 @@
<div class="post">
<h3>{% if title_links %}<a href="{{ path('GergelyPolonkaiFrontBundle_blogViewPost', {year: post.createdAt|date('Y'), month: post.createdAt|date('m'), day: post.createdAt|date('d'), slug: post.slug}) }}">{% endif %}{{ post.title }}{% if title_links %}</a>{% endif %}<div class="plusone-container"><div class="g-plusone" data-annotation="inline" data-size="small" data-width="300"></div></div></h3>
<h3>{% if title_links %}<a href="{{ path('GergelyPolonkaiFrontBundle_blogViewPost', {year: post.createdAt|date('Y'), month: post.createdAt|date('m'), day: post.createdAt|date('d'), slug: post.slug}) }}">{% endif %}{{ post.title }}{% if title_links %}</a>{% else %}<div class="plusone-container"><div class="g-plusone" data-annotation="inline" data-size="small" data-width="300"></div></div>{% endif %}</h3>
<p class="article-date">{{ post.createdAt|date('m-d-Y :: H:i') }} by {{ post.user.name }}</p>
{{ post.content|insert_code_chunks }}
{% if post.tags|length > 0 %}
@ -9,5 +9,7 @@
{% endfor %}
</p>
{% endif %}
{% if not title_links %}
<div class="g-plus" data-action="share" data-height="15"></div>
{% endif %}
</div>