Skip to content

Commit

Permalink
Fixed bug with dark mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobThaDev committed Sep 12, 2019
1 parent 7e1078a commit 546c70b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions app/views/index.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,14 @@
{{ javascript_include("js/aos.js") }}
{% endif %}


{% if cookies.has("darkMode") AND user_theme is not defined %}
{{ stylesheet_link('css/themes/dark-mode.css') }}
{% else %}
{% if user is defined %}
{% if user_theme is defined %}
{{ stylesheet_link('css/themes/'~user_theme~'?v='~time()) }}
{% endif %}
{% else %}
{% if cookies.has("darkMode") %}
{{ stylesheet_link('css/themes/dark-mode.css') }}
{% endif %}
{% endif %}

{{ javascript_include("js/jquery-3.3.1.min.js") }}
Expand Down
Binary file added public/img/background.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 546c70b

Please sign in to comment.