Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- IF STYLE_SETTINGS_CONFIG_SIDEBARS -->
- </div>
- </div>
- </div>
- <!-- IF STYLE_SETTINGS_CONFIG_SIDEBAR_PLACEMENT == 'Left Only' || STYLE_SETTINGS_CONFIG_SIDEBAR_PLACEMENT == 'Both' -->
- <div id="leftcolumn">
- <div class="innertube"><!-- INCLUDE sidebar_left.html --></div>
- </div>
- <!-- ENDIF -->
- <!-- IF STYLE_SETTINGS_CONFIG_SIDEBAR_PLACEMENT == 'Right Only' || STYLE_SETTINGS_CONFIG_SIDEBAR_PLACEMENT == 'Both' -->
- <div id="rightcolumn">
- <div class="innertube"><!-- INCLUDE sidebar_right.html --></div>
- </div>
- <!-- ENDIF -->
- </div><!-- /#maincontainer -->
- <!-- ENDIF -->
- <!-- EVENT overall_footer_content_after -->
- </div>
- <!-- EVENT overall_footer_page_body_after -->
- </div><!-- /#inner-wrap -->
- <!-- IF STYLE_SETTINGS_HTML_3 and not STYLE_SETTINGS_CONFIG_HIDE_SOCIAL_BAR -->
- <div class="social_links_footer">{STYLE_SETTINGS_HTML_3}</div>
- <!-- ENDIF -->
- <div id="page-footer" class="page-footer" role="contentinfo">
- <!-- INCLUDE navbar_footer.html -->
- <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}">
- <div id="darken" class="darken"> </div>
- </div>
- <div id="phpbb_alert" class="phpbb_alert" data-l-err="{L_ERROR}" data-l-timeout-processing-req="{L_TIMEOUT_PROCESSING_REQ}">
- <a href="#" class="alert_close">
- <i class="icon fa-times-circle fa-fw" aria-hidden="true"></i>
- </a>
- <h3 class="alert_title"> </h3><p class="alert_text"></p>
- </div>
- <div id="phpbb_confirm" class="phpbb_alert">
- <a href="#" class="alert_close">
- <i class="icon fa-times-circle fa-fw" aria-hidden="true"></i>
- </a>
- <div class="alert_text"></div>
- </div>
- </div>
- <div class="copyright_bar" dir="ltr">
- <!-- EVENT overall_footer_copyright_prepend -->
- <!-- EVENT overall_footer_copyright_append -->
- <!-- IF DEBUG_OUTPUT --><br />{{ DEBUG_OUTPUT }}<!-- ENDIF -->
- </div>
- </div> <!-- /#wrap -->
- <div style="display: none;">
- <a id="bottom" class="anchor" accesskey="z"></a>
- {% if not S_IS_BOT %}{{ RUN_CRON_TASK }}{% endif %}
- </div>
- <script type="text/javascript" src="{T_JQUERY_LINK}"></script>
- <!-- IF S_ALLOW_CDN -->
- <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>
- <!-- ENDIF -->
- <script type="text/javascript" src="{T_ASSETS_PATH}/javascript/core.js?assets_version={T_ASSETS_VERSION}"></script>
- <!-- IF STYLE_SETTINGS_CONFIG_PARALLAX_HEADER -->
- <!-- INCLUDEJS parallax.js -->
- <!-- ENDIF -->
- <!-- IF STYLE_SETTINGS_CONFIG_COLLAPSIBLE_PANELS -->
- <!-- INCLUDEJS jquery.collapse.js -->
- <!-- INCLUDEJS jquery.collapse_storage.js -->
- <!-- ENDIF -->
- <!-- INCLUDEJS forum_fn.js -->
- <!-- INCLUDEJS ajax.js -->
- <script>
- // ************************************************
- // clear mechanism (for testing)
- // localStorage.removeItem('user_colour_selection');
- // ************************************************
- console.log("storage value:" + localStorage.user_colour_selection)
- FDSetClass();
- FDSetSwitch();
- localStorage.getItem("user_colour_selection")
- function FDSetClass() {
- {% if STYLE_SETTINGS_CONFIG_BASE_COLOUR == 'Dark' %}
- console.log("FD Base: Dark");
- {% if STYLE_SETTINGS_CONFIG_ALLOW_USER_COLOUR %}
- console.log("FD: Override allowed");
- if(localStorage.user_colour_selection == 'dark') {
- console.log("FD: User selection: Dark");
- $("html").addClass('fd_dark');
- localStorage.setItem("user_colour_selection", "dark");
- } else {
- if (localStorage.user_colour_selection == 'cbu') {
- console.log("FD: cbu. Removing dark class...");
- $("html").removeClass('fd_dark');
- } else {
- console.log("FD: Value is empty. Setting to dark...");
- $("html").addClass('fd_dark');
- localStorage.setItem("user_colour_selection", "dark");
- }
- }
- {% else %}
- console.log("FD: Override not allowed");
- console.log("Apply dark");
- $("html").addClass('fd_dark');
- localStorage.setItem("user_colour_selection", "dark");
- {% endif %}
- {% else %}
- console.log("FD Base: Light");
- {% if STYLE_SETTINGS_CONFIG_ALLOW_USER_COLOUR %}
- console.log("FD: Override allowed");
- if(localStorage.user_colour_selection == 'dark') {
- console.log("FD: User selection: Dark");
- $("html").addClass('fd_dark');
- localStorage.setItem("user_colour_selection", "dark");
- } else {
- console.log("FD: User selection: Empty");
- }
- {% else %}
- console.log("FD: Override not allowed");
- console.log("FD: Do nothing");
- {% endif %}
- {% endif %}
- }
- function FDSetSwitch() {
- if ($("html").hasClass('fd_dark')) {
- $("a#dark_toggle_link i").addClass("fa-lightbulb-o");
- } else {
- $("a#dark_toggle_link i").addClass("fa-moon-o");
- }
- }
- function FDSwitchLink() {
- if(localStorage.user_colour_selection == 'dark') {
- // Dark
- $("a#dark_toggle_link i").removeClass("fa-lightbulb-o");
- $("a#dark_toggle_link i").addClass("fa-moon-o");
- $("html").removeClass('fd_dark');
- localStorage.setItem("user_colour_selection", "cbu");
- console.log("Dark preference CBU (cleared by user)");
- } else {
- // Light
- $("a#dark_toggle_link i").removeClass("fa-moon-o");
- $("a#dark_toggle_link i").addClass("fa-lightbulb-o");
- localStorage.setItem("user_colour_selection", "dark");
- }
- }
- {% if STYLE_SETTINGS_CONFIG_ALLOW_USER_COLOUR %}
- $("a#dark_toggle_link").click(function() {
- FDSwitchLink();
- FDSetClass();
- });
- {% endif %}
- </script>
- <!-- IF STYLE_SETTINGS_CONFIG_FORUMLIST_DISPLAY == 'Grid' or STYLE_SETTINGS_CONFIG_FORUMLIST_DISPLAY == 'Grid (Icons)' -->
- <script>
- // limit descriptions to 2 lines (~45px)
- $(function() {
- var $grid_desc = $('.grid_image_container .forum_description');
- var $grid_time = $('span.mini_date time');
- $grid_desc.dotdotdot({
- // Prevents the <a class="toggle" /> from being removed
- height: 45,
- });
- $grid_time.dotdotdot({
- // Prevents the <a class="toggle" /> from being removed
- height: 30,
- });
- });
- </script>
- <script src="{T_TEMPLATE_PATH}/jquery.dotdotdot.js"></script>
- <!-- ENDIF -->
- <!-- IF STYLE_SETTINGS_CONFIG_DARK_TOGGLE -->
- <!-- INCLUDEJS js.cookie.js -->
- <!-- ENDIF -->
- <!-- IF S_ALLOW_CDN -->
- <script type="text/javascript">
- (function($){
- var $fa_cdn = $('head').find('link[rel="stylesheet"]').first(),
- $span = $('<span class="fa" style="display:none"></span>').appendTo('body');
- if ($span.css('fontFamily') !== 'FontAwesome' ) {
- $fa_cdn.after('<link href="{T_ASSETS_PATH}/css/font-awesome.min.css" rel="stylesheet">');
- $fa_cdn.remove();
- }
- $span.remove();
- })(jQuery);
- </script>
- <!-- ENDIF -->
- <!-- IF S_COOKIE_NOTICE -->
- <script src="{T_ASSETS_PATH}/cookieconsent/cookieconsent.min.js?assets_version={T_ASSETS_VERSION}"></script>
- <script>
- if (typeof window.cookieconsent === "object") {
- window.addEventListener("load", function(){
- window.cookieconsent.initialise({
- "palette": {
- "popup": {
- "background": "#0F538A"
- },
- "button": {
- "background": "#E5E5E5"
- }
- },
- "theme": "classic",
- "content": {
- "message": "{LA_COOKIE_CONSENT_MSG}",
- "dismiss": "{LA_COOKIE_CONSENT_OK}",
- "link": "{LA_COOKIE_CONSENT_INFO}",
- "href": "{UA_PRIVACY}"
- }
- });
- });
- }
- </script>
- <!-- ENDIF -->
- <!-- EVENT overall_footer_after -->
- <!-- IF S_PLUPLOAD --><!-- INCLUDE plupload.html --><!-- ENDIF -->
- {$SCRIPTS}
- <!-- IF STYLE_SETTINGS_CONFIG_HEADER_PARTICLES -->
- <style>
- img.custom_logo {
- /* Define height to prevent layout issues with uncached logos in particle header */
- <!-- IF FORUM_LOGO_HEIGHT -->
- height: {FORUM_LOGO_HEIGHT}px;
- <!-- ELSE -->
- height: 100px;
- <!-- ENDIF -->
- }
- </style>
- <script type="text/javascript">
- /* Identify the height of headerbar */
- var headerbar_height = $('.headerbar').height();
- /* Match particle container height to headerbar. Creates window for canvas */
- $('.particles_container').css({'height': headerbar_height});
- /* Dynamically apply width to site desc container, maximising clickable area behind it. We only need this to happen when particles are enabled. */
- var logo_width = $('.site-description').width();
- 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 */
- $('.site-description').css({'width': logo_width_fix});
- </script>
- <script src="{T_TEMPLATE_PATH}/particles.js"></script>
- <script src="{T_TEMPLATE_PATH}/particles.app.js"></script>
- <script type="text/javascript">
- /* Reposition the canvas so it aligns with headerbar */
- $('canvas.particles-js-canvas-el').css({'margin-top': -headerbar_height});
- </script>
- <!-- ENDIF -->
- <script type="text/javascript">
- $(function($) {
- var num_cols = 3,
- container = $('.sub-forumlist'),
- listItem = 'li',
- listClass = 'sub-list';
- container.each(function() {
- var items_per_col = new Array(),
- items = $(this).find(listItem),
- min_items_per_col = Math.floor(items.length / num_cols),
- difference = items.length - (min_items_per_col * num_cols);
- for (var i = 0; i < num_cols; i++) {
- if (i < difference) {
- items_per_col[i] = min_items_per_col + 1;
- } else {
- items_per_col[i] = min_items_per_col;
- }
- }
- for (var i = 0; i < num_cols; i++) {
- $(this).append($('<ul ></ul>').addClass(listClass));
- for (var j = 0; j < items_per_col[i]; j++) {
- var pointer = 0;
- for (var k = 0; k < i; k++) {
- pointer += items_per_col[k];
- }
- $(this).find('.' + listClass).last().append(items[j + pointer]);
- }
- }
- });
- });
- </script>
- <script type="text/javascript">
- // Add user icon in front of forumlist mods
- $("span.forumlist_mods a").each(function(i) {
- $(this).prepend("<i class='icon fa-shield fa-fw'></i>");
- });
- // Remove the comma seperator
- $("span.forumlist_mods").each(function() {
- $(this).html($(this).html().replace(/,/g , ''));
- });
- </script>
- <!-- IF not STYLE_SETTINGS_CONFIG_DISABLE_CSS_ANIMATIONS -->
- <script type="text/javascript">
- // Animate Forumlist and other things
- // Add a small transition delay to each block for nice effect
- $("#nav-main, #logo, #site-description h1, #site-description p, #nav-breadcrumbs, #page-body").each(function(i) {
- $(this).addClass("animated fadeIn");
- var transitiondelay = (('0.' + (i+1)))/2 + 's';
- $(this).css({
- "transform": 'translateY(0px)',
- "transition-delay": transitiondelay,
- "animation-delay": transitiondelay
- });
- console.log(transitiondelay);
- });
- </script>
- <!-- ENDIF -->
- <!-- IF STYLE_SETTINGS_CONFIG_FORUMLIST_DISPLAY == 'Grid' -->
- <script type="text/javascript">
- // Remove the comma seperator
- $(".forumlist_grid time").each(function() {
- var last_post_time = $(this).html();
- $(this).html(last_post_time.split(',')[0])
- });
- </script>
- <!-- ENDIF -->
- <!-- EVENT overall_footer_body_after -->
- <!-- IF STYLE_SETTINGS_CONFIG_SCROLL_TO_TOP -->
- <a href="#" class="scrollToTop"><span class="fa fa-arrow-up"></span></a>
- <!-- ENDIF -->
- <!-- IF not S_IS_BOT -->
- <script type="text/javascript">
- // START MANDATORY CHANGES
- document.domain = 'knigi-igri.net'; // MANDATORY! // Set/Change this value to fit your domain (example: axew3.com (or leave localhost if on localhost))
- 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
- 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
- // END MANDATORY CHANGES
- var w3all_doc_domain = document.domain;
- var w3allappend = false;
- var boardU = "{BOARD_URL}";
- // Lightbox scroll fix:
- // remove /* and */ to activate, also more below to complete ...
- /*
- $(".postimage").on("click", function(event) {
- var pos = event.pageY - 100;
- $(parent.window).scrollTop( 200 );
- var el = document.getElementById("lightbox");
- $("#lightboxOverlay").on("click", function() {
- $(parent.window).scrollTop( pos );
- });
- $(".lb-close").on("click", function() {
- $(parent.window).scrollTop( pos );
- });
- $(".lightbox").on("click", function() {
- $(parent.window).scrollTop( pos );
- });
- });
- */
- function w3allNormalize_phpBBUrl(href){
- // try to 'normalize' passed relative links: needed all after last slash /
- // exception are kind of passed urls like: /phpbb323/app.php/help/faq
- // and if SEO mods that may assign some different kind of links values
- // by the way, SEO absolute urls http(s) should be (all?) already considered here ...
- var phpbbRUrl = href.split(/^.+?(\w+.+)$/);
- if( href.indexOf('app.php') > -1 ){ // since the previous not 'normalize' this type of passed value (and may miss something else)
- phpbburl = href.split(/^.+?(app\.php.+)$/);
- w3allappend = phpbburl[1];
- } else if ( /^https?/ig.exec(href) !== null ){ // absolute http(s) passed: try to 'normalize' a possible seo mod
- phpbburl = href.split(boardU);
- w3allappend = phpbburl[1];
- } else if ( phpbbRUrl[1] && phpbbRUrl[1].length > 1 ){ // 'normalize' any other
- w3allappend = phpbbRUrl[1];
- } else if ( phpbbRUrl[0].length > 1 ){
- w3allappend = phpbbRUrl[0];
- }
- // ... if still not normalized
- if(/^\W/ig.exec(w3allappend) !== null){
- w3allappend = w3allappend.split(/^.+?(\w+.+)$/);
- if(w3allappend[1]){
- w3allappend = w3allappend[1];
- }
- if ( w3allappend[1] && w3allappend[1].charAt(0) == '/' ){
- w3allappend = w3allappend[1].substr(1);
- }
- }
- return w3allappend;
- }
- /*if (window.performance){
- if( performance.getEntriesByType("navigation")[0].type == 'back_forward' )
- {
- var w3E = performance.getEntriesByType("navigation");
- var w3ER = w3allNormalize_phpBBUrl(w3E[0].name);
- parent.w3all_phpbb_pushUrlToParentOnBackForward(w3ER);
- }
- }*/
- $(document).on("click", "a", function(e) {
- var href = $(this).attr("href");
- var w3all_onview_attach = (href.indexOf('file.php') > -1);
- if( this.getAttribute('target') !== null ){
- e.preventDefault();
- window.open(href,'_blank');
- return;
- }
- if ( href.charAt(0) == '#' || href.indexOf('\./download\/file\.php') > -1 ){ return; }
- // external link?
- if ((this.href.indexOf(boardU) > -1) != true){
- if(/^(f|ht)tps?:\/\//i.test(href))
- {
- e.preventDefault();
- parent.location.replace(href);
- return;
- }
- }
- if ( /\/adm\//ig.exec(href) !== null )
- {
- e.preventDefault();
- parent.location.replace(href);
- return;
- }
- if ( href.indexOf('view=print') > -1 !== false )
- {
- e.preventDefault();
- window.open(href,'_blank');
- return;
- }
- if ( href.indexOf('quickmod') > -1 ) {
- w3allNOappend = true;
- return;
- }
- if( /posting\.php\?mode=[reply|post|bump]/ig.exec(href) !== null || /mcp\.php\?/ig.exec(href) !== null ){
- w3allNOappend = true;
- }
- // complete Lightbox correct attachment display // activate removing /* and */
- // or used to open on new tab attachments
- /*
- if(w3all_onview_attach !== false){
- e.preventDefault();
- window.open(href,'_blank');
- return;
- } */
- w3allappend = w3allNormalize_phpBBUrl(href);
- if ('parentIFrame' in window){
- if( typeof w3allNOappend == 'undefined' || w3allNOappend == false ){
- window.parentIFrame.sendMessage(w3allappend);
- }
- }
- });
- // w3all UPDATES for phpBB events
- if(window.self !== window.top){
- $("#quickmod,.bookmark-link").on("click", function(event) {
- var pos = window.scrollY + document.querySelector('#quickmod').getBoundingClientRect().top;
- $(parent.window).scrollTop( 200 );
- $("#darkenwrapper").on("click", function() {
- $(parent.window).scrollTop( pos );
- });
- $("#darken").on("click", function() {
- $(parent.window).scrollTop( pos );
- });
- });
- var pmn = "{PRIVATE_MESSAGE_COUNT}";
- var w3all_phpbb_u_logged = "{S_USER_LOGGED_IN}";
- var hash = window.location.hash.substr(1);
- if( hash == 'unread' ){
- var postN = 1;
- $( "h3 > a" ).each(function (e) {
- ns = this.href.split('#p');
- if( typeof ns != 'undefined' && /viewtopic.php\?p=/ig.exec(this.href) != null ){
- if(ns[1] > postN){
- w3lh = ns[1];
- }
- }
- })
- if( typeof w3lh != 'undefined' ){
- hash = "p" + w3lh;
- }
- }
- if( typeof w3allNOappend == 'undefined' || w3allNOappend == false )
- {
- $( window ).on( "load", function()
- {
- location.hash = "#" + hash;
- if( location.hash.length < 2 ){
- var w3all_lochash = 0;
- } else {
- var w3all_lochash = $(location.hash).offset().top;
- }
- var w3appendevents = '#w3all_phpbbpmcount=' + pmn + '#w3all_phpbb_u_logged=' + w3all_phpbb_u_logged + '#w3all_lochash=' + w3all_lochash;
- parent.w3all_ajaxup_from_phpbb(w3appendevents);
- // fix vertical iframe centered in certain cases
- var w3iOS = !!navigator.platform && /iPad|iPhone|iPod/.test(navigator.platform);
- if(w3iOS == false)
- {
- var bd = document.getElementsByTagName("body");
- var t = document.getElementById(bd[0].getAttribute("id"));
- if( typeof t != 'undefined' || t != false )
- {
- t.setAttribute("style", "position:fixed;top:0%;left:0%;width:100%;margin:0px;");
- }
- }
- });
- }
- } // END if(window.self !== window.top){
- </script>
- <script type="text/javascript" src="https://forum.knigi-igri.net/iframeResizer.contentWindow.min.js" defer></script>
- <!-- ENDIF -->
- <div data-iframe-height="300px"></div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement