Skip to content

Commit 317496c

Browse files
committed
move footer into sub template
1 parent c04e9bf commit 317496c

2 files changed

Lines changed: 23 additions & 16 deletions

File tree

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{%- spaceless -%}
2+
3+
<footer class="footer row-fluid center page-footer">
4+
<nav>
5+
<p>
6+
Powered by <a rel="friend" target="_blank" href="http://www.github.com/codeconsortium/CCDNForumAdminBundle">CCDNForum Admin Bundle</a>.
7+
Copyright <a target="_blank" href="http://www.codeconsortium.com/">CodeConsortium</a> 2011 - {{ 'now'|date("Y") }}.
8+
</p>
9+
<p>
10+
Graphics courtesy of <a rel="friend" target="_blank" href="http://pc.de">pc.de</a> and
11+
<a rel="friend" target="_blank" href="http://glyphicons.com/glyphicons-licenses/">Glyphicons</a>.
12+
Smileys courtesy of <a rel="friend" target="_blank" href="http://www.freesmileys.org/copyright.php">freesmileys.org</a>
13+
</p>
14+
</nav>
15+
</footer>
16+
17+
{%- endspaceless -%}

Resources/views/base.html.twig

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -53,22 +53,12 @@
5353

5454
{%- include 'CCDNComponentCommonBundle:Flashes:flashes.html.twig' -%}
5555

56-
{% block body_content %}
57-
{% endblock body_content %}
58-
59-
<footer class="footer row-fluid center page-footer">
60-
<nav>
61-
<p>
62-
Powered by <a rel="friend" target="_blank" href="http://www.github.com/codeconsortium/CCDNForumAdminBundle">CCDNForum Admin Bundle</a>.
63-
Copyright <a target="_blank" href="http://www.codeconsortium.com/">CodeConsortium</a> 2011 - {{ 'now'|date("Y") }}.
64-
</p>
65-
<p>
66-
Graphics courtesy of <a rel="friend" target="_blank" href="http://pc.de">pc.de</a> and
67-
<a rel="friend" target="_blank" href="http://glyphicons.com/glyphicons-licenses/">Glyphicons</a>.
68-
Smileys courtesy of <a rel="friend" target="_blank" href="http://www.freesmileys.org/copyright.php">freesmileys.org</a>
69-
</p>
70-
</nav>
71-
</footer>
56+
{%- block body_content -%}
57+
{%- endblock body_content -%}
58+
59+
{%- block body_footer -%}
60+
{%- include 'CCDNForumAdminBundle:Footer:footer.html.twig' -%}
61+
{%- endblock body_footer -%}
7262

7363
{%- endspaceless -%}
7464
{% endblock body %}

0 commit comments

Comments
 (0)