[[+showprofile:is=`on`:then=`User info`]]
This question has been answered by nir-z. See the first response.
[[[[+showprofile:is=`on`:then=`$User_info`]]]]
If User info is the chunk name, I would change the name to User_info, and:
[[[[+showprofile:is=`on`:then=`$User_info`]]]]
[[+extended.nameOfExtendedAttribute]]
Since showprofile is an extended field you need a prefix for the placeholder
[[+extended.nameOfExtendedAttribute]]
I hope this will make it work.
[[+extended.showprofile:is=`on`:then=`<li>
<div class="row-fluid">
<div class="span1">
<img class="avatar" src="assets/users/[[!If? subject=`[[+photo]]` &operator=`notempty` &then=`[[+id]]/[[+photo]]` &else=`default-avatar.png`]]">
</div>
<div class="span5">
<strong>[[+username]]</strong>
<br>
[[!outputGamesArray? &id=`[[+id]]` &preText=`<span class="label label-info">` &postText=`</span>`]]
</div>
<div class="span3">
<small class="[[!switch? &get=`[[+extended.status]]` &c1=`Занят` &do1=`busy` &c2=`Свободен` &do2=`free`]]"><i class="icon-time"></i> [[+extended.status]]</small>
</div>
<div class="span3">
<small><strong>[[+extended.price]] руб. / [[+extended.pricefor]]</strong></small>
</div>
</div>
</li>`]]