Statistics
| Branch: | Tag: | Revision:

root / cloudcms / templates / cms / base.html @ 322a5bbc

History | View | Annotate | Download (5.1 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
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
10
  <meta name="viewport" content="width=device-width, initial-scale=1.0,minimum-scale=1.0, maximum-scale=1.0">  
11
  
12
  {% block favicons %}
13
  <link rel="shortcut icon" href="{{ APP.favicon.get_absolute_url }}">
14
  <link rel="apple-touch-icon" href="{{ APP.favicon.get_absolute_url }}">
15
  {% endblock favicons %}
16

    
17
  {% block css %}
18
      
19
      <link href='https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&subset=latin,greek-ext,greek' rel='stylesheet' type='text/css'>
20
      <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}cloudcms/css/global.css">
21
      <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}cloudcms/css/print.css" media="print">
22
      <!--[if lte IE 7]>
23
          <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}cloudcms/css/ie7.css">
24
      <![endif]-->
25
      <link rel="stylesheet" media="screen and (max-width: 960px)" href="{{ MEDIA_URL }}cloudcms/css/max960.css"/>
26
      <link rel="stylesheet" media="screen and (max-width: 768px)" href="{{ MEDIA_URL }}cloudcms/css/max768.css"/>
27
      <link rel="stylesheet" media="screen and (max-width: 480px)" href="{{ MEDIA_URL }}cloudcms/css/max480.css"/>  
28
  {% endblock css %}
29

    
30
  {% block headjs %}
31
     
32
      <script src="{{ MEDIA_URL }}cloudcms/js/jquery-1.7.1.min.js"></script>
33
      <script src="{{ MEDIA_URL }}cloudcms/js/underscore.js"></script>
34
      <script src="{{ MEDIA_URL }}cloudcms/js/jquery.infieldlabel.js"></script>
35
      <script src="{{ MEDIA_URL }}cloudcms/js/jquery.colorbox.js"></script>
36
      <script src="{{ MEDIA_URL }}cloudcms/js/jquery.dropkick-1.0.0.js"></script>
37
      <script src="{{ MEDIA_URL }}cloudcms/js/jquery.tablesorter.js"></script>
38
      <script src="{{ MEDIA_URL }}cloudcms/js/common.js"></script>
39
      <script src="{{ MEDIA_URL }}cloudcms/js/forms.js"></script>
40
      <script src="{{ MEDIA_URL }}cloudcms/js/os.js"></script>
41
      <script src="{{ MEDIA_URL }}cloudcms/js/jquery-ui-1.8.21.custom.min.js"></script>
42
      <script src="{{ MEDIA_URL }}cloudcms/js/resources_list.js"></script> 
43
  {% endblock headjs %}
44

    
45
  {% block page.cms.media %}
46
  {{ feincms_page.content.media }}
47
  {% endblock %}
48

    
49
  {% block page.scripts.cloudbar %}
50
      {% if CLOUDBAR_ACTIVE %} {{ CLOUDBAR_CODE }} {% endif %}
51
  {% endblock %}
52

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

    
61
  <style type="text/css">
62
  {% block extrastyles %}
63
  {% endblock %}
64
  </style>
65

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

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