
--
Ceri Shaw - AmeriCymru
updated by @adolygwr: 04/15/16 02:46:49PM
{$this_day = $smarty.now|date_format:"d"}
{$this_month = $smarty.now|date_format:"m"}
{jrCore_list module="jrProfile" search="profile_birthday LIKE %`$this_month``$this_day`" limit="4" template="widget_list_grid_2.tpl" tpl_dir="jrProfile"}
{$this_day = $smarty.now|date_format:"d"}
{$this_month = $smarty.now|date_format:"m"}
{jrCore_list module="jrUser" search="user_birthdate LIKE %`$this_month`-`$this_day`" limit="4"}
{capture name="birthday_tpl" assign="birthday_tpl"}
{literal}
<div class="container">
{if isset($_items)}
{foreach from=$_items item="item"}
{if $item@first || ($item@iteration % 2) == 1}
<div class="row">
{/if}
<div class="col6{if $item@last || ($item@iteration % 2) == 0} last{/if}">
{jrCore_module_function function="jrImage_display" module="jrUser" type="user_image" item_id=$item._user_id size="large" crop="portrait" class="img_scale" style="margin:0" alt="@`$item.user_name`" title="@`$item.user_name`"}</a>
</div>
{if $item@last || ($item@iteration % 2) == 0}
</div>
{/if}
{/foreach}
{/if}
</div>
{/literal}
{/capture}
{$this_day = $smarty.now|date_format:"d"}
{$this_month = $smarty.now|date_format:"m"}
{jrCore_list module="jrUser" search="user_birthdate LIKE %`$this_month`-`$this_day`" limit="4" template=$birthday_tpl}
{capture name="birthday_tpl" assign="birthday_tpl"}
{literal}
<div class="container">
{if isset($_items)}
{foreach from=$_items item="item"}
{if $item@first || ($item@iteration % 2) == 1}
<div class="row">
{/if}
<div class="col6{if $item@last || ($item@iteration % 2) == 0} last{/if}">
{$profile_url = jrCore_db_get_item_key('jrProfile', $item['_profile_id'], 'profile_url')}
<a href="{$jamroom_url}/{$profile_url}">{jrCore_module_function function="jrImage_display" module="jrUser" type="user_image" item_id=$item._user_id size="large" crop="portrait" class="img_scale" style="margin:0" alt="@`$item.user_name`" title="@`$item.user_name`"}</a>
</div>
{if $item@last || ($item@iteration % 2) == 0}
</div>
{/if}
{/foreach}
{/if}
</div>
{/literal}
{/capture}
{$this_day = $smarty.now|date_format:"d"}
{$this_month = $smarty.now|date_format:"m"}
{jrCore_list module="jrUser" search="user_birthdate LIKE %`$this_month`-`$this_day`" limit="4" template=$birthday_tpl}
{if $info.total_items > 4}
// 'More' link code here
{/if}
{capture name="birthday_tpl" assign="birthday_tpl"}
{literal}
<div class="container">
{if isset($_items)}
{$ctr = 0}
{foreach from=$_items item="item"}
{if $item@first || ($item@iteration % 2) == 1}
<div class="row">
{/if}
<div class="col6{if $item@last || ($item@iteration % 2) == 0} last{/if}">
{$profile_url = jrCore_db_get_item_key('jrProfile', $item['_profile_id'], 'profile_url')}
<a href="{$jamroom_url}/{$profile_url}">{jrCore_module_function function="jrImage_display" module="jrUser" type="user_image" item_id=$item._user_id size="large" crop="portrait" class="img_scale" style="margin:0" alt="@`$item.user_name`" title="@`$item.user_name`"}</a>
</div>
{if $item@last || ($item@iteration % 2) == 0}
</div>
{/if}
{$ctr = $ctr + 1}
{if $ctr == 4}
{break}
{/if}
{/foreach}
{if $info.total_items > 4}
// 'More' link code here
{/if}
{/if}
</div>
{/literal}
{/capture}
{$this_day = $smarty.now|date_format:"d"}
{$this_month = $smarty.now|date_format:"m"}
{jrCore_list module="jrUser" search="user_birthdate LIKE %`$this_month`-`$this_day`" limit="5" template=$birthday_tpl}
<a href="{$jamroom_url}/todays_birthdays">More</a>