Improved code readability
authorMarcel Werk <burntime@woltlab.com>
Sat, 9 Jul 2016 20:37:38 +0000 (22:37 +0200)
committerMarcel Werk <burntime@woltlab.com>
Sat, 9 Jul 2016 20:37:44 +0000 (22:37 +0200)
com.woltlab.wcf/templates/article.tpl

index 26573f078d32e4318f7f48fecd1784d495950b09..3082c864db5e0db4bfc0b2a25bca76d950523cd2 100644 (file)
 
 <section class="section articleContent"
          data-object-id="{@$article->articleID}"
-         data-object-type="com.woltlab.wcf.likeableArticle" data-like-liked="{if $articleLikeData[$article->articleID]|isset}{@$articleLikeData[$article->articleID]->liked}{/if}" data-like-likes="{if $articleLikeData[$article->articleID]|isset}{@$articleLikeData[$article->articleID]->likes}{else}0{/if}" data-like-dislikes="{if $articleLikeData[$article->articleID]|isset}{@$articleLikeData[$article->articleID]->dislikes}{else}0{/if}" data-like-users='{ {if $articleLikeData[$article->articleID]|isset}{implode from=$articleLikeData[$article->articleID]->getUsers() item=likeUser}"{@$likeUser->userID}": "{$likeUser->username|encodeJSON}"{/implode}{/if} }' data-user-id="{@$article->userID}"
+         data-object-type="com.woltlab.wcf.likeableArticle"
+         data-like-liked="{if $articleLikeData[$article->articleID]|isset}{@$articleLikeData[$article->articleID]->liked}{/if}"
+         data-like-likes="{if $articleLikeData[$article->articleID]|isset}{@$articleLikeData[$article->articleID]->likes}{else}0{/if}"
+         data-like-dislikes="{if $articleLikeData[$article->articleID]|isset}{@$articleLikeData[$article->articleID]->dislikes}{else}0{/if}"
+         data-like-users='{ {if $articleLikeData[$article->articleID]|isset}{implode from=$articleLikeData[$article->articleID]->getUsers() item=likeUser}"{@$likeUser->userID}": "{$likeUser->username|encodeJSON}"{/implode}{/if} }'
+         data-user-id="{@$article->userID}"
 >
        <div class="htmlContent">
                {if $articleContent->teaser}