base.html 2.97 KB
Newer Older
Christophe Siraut's avatar
Christophe Siraut committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97
{% load i18n %}{% load static %}<!DOCTYPE html>
<html lang='en'>
<head>
    <meta charset="utf-8" />
    <title>{{ settings.site_name }} {% block title %}{% endblock %}</title>
    <meta name="Author" content="Tobald" />
    <link href="/static/css/weblog.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="/static/lightbox/js/prototype.js"></script>
    <script type="text/javascript" src="/static/lightbox/js/scriptaculous.js?load=effects,builder"></script>
    <script type="text/javascript" src="/static/lightbox/js/lightbox.js"></script>
    <link rel="stylesheet" href="/static/lightbox/css/lightbox.css" type="text/css" media="screen" />
    {% block style %}{% endblock %}
    <style>
    #bgimage {
         {% if object.bgimage %}
         background: url("{% get_media_prefix %}{{ object.bgimage }}") no-repeat center center; /* center center fixed;  */
         background-size: cover;
         {% else %}
         background: url("{% get_static_prefix %}images/Texture0419.gif") repeat; /* center center fixed;  */
         {% endif %}
    }
    </style>
</head>

<body>

<div id="bgimage"></div>
<div id="diag"></div>

<div id="slider" class="slideRight">
    <div id="content" >
{% block content %}{% endblock %}



    &nbsp;
    </div>

     <div id="footer">
         <div class="pagewrap" style="padding: 10px; text-align: center;">Website powered with <a href="http://www.tobald.eu.org/projects/flyers/">Flyers</a> - <a href="/admin/">Admin</a> </div></div>
    </div>
</div>


<div class="menu">
    <a href="/"><img src="{% get_media_prefix %}{{ settings.logo }}" alt="{{ settings.site_name }}"></a>
    <br /><br />
    <div class="menutext diagonal">
       {% for page in menu %}
               <a href="/{{ page.slug }}/">{{ page }}</a><br />
       {% endfor %}
    </div>
</div>

{% if SITE_MULTILINGUAL %}
<div id="languageselect">
    <form action="/i18n/setlang/" method="post" name="langForm" class="langForm">
    {% csrf_token %}
    <input name="next" type="hidden" value="/{{ page.slug }}/" />
    <select name="language" onChange="langForm.submit();" >
        {% for lang in LANGUAGES %}
        {% ifequal lang.0 LANGUAGE_CODE %}
        <option value="#" />{{ lang.1 }}</option>
        {% endifequal %}
        {% endfor %}
        {% for lang in LANGUAGES %}
        {% ifnotequal lang.0 LANGUAGE_CODE %}
        <option value="{{ lang.0 }}" />{{ lang.1 }}</option>
        {% endifnotequal %}
        {% endfor %}
    </select>
    </form>
</div>
{% endif %}

<div id="viewback">
    <img src="/static/images/eye.png" onmouseover="javascript:updateTransition();" onmouseout="javascript:updateTransition();">
</div>



<script type="text/javascript">
    function updateTransition() {
      var el = document.querySelector("div.slideLeft");
      
      if (el) {
        el.className = "slideRight";
      } else {
        el = document.querySelector("div.slideRight");
        el.className = "slideLeft";
      }
      
      return el;
    }
</script>
</body>
</html>