1 # BiaWeb Website content manager (c) 2010 V.Harishankar
4 template_main
= """<?xml version="1.0" encoding="UTF-8"?>
5 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
6 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
8 <title>${site_title}</title>
9 <base href="${site_url}" />
10 <meta name="generator" content="BiaWeb"/>
11 <meta name="keywords" content="${meta_keywords}"/>
12 <meta name="description" content="${meta_description}"/>
13 <link rel="StyleSheet" type="text/css" href="style.css" />
14 <link rel="alternate" type="application/rss+xml" title="Entries RSS 2.0" href="subscribe.xml" />
18 <h1><a href="${site_url}">${page_title}</a></h1>
19 <div class="headerdesc">${page_desc}</div>
30 <a href="subscribe.xml">Latest articles (RSS)</a>
32 <form action="cgi-bin/search.py" method="post" enctype="multipart/form-data">
33 <p><input type="text" name="query" maxlength="255" style="width:142px;border: 1px inset #5A5A5A; color:#5A5A5A; background-color:#FFFFFF;" value="" /><br />
34 <input type="submit" value="Search" /><br />
35 <input type="hidden" name="fromsearch" value="fromsearch" />
36 <input type="radio" name="criteria" value="1" checked="checked" />All words<br />
37 <input type="radio" name="criteria" value="2" />Any word</p>
40 <div id="footer">${copyright}<br />Site generated by
41 <a href=\"http://harishankar.org/software/biaweb.php\">BiaWeb</a> created by V. Harishankar</div>
45 template_article_bit
= """<h2>${article_title}</h2>
46 <div class="modified">Created: ${article_cdate} | Last modified: ${article_mdate}</div>
47 <div class="rating">Rating: ${rating}</div>
48 <div class="content">${article_contents}</div>
51 template_news_item_bit
= """<h3><a href="${news_link}">${news_title}</a></h3>
52 <div class="modified">${news_datetime}</div>
53 <div class="content">${news_description}</div>
56 template_index_bit
= """<h2>Welcome to ${site_name}</h2>
58 Welcome to my site, ${site_name}.
60 <h2>Latest Articles</h2>
64 template_table_bit
= """<h2>${category_title}</h2>
65 <p>${category_desc}</p>
66 <table class="categorytable">
69 <td style="width:50%">Title</td>
80 template_tablerow_bit
= """<tr>
81 <td style="width:50%"><a href="${article_url}">${title}</a></td>
87 template_style
= """body {
88 font-family: "Bitstream Vera Sans", Verdana, Arial, Sans Serif;
90 background-color: #ffffff;
96 background-color: #efefef;
120 background-color: #efefef;
124 font-variant: small-caps;
137 .categorytable thead {
152 font-family: "Bitstream Vera Serif", Serif;
161 border-bottom: 1px solid;
162 border-color: #888888;
170 h1 a, h1 a:hover, h1 a:visited, h2 a:active {
171 text-decoration: none;
175 background-color: #efefef;
177 h2 a, h2 a:hover, h2 a:visited, h2 a:active {
178 text-decoration: none;