Missing cover photo in the list of articles in a footer box
authorAlexander Ebert <ebert@woltlab.com>
Mon, 12 Jul 2021 14:39:56 +0000 (16:39 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 12 Jul 2021 14:39:56 +0000 (16:39 +0200)
Replaces #4378

com.woltlab.wcf/templates/boxArticleList.tpl

index 3e3b1733213d2f37342002bb2541d38bc4ae8285..5e18cda15f0236f0ac53cf22800c10f1535e872c 100644 (file)
                                <a href="{$boxArticle->getLink()}">
                                        {if $boxArticle->getTeaserImage() && $boxArticle->getTeaserImage()->hasThumbnail('small')}
                                                <div class="articleListImage">{@$boxArticle->getTeaserImage()->getThumbnailTag('small')}</div>
+                                       {else}
+                                               <div class="articleListImage">
+                                                       <img src="{$__wcf->getStyleHandler()->getStyle()->getCoverPhotoURL()}" alt=""
+                                                               style="height: {@$__wcf->getStyleHandler()->getStyle()->getCoverPhotoHeight()}; width: {@$__wcf->getStyleHandler()->getStyle()->getCoverPhotoWidth()}">
+                                               </div>
                                        {/if}
                                        
                                        <h3 class="articleListTitle">{$boxArticle->getTitle()}</h3>