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 2689-2705 $star-selected: #EDB867; Link Here
2689
    }
2689
    }
2690
}
2690
}
2691
2691
2692
#cookieConsentButton {
2693
    position: fixed;
2694
    border: 0;
2695
    bottom: 0;
2696
    right: 0;
2697
    padding: 10px;
2698
    background: rgba(0,0,0,0.75);
2699
    color: rgba(255,255,255,0.8);
2700
    z-index: 1;
2701
}
2702
2703
#viewCookieConsents {
2692
#viewCookieConsents {
2704
    margin-top: 10px;
2693
    margin-top: 10px;
2705
}
2694
}
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc (-6 / +9 lines)
Lines 82-87 Link Here
82
                        </div> <!-- / .dropdown-menu -->
82
                        </div> <!-- / .dropdown-menu -->
83
                    </li> <!-- / .nav-item.dropdown -->
83
                    </li> <!-- / .nav-item.dropdown -->
84
                [% END # / IF virtualshelves %]
84
                [% END # / IF virtualshelves %]
85
                <!-- Cookie consent button for non logged-in users -->
86
                [% IF !loggedinusername %]
87
                    <li style="display:none" id="cookieConsentDivider" class="divider-vertical" aria-hidden="true"></li>
88
                    <li style="display:none" id="cookieConsentLi" class="nav-item" aria-hidden="true">
89
                        <a id="cookieConsentButton" href="#" name="Your cookies" class="nav-link" title="View and amend cookies you have consented to" role="button">
90
                            <span class="cookieconsentlabel">Your cookies</span>
91
                        </a>
92
                    </li>
93
                [% END %]
85
            </ul> <!-- / .navbar-nav -->
94
            </ul> <!-- / .navbar-nav -->
86
95
87
            [% IF Koha.Preference( 'opacuserlogin' ) == 1 ||  Koha.Preference( 'EnableOpacSearchHistory') || Koha.Preference( 'opaclanguagesdisplay' ) %]
96
            [% IF Koha.Preference( 'opacuserlogin' ) == 1 ||  Koha.Preference( 'EnableOpacSearchHistory') || Koha.Preference( 'opaclanguagesdisplay' ) %]
Lines 432-443 Link Here
432
                [% END %]
441
                [% END %]
433
            </div>
442
            </div>
434
        </div> <!-- /#cookieConsentBar -->
443
        </div> <!-- /#cookieConsentBar -->
435
        <!-- Cookie consent button for non logged-in users -->
436
        [% IF !loggedinusername %]
437
            <button id="cookieConsentButton" style="display:none" aria-hidden="true">
438
                Your cookies
439
            </button>
440
        [% END %]
441
        <!-- Cookie consent modal -->
444
        <!-- Cookie consent modal -->
442
        <div id="cookieConsentModal" class="modal" tabindex="-1" role="dialog" aria-labelledby="cookieConsentModalLabel" aria-hidden="true">
445
        <div id="cookieConsentModal" class="modal" tabindex="-1" role="dialog" aria-labelledby="cookieConsentModalLabel" aria-hidden="true">
443
            <div class="modal-dialog">
446
            <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