aboutsummaryrefslogtreecommitdiff
path: root/ratatoeskr/templates
diff options
context:
space:
mode:
Diffstat (limited to 'ratatoeskr/templates')
-rw-r--r--ratatoeskr/templates/src/systemtemplates/setup_dbsetup.html41
-rw-r--r--ratatoeskr/templates/src/systemtemplates/setup_done.html14
-rw-r--r--ratatoeskr/templates/src/systemtemplates/setup_master.html14
-rw-r--r--ratatoeskr/templates/src/systemtemplates/setup_select_lang.html11
-rw-r--r--ratatoeskr/templates/src/usertemplates/master.html43
-rw-r--r--ratatoeskr/templates/src/usertemplates/some_useful_tags20
-rw-r--r--ratatoeskr/templates/src/usertemplates/standard.html72
7 files changed, 215 insertions, 0 deletions
diff --git a/ratatoeskr/templates/src/systemtemplates/setup_dbsetup.html b/ratatoeskr/templates/src/systemtemplates/setup_dbsetup.html
new file mode 100644
index 0000000..e43d2ef
--- /dev/null
+++ b/ratatoeskr/templates/src/systemtemplates/setup_dbsetup.html
@@ -0,0 +1,41 @@
+<ste:load name="setup_master.html" />
+<ste:block name="content">
+ <ste:if>$error
+ <ste:then>
+ <div class="error"><ste:escape>$error</ste:escape></div>
+ </ste:then>
+ </ste:if>
+ <form action="setup.php?lang=$lang" method="POST" accept-charset="UTF-8">
+ <h2><ste:get_translation for="dbsetup" /></h2>
+ <p>
+ <ste:get_translation for="dbsetup_mysql_host" /><br />
+ <input type="text" name="mysql_host" value="localhost" />
+ </p>
+ <p>
+ <ste:get_translation for="dbsetup_mysql_user" /><br />
+ <input type="text" name="mysql_user" />
+ </p>
+ <p>
+ <ste:get_translation for="dbsetup_mysql_passwd" /><br />
+ <input type="password" name="mysql_password" />
+ </p>
+ <p>
+ <ste:get_translation for="dbsetup_mysql_database" /><br />
+ <input type="text" name="mysql_database" />
+ </p>
+ <p>
+ <ste:get_translation for="dbsetup_table_prefix" /><br />
+ <input type="text" name="table_prefix" value="ratatoeskr_" />
+ </p>
+ <h2><ste:get_translation for="admin_setup" /></h2>
+ <p>
+ <ste:get_translation for="username" /><br />
+ <input type="text" name="admin_username" />
+ </p>
+ <p>
+ <ste:get_translation for="initial_password" /><br />
+ <input type="password" name="admin_init_password" />
+ </p>
+ <p><input type="submit" name="apply_setup" /></p>
+ </form>
+</ste:block>
diff --git a/ratatoeskr/templates/src/systemtemplates/setup_done.html b/ratatoeskr/templates/src/systemtemplates/setup_done.html
new file mode 100644
index 0000000..e21efca
--- /dev/null
+++ b/ratatoeskr/templates/src/systemtemplates/setup_done.html
@@ -0,0 +1,14 @@
+<ste:load name="setup_master.html" />
+<ste:block name="content">
+ <h2><ste:get_translation for="setup_almost_done" /></h2>
+
+ <p><ste:get_translation for="setup_configfile_instructions" /></p>
+ <textarea cols="80" rows="15" readonly="readonly"><ste:escape>$config</ste:escape></textarea>
+
+ <p><ste:get_translation for="setup_delete_setup_instructions_and_pointers" /></p>
+
+ <p>
+ <a href="$rel_path_to_root"><ste:get_translation for="setup_link_yourpage" /></a><br />
+ <a href="$rel_path_to_root/backend"><ste:get_translation for="setup_link_backend" /></a></a>
+ </p>
+</ste:block>
diff --git a/ratatoeskr/templates/src/systemtemplates/setup_master.html b/ratatoeskr/templates/src/systemtemplates/setup_master.html
new file mode 100644
index 0000000..484f600
--- /dev/null
+++ b/ratatoeskr/templates/src/systemtemplates/setup_master.html
@@ -0,0 +1,14 @@
+<!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>
+ <title>Ratatöskr Setup</title>
+ <link rel="stylesheet" type="text/css" media="screen" href="$rel_path_to_root/ratatoeskr/cms_style/setup.css" />
+</head>
+<head>
+ <h1><img src="$rel_path_to_root/ratatoeskr/cms_style/images/r7rlogo_dropshadow.png" alt="Ratatöskr" /></h1>
+
+ <div id="content">
+ <ste:block name="content" />
+ </div>
+</head>
+</html>
diff --git a/ratatoeskr/templates/src/systemtemplates/setup_select_lang.html b/ratatoeskr/templates/src/systemtemplates/setup_select_lang.html
new file mode 100644
index 0000000..6361df3
--- /dev/null
+++ b/ratatoeskr/templates/src/systemtemplates/setup_select_lang.html
@@ -0,0 +1,11 @@
+<ste:load name="setup_master.html" />
+<ste:block name="content">
+ <form action="$rel_path_to_root/setup.php" method="GET" accept-charset="UTF-8">
+ <select name="lang">
+ <ste:foreach array="translations" key="langcode" value="language">
+ <option value="$langcode"?{~{$langcode|eq|en}| selected="selected"|}><ste:escape>$langcode: $language</ste:escape></option>
+ </ste:foreach>
+ </select>
+ <input type="submit" />
+ </form>
+</ste:block>
diff --git a/ratatoeskr/templates/src/usertemplates/master.html b/ratatoeskr/templates/src/usertemplates/master.html
new file mode 100644
index 0000000..937247d
--- /dev/null
+++ b/ratatoeskr/templates/src/usertemplates/master.html
@@ -0,0 +1,43 @@
+<ste:load name="some_useful_tags" />
+<!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" />
+ <ste:title>Your Website</ste:title>
+ <ste:styles_load />
+</head>
+<body>
+ <div id="maincontainer">
+ <div id="heading">
+ <h1>Your Website</h1>
+ <span id="subheading">A slogan for your website.</span>
+ </div>
+ <ul id="mainmenu">
+ <ste:set var="current_section"><ste:current_section /></ste:set><!-- $current[section][name] -->
+ <ste:section_list var="section" include_default="y">
+ <ste:menu_elem section="$section[name]" current_section="$current_section"><ste:escape>$section[title]</ste:escape></ste:menu_elem>
+ </ste:section_list>
+ </ul>
+ <div id="contentwrapper">
+ <div id="metabar">
+ <ste:block name="additional_metabar_modules" />
+ <div class="metabar_module">
+ <h2><ste:get_translation for="language" /></h2>
+ <ul>
+ <ste:languages var="lang">
+ <li><a href="$lang[url]"><ste:escape>$lang[fullname]</ste:escape></a></li>
+ </ste:languages>
+ </ul>
+ </div>
+ </div>
+ <div id="content">
+ <ste:block name="content" />
+ </div>
+ </div>
+ <div id="footer">
+ &copy; Your Copyright informations
+ </div>
+ </div>
+</body>
+</html>
diff --git a/ratatoeskr/templates/src/usertemplates/some_useful_tags b/ratatoeskr/templates/src/usertemplates/some_useful_tags
new file mode 100644
index 0000000..091e969
--- /dev/null
+++ b/ratatoeskr/templates/src/usertemplates/some_useful_tags
@@ -0,0 +1,20 @@
+<ste:comment>
+<ste:current_section /> returns the current section name. If the current viewed site is a single article it will return the articles section name. If the section could not be determined, nothing will be returned.
+</ste:comment>
+<ste:mktag name="current_section">
+ <ste:if>
+ $current[section]
+ <ste:then>$current[section][name]</ste:then>
+ <ste:else>
+ <ste:if>
+ $current[article]
+ <ste:then>$current[article][section][name]</ste:then>
+ </ste:if>
+ </ste:else>
+ </ste:if>
+</ste:mktag>
+<ste:mktag name="menu_elem" mandatory="section|current_section">
+ <li?{~{$_tag_parameters[current_section]|eq|$_tag_parameters[section]}| class="active"|}>
+ <a href="$rel_path_to_root/$language/<ste:escape>$_tag_parameters[section]</ste:escape>"><ste:tagcontent /></a>
+ </li>
+</ste:mktag> \ No newline at end of file
diff --git a/ratatoeskr/templates/src/usertemplates/standard.html b/ratatoeskr/templates/src/usertemplates/standard.html
new file mode 100644
index 0000000..c4d1eb9
--- /dev/null
+++ b/ratatoeskr/templates/src/usertemplates/standard.html
@@ -0,0 +1,72 @@
+<ste:load name="master.html" />
+<ste:block name="content">
+ <ste:if>
+ $current[section]
+ <ste:then>
+ <ste:articles_get var="article" section="$current[section][name]" sort="timestamp desc" perpage="10" page="$current[page]" maxpage="maxpage">
+ <div class="article_short">
+ <h2>$article[title]</h2>
+ $article[excerpt]
+ <div class="readmore_link"><a href="<ste:escape>$article[fullurl]</ste:escape>"><ste:get_translation for="read_more" /></a></div>
+ </div class="article_short">
+ </ste:articles_get>
+ <ste:page_prev current="$current[page]" maxpage="$maxpage" default="y" />
+ <ste:page_next current="$current[page]" maxpage="$maxpage" default="y" />
+ </ste:then>
+ </ste:if>
+
+ <ste:if>
+ $current[article]
+ <ste:then>
+ <div class="fullarticle">
+ <h2>$current[article][title]</h2>
+ <div class="article_meta">Published: <ste:date timestamp="$current[article][timestamp]">%d. %h. %Y, %H:%M</ste:date></div>
+ $current[article][text]<!-- $current[article][comments_allowed] -->
+ <ste:if>
+ $current[article][comments_allowed]
+ <ste:then>
+ <h3>Comments (<ste:article_comments_count article="current[article]" />)</h3>
+ <ste:article_comments var="comment" article="current[article]" sort="asc">
+ <div class="comment">
+ <p><strong>Name</strong>: $comment[author]</p>
+ <p><strong>Date</strong>: <ste:date timestamp="$comment[timestamp]">%d. %B %Y, %H:%M</ste:date></p>
+ $comment[text]
+ </div>
+ </ste:article_comments>
+ ?{$current[commented]|Comment sucessfully stored!|}
+ ?{$current[comment_fail]|Comment could not be stored: $current[comment_fail]|}
+ <ste:if>$current[comment_prev]
+ <ste:then>
+ <h3>Comment preview</h3>
+ <div class="comment">$current[comment_prev]</div>
+ </ste:then>
+ </ste:if>
+ <ste:comment_form article="current[article]">
+ Name: <input type="text" name="author_name" value="$current[oldcomment][name]" /><br />
+ Mail: <input type="text" name="author_mail" value="$current[oldcomment][mail]" /><br />
+ Text (Markdown): <br />
+ <textarea name="comment_text" cols="50" rows="10">$current[oldcomment][text]</textarea><br />
+ <input type="submit" name="post_comment" value="Post" />
+ <input type="submit" name="preview_comment" value="Preview" />
+ </ste:comment_form>
+ </ste:then>
+ </ste:if>
+ </div>
+ </ste:then>
+ </ste:if>
+
+ <ste:if>
+ $current[tag]
+ <ste:then>
+ <ste:articles_get var="article" tag="$current[tag][name]" sort="timestamp desc" perpage="10" page="$current[page]" maxpage="maxpage">
+ <div class="article_short">
+ <h2><ste:escape>$article[title]</ste:escape></h2>
+ $article[excerpt]
+ <div class="readmore_link"><a href="<ste:escape>$article[fullurl]</ste:escape>"><ste:get_translation for="read_more" /></a></div>
+ </div class="article_short">
+ </ste:articles_get>
+ <ste:page_prev current="$current[page]" maxpage="$maxpage" default="y" />
+ <ste:page_next current="$current[page]" maxpage="$maxpage" default="y" />
+ </ste:then>
+ </ste:if>
+</ste:block>