Advertisement
Guest User

overall_footer

a guest
Sep 28th, 2023
18
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.91 KB | None | 0 0
  1. <!-- IF STYLE_SETTINGS_CONFIG_SIDEBARS -->
  2. </div>
  3. </div>
  4. </div>
  5.  
  6. <!-- IF STYLE_SETTINGS_CONFIG_SIDEBAR_PLACEMENT == 'Left Only' || STYLE_SETTINGS_CONFIG_SIDEBAR_PLACEMENT == 'Both' -->
  7. <div id="leftcolumn">
  8. <div class="innertube"><!-- INCLUDE sidebar_left.html --></div>
  9. </div>
  10. <!-- ENDIF -->
  11.  
  12. <!-- IF STYLE_SETTINGS_CONFIG_SIDEBAR_PLACEMENT == 'Right Only' || STYLE_SETTINGS_CONFIG_SIDEBAR_PLACEMENT == 'Both' -->
  13. <div id="rightcolumn">
  14. <div class="innertube"><!-- INCLUDE sidebar_right.html --></div>
  15. </div>
  16. <!-- ENDIF -->
  17. </div><!-- /#maincontainer -->
  18. <!-- ENDIF -->
  19.  
  20.  
  21. <!-- EVENT overall_footer_content_after -->
  22. </div>
  23.  
  24. <!-- EVENT overall_footer_page_body_after -->
  25.  
  26. </div><!-- /#inner-wrap -->
  27.  
  28. <!-- IF STYLE_SETTINGS_HTML_3 and not STYLE_SETTINGS_CONFIG_HIDE_SOCIAL_BAR -->
  29. <div class="social_links_footer">{STYLE_SETTINGS_HTML_3}</div>
  30. <!-- ENDIF -->
  31.  
  32.  
  33. <div id="page-footer" class="page-footer" role="contentinfo">
  34. <!-- INCLUDE navbar_footer.html -->
  35.  
  36. <div id="darkenwrapper" class="darkenwrapper" data-ajax-error-title="{L_AJAX_ERROR_TITLE}" data-ajax-error-text="{L_AJAX_ERROR_TEXT}" data-ajax-error-text-abort="{L_AJAX_ERROR_TEXT_ABORT}" data-ajax-error-text-timeout="{L_AJAX_ERROR_TEXT_TIMEOUT}" data-ajax-error-text-parsererror="{L_AJAX_ERROR_TEXT_PARSERERROR}">
  37. <div id="darken" class="darken">&nbsp;</div>
  38. </div>
  39.  
  40. <div id="phpbb_alert" class="phpbb_alert" data-l-err="{L_ERROR}" data-l-timeout-processing-req="{L_TIMEOUT_PROCESSING_REQ}">
  41. <a href="#" class="alert_close">
  42. <i class="icon fa-times-circle fa-fw" aria-hidden="true"></i>
  43. </a>
  44. <h3 class="alert_title">&nbsp;</h3><p class="alert_text"></p>
  45. </div>
  46. <div id="phpbb_confirm" class="phpbb_alert">
  47. <a href="#" class="alert_close">
  48. <i class="icon fa-times-circle fa-fw" aria-hidden="true"></i>
  49. </a>
  50. <div class="alert_text"></div>
  51. </div>
  52. </div>
  53.  
  54. <div class="copyright_bar" dir="ltr">
  55. <!-- EVENT overall_footer_copyright_prepend -->
  56. <!-- EVENT overall_footer_copyright_append -->
  57. <!-- IF DEBUG_OUTPUT --><br />{{ DEBUG_OUTPUT }}<!-- ENDIF -->
  58. </div>
  59.  
  60. </div> <!-- /#wrap -->
  61.  
  62. <div style="display: none;">
  63. <a id="bottom" class="anchor" accesskey="z"></a>
  64. {% if not S_IS_BOT %}{{ RUN_CRON_TASK }}{% endif %}
  65. </div>
  66.  
  67. <script type="text/javascript" src="{T_JQUERY_LINK}"></script>
  68.  
  69. <!-- IF S_ALLOW_CDN -->
  70. <script>window.jQuery || document.write('\x3Cscript src="{T_ASSETS_PATH}/javascript/jquery-3.6.0.min.js?assets_version={T_ASSETS_VERSION}">\x3C/script>');</script>
  71. <!-- ENDIF -->
  72.  
  73. <script type="text/javascript" src="{T_ASSETS_PATH}/javascript/core.js?assets_version={T_ASSETS_VERSION}"></script>
  74.  
  75. <!-- IF STYLE_SETTINGS_CONFIG_PARALLAX_HEADER -->
  76. <!-- INCLUDEJS parallax.js -->
  77. <!-- ENDIF -->
  78.  
  79.  
  80. <!-- IF STYLE_SETTINGS_CONFIG_COLLAPSIBLE_PANELS -->
  81. <!-- INCLUDEJS jquery.collapse.js -->
  82. <!-- INCLUDEJS jquery.collapse_storage.js -->
  83. <!-- ENDIF -->
  84.  
  85. <!-- INCLUDEJS forum_fn.js -->
  86. <!-- INCLUDEJS ajax.js -->
  87.  
  88. <script>
  89. // ************************************************
  90. // clear mechanism (for testing)
  91. // localStorage.removeItem('user_colour_selection');
  92. // ************************************************
  93. console.log("storage value:" + localStorage.user_colour_selection)
  94. FDSetClass();
  95. FDSetSwitch();
  96.  
  97. localStorage.getItem("user_colour_selection")
  98.  
  99. function FDSetClass() {
  100. {% if STYLE_SETTINGS_CONFIG_BASE_COLOUR == 'Dark' %}
  101. console.log("FD Base: Dark");
  102. {% if STYLE_SETTINGS_CONFIG_ALLOW_USER_COLOUR %}
  103. console.log("FD: Override allowed");
  104. if(localStorage.user_colour_selection == 'dark') {
  105. console.log("FD: User selection: Dark");
  106. $("html").addClass('fd_dark');
  107. localStorage.setItem("user_colour_selection", "dark");
  108. } else {
  109. if (localStorage.user_colour_selection == 'cbu') {
  110. console.log("FD: cbu. Removing dark class...");
  111. $("html").removeClass('fd_dark');
  112. } else {
  113. console.log("FD: Value is empty. Setting to dark...");
  114. $("html").addClass('fd_dark');
  115. localStorage.setItem("user_colour_selection", "dark");
  116. }
  117. }
  118. {% else %}
  119. console.log("FD: Override not allowed");
  120. console.log("Apply dark");
  121. $("html").addClass('fd_dark');
  122. localStorage.setItem("user_colour_selection", "dark");
  123. {% endif %}
  124. {% else %}
  125. console.log("FD Base: Light");
  126. {% if STYLE_SETTINGS_CONFIG_ALLOW_USER_COLOUR %}
  127. console.log("FD: Override allowed");
  128. if(localStorage.user_colour_selection == 'dark') {
  129. console.log("FD: User selection: Dark");
  130. $("html").addClass('fd_dark');
  131. localStorage.setItem("user_colour_selection", "dark");
  132. } else {
  133. console.log("FD: User selection: Empty");
  134. }
  135. {% else %}
  136. console.log("FD: Override not allowed");
  137. console.log("FD: Do nothing");
  138. {% endif %}
  139. {% endif %}
  140. }
  141.  
  142. function FDSetSwitch() {
  143. if ($("html").hasClass('fd_dark')) {
  144. $("a#dark_toggle_link i").addClass("fa-lightbulb-o");
  145. } else {
  146. $("a#dark_toggle_link i").addClass("fa-moon-o");
  147. }
  148. }
  149.  
  150. function FDSwitchLink() {
  151. if(localStorage.user_colour_selection == 'dark') {
  152. // Dark
  153. $("a#dark_toggle_link i").removeClass("fa-lightbulb-o");
  154. $("a#dark_toggle_link i").addClass("fa-moon-o");
  155. $("html").removeClass('fd_dark');
  156. localStorage.setItem("user_colour_selection", "cbu");
  157. console.log("Dark preference CBU (cleared by user)");
  158. } else {
  159. // Light
  160. $("a#dark_toggle_link i").removeClass("fa-moon-o");
  161. $("a#dark_toggle_link i").addClass("fa-lightbulb-o");
  162. localStorage.setItem("user_colour_selection", "dark");
  163. }
  164. }
  165.  
  166. {% if STYLE_SETTINGS_CONFIG_ALLOW_USER_COLOUR %}
  167. $("a#dark_toggle_link").click(function() {
  168. FDSwitchLink();
  169. FDSetClass();
  170. });
  171. {% endif %}
  172. </script>
  173.  
  174.  
  175.  
  176.  
  177. <!-- IF STYLE_SETTINGS_CONFIG_FORUMLIST_DISPLAY == 'Grid' or STYLE_SETTINGS_CONFIG_FORUMLIST_DISPLAY == 'Grid (Icons)' -->
  178. <script>
  179. // limit descriptions to 2 lines (~45px)
  180. $(function() {
  181. var $grid_desc = $('.grid_image_container .forum_description');
  182. var $grid_time = $('span.mini_date time');
  183. $grid_desc.dotdotdot({
  184. // Prevents the <a class="toggle" /> from being removed
  185. height: 45,
  186. });
  187. $grid_time.dotdotdot({
  188. // Prevents the <a class="toggle" /> from being removed
  189. height: 30,
  190. });
  191. });
  192. </script>
  193. <script src="{T_TEMPLATE_PATH}/jquery.dotdotdot.js"></script>
  194. <!-- ENDIF -->
  195.  
  196.  
  197.  
  198.  
  199. <!-- IF STYLE_SETTINGS_CONFIG_DARK_TOGGLE -->
  200. <!-- INCLUDEJS js.cookie.js -->
  201. <!-- ENDIF -->
  202.  
  203. <!-- IF S_ALLOW_CDN -->
  204. <script type="text/javascript">
  205. (function($){
  206. var $fa_cdn = $('head').find('link[rel="stylesheet"]').first(),
  207. $span = $('<span class="fa" style="display:none"></span>').appendTo('body');
  208. if ($span.css('fontFamily') !== 'FontAwesome' ) {
  209. $fa_cdn.after('<link href="{T_ASSETS_PATH}/css/font-awesome.min.css" rel="stylesheet">');
  210. $fa_cdn.remove();
  211. }
  212. $span.remove();
  213. })(jQuery);
  214. </script>
  215. <!-- ENDIF -->
  216.  
  217. <!-- IF S_COOKIE_NOTICE -->
  218. <script src="{T_ASSETS_PATH}/cookieconsent/cookieconsent.min.js?assets_version={T_ASSETS_VERSION}"></script>
  219. <script>
  220. if (typeof window.cookieconsent === "object") {
  221. window.addEventListener("load", function(){
  222. window.cookieconsent.initialise({
  223. "palette": {
  224. "popup": {
  225. "background": "#0F538A"
  226. },
  227. "button": {
  228. "background": "#E5E5E5"
  229. }
  230. },
  231. "theme": "classic",
  232. "content": {
  233. "message": "{LA_COOKIE_CONSENT_MSG}",
  234. "dismiss": "{LA_COOKIE_CONSENT_OK}",
  235. "link": "{LA_COOKIE_CONSENT_INFO}",
  236. "href": "{UA_PRIVACY}"
  237. }
  238. });
  239. });
  240. }
  241. </script>
  242. <!-- ENDIF -->
  243.  
  244. <!-- EVENT overall_footer_after -->
  245.  
  246. <!-- IF S_PLUPLOAD --><!-- INCLUDE plupload.html --><!-- ENDIF -->
  247. {$SCRIPTS}
  248.  
  249. <!-- IF STYLE_SETTINGS_CONFIG_HEADER_PARTICLES -->
  250. <style>
  251. img.custom_logo {
  252. /* Define height to prevent layout issues with uncached logos in particle header */
  253. <!-- IF FORUM_LOGO_HEIGHT -->
  254. height: {FORUM_LOGO_HEIGHT}px;
  255. <!-- ELSE -->
  256. height: 100px;
  257. <!-- ENDIF -->
  258. }
  259. </style>
  260. <script type="text/javascript">
  261. /* Identify the height of headerbar */
  262. var headerbar_height = $('.headerbar').height();
  263. /* Match particle container height to headerbar. Creates window for canvas */
  264. $('.particles_container').css({'height': headerbar_height});
  265.  
  266. /* Dynamically apply width to site desc container, maximising clickable area behind it. We only need this to happen when particles are enabled. */
  267. var logo_width = $('.site-description').width();
  268. var logo_width_fix = (logo_width+2); /* Caters for retina devices where the width is defined as a decimal. Obvs we can't set a decimal pixel width */
  269. $('.site-description').css({'width': logo_width_fix});
  270. </script>
  271. <script src="{T_TEMPLATE_PATH}/particles.js"></script>
  272. <script src="{T_TEMPLATE_PATH}/particles.app.js"></script>
  273.  
  274. <script type="text/javascript">
  275. /* Reposition the canvas so it aligns with headerbar */
  276. $('canvas.particles-js-canvas-el').css({'margin-top': -headerbar_height});
  277. </script>
  278. <!-- ENDIF -->
  279.  
  280. <script type="text/javascript">
  281. $(function($) {
  282. var num_cols = 3,
  283. container = $('.sub-forumlist'),
  284. listItem = 'li',
  285. listClass = 'sub-list';
  286. container.each(function() {
  287. var items_per_col = new Array(),
  288. items = $(this).find(listItem),
  289. min_items_per_col = Math.floor(items.length / num_cols),
  290. difference = items.length - (min_items_per_col * num_cols);
  291. for (var i = 0; i < num_cols; i++) {
  292. if (i < difference) {
  293. items_per_col[i] = min_items_per_col + 1;
  294. } else {
  295. items_per_col[i] = min_items_per_col;
  296. }
  297. }
  298. for (var i = 0; i < num_cols; i++) {
  299. $(this).append($('<ul ></ul>').addClass(listClass));
  300. for (var j = 0; j < items_per_col[i]; j++) {
  301. var pointer = 0;
  302. for (var k = 0; k < i; k++) {
  303. pointer += items_per_col[k];
  304. }
  305. $(this).find('.' + listClass).last().append(items[j + pointer]);
  306. }
  307. }
  308. });
  309. });
  310. </script>
  311.  
  312. <script type="text/javascript">
  313. // Add user icon in front of forumlist mods
  314. $("span.forumlist_mods a").each(function(i) {
  315. $(this).prepend("<i class='icon fa-shield fa-fw'></i>");
  316. });
  317. // Remove the comma seperator
  318. $("span.forumlist_mods").each(function() {
  319. $(this).html($(this).html().replace(/,/g , ''));
  320. });
  321. </script>
  322.  
  323. <!-- IF not STYLE_SETTINGS_CONFIG_DISABLE_CSS_ANIMATIONS -->
  324. <script type="text/javascript">
  325. // Animate Forumlist and other things
  326. // Add a small transition delay to each block for nice effect
  327. $("#nav-main, #logo, #site-description h1, #site-description p, #nav-breadcrumbs, #page-body").each(function(i) {
  328. $(this).addClass("animated fadeIn");
  329.  
  330. var transitiondelay = (('0.' + (i+1)))/2 + 's';
  331. $(this).css({
  332. "transform": 'translateY(0px)',
  333. "transition-delay": transitiondelay,
  334. "animation-delay": transitiondelay
  335. });
  336. console.log(transitiondelay);
  337. });
  338. </script>
  339. <!-- ENDIF -->
  340.  
  341. <!-- IF STYLE_SETTINGS_CONFIG_FORUMLIST_DISPLAY == 'Grid' -->
  342. <script type="text/javascript">
  343. // Remove the comma seperator
  344. $(".forumlist_grid time").each(function() {
  345. var last_post_time = $(this).html();
  346. $(this).html(last_post_time.split(',')[0])
  347. });
  348. </script>
  349. <!-- ENDIF -->
  350.  
  351. <!-- EVENT overall_footer_body_after -->
  352.  
  353. <!-- IF STYLE_SETTINGS_CONFIG_SCROLL_TO_TOP -->
  354. <a href="#" class="scrollToTop"><span class="fa fa-arrow-up"></span></a>
  355. <!-- ENDIF -->
  356.  
  357. <!-- IF not S_IS_BOT -->
  358. <script type="text/javascript">
  359. // START MANDATORY CHANGES
  360. document.domain = 'knigi-igri.net'; // MANDATORY! // Set/Change this value to fit your domain (example: axew3.com (or leave localhost if on localhost))
  361. var wordpress_url_page_forum = 'https://knigi-igri.net/board'; // MANDATORY! // (DO NOT ADD/INCLUDE final slash here) Url that point to your iframed wordpress forum page
  362. var w3all_custom_wp_w3fancyurl = 'w3'; // MANDATORY! If you changed the default w3 to have 'fancy URL' query string into related WP plugin admin option, then change this value to match the same as it is the fancy URL setting
  363. // END MANDATORY CHANGES
  364.  
  365. var w3all_doc_domain = document.domain;
  366. var w3allappend = false;
  367. var boardU = "{BOARD_URL}";
  368.  
  369. // Lightbox scroll fix:
  370. // remove /* and */ to activate, also more below to complete ...
  371. /*
  372. $(".postimage").on("click", function(event) {
  373. var pos = event.pageY - 100;
  374. $(parent.window).scrollTop( 200 );
  375. var el = document.getElementById("lightbox");
  376. $("#lightboxOverlay").on("click", function() {
  377. $(parent.window).scrollTop( pos );
  378. });
  379. $(".lb-close").on("click", function() {
  380. $(parent.window).scrollTop( pos );
  381. });
  382. $(".lightbox").on("click", function() {
  383. $(parent.window).scrollTop( pos );
  384. });
  385. });
  386. */
  387.  
  388. function w3allNormalize_phpBBUrl(href){
  389. // try to 'normalize' passed relative links: needed all after last slash /
  390. // exception are kind of passed urls like: /phpbb323/app.php/help/faq
  391. // and if SEO mods that may assign some different kind of links values
  392. // by the way, SEO absolute urls http(s) should be (all?) already considered here ...
  393. var phpbbRUrl = href.split(/^.+?(\w+.+)$/);
  394. if( href.indexOf('app.php') > -1 ){ // since the previous not 'normalize' this type of passed value (and may miss something else)
  395. phpbburl = href.split(/^.+?(app\.php.+)$/);
  396. w3allappend = phpbburl[1];
  397. } else if ( /^https?/ig.exec(href) !== null ){ // absolute http(s) passed: try to 'normalize' a possible seo mod
  398. phpbburl = href.split(boardU);
  399. w3allappend = phpbburl[1];
  400. } else if ( phpbbRUrl[1] && phpbbRUrl[1].length > 1 ){ // 'normalize' any other
  401. w3allappend = phpbbRUrl[1];
  402. } else if ( phpbbRUrl[0].length > 1 ){
  403. w3allappend = phpbbRUrl[0];
  404. }
  405. // ... if still not normalized
  406. if(/^\W/ig.exec(w3allappend) !== null){
  407. w3allappend = w3allappend.split(/^.+?(\w+.+)$/);
  408. if(w3allappend[1]){
  409. w3allappend = w3allappend[1];
  410. }
  411. if ( w3allappend[1] && w3allappend[1].charAt(0) == '/' ){
  412. w3allappend = w3allappend[1].substr(1);
  413. }
  414. }
  415. return w3allappend;
  416. }
  417.  
  418. /*if (window.performance){
  419. if( performance.getEntriesByType("navigation")[0].type == 'back_forward' )
  420. {
  421. var w3E = performance.getEntriesByType("navigation");
  422. var w3ER = w3allNormalize_phpBBUrl(w3E[0].name);
  423. parent.w3all_phpbb_pushUrlToParentOnBackForward(w3ER);
  424. }
  425. }*/
  426.  
  427. $(document).on("click", "a", function(e) {
  428. var href = $(this).attr("href");
  429. var w3all_onview_attach = (href.indexOf('file.php') > -1);
  430.  
  431. if( this.getAttribute('target') !== null ){
  432. e.preventDefault();
  433. window.open(href,'_blank');
  434. return;
  435. }
  436.  
  437. if ( href.charAt(0) == '#' || href.indexOf('\./download\/file\.php') > -1 ){ return; }
  438.  
  439. // external link?
  440. if ((this.href.indexOf(boardU) > -1) != true){
  441. if(/^(f|ht)tps?:\/\//i.test(href))
  442. {
  443. e.preventDefault();
  444. parent.location.replace(href);
  445. return;
  446. }
  447. }
  448.  
  449. if ( /\/adm\//ig.exec(href) !== null )
  450. {
  451. e.preventDefault();
  452. parent.location.replace(href);
  453. return;
  454. }
  455.  
  456. if ( href.indexOf('view=print') > -1 !== false )
  457. {
  458. e.preventDefault();
  459. window.open(href,'_blank');
  460. return;
  461. }
  462.  
  463. if ( href.indexOf('quickmod') > -1 ) {
  464. w3allNOappend = true;
  465. return;
  466. }
  467.  
  468. if( /posting\.php\?mode=[reply|post|bump]/ig.exec(href) !== null || /mcp\.php\?/ig.exec(href) !== null ){
  469. w3allNOappend = true;
  470. }
  471.  
  472. // complete Lightbox correct attachment display // activate removing /* and */
  473. // or used to open on new tab attachments
  474. /*
  475. if(w3all_onview_attach !== false){
  476. e.preventDefault();
  477. window.open(href,'_blank');
  478. return;
  479. } */
  480.  
  481. w3allappend = w3allNormalize_phpBBUrl(href);
  482.  
  483. if ('parentIFrame' in window){
  484. if( typeof w3allNOappend == 'undefined' || w3allNOappend == false ){
  485. window.parentIFrame.sendMessage(w3allappend);
  486. }
  487. }
  488. });
  489.  
  490. // w3all UPDATES for phpBB events
  491.  
  492. if(window.self !== window.top){
  493.  
  494. $("#quickmod,.bookmark-link").on("click", function(event) {
  495. var pos = window.scrollY + document.querySelector('#quickmod').getBoundingClientRect().top;
  496. $(parent.window).scrollTop( 200 );
  497. $("#darkenwrapper").on("click", function() {
  498. $(parent.window).scrollTop( pos );
  499. });
  500. $("#darken").on("click", function() {
  501. $(parent.window).scrollTop( pos );
  502. });
  503. });
  504.  
  505. var pmn = "{PRIVATE_MESSAGE_COUNT}";
  506. var w3all_phpbb_u_logged = "{S_USER_LOGGED_IN}";
  507.  
  508. var hash = window.location.hash.substr(1);
  509.  
  510. if( hash == 'unread' ){
  511. var postN = 1;
  512. $( "h3 > a" ).each(function (e) {
  513. ns = this.href.split('#p');
  514. if( typeof ns != 'undefined' && /viewtopic.php\?p=/ig.exec(this.href) != null ){
  515. if(ns[1] > postN){
  516. w3lh = ns[1];
  517. }
  518. }
  519. })
  520.  
  521. if( typeof w3lh != 'undefined' ){
  522. hash = "p" + w3lh;
  523. }
  524. }
  525.  
  526. if( typeof w3allNOappend == 'undefined' || w3allNOappend == false )
  527. {
  528. $( window ).on( "load", function()
  529. {
  530. location.hash = "#" + hash;
  531. if( location.hash.length < 2 ){
  532. var w3all_lochash = 0;
  533. } else {
  534. var w3all_lochash = $(location.hash).offset().top;
  535. }
  536. var w3appendevents = '#w3all_phpbbpmcount=' + pmn + '#w3all_phpbb_u_logged=' + w3all_phpbb_u_logged + '#w3all_lochash=' + w3all_lochash;
  537. parent.w3all_ajaxup_from_phpbb(w3appendevents);
  538.  
  539. // fix vertical iframe centered in certain cases
  540. var w3iOS = !!navigator.platform && /iPad|iPhone|iPod/.test(navigator.platform);
  541. if(w3iOS == false)
  542. {
  543. var bd = document.getElementsByTagName("body");
  544. var t = document.getElementById(bd[0].getAttribute("id"));
  545. if( typeof t != 'undefined' || t != false )
  546. {
  547. t.setAttribute("style", "position:fixed;top:0%;left:0%;width:100%;margin:0px;");
  548. }
  549. }
  550. });
  551. }
  552. } // END if(window.self !== window.top){
  553. </script>
  554. <script type="text/javascript" src="https://forum.knigi-igri.net/iframeResizer.contentWindow.min.js" defer></script>
  555. <!-- ENDIF -->
  556. <div data-iframe-height="300px"></div>
  557. </body>
  558. </html>
  559.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement