-40 Removals
+38 Additions

Created by:phpboost

<script> <script>
<!-- <!--
function Confirm_read_topics() { function Confirm_read_topics() {
return confirm("{L_CONFIRM_READ_TOPICS}"); return confirm("{L_CONFIRM_READ_TOPICS}");
} }
//Rafraissiement des topics non lus. //Rafraissiement des topics non lus.
function XMLHttpRequest_unread_topics(divID) function XMLHttpRequest_unread_topics(divID)
{ {
if (document.getElementById('refresh_unread_' + divID)) if (document.getElementById('refresh_' + divID))
document.getElementById('refresh_unread_' + divID).className = 'fa fa-spinner fa-spin'; document.getElementById('refresh_' + divID).className = 'fa fa-spinner fa-spin';
var xhr_object = xmlhttprequest_init('{PATH_TO_ROOT}/forum/xmlhttprequest.php?token={TOKEN}&refresh_unread=1'); var xhr_object = xmlhttprequest_init('{PATH_TO_ROOT}/forum/xmlhttprequest.php?token={TOKEN}&refresh_unread=1');
xhr_object.onreadystatechange = function() xhr_object.onreadystatechange = function()
{ {
if (xhr_object.readyState == 4 && xhr_object.status == 200 && xhr_object.responseText != '') if (xhr_object.readyState == 4 && xhr_object.status == 200 && xhr_object.responseText != '')
{ {
if (document.getElementById('refresh_unread_' + divID)) if (document.getElementById('refresh_' + divID))
document.getElementById('refresh_unread_' + divID).className = 'fa fa-refresh'; document.getElementById('refresh_' + divID).className = 'fa fa-refresh';
var array_unread_topics = new Array('', ''); var array_unread_topics = new Array('', '');
eval(xhr_object.responseText); eval(xhr_object.responseText);
if (array_unread_topics[0] > 0) if (array_unread_topics[0] > 0)
forum_display_block('forum_unread' + divID); forum_display_block(divID);
document.getElementById('nbr_unread_topics_top').innerHTML = array_unread_topics[1]; document.getElementById('nbr_unread_topics_top').innerHTML = array_unread_topics[0];
document.getElementById('nbr_unread_topics_bottom').innerHTML = array_unread_topics[1]; document.getElementById('nbr_unread_topics_bottom').innerHTML = array_unread_topics[0];
document.getElementById('forum_blockforum_unread_top').innerHTML = array_unread_topics[2]; document.getElementById('forum_block_' + divID).innerHTML = array_unread_topics[2];
document.getElementById('forum_blockforum_unread_bottom').innerHTML = array_unread_topics[2]; document.getElementById('forum_block_' + divID).innerHTML = array_unread_topics[2];
} else if (xhr_object.readyState == 4 && xhr_object.responseText == '') } else if (xhr_object.readyState == 4 && xhr_object.responseText == '')
{ {
alert("{L_AUTH_ERROR}"); alert("{L_AUTH_ERROR}");
if (document.getElementById('refresh_unread_' + divID)) if (document.getElementById('refresh_' + divID))
document.getElementById('refresh_unread_' + divID).className = 'fa fa-refresh'; document.getElementById('refresh_' + divID).className = 'fa fa-refresh';
} }
} }
xmlhttprequest_sender(xhr_object, null); xmlhttprequest_sender(xhr_object, null);
} }
var delay_forum = 1000; var delay_forum = 1000;
var timeout_forum; var timeout_forum;
var displayed_forum = false; var displayed_forum = false;
var previous_forumblock; var previous_forumblock;
//Affiche le bloc. //Affiche le bloc.
function forum_display_block(divID) function forum_display_block(divID)
{ {
if (timeout_forum) if (timeout_forum)
clearTimeout(timeout_forum); clearTimeout(timeout_forum);
var block = document.getElementById('forum_block' + divID); var block = document.getElementById('forum_block_' + divID);
if (block.style.display == 'none') if (block.style.display == 'none')
{ {
if (document.getElementById(previous_forumblock)) if (document.getElementById(previous_forumblock))
document.getElementById(previous_forumblock).style.display = 'none'; document.getElementById(previous_forumblock).style.display = 'none';
block.style.display = 'block'; block.style.display = 'block';
displayed_forum = true; displayed_forum = true;
previous_forumblock = 'forum_block' + divID; previous_forumblock = 'forum_block_' + divID;
} else } else
{ {
block.style.display = 'none'; block.style.display = 'none';
displayed_forum = false; displayed_forum = false;
} }
} }
//Cache le bloc. //Cache le bloc.
function forum_hide_block(forumid, stop) function forum_hide_block(forumid, stop)
{ {
if (stop && timeout_forum) if (stop && timeout_forum)
clearTimeout(timeout_forum); clearTimeout(timeout_forum);
else if (displayed_forum) else if (displayed_forum)
{ {
clearTimeout(timeout_forum); clearTimeout(timeout_forum);
timeout_forum = setTimeout('forum_display_block(\'' + forumid + '\')', delay_forum); timeout_forum = setTimeout('forum_display_block(\'' + forumid + '\')', delay_forum);
} }
} }
--></script> --></script>
<section id="module-forum"> <section id="module-forum">
<header id="forum-top"> <header id="forum-top">
<h1>{FORUM_NAME}</h1>
<div class="forum-links"> <div class="forum-links">
<nav itemscope itemtype="http://schema.org/SiteNavigationElement" class="cssmenu cssmenu-group float-left forum-index"> # IF C_USER_CONNECTED #
<nav itemscope itemtype="http://schema.org/SiteNavigationElement" class="cssmenu cssmenu-group float-right" id="cssmenu-forum-top-link">
<ul> <ul>
<li> <li>
<span class="cssmenu-title"> <span class="cssmenu-title">
<i class="fa fa-globe"></i> <a class="small" href="index.php" title="{L_FORUM_INDEX}">{L_FORUM_INDEX}</a> <a href="index.php" aria-label="{L_FORUM_INDEX}"><i class="fa fa-home" aria-hidden="true" title="{L_FORUM_INDEX}"></i> <span class="hidden-large-screens">{L_FORUM_INDEX}</span></a>
</span> </span>
</li> </li>
</ul>
</nav>
# IF C_USER_CONNECTED #
<nav itemscope itemtype="http://schema.org/SiteNavigationElement" class="cssmenu cssmenu-group float-right" id="cssmenu-forum-top-link">
<ul>
<li> <li>
<span class="cssmenu-title"> <span class="cssmenu-title">
<i class="fa fa-showmymsg"></i> <a class="small" title="{L_SHOW_MY_MSG}" href="{U_SHOW_MY_MSG}">{L_SHOW_MY_MSG}</a> <a href="{U_SHOW_MY_MSG}" aria-label="{L_SHOW_MY_MSG}"><i class="fa fa-showmymsg" aria-hidden="true" title="{L_SHOW_MY_MSG}"></i> <span class="hidden-large-screens">{L_SHOW_MY_MSG}</span></a>
</span> </span>
</li> </li>
<li> <li>
<span class="cssmenu-title"> <span class="cssmenu-title">
<i class="fa fa-msg-track"></i> <a class="small" href="{U_TOPIC_TRACK}" title="{L_SHOW_TOPIC_TRACK}">{L_SHOW_TOPIC_TRACK}</a> <a href="{U_TOPIC_TRACK}" aria-label="{L_SHOW_TOPIC_TRACK}"><i class="fa fa-msg-track" aria-hidden="true" title="{L_SHOW_TOPIC_TRACK}"></i> <span class="hidden-large-screens">{L_SHOW_TOPIC_TRACK}</span></a>
</span> </span>
</li> </li>
<li class="forum-index"> <li class="forum-index">
<span class="cssmenu-title"> <span class="cssmenu-title">
<i class="fa fa-lastview"></i> <a class="small" href="{U_LAST_MSG_READ}" title="{L_SHOW_LAST_READ}">{L_SHOW_LAST_READ}</a> <a href="{U_LAST_MSG_READ}" aria-label="{L_SHOW_LAST_READ}"><i class="fa fa-lastview" aria-hidden="true" title="{L_SHOW_LAST_READ}"></i> <span class="hidden-large-screens">{L_SHOW_LAST_READ}</span></a>
</span> </span>
</li> </li>
<li> <li>
<span class="cssmenu-title"> <span class="cssmenu-title">
<i class="fa fa-notread"></i> <a class="small" href="{U_MSG_NOT_READ}" title="{L_SHOW_NOT_READS}">{L_SHOW_NOT_READS} # IF C_IS_GUEST # ({NBR_MSG_NOT_READ})# ENDIF #</a> <a href="{U_MSG_NOT_READ}" aria-label="{L_SHOW_NOT_READS}"><i class="fa fa-notread" aria-hidden="true" title="{L_SHOW_NOT_READS}"></i> <span class="hidden-large-screens">{L_SHOW_NOT_READS}</span> <span id="nbr_unread_topics_top">{NBR_MSG_NOT_READ}</span></a>
<div class="forum-refresh"> <div class="forum-refresh">
<div id="forum_blockforum_unread_top" style="display: none;"></div> <div id="forum_block_forum_unread_top" style="display: none;"></div>
</div> </div>
<a href="" onclick="XMLHttpRequest_unread_topics('top');return false;" onmouseover="forum_hide_block('forum_unread', 1);" onmouseout="forum_hide_block('forum_unread', 0);"><i class="fa fa-refresh" id="refresh_unread_top"></i></a> <a href="" onclick="XMLHttpRequest_unread_topics('forum_unread_top');return false;" onmouseover="forum_hide_block('forum_unread_top', 1);" onmouseout="forum_hide_block('forum_unread_top', 0);"><i class="fa fa-refresh" aria-hidden="true" id="refresh_forum_unread_top"></i><span class="sr-only">${LangLoader::get_message('forum.links', 'common', 'forum')}</span></a>
</span> </span>
</li> </li>
<li> <li>
<span class="cssmenu-title"> <span class="cssmenu-title">
<i class="fa fa-eraser"></i> <a class="small" href="{U_MSG_SET_VIEW}" title="{L_MARK_AS_READ}" onclick="javascript:return Confirm_read_topics();">{L_MARK_AS_READ}</a> <a href="{U_MSG_SET_VIEW}" onclick="javascript:return Confirm_read_topics();" aria-label="{L_MARK_AS_READ}"><i class="fa fa-eraser" aria-hidden="true" title="{L_MARK_AS_READ}"></i> <span class="hidden-large-screens">{L_MARK_AS_READ}</span></a>
</span> </span>
</li> </li>
# IF C_FORUM_CONNEXION # # IF C_FORUM_CONNEXION #
<li> <li>
<span class="cssmenu-title"> <span class="cssmenu-title">
<i class="fa fa-sign-out"></i> <a title="{L_DISCONNECT}" class="small" href="${relative_url(UserUrlBuilder::disconnect())}">{L_DISCONNECT}</a> <a href="${relative_url(UserUrlBuilder::disconnect())}" aria-label="{L_DISCONNECT}"><i class="fa fa-sign-out" title="{L_DISCONNECT}"></i> <span class="hidden-large-screens">{L_DISCONNECT}</span></a>
</span> </span>
</li> </li>
# ENDIF # # ENDIF #
</ul> </ul>
</nav> </nav>
# ELSE # # ELSE #
# IF C_FORUM_CONNEXION # # IF C_FORUM_CONNEXION #
<nav itemscope itemtype="http://schema.org/SiteNavigationElement" class="cssmenu cssmenu-group float-right" id="cssmenu-forum-top-link"> <nav itemscope itemtype="http://schema.org/SiteNavigationElement" class="cssmenu cssmenu-group float-right" id="cssmenu-sign-in-top-link">
<ul> <ul>
<li> <li>
<span class="cssmenu-title"> <span class="cssmenu-title">
<i class="fa fa-sign-in"></i> <a title="{L_CONNECT}" class="small" href="${relative_url(UserUrlBuilder::connect())}">{L_CONNECT}</a> <a href="${relative_url(UserUrlBuilder::connect())}" aria-label="{L_CONNECT}"><i class="fa fa-sign-in" aria-hidden="true" title="{L_CONNECT}"></i> <span class="hidden-large-screens">{L_CONNECT}</span></a>
</span> </span>
</li> </li>
<li> <li>
<span class="cssmenu-title"> <span class="cssmenu-title">
<i class="fa fa-ticket"></i> <a title="{L_REGISTER}" class="small" href="${relative_url(UserUrlBuilder::registration())}">{L_REGISTER}</a> <a href="${relative_url(UserUrlBuilder::registration())}" aria-label="{L_REGISTER}"><i class="fa fa-ticket" aria-hidden="true" title="{L_REGISTER}"></i> <span class="hidden-large-screens">{L_REGISTER}</span></a>
</span> </span>
</li> </li>
</ul> </ul>
</nav> </nav>
# ENDIF # # ENDIF #
# ENDIF # # ENDIF #
<div class="spacer"></div>
</div> </div>
<script> <script>
<!-- <!--
jQuery("#cssmenu-forum-top-link").menumaker({title: " ${LangLoader::get_message('forum.links', 'common', 'forum')} ", format: "multitoggle", breakpoint: 768, menu_static: false}); jQuery("#cssmenu-forum-top-link").menumaker({title: " ${LangLoader::get_message('forum.links', 'common', 'forum')} ", format: "multitoggle", breakpoint: 768, menu_static: false});
# IF C_FORUM_CONNEXION #jQuery("#cssmenu-sign-in-top-link").menumaker({title: " ${LangLoader::get_message('forum.links', 'common', 'forum')} ", format: "multitoggle", breakpoint: 768, menu_static: false});# ENDIF #
--> -->
</script> </script>
</header>
<h1>{FORUM_NAME}</h1>
<div class="spacer"></div>
</header>
Editor
Original Text
Changed Text
Recommended videos