diff options
author | Kevin Chabowski <kevin@kch42.de> | 2011-10-05 14:36:01 +0200 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2011-10-05 14:36:01 +0200 |
commit | 0f185543bb9851fddc137f81a1e2a1d21589bc83 (patch) | |
tree | c9a3c56ba2166defac508f8d1c67ef81fe4e9789 /ratatoeskr/templates/src/systemtemplates | |
parent | afe436b25dd935aa2ae3a327027ea04b3c82e5ac (diff) | |
download | ratatoeskr-cms-0f185543bb9851fddc137f81a1e2a1d21589bc83.tar.gz ratatoeskr-cms-0f185543bb9851fddc137f81a1e2a1d21589bc83.tar.bz2 ratatoeskr-cms-0f185543bb9851fddc137f81a1e2a1d21589bc83.zip |
Backend, frontend and 404 handlers partially implemented.
* Backend layout done.
* Frontend theoretically done (untested).
* 404 handler done
* Added textprocessors.php
Diffstat (limited to 'ratatoeskr/templates/src/systemtemplates')
3 files changed, 100 insertions, 0 deletions
diff --git a/ratatoeskr/templates/src/systemtemplates/content_write.html b/ratatoeskr/templates/src/systemtemplates/content_write.html new file mode 100644 index 0000000..962f116 --- /dev/null +++ b/ratatoeskr/templates/src/systemtemplates/content_write.html @@ -0,0 +1,22 @@ +<ste:load name="master.html" /> +<ste:block name="content"> + <form action="$rel_path_to_root/content/write?{$article_editurl|/$article_editurl|}" method="POST" accept_charset="utf-8" class="fullwidthinputs"> + <div class="triplecolumns"> + <div class="column_left"> + <h2>Markdown Cheat Sheet</h2> + </div> + <div class="column_right"> + <h2>Settings / Metadata</h2> + + <p>Unique URL Title: <input type="text" name="urltitle" value="<ste:escape>$urltitle</ste:escape>" /></p> + <p></p> + </div> + <div class="column_main"> + <p><ste:get_translation for="articleedit_title" />: <input type="text" name="title" value="<ste:escape>$title</ste:escape>" /></p> + <p><ste:get_translation for="articleedit_content" />: <textarea name="content" cols="80" rows="20"><ste:escape>$content</ste:escape></textarea></p> + <p><ste:get_translation for="articleedit_excerpt" />: <textarea name="excerpt" cols="80" rows="10"><ste:escape>$excerpt</ste:escape></textarea></p> + </div> + </div> + <div class="triplecolumns_stop"></div> + </form> +</ste:block> diff --git a/ratatoeskr/templates/src/systemtemplates/error.html b/ratatoeskr/templates/src/systemtemplates/error.html new file mode 100644 index 0000000..c8ece93 --- /dev/null +++ b/ratatoeskr/templates/src/systemtemplates/error.html @@ -0,0 +1,17 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta http-equiv="Content-Style-Type" content="text/css" /> + <title>$title</title> + <style type="text/css" media="screen"> + * { font-family: sans-serif; color: #bfbfbf; text-align: center;} + body { background: #3f3f3f; } + </style> +</head> +<body> + <h1><ste:escape>$title</ste:escape></h1> + <img src="$rel_path_to_root/ratatoeskr/cms_style/images/dead_emoticon.png" alt="" /> + <p><ste:escape>$details</ste:escape></p> +</body> +</html> diff --git a/ratatoeskr/templates/src/systemtemplates/master.html b/ratatoeskr/templates/src/systemtemplates/master.html new file mode 100755 index 0000000..ca7175f --- /dev/null +++ b/ratatoeskr/templates/src/systemtemplates/master.html @@ -0,0 +1,61 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta http-equiv="Content-Style-Type" content="text/css" /> + <title><ste:get_translation for="section_$section" />::<ste:escape>$pagetitle</ste:escape> - Ratatöskr</title> + <ste:mktag name="cms_style"><link rel="stylesheet" type="text/css" media="screen" href="$rel_path_to_root/ratatoeskr/cms_style/<ste:tagcontent />" /></ste:mktag> + <ste:cms_style>layout.css</ste:cms_style> + <ste:foreach array="additional_styles" value="cssfile"><ste:cms_style>$cssfile</ste:cms_style></ste:foreach> +</head> +<body> + <div id="bar_top"> + <span class="branding"><strong>Ratatöskr</strong>::Noctilucent clouds (v. 0.1)</span> + <span class="user"> + <a href="$rel_path_to_root/backend/admin/users/_self">$user[name]</a> | <a href="$rel_path_to_root/backend/logout"><ste:get_translation for="logout" /></a> + </span> + </div> + <div id="maincontainer"> + <h1><strong><ste:get_translation for="section_$section" /></strong>::<ste:escape>$pagetitle</ste:escape></h1> + <ul id="mainmenu"> + <li> + <a href="$rel_path_to_root/backend/content/write" class="first"><ste:get_translation for="section_content" /></a> + <ul?{~{content|eq|$section}| class="active"|}> + <li><a href="$rel_path_to_root/backend/content/articles"?{~{articles|eq|$submenu}| class="active"|}><ste:get_translation for="menu_articles" /></a></li> + <li><a href="$rel_path_to_root/backend/content/write"?{~{newarticle|eq|$submenu}| class="active"|}><ste:get_translation for="menu_newarticles" /></a></li> + <li><a href="$rel_path_to_root/backend/content/tags"?{~{tags|eq|$submenu}| class="active"|}><ste:get_translation for="menu_tags" /></a></li> + <li><a href="$rel_path_to_root/backend/content/images"?{~{images|eq|$submenu}| class="active"|}><ste:get_translation for="menu_images" /></a></li> + <li><a href="$rel_path_to_root/backend/content/comments"?{~{comments|eq|$submenu}| class="active"|}><ste:get_translation for="menu_comments" /></a></li> + </ul> + </li> + <li> + <a href="$rel_path_to_root/backend/design/templates"><ste:get_translation for="section_design" /></a> + <ul?{~{design|eq|$section}| class="active"|}> + <li><a href="$rel_path_to_root/backend/design/sections"?{~{sections|eq|$submenu}| class="active"|}><ste:get_translation for="menu_pagesections" /></a></li> + <li><a href="$rel_path_to_root/backend/design/templates"?{~{templates|eq|$submenu}| class="active"|}><ste:get_translation for="menu_templates" /></a></li> + <li><a href="$rel_path_to_root/backend/design/styles"?{~{styles|eq|$submenu}| class="active"|}><ste:get_translation for="menu_styles" /></a></li> + </ul> + </li> + <li> + <a href="$rel_path_to_root/backend/admin/settings"><ste:get_translation for="section_admin" /></a> + <ul?{~{admin|eq|$section}| class="active"|}> + <li><a href="$rel_path_to_root/backend/admin/users"?{~{users|eq|$submenu}| class="active"|}><ste:get_translation for="menu_users_groups" /></a></li> + <li><a href="$rel_path_to_root/backend/admin/languages"?{~{comments|eq|$submenu}| class="active"|}><ste:get_translation for="menu_languages" /></a></li> + <li><a href="$rel_path_to_root/backend/admin/repos"?{~{repos|eq|$submenu}| class="active"|}><ste:get_translation for="menu_plugin_repos" /></a></li> + <li><a href="$rel_path_to_root/backend/admin/settings"?{~{settings|eq|$submenu}| class="active"|}><ste:get_translation for="menu_settings" /></a></li> + </ul> + </li> + <li> + <a href="$rel_path_to_root/backend/plugin/list"><ste:get_translation for="section_plugins" /></a> + <ul?{~{plugins|eq|$section}| class="active"|}> + <li><a href="$rel_path_to_root/backend/plugin/list"?{~{pluginlist|eq|$submenu}| class="active"|}><ste:get_translation for="menu_pluginlist" /></a></li> + <li><a href="$rel_path_to_root/backend/plugin/install"?{~{installplugins|eq|$submenu}| class="active"|}><ste:get_translation for="menu_plugininstall" /></a></li> + </ul> + </li> + </ul> + <div id="content"> + <ste:block name="content"></ste:block> + </div> + </div> +</body> +</html> |