Jump to content

Трофеи и медали в postContainer


VIP
 Share

Recommended Posts

Подскажите как вывести трофеи и медали в 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...