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 2645-2661 $star-selected: #EDB867; Link Here
2645
    }
2645
    }
2646
}
2646
}
2647
2647
2648
#cookieConsentButton {
2649
    position: fixed;
2650
    border: 0;
2651
    bottom: 0;
2652
    right: 0;
2653
    padding: 10px;
2654
    background: rgba(0,0,0,0.75);
2655
    color: rgba(255,255,255,0.8);
2656
    z-index: 1;
2657
}
2658
2659
#viewCookieConsents {
2648
#viewCookieConsents {
2660
    margin-top: 10px;
2649
    margin-top: 10px;
2661
}
2650
}
(-)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 431-442 Link Here
431
                [% END %]
440
                [% END %]
432
            </div>
441
            </div>
433
        </div> <!-- /#cookieConsentBar -->
442
        </div> <!-- /#cookieConsentBar -->
434
        <!-- Cookie consent button for non logged-in users -->
435
        [% IF !loggedinusername %]
436
            <button id="cookieConsentButton" style="display:none" aria-hidden="true">
437
                Your cookies
438
            </button>
439
        [% END %]
440
        <!-- Cookie consent modal -->
443
        <!-- Cookie consent modal -->
441
        <div id="cookieConsentModal" class="modal" tabindex="-1" role="dialog" aria-labelledby="cookieConsentModalLabel" aria-hidden="true">
444
        <div id="cookieConsentModal" class="modal" tabindex="-1" role="dialog" aria-labelledby="cookieConsentModalLabel" aria-hidden="true">
442
            <div class="modal-dialog">
445
            <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