MrKen (SV!) [Off] [#] (02.07.2018 / 06:28) Unused! |
<div class="phdr">{{ breadcrumb(breadcrumb, ' » ', true) }}</div> <div class="topmenu"> <a href="forums.php?act=search">{{ lng.search }}</a> {% if api.user_id %} | <a href="forums.php?act=online&id={{ topic_id }}">{{ lng_forum.who_here }}?</a> <span class="red">({{ viewing_users }} / {{ viewing_guests }})</span> {% if unread_count %} | <a href="forums.php?act=new">{{ lng.unread }}</a> <span class="red">(<b>{{ unread_count }}</b>)</span> {% endif %} {% else %} | <a href="forums.php?act=new">{{ lng.last_activity }}</a> {% endif %} </div> <div class="phdr"><b>{{ topic_name }}</b></div> {% if pagination %} <div class="topmenu">{{ pagination }}</div> {% endif %} {% if is_closed %} <div class="rmenu">{{ lng.topic_locked }}</div> {% endif %} {% if has_poll %} {% if view_poll_result %} <div class="gmenu"> <h4>{{ poll_question }}</h4> <div class="vote_result"> {% for option in poll_options %} <div class="result_label">{{ option.text }} [{{ option.count }}]</div> <div class="result_bar"><div class="result_bar_container"><div class="bar bg{{ (option.percent/25)|round(0, 'ceil') }}" style="width: {{ option.percent }}px"></div></div></div> {% endfor %} </div> </div> <div class="bmenu">{{ lng_forum.total_votes }}: {% if vote_users_url %}<a href="{{ vote_users_url }}">{{ poll_total_vote }}</a>{% else %}{{ poll_total_vote }}{% endif %}</div> {% if can_vote %} <div class="bmenu"><a href="{{ form_vote_url }}">{{ lng.vote }}</a></div> {% endif %} {% else %} <div class="gmenu"> <h4>{{ poll_question }}</h4> <form action="{{ vote_form_url }}" method="post"> {% for option in poll_options %} <div><input type="radio" value="{{ option.id }}" name="vote"/> {{ option.text }}</div> {% endfor %} <p><input type="submit" name="submit" value="{{ lng.vote }}" class="btn" /><a href="{{ vote_result_url }}" class="btn">{{ lng_forum.results }}</a></p> </form> </div> {% endif %} {% endif %} <div class="forum-posts"> {% for post in posts %} <div class="forum-post"> <div class="phdr"> <table width="100%" cellpadding="0" cellspacing="0"><tr><td>{{ post.time|date('H:i:s d.m.Y') }}</td><td align="right"><a href="{{ post.details_url }}" title="Link to post">[#{{ post.position }}]</a></td></tr></table> </div> <div class="menu"> <table width="100%" cellpadding="0" cellspacing="0"> <tr valign="top"> <td class="fa-avatar" width="44px"><img src="{{ post.author_avatar }}" width="32" height="32" alt="{{ post.author_name }}" /></td> <td> <div><img src="{{ post.author_gender_icon }}" class="fa-gender-icon" /> <b>{% if api.user_id %}<a href="{{ post.author_profile_url }}">{{ post.author_name }}</a>{% else %}{{ post.author_name }}{% endif %}</b> {% if post.author_is_online %}<span class="red">[ON]</span>{% else %}<span class="green">[Off]</span>{% endif %}</div> <div class="status">{{ post.author_status }}</div> </td> <td align="right">{{ post.author_rights_name }}</td> </tr> </table> <div class="post-content">{{ post.text }}</div> {% if post.is_edited %} <div class="gray"><small>{{ lng_forum.edited }} <b>{{ post.edit_user }}</b> ({{ post.edit_time|date('H:i:s d/m/Y') }})</small></div> {% endif %} {% if post.can_moder or post.quote_url %} <div class="sub"> <div> {% if post.quote_url %} <a href="{{ post.quote_url }}">{{ lng_forum.quote_btn }}</a> {% endif %} {% if post.edit_url %} <a href="{{ post.edit_url }}">{{ lng.edit }}</a> {% endif %} {% if post.delete_url %} <a href="{{ post.delete_url }}">{{ lng.delete }}</a> {% endif %} </div> {% if post.show_client_info %} <div> {% if post.author_ip_via_proxy %} <div class="gray"><b class="red"><a href="admin.php?act=search_ip&ip={{ post.author_ip }}">{{ post.author_ip }}</a></b> - <a href="admin.php?act=search_ip&ip={{ post.author_ip_via_proxy }}">{{ post.author_ip_via_proxy }}</a> - {{ post.author_browser }}</div> {% else %} <div class="gray"><a href="admin.php?act=search_ip&ip={{ post.author_ip }}">{{ post.author_ip }}</a> - {{ post.author_browser }}</div> {% endif %} </div> {% endif %} </div> {% endif %} </div> </div> {% endfor %} </div> {% if can_reply %} <div class="phdr">{{ lng_forum.answer }}</div> <div class="gmenu"> <form name="form" action="{{ reply_form_url }}" method="post"> {{ auto_bb('form', 'msg') }} <div><textarea rows="3" name="msg"></textarea></div> <div><input type="submit" name="submit" value="{{ lng.write }}" style="width: 107px; cursor: pointer;"/> <input type="submit" value="{{ lng.preview }}" style="width: 107px; cursor: pointer;"/></div> <input type="hidden" name="token" value="{{ reply_form_token}}" /> </form> </div> {% endif %} <div class="phdr">{{ lng.total }}: {{ posts_count }}</div> {% if pagination %} <div class="topmenu">{{ pagination }}</div> <div class="menu"> <form action="forums.php" method="get"> <input type="hidden" name="act" value="topic" /> <input type="hidden" name="id" value="{{ topic_id }}" /> <input type="text" name="page" size="2" /> <input type="submit" value="{{ lng.to_page }} >>"/> </form> </div> {% endif %} <div class="menu"><a href="forums.php">{{ lng.to_forum }}</a></div> {% if is_moder %} <div class="menu"> <div class="func"> {% if has_poll %} <a href="{{ edit_poll_url }}">{{ lng_forum.edit_vote }}</a><br/> <a href="{{ delete_poll_url }}">{{ lng_forum.delete_vote }}</a><br/> {% else %} <a href="{{ add_poll_url }}">{{ lng_forum.add_vote }}</a><br/> {% endif %} <a href="{{ rename_topic_url }}">{{ lng_forum.topic_rename }}</a><br/> {% if is_closed %} <a href="{{ unlock_topic_url }}">{{ lng_forum.topic_unlock }}</a><br/> {% else %} <a href="{{ lock_topic_url }}">{{ lng_forum.topic_lock }}</a><br/> {% endif %} <a href="{{ delete_topic_url }}">{{ lng_forum.topic_delete }}</a><br/> {% if is_attached %} <a href="{{ detach_topic_url }}">{{ lng_forum.topic_detach }}</a> {% else %} <a href="{{ attach_topic_url }}">{{ lng_forum.topic_attach }}</a> {% endif %} <br/><a href="{{ move_topic_url }}">{{ lng_forum.topic_move }}</a> </div> </div> {% endif %} {% if similar_topics %} <div class="phdr">{{ lng_forum.similar_topics }}</div> {% for topic in similar_topics %} <div class="menu"><a href="{{ topic.url }}" title="{{ topic.name }}">{{ topic.name }}</a></div> {% endfor %} {% endif %}