From: Marcel Werk Date: Wed, 25 Jun 2014 16:44:25 +0000 (+0200) Subject: Improved search result template X-Git-Tag: 2.1.0_Alpha_1~674 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=67cd65d741bc659fbc98170603459dafc7025ad7;p=GitHub%2FWoltLab%2FWCF.git Improved search result template --- diff --git a/com.woltlab.wcf/templates/searchResultList.tpl b/com.woltlab.wcf/templates/searchResultList.tpl index 162a53837c..f31f855b35 100644 --- a/com.woltlab.wcf/templates/searchResultList.tpl +++ b/com.woltlab.wcf/templates/searchResultList.tpl @@ -3,16 +3,39 @@ {foreach from=$objects item=message}
  • - {@$message->getUserProfile()->getAvatar()->getImageTag(48)} + {if $message->getUserProfile()} + {if $message->getUserProfile()->userID} + {@$message->getUserProfile()->getAvatar()->getImageTag(48)} + {else} +

    {@$message->getUserProfile()->getAvatar()->getImageTag(48)}

    + {/if} + {else} +

    + {/if}

    {$message->getSubject()}

    -

    - {$message->getUserProfile()->username} - - {@$message->getTime()|time} - {if $message->getContainerTitle()}- {$message->getContainerTitle()}{/if} -

    + + {if $message->getUserProfile() || $message->getTime() || $message->getContainerTitle()} +

    + {if $message->getUserProfile()} + {if $message->getUserProfile()->userID} + {$message->getUserProfile()->username} + {else} + {$message->getUserProfile()->username} + {/if} + {/if} + + {if $message->getTime()} + {if $message->getUserProfile()}- {/if}{@$message->getTime()|time} + {/if} + + {if $message->getContainerTitle()} + {if $message->getUserProfile() || $message->getTime()}- {/if}{$message->getContainerTitle()} + {/if} +

    + {/if} {lang}wcf.search.object.{@$message->getObjectTypeName()}{/lang}