From dea174d0908372adcae4aefe312ce447f2f9f4ba Mon Sep 17 00:00:00 2001 From: Gergely POLONKAI Date: Sat, 6 Oct 2012 13:23:24 +0200 Subject: [PATCH] Added a very basic Tag Cloud --- .../views/Default/front_base.html.twig | 7 +++ .../FrontBundle/Twig/TagCloud.php | 50 +++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 src/GergelyPolonkai/FrontBundle/Twig/TagCloud.php diff --git a/src/GergelyPolonkai/FrontBundle/Resources/views/Default/front_base.html.twig b/src/GergelyPolonkai/FrontBundle/Resources/views/Default/front_base.html.twig index 059820e..b2893ce 100644 --- a/src/GergelyPolonkai/FrontBundle/Resources/views/Default/front_base.html.twig +++ b/src/GergelyPolonkai/FrontBundle/Resources/views/Default/front_base.html.twig @@ -34,6 +34,13 @@
+{% if tagCloud|length > 0 %} +
+{% for cloudItem in tagCloud %} + {{ cloudItem.name }} +{% endfor %} +
+{% endif %}