Super duper modifications

updated template system
updated XML template
updated HTML template
masturbated
This commit is contained in:
briandilley
2004-11-04 19:27:04 +00:00
parent 1410c9d0e8
commit 516c5fcb2b
37 changed files with 110 additions and 33 deletions

0
templates/default/after-list Executable file
View File

0
templates/default/before-list Executable file
View File

View File

@ -0,0 +1,2 @@
Content-Type: text/html

16
templates/default/kwote-even Executable file
View File

@ -0,0 +1,16 @@
<div class="kwote-even">
<span class="kwote-id"><a href="?action=show&amp;id=${KWOTE_ID}">#${KWOTE_ID}</a></span>
<span class="vote-controls">
<a href="?action=hate&amp;kid=${KWOTE_ID}"
onclick="vote(${KWOTE_ID},'hate'); return false;"
id="hate${KWOTE_ID}">-</a>
<span id="rating${KWOTE_ID}">${KWOTE_RATING}</span>
<a href="?action=love&amp;kid=${KWOTE_ID}"
onclick="vote(${KWOTE_ID},'love'); return false"
id="love${KWOTE_ID}">+</a>
</span>
<div class="kwote-content">
${KWOTE_TEXT_HTML}
</div>
</div>

View File

@ -1,4 +1,4 @@
<div class="kwote">
<div class="kwote-odd">
<span class="kwote-id"><a href="?action=show&amp;id=${KWOTE_ID}">#${KWOTE_ID}</a></span>
<span class="vote-controls">
<a href="?action=hate&amp;kid=${KWOTE_ID}"

View File

@ -62,12 +62,19 @@ a img
}
/* Kwotes */
.kwote
.kwote-odd
{
position: relative;
margin-bottom: 10px;
}
.kwote-even
{
position: relative;
margin-bottom: 10px;
background-color: #e9e9e9;
}
.kwote-id
{
float: left;

5
templates/xml/add-kwote Executable file
View File

@ -0,0 +1,5 @@
<message>
There isn't an add kwote page for the xml
template because it is intended to be used
by non human processes
</message>

2
templates/xml/add-kwote-thanks Executable file
View File

@ -0,0 +1,2 @@
<kwote-added id="${KWOTE_ID}" />

2
templates/xml/after-list Executable file
View File

@ -0,0 +1,2 @@
</kwotes>

2
templates/xml/before-list Executable file
View File

@ -0,0 +1,2 @@
<kwotes>

View File

@ -1 +0,0 @@
<kwote-added id="${KWOTE_ID" />

View File

@ -1,3 +0,0 @@
<error>${ERROR_MESSAGE}</error>

View File

@ -1,3 +0,0 @@
<kwote id="${KWOTE_ID}" rating="${KWOTE_RATING}">
${KWOTE_TEXT_XML}
</kwote>

4
templates/xml/default-content Executable file
View File

@ -0,0 +1,4 @@
<message>
The XML template doesn't have a default content
</message>

4
templates/xml/error Executable file
View File

@ -0,0 +1,4 @@
<message>
${ERROR_MESSAGE}
</message>

View File

@ -1,5 +1,3 @@
</kwotes.org>

View File

@ -2,8 +2,9 @@
<site>
<name>${SITE_NAME}</name>
<tag-line>${TAG_LINE}</tag-line>
<tagline>${TAG_LINE}</tagline>
<kwote-count>${KWOTE_COUNT}</kwote-count>
<deleted-kwote-count>${KWOTE_BACKUP_COUNT}</deleted-kwote-count>
</site>

2
templates/xml/http-headers Executable file
View File

@ -0,0 +1,2 @@
Content-type: text/xml

2
templates/xml/kwote-even Executable file
View File

@ -0,0 +1,2 @@
<kwote id="${KWOTE_ID}"><![CDATA[${KWOTE_TEXT_XML}]]></kwote>

1
templates/xml/kwote-odd Executable file
View File

@ -0,0 +1 @@
<kwote id="${KWOTE_ID}"><![CDATA[${KWOTE_TEXT_XML}]]></kwote>

0
templates/xml/navigation Executable file
View File

View File

View File

4
templates/xml/search Executable file
View File

@ -0,0 +1,4 @@
<message>
There is no search form for the xml template
</message>