Statistics
| Branch: | Tag: | Revision:

root / cloudcms / templates / cms / base.html @ 52abca01

History | View | Annotate | Download (4.8 kB)

1
<!doctype html>
2
{% load feincms_tags feincms_page_tags %}
3
<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]-->
4
<!--[if IE 7 ]>    <html lang="en" class="no-js ie7"> <![endif]-->
5
<!--[if IE 8 ]>    <html lang="en" class="no-js ie8"> <![endif]-->
6
<!--[if (gte IE 9)|!(IE)]><!--> <html lang="en" class="no-js"> <!--<![endif]-->
7
<head>
8
  {% block starthead %}{% endblock starthead %}
9
  <meta charset="{{ resource.meta.charset }}">
10
  
11
  <meta http-equiv="X-UA-Compatible" content="{{ resource.meta.compatibility }}">
12
  
13
  <title>
14
      {% block page.title %}{% if feincms_page.page_title %}{{ feincms_page.page_title }}
15
      {% else %}{{ feincms_page.title }}{% endif %} | {{ APP.title }}{% endblock %}
16
  </title>
17
  
18
  <meta name="description" content="{{ resource.meta.description }}">
19
  <meta name="author" content="{{ resource.meta.author }}">
20
  <meta name="viewport" content="">
21
    
22
  {% block page.js %}
23
  <!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
24
  <!--[if lt IE 9]>
25
    <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
26
  <![endif]-->
27
  {% endblock %}
28
  
29
  {% block favicons %}
30
  <link rel="shortcut icon" href="{{ APP.favicon.get_absolute_url }}">
31
  <link rel="apple-touch-icon" href="{{ APP.favicon.get_absolute_url }}">
32
  {% endblock favicons %}
33

    
34
  {% block css %}
35
      <link href='https://fonts.googleapis.com/css?family=Antic' rel='stylesheet' type='text/css'>
36
      <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}cloudcms/css/styles.css">
37
  {% endblock css %}
38

    
39
  {% block headjs %}
40
      <script src="{{ MEDIA_URL }}cloudcms/js/modernizr-2.0.6.js"></script>
41
      <script src="{{ MEDIA_URL }}cloudcms/js/jquery-1.7.1.min.js"></script>
42
      <script src="{{ MEDIA_URL }}cloudcms/js/jquery.infieldlabel.js"></script>
43
      <script src="{{ MEDIA_URL }}cloudcms/js/jquery.cookie.js"></script>
44
      <script src="{{ MEDIA_URL }}cloudcms/js/form-errors.js"></script>
45

    
46
      <script src="{{ MEDIA_URL }}cloudcms/js/colorbox/jquery.colorbox.js"></script>
47
  {% endblock headjs %}
48

    
49
  {% block page.cms.media %}
50
  {{ feincms_page.content.media }}
51
  {% endblock %}
52

    
53
  {% block page.scripts.cloudbar %}
54
      {% if CLOUDBAR_ACTIVE %} {{ CLOUDBAR_CODE }} {% endif %}
55
  {% endblock %}
56

    
57
   <script type="text/javascript">
58
      $(document).ready(function() {
59
          $("form.innerlabels label").inFieldLabels();
60
          $("form .form-row").formErrors();
61
      })
62
   </script>
63
  {% block endhead %}{% endblock endhead %}
64

    
65
  {% if APP.extra_styles %}
66
  <style type="text/css">
67
      {{ APP.extra_styles|safe }}
68
  </style>
69
  {% endif %}
70

    
71
</head>
72

    
73
<body class='cms-page-{{ feincms_page.slug }}'>
74
    {% block page.mainbody %}
75
    <div class='container'>
76
        <div class='header'>
77
            <div class="mainlogo">
78
                    {% if APP.logo %}
79
                        <a href="{{ APP.index_url }}" title="{{ APP.title }}">
80
                            <img src="{{ APP.logo.get_absolute_url }}" alt="{{ APP.title }}" />
81
                        </a>
82
                    {% else %}
83
                        <h1>{{ APP.title }}</h1>
84
                    {% endif %}
85
                </div>
86
            <div class="navigation">
87
                <ul class="mainnav inline">
88
                    {% block page.nav %}
89
                        {% feincms_navigation of feincms_page as sublevel level=2,depth=1 %}
90
                        {% for p in sublevel %}
91
                        <li class="{% if p|is_equal_or_parent_of:feincms_page %}active{% endif %}">
92
                        <a href="{{ p.get_absolute_url }}">{{ p.title }}</a></li>
93
                        {% endfor %}
94
                    {% endblock %}
95
                </ul>
96
                <ul class="mainnav inline subnav">
97
                    {% block page.subnav %}
98
                        {% if feincms_page.override_url != "/" %}
99
                        {% feincms_navigation of feincms_page as sublevel level=3,depth=1 %}
100
                        {% for p in sublevel %}
101
                        <li class="{% if p|is_equal_or_parent_of:feincms_page or p.url == request.path %}active{% endif %}">
102
                        <a href="{{ p.get_absolute_url }}">{{ p.title }}</a></li>
103
                        {% endfor %}
104
                        {% endif %}
105
                    {% endblock %}
106
                </ul>
107
            </div>
108
        </div>
109
        {% if messages %}
110
        <ul class="messages">
111
            {% for message in messages %}
112
            <li{% if  %}
113
                class="{{ message.tags }}"{% endif %}>
114
                {{ message }}</li>
115
            {% endfor %}
116
        </ul>
117
        {% endif %}
118
        <div class="page">
119
                {% block page.body %}
120
                {% endblock %}
121
        </div>
122
    </div>
123
    <div class="footer">
124
        {% include "cms/footer.html" %}
125
    </div>
126
    {% endblock page.mainbody %}
127
</body>
128
</html>