Skip to content

Commit

Permalink
Merge branch 'release/1.0.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
andersju committed Jun 14, 2021
2 parents 2b0677b + 274ee0a commit 221a98b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ Installation

Note that this is a site-wide plugin. It can only be activated/deactivated on site level.

It simply loads a tiny bit of JS that checks whether the cookie `cookieNotice` has been set. If not,
it injects some HTML with cookie information and a button. If the button is clicked, the cookie is set
and the cookie information disappears.
If the cookie `cookieNotice` is not set, it shows a cookie notice with a button. If the button
is clicked, the cookie is set and the cookie information disappears.

If you find that the cookie notice is only shown on the main site and not on individual journals, `cd`
to the OJS root directory and run:
Expand Down
7 changes: 7 additions & 0 deletions cookieNotice/css/cookieNotice.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,15 @@
z-index: 999;
width: 100%;
margin: 0;
padding: 2em 0;
background-color: #000;
color: #fff;
text-align: center;
}

#cookie-notice a,
#cookie-notice p {
color: #fff;
}

#cookie-notice button {
Expand Down
6 changes: 3 additions & 3 deletions cookieNotice/version.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<version>
<application>cookieNotice</application>
<type>plugins.generic</type>
<release>1.0.2</release>
<date>2021-06-02</date>
<release>1.0.3</release>
<date>2021-06-14</date>
<lazy-load>1</lazy-load>
<sitewide>1</sitewide>
<class>CookieNoticePlugin</class>
</version>
</version>

0 comments on commit 221a98b

Please sign in to comment.