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 2924-2940 $star-selected: #EDB867; Link Here
2924
    }
2924
    }
2925
}
2925
}
2926
2926
2927
#cookieConsentButton {
2928
    position: fixed;
2929
    border: 0;
2930
    bottom: 0;
2931
    right: 0;
2932
    padding: 10px;
2933
    background: rgba(0,0,0,0.75);
2934
    color: rgba(255,255,255,0.8);
2935
    z-index: 1;
2936
}
2937
2938
#viewCookieConsents {
2927
#viewCookieConsents {
2939
    margin-top: 10px;
2928
    margin-top: 10px;
2940
}
2929
}
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc (-6 / +9 lines)
Lines 84-89 Link Here
84
                        </div> <!-- / .dropdown-menu -->
84
                        </div> <!-- / .dropdown-menu -->
85
                    </li> <!-- / .nav-item.dropdown -->
85
                    </li> <!-- / .nav-item.dropdown -->
86
                [% END # / IF virtualshelves %]
86
                [% END # / IF virtualshelves %]
87
                <!-- Cookie consent button for non logged-in users -->
88
                [% IF !loggedinusername %]
89
                    <li style="display:none" id="cookieConsentDivider" class="divider-vertical" aria-hidden="true"></li>
90
                    <li style="display:none" id="cookieConsentLi" class="nav-item" aria-hidden="true">
91
                        <a id="cookieConsentButton" href="#" name="Your cookies" class="nav-link" title="View and amend cookies you have consented to" role="button">
92
                            <span class="cookieconsentlabel">Your cookies</span>
93
                        </a>
94
                    </li>
95
                [% END %]
87
            </ul> <!-- / .navbar-nav -->
96
            </ul> <!-- / .navbar-nav -->
88
97
89
            [% IF Koha.Preference( 'opacuserlogin' ) == 1 ||  Koha.Preference( 'EnableOpacSearchHistory') || Koha.Preference( 'opaclanguagesdisplay' ) %]
98
            [% IF Koha.Preference( 'opacuserlogin' ) == 1 ||  Koha.Preference( 'EnableOpacSearchHistory') || Koha.Preference( 'opaclanguagesdisplay' ) %]
Lines 448-459 Link Here
448
                [% END %]
457
                [% END %]
449
            </div>
458
            </div>
450
        </div> <!-- /#cookieConsentBar -->
459
        </div> <!-- /#cookieConsentBar -->
451
        <!-- Cookie consent button for non logged-in users -->
452
        [% IF !loggedinusername %]
453
            <button id="cookieConsentButton" style="display:none" aria-hidden="true">
454
                Your cookies
455
            </button>
456
        [% END %]
457
        <!-- Cookie consent modal -->
460
        <!-- Cookie consent modal -->
458
        <div id="cookieConsentModal" class="modal" tabindex="-1" role="dialog" aria-labelledby="cookieConsentModalLabel" aria-hidden="true">
461
        <div id="cookieConsentModal" class="modal" tabindex="-1" role="dialog" aria-labelledby="cookieConsentModalLabel" aria-hidden="true">
459
            <div class="modal-dialog">
462
            <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