<%~set pagination_options.params = "do=$this_do;sb=$sb;mh=$mh;user_id=$user_id"%>
<%~set pagination_options.page_items = $num_posts%>

<form action="<%GForum::SEO::url()%>" method="post">
    <input type="hidden" name="do" value="profile_remove_favourites" />
    <input type="hidden" name="next_do" value="<%this_do%>" />

    <%~set post_list = $favourite_posts%>
    <%~set post_list_show_replies = 1%>
    <%~set post_list_show_faves = 1%>
    <%~set post_list_empty_message = 'You do not have any favourite posts'%>
    <%~if user_username eq $current_user_username%>
    <%~set post_list_show_checkbox = 1%>
    <%~endif%>
    <%~include include_post_list.html%>
    
    <%~if $num_favourites%>
    <div class="toolbar clearfix">
        <hr class="line" />
        <%~set paging_do = ''%>
        <%~if in.do%>
        <%~set paging_do = "do=$this_do"%>
        <%~endif%>
        <%~set pagination_options.page_items = $num_favourites%>

        <%include include_paging.html%>
        <%if current_user_username eq $user_username%>
        <div class="btn-wrapper">
            <input type="submit" name="submit" value="Remove Favourites" class="btn default" />
        </div>
        <%~endif%>
    </div>
    <%~endif%>
</form>

