if (({visitor_id}=={owner_id} && {owner_id}>0) || {admin_mode} == true || {edit_allowed}) {
    return (getParam('permalinks_blogs') == 'on') ? 'blogs/my_page/edit/{post_id}' : 'modules/boonex/blogs/blogs.php?action=edit_post&EditPostID={post_id}';
}
else
    return null;