Skip to content

Commit

Permalink
fix advert titles
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Petrash committed May 4, 2017
1 parent de73429 commit 4fd7a6d
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 43 deletions.
28 changes: 14 additions & 14 deletions src/Volley/FaceBundle/Resources/views/Default/index.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@

<div class="row visible-xs">
<div class="col-lg-12">
<div class="row">
<div class="col-lg-12">
<div class="section-title">
{{ 'advert'|trans({}) }}
</div>
</div>
</div>
{#<div class="row">#}
{#<div class="col-lg-12">#}
{#<div class="section-title">#}
{#{{ 'advert'|trans({}) }}#}
{#</div>#}
{#</div>#}
{#</div>#}
<div class="row">
<div class="col-lg-12">
{% include 'VolleyFaceBundle:Default/includes:ads_block_right_col.html.twig' %}
Expand Down Expand Up @@ -126,13 +126,13 @@

<div class="row visible-lg visible-md visible-sm">
<div class="col-lg-12">
<div class="row">
<div class="col-lg-12">
<div class="section-title">
{{ 'advert'|trans({}) }}
</div>
</div>
</div>
{#<div class="row">#}
{#<div class="col-lg-12">#}
{#<div class="section-title">#}
{#{{ 'advert'|trans({}) }}#}
{#</div>#}
{#</div>#}
{#</div>#}
<div class="row">
<div class="col-lg-12">
{% include 'VolleyFaceBundle:Default/includes:ads_block_right_col.html.twig' %}
Expand Down
85 changes: 56 additions & 29 deletions src/Volley/FaceBundle/Resources/views/Default/post.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -92,39 +92,66 @@

{#{% include 'VolleyFaceBundle:Default/includes:ads_block_bottom_main.html.twig' %}#}

<div id="comments">
<div class="" data-example-id="togglable-tabs">
<ul class="nav nav-tabs" id="myComments" role="tablist">
<li role="presentation" class="active"><a href="#vk" id="vk-tab" role="tab"
data-toggle="tab" aria-controls="vk"
aria-expanded="true">ВКонтакте</a></li>
<li role="presentation" class=""><a href="#fb" role="tab" id="fb-tab"
data-toggle="tab" aria-controls="fb"
aria-expanded="false">Facebook</a></li>
</ul>
<div class="tab-content" id="myCommentsContent">
<div class="tab-pane fade active in" role="tabpanel" id="vk"
aria-labelledby="vk-tab">
<!-- Put this div tag to the place, where the Comments block will be -->
<div id="vk_comments"></div>
<script type="text/javascript">
VK.Widgets.Comments("vk_comments", {
limit: 10,
width: "770",
attach: "*",
pageUrl: "{{ url('volley_face_post',{'category_slug': post.category.slug, 'post_slug': post.slug}) }}"
});
</script>
</div>
<div class="tab-pane fade" role="tabpanel" id="fb" aria-labelledby="fb-tab">
<div class="fb-comments"
data-href="{{ url('volley_face_post',{'category_slug': post.category.slug, 'post_slug': post.slug}) }}"
data-width="770" data-numposts="5"></div>
<div class="row">
<div>
<div id="comments">
<div class=""
data-example-id="togglable-tabs">
<ul class="nav nav-tabs"
id="myComments"
role="tablist">
<li role="presentation"
class="active">
<a href="#vk"
id="vk-tab"
role="tab"
data-toggle="tab"
aria-controls="vk"
aria-expanded="true">ВКонтакте</a>
</li>
<li role="presentation"
class=""><a
href="#fb"
role="tab"
id="fb-tab"
data-toggle="tab"
aria-controls="fb"
aria-expanded="false">Facebook</a>
</li>
</ul>
<div class="tab-content"
id="myCommentsContent">
<div class="tab-pane fade active in"
role="tabpanel"
id="vk"
aria-labelledby="vk-tab">
<!-- Put this div tag to the place, where the Comments block will be -->
<div id="vk_comments"></div>
<script type="text/javascript">
VK.Widgets.Comments('vk_comments', {
limit: 10,
width: '770',
attach: '*',
pageUrl: '{{ url('volley_face_post',{'category_slug': post.category.slug, 'post_slug': post.slug}) }}'
})
</script>
</div>
<div class="tab-pane fade"
role="tabpanel"
id="fb"
aria-labelledby="fb-tab">
<div class="fb-comments"
data-href="{{ url('volley_face_post',{'category_slug': post.category.slug, 'post_slug': post.slug}) }}"
data-width="770"
data-numposts="5"></div>
</div>
</div>
</div>

</div>
</div>

</div>

</div>

<div class="col col-lg-4 col-md-12 col-sm-12">
Expand Down

0 comments on commit 4fd7a6d

Please sign in to comment.