forked from rc/aircox
work on sections
This commit is contained in:
9
aircox_cms/templates/aircox_cms/base_section.html
Normal file
9
aircox_cms/templates/aircox_cms/base_section.html
Normal file
@ -0,0 +1,9 @@
|
||||
|
||||
<{{ tag }} class="section {{ classes }}"
|
||||
{% for key, value in attrs.items %}{{ key }} = "{{ value|addslashes }}"
|
||||
{% endfor %} >
|
||||
{% block content %}
|
||||
{{ content|safe }}
|
||||
{% endblock %}
|
||||
</{{ tag }}>
|
||||
|
@ -8,22 +8,23 @@
|
||||
<meta name="description" content="{{ website.description }}">
|
||||
<meta name="keywords" content="{{ website.tags }}">
|
||||
|
||||
<link rel="stylesheet" href="{% static "aircox_aircox_cms/styles.css" %}" type="text/css">
|
||||
<link rel="stylesheet" href="{% static "aircox_cms/styles.css" %}" type="text/css">
|
||||
{% if website.styles %}
|
||||
<link rel="stylesheet" href="{% static website.styles %}" type="text/css">
|
||||
{% endif %}
|
||||
<title>{{ website.name }} {% if title %}- {{ title }} {% endif %}</title>
|
||||
</head>
|
||||
<body>
|
||||
{% block header %}
|
||||
{% if menus.header %}
|
||||
{{ menus.header|safe }}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% if menus.top %}
|
||||
{{ menus.top|safe }}
|
||||
{% endif %}
|
||||
|
||||
{% block header %}
|
||||
{% if menus.header %}
|
||||
<header>
|
||||
{{ menus.header|safe }}
|
||||
</header>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
<div class="page">
|
||||
{% if menus.left %}
|
||||
{{ menus.left|safe }}
|
||||
@ -50,11 +51,13 @@
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
{% if menus.page_bottom %}
|
||||
{{ menus.page_bottom|safe }}
|
||||
{% endif %}
|
||||
|
||||
{% block footer %}
|
||||
{% if menus.footer %}
|
||||
<footer>
|
||||
{{ menus.footer|safe }}
|
||||
</footer>
|
||||
{{ menus.footer|safe }}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
|
@ -1,10 +1,10 @@
|
||||
|
||||
<nav class="menu menu_{{ position }} {{ classes }}" {% if name %}
|
||||
name="menu_{{ name }}"
|
||||
id="menu_{{ name }}"
|
||||
<{{ tag }} class="menu menu_{{ position }} {{ classes }}" {% if name %}
|
||||
name="{{ name }}"
|
||||
id="{{ name }}"
|
||||
{% endif %}>
|
||||
{% for section in sections %}
|
||||
{{ section|safe }}
|
||||
{% endfor %}
|
||||
</nav>
|
||||
</{{ tag }}>
|
||||
|
||||
|
@ -1,33 +1,34 @@
|
||||
<div class="section {{ classes }}">
|
||||
{% if title %}
|
||||
<h1>
|
||||
{% block section_title %}
|
||||
{{ title }}
|
||||
{% endblock %}
|
||||
</h1>
|
||||
{% endif %}
|
||||
{% extends "aircox_cms/base_section.html" %}
|
||||
|
||||
{% if header %}
|
||||
<header class="section_header">
|
||||
{% block section_header %}
|
||||
{{ header }}
|
||||
{% endblock %}
|
||||
</header>
|
||||
{% endif %}
|
||||
{% block content %}
|
||||
{% if title %}
|
||||
<h1>
|
||||
{% block section_title %}
|
||||
{{ title }}
|
||||
{% endblock %}
|
||||
</h1>
|
||||
{% endif %}
|
||||
|
||||
<div class="section_content">
|
||||
{% block section_content %}
|
||||
{{ content|safe }}
|
||||
{% endblock %}
|
||||
</div>
|
||||
{% if header %}
|
||||
<header class="section_header">
|
||||
{% block section_header %}
|
||||
{{ header }}
|
||||
{% endblock %}
|
||||
</header>
|
||||
{% endif %}
|
||||
|
||||
{% if bottom %}
|
||||
<div class="section_bottom">
|
||||
{% block section_bottom %}
|
||||
{{ bottom }}
|
||||
{% endblock %}
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="section_content">
|
||||
{% block section_content %}
|
||||
{{ content|safe }}
|
||||
{% endblock %}
|
||||
</div>
|
||||
|
||||
{% if bottom %}
|
||||
<div class="section_bottom">
|
||||
{% block section_bottom %}
|
||||
{{ bottom }}
|
||||
{% endblock %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
|
Reference in New Issue
Block a user