Revision c6fdba44 cloudcms/templates/cms/base.html

b/cloudcms/templates/cms/base.html
1 1
<!doctype html>
2 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]-->
3

  
7 4
<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 5
  <title>
14 6
      {% block page.title %}{% if feincms_page.page_title %}{{ feincms_page.page_title }}
15 7
      {% else %}{{ feincms_page.title }}{% endif %} | {{ APP.title }}{% endblock %}
16 8
  </title>
17 9
  
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="https://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
29
  <![endif]-->
30
  {% endblock %}
31 10
  
32 11
  {% block favicons %}
33 12
  <link rel="shortcut icon" href="{{ APP.favicon.get_absolute_url }}">
......
36 15

  
37 16
  {% block css %}
38 17
      <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">
18
      <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}cloudcms/css/global.css">
40 19
      <!--[if lte IE 7]>
41 20
          <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}cloudcms/css/ie7.css">
42 21
      <![endif]-->
......
49 28
      <script src="{{ MEDIA_URL }}cloudcms/js/jquery.infieldlabel.js"></script>
50 29
      <script src="{{ MEDIA_URL }}cloudcms/js/jquery.cookie.js"></script>
51 30
      <script src="{{ MEDIA_URL }}cloudcms/js/form-errors.js"></script>
52
      <script src="{{ MEDIA_URL }}cloudcms/js/colorbox/jquery.colorbox.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> 
53 37
  {% endblock headjs %}
54 38

  
55 39
  {% block page.cms.media %}
......
81 65
    
82 66
</head>
83 67

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

Also available in: Unified diff