26 lines
760 B
Text
26 lines
760 B
Text
<h2 class="smaller"><span>[% dw.ml('widget.friendbirthdays.title') %]</span></h2>
|
|
|
|
[%- FOREACH bday IN bdays -%]
|
|
[%- u = load_user( bday.2 )
|
|
month = bday.0
|
|
day = bday.1.replace('^0', '')
|
|
-%]
|
|
[%- NEXT UNLESS u && month && day -%]
|
|
<div class="user-block">
|
|
<ul>
|
|
<li class="bdate">
|
|
[% dw.ml( 'widget.friendbirthdays.userbirthday',
|
|
{ 'month' => month_short(month), 'day' => day } ) %]
|
|
</li>
|
|
<li>[% u.ljuser_display %]</li>
|
|
<li><a href='[% u.gift_url %]' class='gift-link'>
|
|
[% dw.ml('widget.friendbirthdays.gift') %]</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
[%- END -%]
|
|
|
|
<p>
|
|
» <a href='[% site.root %]/birthdays' class='more-link'>
|
|
[% dw.ml('widget.friendbirthdays.friends_link') %]</a>
|
|
</p>
|