36 lines
2.0 KiB
HTML
36 lines
2.0 KiB
HTML
<div class="btn-wrapper clearfix">
|
|
<%~if page_id eq 'category_list' and not $current_user_id%>
|
|
<!--You are not logged in. Click <a href="<%GForum::SEO::url(params => "do=login")%>">here</a> to sign in.-->
|
|
|
|
<%elsif page_id eq 'forum_view'%>
|
|
<a href="<%GForum::SEO::url()%>" class="btn default mobile">All Forums</a>
|
|
<%~if btn_new and user_forum_permission >= 5%>
|
|
<a href="<%GForum::SEO::url(params => "do=post_write&forum=$forum_id")%>" class="btn default">post new topic</a>
|
|
<%~endif%>
|
|
|
|
<%~elsif page_id eq 'search_results'%>
|
|
<a href="<%GForum::SEO::url()%>" class="btn default">All Forums</a>
|
|
<%~elsif page_id eq 'user_view'%>
|
|
<%~if perm_hide_post%>
|
|
<a href='<%GForum::SEO::url(params => "do=remove_permission;id=$user_id;username=$url_user_username;permission=hide_post;next_do=$this_do")%>' rel="post-only" class="btn default">Show User's Posts</a>
|
|
<%~else%>
|
|
<a href='<%GForum::SEO::url(params => "do=add_permission;id=$user_id;username=$url_user_username;permission=hide_post;next_do=$this_do")%>' rel="post-only" class="btn default">Hide User's Posts</a>
|
|
<%~endif%>
|
|
|
|
<%~if user_id ne $current.user_id%>
|
|
<%~set my_username = $current.user_username%>
|
|
<%~if user_accept_privmsg == 2 and buddy.$my_username%><%set buddy_ok = 1%><%endif~%>
|
|
<%~if user_accept_privmsg == 1 or buddy_ok~%>
|
|
<a href="<%GForum::SEO::url(params => "do=message;user_username=$url_user_username")%>" class="btn default">Send Private Message</a>
|
|
<%~endif%>
|
|
<%~endif%>
|
|
|
|
<%~elsif page_id like 'message'%>
|
|
<%~if not url_param_mh%><%set url_param_mh = ''%><%endif%>
|
|
<a href="<%GForum::SEO::url(params => "do=message_list$url_param_mh")%>" title="Private Messages - Inbox" class="btn default">Inbox</a>
|
|
<a href="<%GForum::SEO::url(params => "do=message_list;mode=sent$url_param_mh")%>" title="Private Messages - Sent" class="btn default">Sent</a>
|
|
<a href="<%GForum::SEO::url(params => "do=message")%>" title="Private Messages - Compose" class="btn default">Compose</a>
|
|
|
|
<%~endif%>
|
|
</div>
|