Statistics
| Branch: | Tag: | Revision:

root / cloudcms / templates / cms / base.html @ bd2ee623

History | View | Annotate | Download (4.7 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
  <link rel="alternate" type="application/atom+xml" href="{% url blogfeed %}">
23

    
24
    
25
  {% block page.js %}
26
  <!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
27
  <!--[if lt IE 9]>
28
    <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
29
  <![endif]-->
30
  {% endblock %}
31
  
32
  {% block favicons %}
33
  <link rel="shortcut icon" href="">
34
  <link rel="apple-touch-icon" href="">
35
  {% endblock favicons %}
36

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

    
42
  {% block headjs %}
43
      <script src="{{ MEDIA_URL }}cloudcms/js/modernizr-2.0.6.js"></script>
44
      <script src="{{ MEDIA_URL }}cloudcms/js/jquery-1.7.1.min.js"></script>
45
      <script src="{{ MEDIA_URL }}cloudcms/js/jquery.infieldlabel.js"></script>
46
      <script src="{{ MEDIA_URL }}cloudcms/js/jquery.cookie.js"></script>
47
      <script src="{{ MEDIA_URL }}cloudcms/js/form-errors.js"></script>
48
      <script src="{{ MEDIA_URL }}cloudcms/js/colorbox/jquery.colorbox.js"></script>
49
  {% endblock headjs %}
50

    
51
  {% block page.cms.media %}
52
  {{ feincms_page.content.media }}
53
  {% endblock %}
54

    
55

    
56
  {% block page.scripts.cloudbar %}
57
      {% if CLOUDBAR_ACTIVE %} {{ CLOUDBAR_CODE }} {% endif %}
58
  {% endblock %}
59

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

    
68
  {% if APP.extra_styles %}
69
  <style type="text/css">
70
      {{ APP.extra_styles|safe }}
71
  </style>
72
  {% endif %}
73

    
74
</head>
75

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