Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for site-enabled CMS_TEMPLATES_DIR
- Loading branch information
Showing
8 changed files
with
184 additions
and
3 deletions.
There are no files selected for viewing
82 changes: 82 additions & 0 deletions
82
cms/test_utils/project/templates/inner_dir/custom_templates_2/base.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
{% load i18n cms_tags menu_tags sekizai_tags %} | ||
<!doctype html><html lang="{{ LANGUAGE_CODE }}"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<title>{% page_attribute page_title %}</title> | ||
<meta name="description" content="{% page_attribute meta_description %}" /> | ||
<link href="{{ STATIC_URL }}css/style.css" media="all" rel="stylesheet" type="text/css" /> | ||
{% render_block "css" %} | ||
|
||
<style type="text/css"> | ||
body { font:normal 16px/18px "Times New Roman", Times, serif; margin:0; background:#fcfcfc; } | ||
|
||
#header { padding:15px 10px 15px; box-shadow:#eee 0px 2px 5px; background:#fff; | ||
clear:both; overflow:hidden; } | ||
#header #logo { float:left; background:#eee; border-radius:10px; } | ||
#header #logo a { color:#999; display:block; text-align:center; padding:10px 25px; text-decoration:none; } | ||
#header #nav_lang, | ||
#header #nav_main { float:left; padding-left:15px; } | ||
#header #nav_lang ul, | ||
#header #nav_main ul { list-style-type:none; padding:0; margin:0; } | ||
#header #nav_lang ul li, | ||
#header #nav_main ul li { float:left; padding:0; margin:0; } | ||
#header #nav_lang ul li a, | ||
#header #nav_main ul li a { float:left; padding:10px 5px; } | ||
|
||
#main, .breadcrumb { width:960px; margin:0 auto; } | ||
|
||
.breadcrumb { padding:15px 0; list-style-type:none; } | ||
.breadcrumb li { padding-right:10px; } | ||
|
||
.grid_1, .grid_2, .grid_3, .grid_4, .grid_5, .grid_6, | ||
.grid_7, .grid_8, .grid_9, .grid_10, .grid_11, .grid_12 { float:left; margin:0 10px; } | ||
|
||
.grid_1 { width:60px; } | ||
.grid_2 { width:140px; } | ||
.grid_3 { width:220px; } | ||
.grid_4 { width:300px; } | ||
.grid_5 { width:380px; } | ||
.grid_6 { width:460px; } | ||
.grid_7 { width:540px; } | ||
.grid_8 { width:620px; } | ||
.grid_9 { width:700px; } | ||
.grid_10 { width:780px; } | ||
.grid_11 { width:860px; } | ||
.grid_12 { width:940px; } | ||
|
||
p { padding:0; margin:0 0 15px; } | ||
img { max-width:100%; } | ||
</style> | ||
</head> | ||
<body id="{% block tpl_id %}none{% endblock %}" class="{{ LANGUAGE_CODE }}"> | ||
{% cms_toolbar %} | ||
<div id="page" class="container_16 "> | ||
<div id="header"> | ||
<div id="logo"> | ||
<a href="/">Company name</a> | ||
</div> | ||
<div id="nav_lang"> | ||
{% spaceless %} | ||
<ul> | ||
{% language_chooser %} | ||
</ul> | ||
{% endspaceless %} | ||
</div> | ||
<div id="nav_main" class="clearfix"> | ||
{% spaceless %} | ||
<ul> | ||
{% show_menu 0 0 100 100 %} | ||
</ul> | ||
{% endspaceless %} | ||
</div> | ||
</div> | ||
<ul class="breadcrumb clearfix"> | ||
{% show_breadcrumb %} | ||
</ul> | ||
<div id="main"> | ||
{% block content %}{% endblock content %} | ||
</div> | ||
</div> | ||
{% render_block "js" %} | ||
</body> | ||
</html> |
32 changes: 32 additions & 0 deletions
32
cms/test_utils/project/templates/inner_dir/custom_templates_2/right_col_three.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{% extends "base.html" %} | ||
{% load i18n cms_tags %} | ||
|
||
{% block tpl_id %}tpl_col_three{% endblock %} | ||
|
||
{% block content %} | ||
<h1>{% render_model request.current_page "page_title" %}</h1> | ||
<div id="col1" class="grid_3"> | ||
{% include "sidebar_submenu.html" %} | ||
{% block col_sidebar %} | ||
{% with "220" as width %} | ||
{% placeholder col_sidebar %} | ||
{% endwith %} | ||
{% endblock %} | ||
</div> | ||
|
||
<div id="col2" class="grid_6"> | ||
{% block col_left %} | ||
{% with "340" as width %} | ||
{% placeholder col_left %} | ||
{% endwith %} | ||
{% endblock %} | ||
</div> | ||
|
||
<div id="col3" class="grid_3"> | ||
{% block col_right %} | ||
{% with "220" as width %} | ||
{% placeholder col_right %} | ||
{% endwith %} | ||
{% endblock %} | ||
</div> | ||
{% endblock %} |
29 changes: 29 additions & 0 deletions
29
cms/test_utils/project/templates/inner_dir/custom_templates_2/right_col_two.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{% extends "base.html" %} | ||
{% load i18n cms_tags %} | ||
|
||
{% block tpl_id %}tpl_col_two{% endblock %} | ||
|
||
{% block content %} | ||
|
||
<h1>{% render_model request.current_page "titles" %} {% render_model_icon request.current_page %}</h1> | ||
<div id="col1" class="grid_3"> | ||
{% render_model request.current_page "menu_title" %} | ||
{% include "sidebar_submenu.html" %} | ||
{% block col_sidebar %} | ||
{% with "220" as width %} | ||
{% placeholder col_sidebar %} | ||
{% endwith %} | ||
{% endblock %} | ||
</div> | ||
|
||
<div id="col2" class="grid_9"> | ||
{% render_model request.current_page "page_title" %} | ||
{% block col_left %} | ||
{% with "640" as width %} | ||
{% placeholder col_left %} | ||
{% endwith %} | ||
{% endblock %} | ||
</div> | ||
|
||
<footer>{% render_model request.current_page "title" %}</footer> | ||
{% endblock %} |
3 changes: 3 additions & 0 deletions
3
cms/test_utils/project/templates/inner_dir/custom_templates_2/templates.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[templates] | ||
right_col_two.html=Two columns | ||
right_col_three.html=Three columns |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters