View | Details | Raw Unified | Return to bug 27378
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss (-11 lines)
Lines 2873-2889 $star-selected: #EDB867; Link Here
2873
    }
2873
    }
2874
}
2874
}
2875
2875
2876
#cookieConsentButton {
2877
    position: fixed;
2878
    border: 0;
2879
    bottom: 0;
2880
    right: 0;
2881
    padding: 10px;
2882
    background: rgba(0,0,0,0.75);
2883
    color: rgba(255,255,255,0.8);
2884
    z-index: 1;
2885
}
2886
2887
#viewCookieConsents {
2876
#viewCookieConsents {
2888
    margin-top: 10px;
2877
    margin-top: 10px;
2889
}
2878
}
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc (-6 / +9 lines)
Lines 83-88 Link Here
83
                        </div> <!-- / .dropdown-menu -->
83
                        </div> <!-- / .dropdown-menu -->
84
                    </li> <!-- / .nav-item.dropdown -->
84
                    </li> <!-- / .nav-item.dropdown -->
85
                [% END # / IF virtualshelves %]
85
                [% END # / IF virtualshelves %]
86
                <!-- Cookie consent button for non logged-in users -->
87
                [% IF !loggedinusername %]
88
                    <li style="display:none" id="cookieConsentDivider" class="divider-vertical" aria-hidden="true"></li>
89
                    <li style="display:none" id="cookieConsentLi" class="nav-item" aria-hidden="true">
90
                        <a id="cookieConsentButton" href="#" name="Your cookies" class="nav-link" title="View and amend cookies you have consented to" role="button">
91
                            <span class="cookieconsentlabel">Your cookies</span>
92
                        </a>
93
                    </li>
94
                [% END %]
86
            </ul> <!-- / .navbar-nav -->
95
            </ul> <!-- / .navbar-nav -->
87
96
88
            [% IF Koha.Preference( 'opacuserlogin' ) == 1 ||  Koha.Preference( 'EnableOpacSearchHistory') || Koha.Preference( 'opaclanguagesdisplay' ) %]
97
            [% IF Koha.Preference( 'opacuserlogin' ) == 1 ||  Koha.Preference( 'EnableOpacSearchHistory') || Koha.Preference( 'opaclanguagesdisplay' ) %]
Lines 435-446 Link Here
435
                [% END %]
444
                [% END %]
436
            </div>
445
            </div>
437
        </div> <!-- /#cookieConsentBar -->
446
        </div> <!-- /#cookieConsentBar -->
438
        <!-- Cookie consent button for non logged-in users -->
439
        [% IF !loggedinusername %]
440
            <button id="cookieConsentButton" style="display:none" aria-hidden="true">
441
                Your cookies
442
            </button>
443
        [% END %]
444
        <!-- Cookie consent modal -->
447
        <!-- Cookie consent modal -->
445
        <div id="cookieConsentModal" class="modal" tabindex="-1" role="dialog" aria-labelledby="cookieConsentModalLabel" aria-hidden="true">
448
        <div id="cookieConsentModal" class="modal" tabindex="-1" role="dialog" aria-labelledby="cookieConsentModalLabel" aria-hidden="true">
446
            <div class="modal-dialog">
449
            <div class="modal-dialog">
(-)a/koha-tmpl/opac-tmpl/bootstrap/js/cookieconsent.js (-5 / +3 lines)
Lines 62-71 Link Here
62
        // cookieConsentsButton element in the DOM. The user
62
        // cookieConsentsButton element in the DOM. The user
63
        // has previously consented, so we need to display this
63
        // has previously consented, so we need to display this
64
        // button
64
        // button
65
        const consentButton = $('#cookieConsentButton');
65
        if ($('#cookieConsentButton').length > 0) {
66
        if (consentButton.length > 0) {
66
            $('#cookieConsentDivider').show().attr('aria-hidden', 'false');
67
            consentButton.attr('aria-hidden', 'false');
67
            $('#cookieConsentLi').show().attr('aria-hidden', 'false');
68
            consentButton.show();
69
        }
68
        }
70
    }
69
    }
71
70
72
- 

Return to bug 27378