mirror of
https://github.com/Hopiu/django-fobi.git
synced 2026-05-10 13:54:41 +00:00
adding front-end templates for djangocms-admin-style-theme example
This commit is contained in:
parent
f97b325374
commit
7c9fdaf218
6 changed files with 132 additions and 2 deletions
|
|
@ -0,0 +1,5 @@
|
|||
========================================================
|
||||
DjangoCMS Admin Style theme page templates for DjangoCMS
|
||||
========================================================
|
||||
DjangoCMS templates for the Simple theme (
|
||||
``fobi.contrib.themes.djangocms_admin_style_theme``).
|
||||
|
|
@ -0,0 +1,104 @@
|
|||
{% load static future_compat i18n cms_tags sekizai_tags menu_tags placeholder_tags %}<!DOCTYPE html>
|
||||
<html lang="{{ LANGUAGE_CODE|default:"en-us" }}" {% if LANGUAGE_BIDI %}dir="rtl"{% endif %}{% block html-attributes %}{% endblock html-attributes %}>
|
||||
<head>
|
||||
<title>{% block page-title %}{% endblock page-title %} | {% block site-title %}{% trans "DjangoCMS Simple example" %}{% endblock site-title %}</title>
|
||||
{% block extrastyle %}{% endblock %}
|
||||
|
||||
{% block stylesheets %}
|
||||
{#<!-- Additional core CSS files that somehow can't be put into the python theme -->#}
|
||||
{% endblock stylesheets %}
|
||||
|
||||
{% block theme-stylesheets %}
|
||||
{#<!-- This is where stylesheets declared in the Python theme are listed -->#}
|
||||
|
||||
{% for css_file in fobi_theme.get_media_css %}
|
||||
<link href="{% static css_file %}" rel="stylesheet" media="all" />
|
||||
{% endfor %}
|
||||
|
||||
{% endblock theme-stylesheets %}
|
||||
|
||||
{% block extra-stylesheets %}{% endblock extra-stylesheets %}
|
||||
|
||||
{% block head-javascripts %}
|
||||
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
|
||||
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
{% endblock head-javascripts %}
|
||||
|
||||
{% block extra-head-javascripts %}{% endblock extra-head-javascripts %}
|
||||
|
||||
{% block extrahead %}{% endblock extrahead %}
|
||||
|
||||
{% block blockbots %}<meta name="robots" content="NONE,NOARCHIVE" />{% endblock %}
|
||||
|
||||
{% render_block "css" %}
|
||||
|
||||
</head>
|
||||
{% load i18n %}
|
||||
|
||||
<body class="{% block bodyclass %}{% if fobi_theme %} theme {{ fobi_theme.html_class }}{% endif %}{% endblock %}">
|
||||
{% cms_toolbar %}
|
||||
|
||||
{% block main-wrapper %}
|
||||
<!-- Container -->
|
||||
<div id="container">
|
||||
|
||||
|
||||
{% block messages %}
|
||||
{% if messages %}
|
||||
<ul class="messagelist">{% for message in messages %}
|
||||
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message|capfirst }}</li>
|
||||
{% endfor %}</ul>
|
||||
{% endif %}
|
||||
{% endblock messages %}
|
||||
|
||||
{% block main-content-wrapper %}
|
||||
<!-- Content -->
|
||||
|
||||
{% block main-content %}
|
||||
{% block content-wrapper %}
|
||||
|
||||
{% block content %}
|
||||
{{ content }}
|
||||
{% endblock %}
|
||||
{% endblock content-wrapper %}
|
||||
|
||||
{% block sidebar-wrapper %}
|
||||
{% block sidebar %}{% endblock %}
|
||||
{% endblock sidebar-wrapper %}
|
||||
|
||||
{% endblock main-content %}
|
||||
|
||||
<!-- END Content -->
|
||||
|
||||
{% block footer-wrapper %}
|
||||
{% block footer %}<div id="footer"></div>{% endblock %}
|
||||
{% endblock footer-wrapper %}
|
||||
|
||||
{% endblock main-content-wrapper %}
|
||||
|
||||
|
||||
</div>
|
||||
<!-- END Container -->
|
||||
|
||||
{% endblock main-wrapper %}
|
||||
|
||||
{% block javascripts %}
|
||||
{#<!-- Theme core JavaScript that somehow can't be put into the Python theme -->#}
|
||||
{#<!-- Placed at the end of the document so the pages load faster, although might be changed, if plugins need it to be otherwise -->#}
|
||||
{% endblock javascripts %}
|
||||
|
||||
{% block theme-javascripts %}
|
||||
{#<!-- This is where javascripts declared in the Python theme are listed -->#}
|
||||
{% for js_file in fobi_theme.get_media_js %}
|
||||
<script src="{% static js_file %}"></script>
|
||||
{% endfor %}
|
||||
|
||||
{% endblock theme-javascripts %}
|
||||
|
||||
{% render_block "js" %}
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
{% extends "cms_page/djangocms_admin_style_theme/base.html" %}
|
||||
|
||||
{% load cms_tags menu_tags placeholder_tags %}
|
||||
|
||||
{% block main-content %}
|
||||
{% placeholder page_content %}
|
||||
{% endblock %}
|
||||
|
||||
{% block sidebar-content %}
|
||||
{% placeholder page_sidebar %}
|
||||
{% endblock %}
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
{% extends "cms_page/djangocms_admin_style_theme/base.html" %}
|
||||
|
||||
{% load cms_tags menu_tags placeholder_tags %}
|
||||
|
||||
{% block main-content %}
|
||||
{% placeholder page_content %}
|
||||
{% endblock %}
|
||||
|
||||
{% block sidebar-content %}
|
||||
{% endblock %}
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
{% extends "cms_page/foundation5//base.html" %}
|
||||
{% extends "cms_page/foundation5/base.html" %}
|
||||
|
||||
{% load cms_tags menu_tags placeholder_tags %}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{% extends "cms_page/simple//base.html" %}
|
||||
{% extends "cms_page/simple/base.html" %}
|
||||
|
||||
{% load cms_tags menu_tags placeholder_tags %}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue