VIP Posted August 26, 2018 Share Posted August 26, 2018 Подскажите как вывести трофеи и медали в postContainerПо дефолту они выводятся но я убрал часть кода который выводит всё это дело.{template="customFieldsDisplay" group="global" app="core" params="$comment->author()"}Хотел как то бы отдельно что бы они выводились. От медалей шаблон postbit{{$items = \IPS\trophies\Trophy\MemberTrophy::fetchForPostbit($author);}} {{if count($items) > 0 }} <div class="ipsResponsive_showDesktop ipsResponsive_block"> <fieldset class=""> <legend class="ipsType_center"><a href="{$author->url()->setQueryString( 'tab', 'node_trophies_TrophiesAndMedals')}">{lang="profile_trophies_TrophiesAndMedals"}</a> </legend> <div class="ipsTrophy-postbit-container ipsType_center"> {{foreach $items AS $trophy}} {$trophy->item->getItemImage('trophy_trophyicon ipsTrophy-postbit-bit', 2, TRUE)|raw} <!-- <img src="{file="$trophy->item->icon" extension="trophies_TrophyIcon"}" class="trophy_trophyicon ipsTrophy-postbit-bit" data-ipstooltip _title="{$trophy->item->_title}" /> --> {{endforeach}} </div> </fieldset> </div> {{endif}} Link to comment Share on other sites More sharing options...
newbie Posted August 26, 2018 Share Posted August 26, 2018 От медалей шаблон postbit $author - это будет $comment->author() 1 Link to comment Share on other sites More sharing options...
VIP Posted August 26, 2018 Author Share Posted August 26, 2018 Что вставить в postContainer? Link to comment Share on other sites More sharing options...
newbie Posted August 26, 2018 Share Posted August 26, 2018 А что Вам надо?Если весь шаблон postbit, то{template="postbit" group="global" app="trophies" params="$comment->author()"} 1 Link to comment Share on other sites More sharing options...
VIP Posted August 26, 2018 Author Share Posted August 26, 2018 Только что бы медали выводились Link to comment Share on other sites More sharing options...
VIP Posted August 26, 2018 Author Share Posted August 26, 2018 Спасибо вы лучшие! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now