summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2013-04-24 22:14:49 +0200
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2013-04-24 22:14:49 +0200
commita6982216253d1356621916bb2b7734320fedec0d (patch)
tree0d27b1011413e47e99605cfd686b5022f3bf17a0 /app/views
parent7b75289a294a0f4865e8d5b9564b6583f5d01aec (diff)
Fix issue #55 : affichage des tags associés aux articles
Diffstat (limited to 'app/views')
-rw-r--r--app/views/index/index.phtml18
1 files changed, 18 insertions, 0 deletions
diff --git a/app/views/index/index.phtml b/app/views/index/index.phtml
index 6889a8b51..ff7325996 100644
--- a/app/views/index/index.phtml
+++ b/app/views/index/index.phtml
@@ -89,6 +89,24 @@ if (isset ($this->entryPaginator)) {
</ul>
</div>
</li>
+ <?php $tags = $item->tags(); ?>
+ <?php if(!empty($tags)) { ?>
+ <li class="item">
+ <div class="dropdown">
+ <div id="dropdown-tags-<?php echo $item->id ();?>" class="dropdown-target"></div>
+ <i class="icon i_tag"></i> <a class="dropdown-toggle" href="#dropdown-tags-<?php echo $item->id ();?>">Tags</a>
+
+ <ul class="dropdown-menu">
+ <li class="dropdown-close"><a href="#close"><i class="icon i_close"></i></a></li>
+
+ <li class="dropdown-header">Tags associés</li>
+ <?php foreach($tags as $tag) { ?>
+ <li class="item"><span><?php echo $tag; ?></span></li>
+ <?php } ?>
+ </ul>
+ </div>
+ </li>
+ <?php } ?>
</ul>
</div>
</div>