-26 Removals
+30 Additions

Created by:phpboost

1# IF C_USER_LOGIN # 1# IF C_USER_LOGIN #
2 # INCLUDE ERROR_MESSAGE # 2<section>
3 # INCLUDE LOGIN_FORM # 3 <header></header>
4 <div class="center"> 4 <article class="">
5 # IF C_REGISTRATION_ENABLED # 5 # INCLUDE ERROR_MESSAGE #
6 <a href="{U_REGISTER}"><i class="fa fa-ticket"></i> {@registration}</a><br /> 6 # INCLUDE LOGIN_FORM #
7 # IF C_FB_AUTH_ENABLED # 7 <div class="center">
8 <a class="social-connect fb" href="${relative_url(UserUrlBuilder::connect('fb'))}" title="${LangLoader::get_message('facebook-connect', 'user-common')}"><i class="fa fa-facebook"></i></a> 8 # IF C_REGISTRATION_ENABLED #
9 # ENDIF # 9 <a class="infos-options" href="{U_REGISTER}"><i class="fa fa-ticket-alt" aria-hidden="true"></i> {@registration}</a>
10 # IF C_GOOGLE_AUTH_ENABLED # 10 # START external_auth #
11 <a class="social-connect google" href="${relative_url(UserUrlBuilder::connect('google'))}" title="${LangLoader::get_message('google-connect', 'user-common')}"><i class="fa fa-google-plus"></i></a> 11 <a class="{external_auth.CSS_CLASS} login-page" href="{external_auth.U_CONNECT}" title="{external_auth.NAME}">{external_auth.IMAGE_HTML}</a>
12 # END external_auth #
12 # ENDIF # 13 # ENDIF #
13 # ENDIF # 14 <div class="spacer"></div>
14 <div class="spacer"></div> 15 <a href="{U_FORGET_PASSWORD}"><i class="fa fa-question-circle" aria-hidden="true"></i> {L_FORGET_PASSWORD}</a>
15 <a href="{U_FORGET_PASSWORD}"><i class="fa fa-question-circle"></i> {L_FORGET_PASSWORD}</a> 16 </div>
16 </div> 17 </article>
18 <footer></footer>
19</section>
20
17# ELSE # 21# ELSE #
18 <div id="global" class="global-maintain"> 22 <div id="global" class="global-maintain">
19 # IF C_MAINTAIN # 23 # IF C_MAINTAIN #
20 <div id="maintain" class="center"> 24 <div id="maintain" class="center">
21 {L_MAINTAIN} 25 {L_MAINTAIN}
22 26
23 # IF C_DISPLAY_DELAY # 27 # IF C_DISPLAY_DELAY #
24 <div class="delay"> 28 <div class="delay">
25 ${LangLoader::get_message('maintain_delay', 'main')} 29 ${LangLoader::get_message('maintain_delay', 'main')}
26 <div id="release">${LangLoader::get_message('loading', 'main')}...</div> 30 <div id="release">${LangLoader::get_message('loading', 'main')}...</div>
27 </div> 31 </div>
28 32
29 <script> 33 <script>
30 <!-- 34 <!--
31 var release_timeout_seconds = 0; 35 var release_timeout_seconds = 0;
32 function release(year, month, day, hour, minute, second) 36 function release(year, month, day, hour, minute, second)
33 { 37 {
34 if(document.getElementById('release')) 38 if(document.getElementById('release'))
35 { 39 {
36 var sp_day = 86400; 40 var sp_day = 86400;
37 var sp_hour = 3600; 41 var sp_hour = 3600;
38 var sp_minute = 60; 42 var sp_minute = 60;
39 43
40 now = new Date({MAINTAIN_NOW_FORMAT}+release_timeout_seconds++); 44 now = new Date({MAINTAIN_NOW_FORMAT}+release_timeout_seconds++);
41 end = new Date(year, month, day, hour, minute, second); 45 end = new Date(year, month, day, hour, minute, second);
42 46
43 release_time = (end.getTime() - now.getTime())/1000; 47 release_time = (end.getTime() - now.getTime())/1000;
44 if( release_time <= 0 ) 48 if( release_time <= 0 )
45 { 49 {
46 document.location.reload(); 50 document.location.reload();
47 release_time = '0'; 51 release_time = '0';
48 } 52 }
49 else 53 else
50 timeout = setTimeout('release('+year+', '+month+', '+day+', '+hour+', '+minute+', '+second+')', 1000); 54 timeout = setTimeout('release('+year+', '+month+', '+day+', '+hour+', '+minute+', '+second+')', 1000);
51 55
52 release_days = Math.floor(release_time/sp_day); 56 release_days = Math.floor(release_time/sp_day);
53 release_time -= (release_days * sp_day); 57 release_time -= (release_days * sp_day);
54 58
55 release_hours = Math.floor(release_time/sp_hour); 59 release_hours = Math.floor(release_time/sp_hour);
56 release_time -= (release_hours * sp_hour); 60 release_time -= (release_hours * sp_hour);
57 61
58 release_minutes = Math.floor(release_time/sp_minute); 62 release_minutes = Math.floor(release_time/sp_minute);
59 release_time -= (release_minutes * sp_minute); 63 release_time -= (release_minutes * sp_minute);
60 64
61 release_seconds = Math.floor(release_time); 65 release_seconds = Math.floor(release_time);
62 release_seconds = (release_seconds < 10) ? '0' + release_seconds : release_seconds; 66 release_seconds = (release_seconds < 10) ? '0' + release_seconds : release_seconds;
63 67
64 document.getElementById('release').innerHTML = '<strong>' + release_days + '</strong> ${LangLoader::get_message('days', 'date-common')} <strong>' + release_hours + '</strong> ${LangLoader::get_message('hours', 'date-common')} <strong>' + release_minutes + '</strong> ${LangLoader::get_message('minutes', 'date-common')} <strong>' + release_seconds + '</strong> ${LangLoader::get_message('seconds', 'date-common')}'; 68 document.getElementById('release').innerHTML = '<strong>' + release_days + '</strong> ${LangLoader::get_message('days', 'date-common')} <strong>' + release_hours + '</strong> ${LangLoader::get_message('hours', 'date-common')} <strong>' + release_minutes + '</strong> ${LangLoader::get_message('minutes', 'date-common')} <strong>' + release_seconds + '</strong> ${LangLoader::get_message('seconds', 'date-common')}';
65 } 69 }
66 } 70 }
67 release({MAINTAIN_RELEASE_FORMAT}); 71 release({MAINTAIN_RELEASE_FORMAT});
68 --> 72 -->
69 </script> 73 </script>
70 # ENDIF # 74 # ENDIF #
71 </div> 75 </div>
72 76
73 # IF NOT C_HAS_ERROR # 77 # IF NOT C_HAS_ERROR #
74 <p class="center"> 78 <p class="center">
75 <a href="" id="connect" onclick="jQuery('#loginForm').toggle();return false;">${LangLoader::get_message('connection', 'user-common')}</a> 79 <a href="" id="connect" onclick="jQuery('#loginForm').toggle();return false;">${LangLoader::get_message('connection', 'user-common')}</a>
76 </p> 80 </p>
77 81
78 <script> 82 <script>
79 <!-- 83 <!--
80 jQuery(document).ready(function() { 84 jQuery(document).ready(function() {
81 jQuery('#loginForm').hide(); 85 jQuery('#loginForm').hide();
82 }); 86 });
83 --> 87 -->
84 </script> 88 </script>
85 # ENDIF # 89 # ENDIF #
86 # ENDIF # 90 # ENDIF #
87 91
88 # INCLUDE ERROR_MESSAGE # 92 # INCLUDE ERROR_MESSAGE #
89 # INCLUDE LOGIN_FORM # 93 # INCLUDE LOGIN_FORM #
90 </div> 94 </div>
91 95
92# ENDIF # 96# ENDIF #
Editor
Original Text
Changed Text
Recommended videos