Hide empty tag box on tagged page
authorMatthias Schmidt <gravatronics@live.com>
Sun, 28 Jun 2020 12:35:35 +0000 (14:35 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sun, 28 Jun 2020 12:35:35 +0000 (14:35 +0200)
com.woltlab.wcf/templates/tagged.tpl

index 540169499a1b0ac844cb369a4c193b048ae61058..1a8e32661e1d7b3de0afb593488e221e60b66dc9 100644 (file)
                </nav>
        </section>
        
-       <section class="box" data-static-box-identifier="com.woltlab.wcf.TaggedTagCloud">
-               <h2 class="boxTitle">{lang}wcf.tagging.tags{/lang}</h2>
-               
-               <div class="boxContent">
-                       {include file='tagCloudBox' taggableObjectType=$objectType}
-               </div>
-       </section>
+       {if !$tags|empty}
+               <section class="box" data-static-box-identifier="com.woltlab.wcf.TaggedTagCloud">
+                       <h2 class="boxTitle">{lang}wcf.tagging.tags{/lang}</h2>
+                       
+                       <div class="boxContent">
+                               {include file='tagCloudBox' taggableObjectType=$objectType}
+                       </div>
+               </section>
+       {/if}
 {/capture}
 
 {include file='header'}