JrCore_list in email template
Jamroom Developers
Go for the second idea then to identify which ones are firing and which aren't.
{capture name="s_tpl" assign="s_tpl"}
{literal}
THE SEARCH IS: {$_params.search2} <br>
{if isset($_items)}
{foreach $_items as $item}
{if $item.event_type == 'marriage'}
{if $item.profile_gender == 'female'}
{$item.event_date|jrGenCore_get_day} {$item.event_date|jrGenCore_get_readable_month} {$item.event_date|jrGenCore_get_year} {$item.profile_first_name} ve {$item.event_linked_person|iyelikin} evlilik yıldönümü
{/if}
{else}
{$item.event_date|jrGenCore_get_day} {$item.event_date|jrGenCore_get_readable_month} {$item.event_date|jrGenCore_get_year} {$item.profile_name|iyelikin} {if $item.event_type == 'birth'}doğumgünü{elseif $item.event_type == 'death'}ölüm yıldönümü{/if}
{/if}
{/foreach}
{/if}
{/literal}
{/capture}
{*{jrCore_item_update_button module="jrComment" profile_id=$_params.profile_owner_id item_id=$item._item_id}*}
{if jrUser_is_admin()}
{jrCore_item_update_button module="jrComment" profile_id=$_params.profile_owner_id item_id=$item._item_id}
{/if}
{if jrUser_is_admin() || !isset($item.comment_locked)}
{if $_params.profile_owner_id > 0}
{* profile owners can delete comments *}
{jrCore_item_update_button module="jrComment" profile_id=$_params.profile_owner_id item_id=$item._item_id}
{jrCore_item_delete_button module="jrComment" profile_id=$_params.profile_owner_id item_id=$item._item_id}
{else}
{* site admins and comment owners see this button *}
{jrCore_item_update_button module="jrComment" profile_id=$item._profile_id item_id=$item._item_id}
{jrCore_item_delete_button module="jrComment" profile_id=$item._profile_id item_id=$item._item_id}
{/if}
{/if}
{if jrUser_is_admin() || !isset($item.comment_locked)}
{if $_params.profile_owner_id > 0}
{* profile owners can delete comments *}
{*{jrCore_item_update_button module="jrComment" profile_id=$_params.profile_owner_id item_id=$item._item_id}*}
{jrCore_item_delete_button module="jrComment" profile_id=$_params.profile_owner_id item_id=$item._item_id}
{else}
{* site admins and comment owners see this button *}
{jrCore_item_update_button module="jrComment" profile_id=$item._profile_id item_id=$item._item_id}
{jrCore_item_delete_button module="jrComment" profile_id=$item._profile_id item_id=$item._item_id}
{/if}
{/if}
/**
* Load profile notes on click
* @param pid int Profile ID
*/
function jrGenCore_profile_notes(pid){
var b = $('#profile_notes_box');
if (b.is(':visible')) {
b.slideUp('fast');
}
else {
jrGenCore_load_notes(pid, function()
{
b.slideDown('fast');
});
}
}
<div id="profile_notes_box"..........
// Profile Notes
$_tmp = array(
'name' => 'profile_notes',
'label' => 'research notes',
'help' => 'Enter any research notes you would like to add to this ancestor profile.',
'type' => 'textarea',
'valdiate' => 'printable',
'required' => false
);
jrCore_form_field_create($_tmp);