diff options
author | Starla Insigna <hatkirby@fourisland.com> | 2008-12-07 16:45:24 -0500 |
---|---|---|
committer | Starla Insigna <hatkirby@fourisland.com> | 2008-12-07 16:45:24 -0500 |
commit | a930e827048acf17d04a6af06c1616a72dee714a (patch) | |
tree | da626bd9bdee9c21210ab8f48fca8f686785a022 /theme | |
parent | 62d716cb332877662b3c6abf2206efb755a93a7f (diff) | |
download | fourisland-a930e827048acf17d04a6af06c1616a72dee714a.tar.gz fourisland-a930e827048acf17d04a6af06c1616a72dee714a.tar.bz2 fourisland-a930e827048acf17d04a6af06c1616a72dee714a.zip |
Added support for a variable amount of tags
Previously, the blogging engine only allowed for three tags per post, and it also stored each in seperate fields. Now, all tags are stored in one field and there can be more than three. The only functionality that has been removed because of this is that now, on archive pages, tags are not shown next to the current month's posts as they used to be, because the Four Island templating system does not yet support sub-blocks of sub-blocks.
Diffstat (limited to 'theme')
-rwxr-xr-x | theme/admin/editDraft.tpl | 4 | ||||
-rwxr-xr-x | theme/admin/editPending.tpl | 4 | ||||
-rwxr-xr-x | theme/admin/editPost.tpl | 4 | ||||
-rwxr-xr-x | theme/admin/write.tpl | 4 | ||||
-rwxr-xr-x | theme/archive.tpl | 6 | ||||
-rwxr-xr-x | theme/post.tpl | 14 |
6 files changed, 11 insertions, 25 deletions
diff --git a/theme/admin/editDraft.tpl b/theme/admin/editDraft.tpl index b3197c4..29c1fea 100755 --- a/theme/admin/editDraft.tpl +++ b/theme/admin/editDraft.tpl | |||
@@ -3,9 +3,7 @@ | |||
3 | <FORM ACTION="/admin/editDraft.php?id=<!--ID-->&submit=" METHOD="POST"> | 3 | <FORM ACTION="/admin/editDraft.php?id=<!--ID-->&submit=" METHOD="POST"> |
4 | Draft Title: <INPUT TYPE="text" NAME="title" VALUE="<!--TITLE-->"><BR> | 4 | Draft Title: <INPUT TYPE="text" NAME="title" VALUE="<!--TITLE-->"><BR> |
5 | <TEXTAREA NAME="text" COLS="80" ROWS="20"><!--TEXT--></TEXTAREA><P> | 5 | <TEXTAREA NAME="text" COLS="80" ROWS="20"><!--TEXT--></TEXTAREA><P> |
6 | Tag 1: <INPUT TYPE="text" NAME="tag1" VALUE="<!--TAG1-->"><BR> | 6 | Tags (comma-seperated): <INPUT TYPE="text" NAME="tags" VALUE="<!--TAGS-->"><BR> |
7 | Tag 2: <INPUT TYPE="text" NAME="tag2" VALUE="<!--TAG2-->"> (Optional)<BR> | ||
8 | Tag 3: <INPUT TYPE="text" NAME="tag3" VALUE="<!--TAG3-->"> (Optional)<BR> | ||
9 | Post Type: <SELECT NAME="type" SIZE="4"> | 7 | Post Type: <SELECT NAME="type" SIZE="4"> |
10 | <OPTION VALUE="draft" SELECTED>Draft</OPTION> | 8 | <OPTION VALUE="draft" SELECTED>Draft</OPTION> |
11 | <OPTION VALUE="normal">Normal (Article-style) Post</OPTION> | 9 | <OPTION VALUE="normal">Normal (Article-style) Post</OPTION> |
diff --git a/theme/admin/editPending.tpl b/theme/admin/editPending.tpl index ccded76..355e156 100755 --- a/theme/admin/editPending.tpl +++ b/theme/admin/editPending.tpl | |||
@@ -3,8 +3,6 @@ | |||
3 | <FORM ACTION="/admin/editPending.php?id=<!--ID-->&submit=" METHOD="POST"> | 3 | <FORM ACTION="/admin/editPending.php?id=<!--ID-->&submit=" METHOD="POST"> |
4 | Post Title: <INPUT TYPE="text" NAME="title" VALUE="<!--TITLE-->"><BR> | 4 | Post Title: <INPUT TYPE="text" NAME="title" VALUE="<!--TITLE-->"><BR> |
5 | <TEXTAREA NAME="text" COLS="80" ROWS="20"><!--TEXT--></TEXTAREA><P> | 5 | <TEXTAREA NAME="text" COLS="80" ROWS="20"><!--TEXT--></TEXTAREA><P> |
6 | Tag 1: <INPUT TYPE="text" NAME="tag1" VALUE="<!--TAG1-->"><BR> | 6 | Tags (comma-seperated): <INPUT TYPE="text" NAME="tags" VALUE="<!--TAGS-->"><BR> |
7 | Tag 2: <INPUT TYPE="text" NAME="tag2" VALUE="<!--TAG2-->"> (Optional)<BR> | ||
8 | Tag 3: <INPUT TYPE="text" NAME="tag3" VALUE="<!--TAG3-->"> (Optional)<BR> | ||
9 | <INPUT TYPE="submit" VALUE="Edit post"> | 7 | <INPUT TYPE="submit" VALUE="Edit post"> |
10 | </FORM> | 8 | </FORM> |
diff --git a/theme/admin/editPost.tpl b/theme/admin/editPost.tpl index 544fe5f..f7e44e3 100755 --- a/theme/admin/editPost.tpl +++ b/theme/admin/editPost.tpl | |||
@@ -3,8 +3,6 @@ | |||
3 | <FORM ACTION="/admin/editPost.php?id=<!--ID-->&submit=" METHOD="POST"> | 3 | <FORM ACTION="/admin/editPost.php?id=<!--ID-->&submit=" METHOD="POST"> |
4 | Post Title: <INPUT TYPE="text" NAME="title" VALUE="<!--TITLE-->"><BR> | 4 | Post Title: <INPUT TYPE="text" NAME="title" VALUE="<!--TITLE-->"><BR> |
5 | <TEXTAREA NAME="text" COLS="80" ROWS="20"><!--TEXT--></TEXTAREA><P> | 5 | <TEXTAREA NAME="text" COLS="80" ROWS="20"><!--TEXT--></TEXTAREA><P> |
6 | Tag 1: <INPUT TYPE="text" NAME="tag1" VALUE="<!--TAG1-->"><BR> | 6 | Tags (comma-seperated): <INPUT TYPE="text" NAME="tags" VALUE="<!--TAGS-->"><BR> |
7 | Tag 2: <INPUT TYPE="text" NAME="tag2" VALUE="<!--TAG2-->"> (Optional)<BR> | ||
8 | Tag 3: <INPUT TYPE="text" NAME="tag3" VALUE="<!--TAG3-->"> (Optional)<BR> | ||
9 | <INPUT TYPE="submit" VALUE="Edit post"> | 7 | <INPUT TYPE="submit" VALUE="Edit post"> |
10 | </FORM> | 8 | </FORM> |
diff --git a/theme/admin/write.tpl b/theme/admin/write.tpl index 30e870c..0d8fb24 100755 --- a/theme/admin/write.tpl +++ b/theme/admin/write.tpl | |||
@@ -3,9 +3,7 @@ | |||
3 | <FORM ACTION="/admin/writePost.php?submit=" METHOD="POST"> | 3 | <FORM ACTION="/admin/writePost.php?submit=" METHOD="POST"> |
4 | Post Title: <INPUT TYPE="text" NAME="title"><BR> | 4 | Post Title: <INPUT TYPE="text" NAME="title"><BR> |
5 | <TEXTAREA NAME="text" COLS="80" ROWS="20"></TEXTAREA><P> | 5 | <TEXTAREA NAME="text" COLS="80" ROWS="20"></TEXTAREA><P> |
6 | Tag 1: <INPUT TYPE="text" NAME="tag1" VALUE="update"><BR> | 6 | Tags (comma-seperated): <INPUT TYPE="text" NAME="tags" VALUE="update"><BR> |
7 | Tag 2: <INPUT TYPE="text" NAME="tag2"> (Optional)<BR> | ||
8 | Tag 3: <INPUT TYPE="text" NAME="tag3"> (Optional)<BR> | ||
9 | Post Type: <SELECT NAME="type" SIZE="4"> | 7 | Post Type: <SELECT NAME="type" SIZE="4"> |
10 | <OPTION VALUE="draft">Draft</OPTION> | 8 | <OPTION VALUE="draft">Draft</OPTION> |
11 | <OPTION VALUE="normal" SELECTED>Normal (Article-style) Post</OPTION> | 9 | <OPTION VALUE="normal" SELECTED>Normal (Article-style) Post</OPTION> |
diff --git a/theme/archive.tpl b/theme/archive.tpl index 7d85565..b06aad9 100755 --- a/theme/archive.tpl +++ b/theme/archive.tpl | |||
@@ -20,12 +20,6 @@ | |||
20 | <A HREF="/blog/author/<!--MONTH.BIG.AUTHOR-->.php"><!--MONTH.BIG.AUTHOR--></A> | 20 | <A HREF="/blog/author/<!--MONTH.BIG.AUTHOR-->.php"><!--MONTH.BIG.AUTHOR--></A> |
21 | </SPAN> | 21 | </SPAN> |
22 | 22 | ||
23 | <SPAN CLASS="post-tag-3 category"> | ||
24 | <A CLASS="noVisit" HREF="/blog/tag/<!--MONTH.BIG.TAG1-->.php" REL="tag" TITLE="<!--MONTH.BIG.TAG1-->"><!--MONTH.BIG.TAG1--></A> | ||
25 | <A CLASS="noVisit" HREF="/blog/tag/<!--MONTH.BIG.TAG2-->.php" REL="tag" TITLE="<!--MONTH.BIG.TAG2-->"><!--MONTH.BIG.TAG2--></A> | ||
26 | <A CLASS="noVisit" HREF="/blog/tag/<!--MONTH.BIG.TAG3-->.php" REL="tag" TITLE="<!--MONTH.BIG.TAG3-->"><!--MONTH.BIG.TAG3--></A> | ||
27 | </SPAN> | ||
28 | |||
29 | <SPAN CLASS="post-comment<!--MONTH.BIG.PLURALCOMMENT-->"> | 23 | <SPAN CLASS="post-comment<!--MONTH.BIG.PLURALCOMMENT-->"> |
30 | <A CLASS="noVisit" HREF="/blog/<!--MONTH.BIG.CODED-->/#comments"><!--MONTH.BIG.COMMENTS--> »</A> | 24 | <A CLASS="noVisit" HREF="/blog/<!--MONTH.BIG.CODED-->/#comments"><!--MONTH.BIG.COMMENTS--> »</A> |
31 | </SPAN> | 25 | </SPAN> |
diff --git a/theme/post.tpl b/theme/post.tpl index 91bf4e9..3314d4e 100755 --- a/theme/post.tpl +++ b/theme/post.tpl | |||
@@ -6,16 +6,16 @@ | |||
6 | <!--BEGIN POST--> | 6 | <!--BEGIN POST--> |
7 | <DIV CLASS="post vevent" ID="post-<!--POST.ID-->"> | 7 | <DIV CLASS="post vevent" ID="post-<!--POST.ID-->"> |
8 | <DIV CLASS="post-date-<!--POST.YEARID-->"> | 8 | <DIV CLASS="post-date-<!--POST.YEARID-->"> |
9 | <ABBR CLASS="dtstart" TITLE="<!--POST.DATE-->"> | 9 | <ABBR CLASS="dtstart" TITLE="<!--POST.DATE-->"> |
10 | <SPAN CLASS="post-month"><!--POST.MONTH--></SPAN> | 10 | <SPAN CLASS="post-month"><!--POST.MONTH--></SPAN> |
11 | <SPAN CLASS="post-day"><!--POST.DAY--></SPAN> | 11 | <SPAN CLASS="post-day"><!--POST.DAY--></SPAN> |
12 | </ABBR> | 12 | </ABBR> |
13 | </DIV> | 13 | </DIV> |
14 | 14 | ||
15 | <DIV CLASS="post-title"> | 15 | <DIV CLASS="post-title"> |
16 | <H2> | 16 | <H2> |
17 | <!--BEGIN EXTERNAL--><A CLASS="url" HREF="/blog/<!--POST.CODED-->/" REL="bookmark" TITLE="Permalink for <!--POST.TITLE-->"><!--END EXTERNAL--> | 17 | <!--BEGIN EXTERNAL--><A CLASS="url" HREF="/blog/<!--POST.CODED-->/" REL="bookmark" TITLE="Permalink for <!--POST.TITLE-->"><!--END EXTERNAL--> |
18 | <SPAN CLASS="summary"><!--POST.TITLE--></SPAN> | 18 | <SPAN CLASS="summary"><!--POST.TITLE--></SPAN> |
19 | <!--BEGIN EXTERNAL--></A><!--END EXTERNAL--> | 19 | <!--BEGIN EXTERNAL--></A><!--END EXTERNAL--> |
20 | </H2> | 20 | </H2> |
21 | 21 | ||
@@ -24,9 +24,9 @@ | |||
24 | </SPAN> | 24 | </SPAN> |
25 | 25 | ||
26 | <SPAN CLASS="post-tag-3 category"> | 26 | <SPAN CLASS="post-tag-3 category"> |
27 | <A CLASS="noVisit" HREF="/blog/tag/<!--POST.TAG1-->.php" REL="tag" TITLE="<!--POST.TAG1-->"><!--POST.TAG1--></A> | 27 | <!--BEGIN POST.TAGS--> |
28 | <A CLASS="noVisit" HREF="/blog/tag/<!--POST.TAG2-->.php" REL="tag" TITLE="<!--POST.TAG2-->"><!--POST.TAG2--></A> | 28 | <A CLASS="noVisit" HREF="/blog/tag/<!--POST.TAGS.TAG-->.php" REL="tag" TITLE="<!--POST.TAGS.TAG-->"><!--POST.TAGS.TAG--></A> |
29 | <A CLASS="noVisit" HREF="/blog/tag/<!--POST.TAG3-->.php" REL="tag" TITLE="<!--POST.TAG3-->"><!--POST.TAG3--></A> | 29 | <!--END POST.TAGS--> |
30 | </SPAN> | 30 | </SPAN> |
31 | 31 | ||
32 | <!--BEGIN EXTERNAL--> | 32 | <!--BEGIN EXTERNAL--> |