Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (4.5 kB)

1
<!doctype html>
2
{% load feincms_tags feincms_page_tags %}
3

    
4
<head>
5
  <title>
6
      {% block page.title %}{% if feincms_page.page_title %}{{ feincms_page.page_title }}
7
      {% else %}{{ feincms_page.title }}{% endif %} | {{ APP.title }}{% endblock %}
8
  </title>
9
  
10
  
11
  {% block favicons %}
12
  <link rel="shortcut icon" href="{{ APP.favicon.get_absolute_url }}">
13
  <link rel="apple-touch-icon" href="{{ APP.favicon.get_absolute_url }}">
14
  {% endblock favicons %}
15

    
16
  {% block css %}
17
      <link href='https://fonts.googleapis.com/css?family=Antic' rel='stylesheet' type='text/css'>
18
      <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}cloudcms/css/global.css">
19
      <!--[if lte IE 7]>
20
          <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}cloudcms/css/ie7.css">
21
      <![endif]-->
22
  {% endblock css %}
23

    
24
  {% block headjs %}
25
      <script src="{{ MEDIA_URL }}cloudcms/js/modernizr-2.0.6.js"></script>
26
      <script src="{{ MEDIA_URL }}cloudcms/js/jquery-1.7.1.min.js"></script>
27
      <script src="{{ MEDIA_URL }}cloudcms/js/underscore.js"></script>
28
      <script src="{{ MEDIA_URL }}cloudcms/js/jquery.infieldlabel.js"></script>
29
      <script src="{{ MEDIA_URL }}cloudcms/js/jquery.cookie.js"></script>
30
      <script src="{{ MEDIA_URL }}cloudcms/js/form-errors.js"></script>
31
      <script src="{{ MEDIA_URL }}cloudcms/js/jquery.colorbox.js"></script>
32
      <script src="{{ MEDIA_URL }}cloudcms/js/jquery.dropkick-1.0.0.js"></script>
33
      <script src="{{ MEDIA_URL }}cloudcms/js/common.js"></script>
34
      <script src="{{ MEDIA_URL }}cloudcms/js/forms.js"></script>
35
      <script src="{{ MEDIA_URL }}cloudcms/js/os.js"></script>
36
      <script src="{{ MEDIA_URL }}cloudcms/js/resources_list.js"></script> 
37
  {% endblock headjs %}
38

    
39
  {% block page.cms.media %}
40
  {{ feincms_page.content.media }}
41
  {% endblock %}
42

    
43
  {% block page.scripts.cloudbar %}
44
      {% if CLOUDBAR_ACTIVE %} {{ CLOUDBAR_CODE }} {% endif %}
45
  {% endblock %}
46

    
47
   <script type="text/javascript">
48
      $(document).ready(function() {
49
          $("form.innerlabels label").inFieldLabels();
50
          $("form .form-row").formErrors();
51
      })
52
   </script>
53
  {% block endhead %}{% endblock endhead %}
54

    
55
  <style type="text/css">
56
  {% block extrastyles %}
57
  {% endblock %}
58
  </style>
59

    
60
  {% if APP.extra_styles %}
61
  <style type="text/css">
62
      {{ APP.extra_styles|safe }}
63
  </style>
64
  {% endif %}
65
    
66
</head>
67

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