-40 Removals
+38 Additions

Created by:phpboost

1<script> 1<script>
2<!-- 2<!--
3 function Confirm_read_topics() { 3 function Confirm_read_topics() {
4 return confirm("{L_CONFIRM_READ_TOPICS}"); 4 return confirm("{L_CONFIRM_READ_TOPICS}");
5 } 5 }
6 6
7//Rafraissiement des topics non lus. 7//Rafraissiement des topics non lus.
8 function XMLHttpRequest_unread_topics(divID) 8 function XMLHttpRequest_unread_topics(divID)
9 { 9 {
10 if (document.getElementById('refresh_unread_' + divID)) 10 if (document.getElementById('refresh_' + divID))
11 document.getElementById('refresh_unread_' + divID).className = 'fa fa-spinner fa-spin'; 11 document.getElementById('refresh_' + divID).className = 'fa fa-spinner fa-spin';
12 12
13 var xhr_object = xmlhttprequest_init('{PATH_TO_ROOT}/forum/xmlhttprequest.php?token={TOKEN}&refresh_unread=1'); 13 var xhr_object = xmlhttprequest_init('{PATH_TO_ROOT}/forum/xmlhttprequest.php?token={TOKEN}&refresh_unread=1');
14 xhr_object.onreadystatechange = function() 14 xhr_object.onreadystatechange = function()
15 { 15 {
16 if (xhr_object.readyState == 4 && xhr_object.status == 200 && xhr_object.responseText != '') 16 if (xhr_object.readyState == 4 && xhr_object.status == 200 && xhr_object.responseText != '')
17 { 17 {
18 if (document.getElementById('refresh_unread_' + divID)) 18 if (document.getElementById('refresh_' + divID))
19 document.getElementById('refresh_unread_' + divID).className = 'fa fa-refresh'; 19 document.getElementById('refresh_' + divID).className = 'fa fa-refresh';
20 20
21 var array_unread_topics = new Array('', ''); 21 var array_unread_topics = new Array('', '');
22 eval(xhr_object.responseText); 22 eval(xhr_object.responseText);
23 23
24 if (array_unread_topics[0] > 0) 24 if (array_unread_topics[0] > 0)
25 forum_display_block('forum_unread' + divID); 25 forum_display_block(divID);
26 26
27 document.getElementById('nbr_unread_topics_top').innerHTML = array_unread_topics[1]; 27 document.getElementById('nbr_unread_topics_top').innerHTML = array_unread_topics[0];
28 document.getElementById('nbr_unread_topics_bottom').innerHTML = array_unread_topics[1]; 28 document.getElementById('nbr_unread_topics_bottom').innerHTML = array_unread_topics[0];
29 document.getElementById('forum_blockforum_unread_top').innerHTML = array_unread_topics[2]; 29 document.getElementById('forum_block_' + divID).innerHTML = array_unread_topics[2];
30 document.getElementById('forum_blockforum_unread_bottom').innerHTML = array_unread_topics[2]; 30 document.getElementById('forum_block_' + divID).innerHTML = array_unread_topics[2];
31 } else if (xhr_object.readyState == 4 && xhr_object.responseText == '') 31 } else if (xhr_object.readyState == 4 && xhr_object.responseText == '')
32 { 32 {
33 alert("{L_AUTH_ERROR}"); 33 alert("{L_AUTH_ERROR}");
34 if (document.getElementById('refresh_unread_' + divID)) 34 if (document.getElementById('refresh_' + divID))
35 document.getElementById('refresh_unread_' + divID).className = 'fa fa-refresh'; 35 document.getElementById('refresh_' + divID).className = 'fa fa-refresh';
36 } 36 }
37 } 37 }
38 xmlhttprequest_sender(xhr_object, null); 38 xmlhttprequest_sender(xhr_object, null);
39 } 39 }
40 40
41 var delay_forum = 1000; 41 var delay_forum = 1000;
42 var timeout_forum; 42 var timeout_forum;
43 var displayed_forum = false; 43 var displayed_forum = false;
44 var previous_forumblock; 44 var previous_forumblock;
45 45
46//Affiche le bloc. 46//Affiche le bloc.
47 function forum_display_block(divID) 47 function forum_display_block(divID)
48 { 48 {
49 if (timeout_forum) 49 if (timeout_forum)
50 clearTimeout(timeout_forum); 50 clearTimeout(timeout_forum);
51 51
52 var block = document.getElementById('forum_block' + divID); 52 var block = document.getElementById('forum_block_' + divID);
53 if (block.style.display == 'none') 53 if (block.style.display == 'none')
54 { 54 {
55 if (document.getElementById(previous_forumblock)) 55 if (document.getElementById(previous_forumblock))
56 document.getElementById(previous_forumblock).style.display = 'none'; 56 document.getElementById(previous_forumblock).style.display = 'none';
57 block.style.display = 'block'; 57 block.style.display = 'block';
58 displayed_forum = true; 58 displayed_forum = true;
59 previous_forumblock = 'forum_block' + divID; 59 previous_forumblock = 'forum_block_' + divID;
60 } else 60 } else
61 { 61 {
62 block.style.display = 'none'; 62 block.style.display = 'none';
63 displayed_forum = false; 63 displayed_forum = false;
64 } 64 }
65 } 65 }
66 66
67//Cache le bloc. 67//Cache le bloc.
68 function forum_hide_block(forumid, stop) 68 function forum_hide_block(forumid, stop)
69 { 69 {
70 if (stop && timeout_forum) 70 if (stop && timeout_forum)
71 clearTimeout(timeout_forum); 71 clearTimeout(timeout_forum);
72 else if (displayed_forum) 72 else if (displayed_forum)
73 { 73 {
74 clearTimeout(timeout_forum); 74 clearTimeout(timeout_forum);
75 timeout_forum = setTimeout('forum_display_block(\'' + forumid + '\')', delay_forum); 75 timeout_forum = setTimeout('forum_display_block(\'' + forumid + '\')', delay_forum);
76 } 76 }
77 } 77 }
78 --></script> 78 --></script>
79<section id="module-forum"> 79<section id="module-forum">
80 <header id="forum-top"> 80 <header id="forum-top">
81 81
82 <h1>{FORUM_NAME}</h1>
83
84 <div class="forum-links"> 82 <div class="forum-links">
85 <nav itemscope itemtype="http://schema.org/SiteNavigationElement" class="cssmenu cssmenu-group float-left forum-index"> 83 # IF C_USER_CONNECTED #
84 <nav itemscope itemtype="http://schema.org/SiteNavigationElement" class="cssmenu cssmenu-group float-right" id="cssmenu-forum-top-link">
86 <ul> 85 <ul>
87 <li> 86 <li>
88 <span class="cssmenu-title"> 87 <span class="cssmenu-title">
89 <i class="fa fa-globe"></i> <a class="small" href="index.php" title="{L_FORUM_INDEX}">{L_FORUM_INDEX}</a> 88 <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>
90 </span> 89 </span>
91 </li> 90 </li>
92 </ul>
93 </nav>
94 # IF C_USER_CONNECTED #
95 <nav itemscope itemtype="http://schema.org/SiteNavigationElement" class="cssmenu cssmenu-group float-right" id="cssmenu-forum-top-link">
96 <ul>
97 <li> 91 <li>
98 <span class="cssmenu-title"> 92 <span class="cssmenu-title">
99 <i class="fa fa-showmymsg"></i> <a class="small" title="{L_SHOW_MY_MSG}" href="{U_SHOW_MY_MSG}">{L_SHOW_MY_MSG}</a> 93 <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>
100 </span> 94 </span>
101 </li> 95 </li>
102 <li> 96 <li>
103 <span class="cssmenu-title"> 97 <span class="cssmenu-title">
104 <i class="fa fa-msg-track"></i> <a class="small" href="{U_TOPIC_TRACK}" title="{L_SHOW_TOPIC_TRACK}">{L_SHOW_TOPIC_TRACK}</a> 98 <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>
105 </span> 99 </span>
106 </li> 100 </li>
107 <li class="forum-index"> 101 <li class="forum-index">
108 <span class="cssmenu-title"> 102 <span class="cssmenu-title">
109 <i class="fa fa-lastview"></i> <a class="small" href="{U_LAST_MSG_READ}" title="{L_SHOW_LAST_READ}">{L_SHOW_LAST_READ}</a> 103 <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>
110 </span> 104 </span>
111 </li> 105 </li>
112 <li> 106 <li>
113 <span class="cssmenu-title"> 107 <span class="cssmenu-title">
114 <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> 108 <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>
115 <div class="forum-refresh"> 109 <div class="forum-refresh">
116 <div id="forum_blockforum_unread_top" style="display: none;"></div> 110 <div id="forum_block_forum_unread_top" style="display: none;"></div>
117 </div> 111 </div>
118 <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> 112 <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>
119 </span> 113 </span>
120 </li> 114 </li>
121 <li> 115 <li>
122 <span class="cssmenu-title"> 116 <span class="cssmenu-title">
123 <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> 117 <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>
124 </span> 118 </span>
125 </li> 119 </li>
126 # IF C_FORUM_CONNEXION # 120 # IF C_FORUM_CONNEXION #
127 <li> 121 <li>
128 <span class="cssmenu-title"> 122 <span class="cssmenu-title">
129 <i class="fa fa-sign-out"></i> <a title="{L_DISCONNECT}" class="small" href="${relative_url(UserUrlBuilder::disconnect())}">{L_DISCONNECT}</a> 123 <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>
130 </span> 124 </span>
131 </li> 125 </li>
132 # ENDIF # 126 # ENDIF #
133 </ul> 127 </ul>
134 </nav> 128 </nav>
135 # ELSE # 129 # ELSE #
136 # IF C_FORUM_CONNEXION # 130 # IF C_FORUM_CONNEXION #
137 <nav itemscope itemtype="http://schema.org/SiteNavigationElement" class="cssmenu cssmenu-group float-right" id="cssmenu-forum-top-link"> 131 <nav itemscope itemtype="http://schema.org/SiteNavigationElement" class="cssmenu cssmenu-group float-right" id="cssmenu-sign-in-top-link">
138 <ul> 132 <ul>
139 <li> 133 <li>
140 <span class="cssmenu-title"> 134 <span class="cssmenu-title">
141 <i class="fa fa-sign-in"></i> <a title="{L_CONNECT}" class="small" href="${relative_url(UserUrlBuilder::connect())}">{L_CONNECT}</a> 135 <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>
142 </span> 136 </span>
143 </li> 137 </li>
144 <li> 138 <li>
145 <span class="cssmenu-title"> 139 <span class="cssmenu-title">
146 <i class="fa fa-ticket"></i> <a title="{L_REGISTER}" class="small" href="${relative_url(UserUrlBuilder::registration())}">{L_REGISTER}</a> 140 <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>
147 </span> 141 </span>
148 </li> 142 </li>
149 </ul> 143 </ul>
150 </nav> 144 </nav>
151 # ENDIF # 145 # ENDIF #
152 # ENDIF # 146 # ENDIF #
153
154 <div class="spacer"></div>
155 </div> 147 </div>
156 <script> 148 <script>
157 <!-- 149 <!--
158 jQuery("#cssmenu-forum-top-link").menumaker({title: " ${LangLoader::get_message('forum.links', 'common', 'forum')} ", format: "multitoggle", breakpoint: 768, menu_static: false}); 150 jQuery("#cssmenu-forum-top-link").menumaker({title: " ${LangLoader::get_message('forum.links', 'common', 'forum')} ", format: "multitoggle", breakpoint: 768, menu_static: false});
151 # 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 #
159 --> 152 -->
160 </script> 153 </script>
161 </header>154
155 <h1>{FORUM_NAME}</h1>
156
157 <div class="spacer"></div>
158 </header>
Editor
Original Text
Changed Text
Recommended videos