added installer
This commit is contained in:
31
author/project/system/views/themes/default/core.html
Normal file
31
author/project/system/views/themes/default/core.html
Normal file
@@ -0,0 +1,31 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html lang="ru">
|
||||
|
||||
<head>
|
||||
{% use 'head.html' with title as head_title, meta as head_meta, css as head_css %}
|
||||
|
||||
{% block title %}
|
||||
{{ block('head_title') }}
|
||||
{% endblock %}
|
||||
|
||||
{% block meta %}
|
||||
{{ block('head_meta') }}
|
||||
{% endblock %}
|
||||
|
||||
{{ block('head_css') }}
|
||||
{% block css %}
|
||||
{% endblock %}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
{% block body %}
|
||||
{% endblock %}
|
||||
|
||||
{% include 'js.html' %}
|
||||
{% block js %}
|
||||
{% endblock %}
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
10
author/project/system/views/themes/default/footer.html
Normal file
10
author/project/system/views/themes/default/footer.html
Normal file
@@ -0,0 +1,10 @@
|
||||
{% block css %}
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<footer>
|
||||
</footer>
|
||||
{% endblock %}
|
||||
|
||||
{% block js %}
|
||||
{% endblock %}
|
15
author/project/system/views/themes/default/head.html
Normal file
15
author/project/system/views/themes/default/head.html
Normal file
@@ -0,0 +1,15 @@
|
||||
{% block title %}
|
||||
<title>{% if head.title != empty %}{{head.title}}{% else %}${REPO_NAME} by ${REPO_OWNER}{% endif %}</title>
|
||||
{% endblock %}
|
||||
|
||||
{% block meta %}
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
{% for meta in head.metas %}
|
||||
<meta {% for name, value in meta.attributes %}{{name}}="{{value}}" {% endfor %}>
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
|
||||
{% block css %}
|
||||
<link type="text/css" rel="stylesheet" href="/css/themes/default/main.css" />
|
||||
{% endblock %}
|
10
author/project/system/views/themes/default/header.html
Normal file
10
author/project/system/views/themes/default/header.html
Normal file
@@ -0,0 +1,10 @@
|
||||
{% block css %}
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<header>
|
||||
</header>
|
||||
{% endblock %}
|
||||
|
||||
{% block js %}
|
||||
{% endblock %}
|
27
author/project/system/views/themes/default/index.html
Normal file
27
author/project/system/views/themes/default/index.html
Normal file
@@ -0,0 +1,27 @@
|
||||
{% extends "core.html" %}
|
||||
|
||||
{% use "core.html" with css as core_css, body as core, js as core_js %}
|
||||
{% use "header.html" with css as header_css, body as header, js as header_js %}
|
||||
{% use "footer.html" with css as footer_css, body as footer, js as footer_js %}
|
||||
|
||||
{% block css %}
|
||||
{{ block('core_css') }}
|
||||
{{ block('header_css') }}
|
||||
{{ block('footer_css') }}
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
{{ block('header') }}
|
||||
<main>
|
||||
{% block main %}
|
||||
{{ main|raw }}
|
||||
{% endblock %}
|
||||
</main>
|
||||
{{ block('footer') }}
|
||||
{% endblock %}
|
||||
|
||||
{% block js %}
|
||||
{{ block('footer_js') }}
|
||||
{{ block('header_js') }}
|
||||
{{ block('core_js') }}
|
||||
{% endblock %}
|
2
author/project/system/views/themes/default/js.html
Normal file
2
author/project/system/views/themes/default/js.html
Normal file
@@ -0,0 +1,2 @@
|
||||
{% block js %}
|
||||
{% endblock %}
|
Reference in New Issue
Block a user