diff options
| author | Starla Insigna <hatkirby@fourisland.com> | 2009-10-03 10:30:17 -0400 |
|---|---|---|
| committer | Starla Insigna <hatkirby@fourisland.com> | 2009-10-03 10:30:17 -0400 |
| commit | dc0fb9445e8a3ede8bc33d6779fadd89b7ea6893 (patch) | |
| tree | 511b0f752889172163f3801cdbe311f0efc55540 /theme/layouts/6.2/layout.tpl | |
| parent | 0e4089184a44719fbd1284acb047ab7547674412 (diff) | |
| download | fourisland-dc0fb9445e8a3ede8bc33d6779fadd89b7ea6893.tar.gz fourisland-dc0fb9445e8a3ede8bc33d6779fadd89b7ea6893.tar.bz2 fourisland-dc0fb9445e8a3ede8bc33d6779fadd89b7ea6893.zip | |
Created Theme Switcher
Also rewrote the way layouts work. Now, each layout requires a "layout.tpl" file (which contains the header and footer for the layout) and a "style.php"
file (which contains and can include other files that contain the CSS for the layout). Each layout has it's own folder in theme/layouts and you can switch
between them using a combo box in the Hatbar.
Layouts 6.2 and 4.5 have been modified to work with new Layout 7 features such as AJAX, and they should be relatively free of bugs. Layout 3 has not yet
been transferred because since it is pre-The New Four Island, it will be very difficult to do so.
This changeset requires manual external code changes:
* The line below must be added above the functions.php include in The Fourm's funnctions.php
require('/svr/www/hatkirby/fourisland/main/includes/session.php');
* The block of Four Island code in The Fourm's page_header() function should be replaced with:
global $fi_pagetitle;
$fi_pagetitle = $page_title;
ob_start();
* The block of Four Island code in The Fourm's page_footer() function should be replaced with:
global $fi_pagetitle;
$content = ob_get_contents();
ob_end_clean();
$noRightbar = 1;
$onFourm = 1;
$pageCategory = 'fourm';
if ($fi_pagetitle == 'Index page')
{
$title = 'The Fourm';
} else if (strpos($fi_pagetitle, 'View topic') !== FALSE)
{
$title = str_replace('View topic - ', 'Topic: ', $fi_pagetitle) . ' - The Fourm';
} else if (strpos($fi_pagetitle, 'View forum') !== FALSE)
{
$title = str_replace('View forum - ', 'Fourm: ', $fi_pagetitle) . ' - The Fourm';
} else if (strpos($fi_pagetitle, 'Viewing profile') !== FALSE)
{
$title = str_replace('Viewing profile - ', 'Member: ', $fi_pagetitle) . ' - The Fourm';
} else {
$title = $fi_pagetitle . ' - The Fourm';
}
if ($_GET['view'] != 'print')
{
include('/svr/www/hatkirby/fourisland/main/includes/layout.php');
} else {
echo $content;
}
Closes #117
Diffstat (limited to 'theme/layouts/6.2/layout.tpl')
| -rw-r--r-- | theme/layouts/6.2/layout.tpl | 334 |
1 files changed, 334 insertions, 0 deletions
| diff --git a/theme/layouts/6.2/layout.tpl b/theme/layouts/6.2/layout.tpl new file mode 100644 index 0000000..59535af --- /dev/null +++ b/theme/layouts/6.2/layout.tpl | |||
| @@ -0,0 +1,334 @@ | |||
| 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | ||
| 2 | |||
| 3 | <HTML> | ||
| 4 | <HEAD> | ||
| 5 | <TITLE><!--EXTRATITLE-->Four Island</TITLE> | ||
| 6 | |||
| 7 | <LINK REL="stylesheet" TYPE="text/css" HREF="http://fourisland.com/theme/css.php?id=<!--BODYID-->&cat=<!--CATEGORY-->"> | ||
| 8 | <!--[if IE]><LINK REL="stylesheet" TYPE="text/css" HREF="http://fourisland.com/theme/css/ie.css"><![endif]--> | ||
| 9 | <LINK REL="stylesheet" TYPE="text/css" HREF="http://fourisland.com/theme/css/print.css" MEDIA="print"> | ||
| 10 | <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8"> | ||
| 11 | <META HTTP-EQUIV="Content-Language" CONTENT="en"> | ||
| 12 | <LINK REL="alternate" TYPE="application/rss+xml" HREF="http://feeds.feedburner.com/FourIsland?format=xml" TITLE="Four Island"> | ||
| 13 | <LINK REL="shortcut" HREF="/images/kirbyfolder.ico"> | ||
| 14 | <LINK REL="icon" HREF="/images/kirbyfolder.ico"> | ||
| 15 | <LINK REL="pingback" HREF="http://fourisland.com/xmlrpc.php"> | ||
| 16 | <SCRIPT TYPE="text/javascript" SRC="/theme/js/jquery.js"></SCRIPT> | ||
| 17 | |||
| 18 | <!--HEADTAGS--> | ||
| 19 | </HEAD> | ||
| 20 | |||
| 21 | <BODY ID="<!--BODYID-->" CLASS="<!--CATEGORY--> <!--AID--> <!--CATEGORY-->-<!--AID-->"<!--BODYTAGS-->> | ||
| 22 | <div id="flash"><!--FLASH--></div> | ||
| 23 | |||
| 24 | <DIV ID="wrap"> | ||
| 25 | <DIV ID="page-header"> | ||
| 26 | <DIV ID="banner" STYLE="position: relative;"> | ||
| 27 | <H1 ID="logo-banner"> | ||
| 28 | <A HREF="/" TITLE="Four Island">Four Island</A> | ||
| 29 | </H1> | ||
| 30 | </DIV> | ||
| 31 | </DIV> | ||
| 32 | |||
| 33 | <DIV ID="fi-navbar"> | ||
| 34 | <DIV> | ||
| 35 | <UL> | ||
| 36 | <LI<!--HOMEACTIVE-->> | ||
| 37 | <A HREF="http://fourisland.com/"> | ||
| 38 | <IMG SRC="/theme/images/icons/newspaper.png" ALT="Blog"> | ||
| 39 | <SPAN>Blog</SPAN> | ||
| 40 | </A> | ||
| 41 | </LI> | ||
| 42 | |||
| 43 | <LI> | ||
| 44 | <A HREF="http://projects.fourisland.com/">Projects</A> | ||
| 45 | </LI> | ||
| 46 | |||
| 47 | <LI<!--FOURMACTIVE-->> | ||
| 48 | <A HREF="http://fourisland.com/fourm/"> | ||
| 49 | <IMG SRC="/theme/images/icons/comment.png" ALT="The Fourm"> | ||
| 50 | <SPAN>The Fourm</SPAN> | ||
| 51 | </A> | ||
| 52 | </LI> | ||
| 53 | |||
| 54 | <LI<!--POLLACTIVE-->> | ||
| 55 | <A HREF="http://fourisland.com/poll/"> | ||
| 56 | <IMG SRC="/theme/images/icons/overlays.png" ALT="Polls"> | ||
| 57 | <SPAN>Polls</SPAN> | ||
| 58 | </A> | ||
| 59 | </LI> | ||
| 60 | |||
| 61 | <LI<!--QUOTESACTIVE-->> | ||
| 62 | <A HREF="http://fourisland.com/quotes/"> | ||
| 63 | <IMG SRC="/theme/images/icons/16-file-page.png" ALT="Quotes"> | ||
| 64 | <SPAN>Quotes</SPAN> | ||
| 65 | </A> | ||
| 66 | </LI> | ||
| 67 | |||
| 68 | <!--BEGIN MEMBERS--> | ||
| 69 | <LI<!--LOGACTIVE-->> | ||
| 70 | <A HREF="http://fourisland.com/fourm/ucp.php?mode=log<!--LOGDATA-->&redirect=<!--REDIRPAGE-->&sid=<!--SID-->"> | ||
| 71 | <IMG SRC="/theme/images/icons/door_in.png" ALT="Log<!--LOGDATA-->"> | ||
| 72 | <SPAN>Log<!--LOGDATA--></SPAN> | ||
| 73 | </A> | ||
| 74 | </LI> | ||
| 75 | <!--END MEMBERS--> | ||
| 76 | |||
| 77 | <!--BEGIN ADMIN--> | ||
| 78 | <LI<!--PANELACTIVE-->> | ||
| 79 | <A HREF="http://fourisland.com/admin/"> | ||
| 80 | <IMG SRC="/theme/images/icons/rainbow.png" ALT="Admin"> | ||
| 81 | <SPAN>Admin</SPAN> | ||
| 82 | </A> | ||
| 83 | </LI> | ||
| 84 | <!--END ADMIN--> | ||
| 85 | </UL> | ||
| 86 | </DIV> | ||
| 87 | </DIV> | ||
| 88 | |||
| 89 | <DIV id="page-body"> | ||
| 90 | <!--BEGIN RIGHTBAR--> | ||
| 91 | <DIV ID="rightbar"> | ||
| 92 | <DIV CLASS="rounded module pimped sidebar"> | ||
| 93 | Hi! My name is Hatkirby, and I run Four Island. | ||
| 94 | |||
| 95 | <P> | ||
| 96 | Four Island is a fun place with a blog, | ||
| 97 | a fourm, a wiki, many projects and a quotes database!<BR> | ||
| 98 | |||
| 99 | I hope you enjoy your time on Four Island! | ||
| 100 | </P> | ||
| 101 | </DIV> | ||
| 102 | |||
| 103 | <CITE CLASS="rounded light-at-night"><STRONG>Hatkirby</STRONG> on Four Island</CITE> | ||
| 104 | |||
| 105 | <P /> | ||
| 106 | |||
| 107 | <!--BEGIN CREATE_HATNAV--> | ||
| 108 | <div class="rounded module sidebar"> | ||
| 109 | <h3>Hatnav</h3> | ||
| 110 | |||
| 111 | <ul> | ||
| 112 | <!--END CREATE_HATNAV--> | ||
| 113 | |||
| 114 | <!--BEGIN HATNAV--> | ||
| 115 | <LI STYLE="margin-left: 10"><A HREF="<!--HATNAV.URL-->"><IMG SRC="/theme/images/icons/<!--HATNAV.ICON-->.png" ALT="<!--HATNAV.TITLE-->"><!--HATNAV.TITLE--></A></LI> | ||
| 116 | <!--END HATNAV--> | ||
| 117 | |||
| 118 | <!--BEGIN CREATE_HATNAV--> | ||
| 119 | </ul> | ||
| 120 | </div> | ||
| 121 | |||
| 122 | <P /> | ||
| 123 | <!--END CREATE_HATNAV--> | ||
| 124 | |||
| 125 | <div class="module rounded sidebar"> | ||
| 126 | <h3>Poll of the Week</h3> | ||
| 127 | |||
| 128 | <!--POTW--> | ||
| 129 | </div> | ||
| 130 | |||
| 131 | <P /> | ||
| 132 | |||
| 133 | <DIV class="sidebar module rounded"> | ||
| 134 | <H3>Hatbar</H3><P> | ||
| 135 | |||
| 136 | <P> | ||
| 137 | <SPAN ID="hitcounter"> | ||
| 138 | Hits: <!--HITS--><BR> | ||
| 139 | Today: <!--TODAY--> | ||
| 140 | </SPAN> | ||
| 141 | </P> | ||
| 142 | |||
| 143 | <p><!--DATEFINDER--></p> | ||
| 144 | |||
| 145 | <P ALIGN="center"> | ||
| 146 | <A HREF="/addresses.php" TITLE="goodemail@happybobby.com"><IMG SRC="/images/btn_bot.png" ALT="Addresses galore!"></A><BR> | ||
| 147 | |||
| 148 | <a href="http://www.prchecker.info/" target="_blank"><img src="http://pr.prchecker.info/getpr.php?codex=aHR0cDovL2ZvdXJpc2xhbmQuY29t&tag=3" alt="Page Rank Check" border="0"></a> | ||
| 149 | |||
| 150 | <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/us/"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-nc-sa/3.0/us/80x15.png"></a><BR> | ||
| 151 | |||
| 152 | <a href="http://whos.amung.us/show/t1sj4g2u"><img src="http://whos.amung.us/swidget/t1sj4g2u.gif" alt="website stats" width="80" height="15" border="0"></a> | ||
| 153 | |||
| 154 | <a href="http://feeds2.feedburner.com/FourIsland"><img src="http://feeds2.feedburner.com/~fc/FourIsland?bg=99CCFF&fg=444444&anim=0" height="26" width="88" style="border:0" alt=""></a><BR> | ||
| 155 | |||
| 156 | <A HREF="/rss.php?mode=comments">Comments Feed</A> | ||
| 157 | </P> | ||
| 158 | |||
| 159 | <p> | ||
| 160 | <strong>Theme Switcher</strong>: | ||
| 161 | <select style="width: 55%" onchange="document.location='<!--ME-->?layout='+this.options[this.selectedIndex].value"> | ||
| 162 | <option value="7">7</option> | ||
| 163 | <option value="6.2" selected="selected">6.2</option> | ||
| 164 | <option value="4.5">4.5</option> | ||
| 165 | </select> | ||
| 166 | </p> | ||
| 167 | </DIV> | ||
| 168 | |||
| 169 | <P /> | ||
| 170 | |||
| 171 | <DIV class="sidebar module rounded"> | ||
| 172 | <H3>Affiliates</H3> | ||
| 173 | |||
| 174 | <ul> | ||
| 175 | <!--BEGIN AFFILIATES--> | ||
| 176 | <li> | ||
| 177 | <img src="/theme/images/icons/tag_<!--AFFILIATES.COLOR-->.png" alt="<!--AFFILIATES.TITLE-->" /> | ||
| 178 | <a href="<!--AFFILIATES.URL-->"><!--AFFILIATES.TITLE--></a> | ||
| 179 | </li> | ||
| 180 | <!--END AFFILIATES--> | ||
| 181 | </ul> | ||
| 182 | </DIV> | ||
| 183 | |||
| 184 | <P /> | ||
| 185 | |||
| 186 | <DIV class="sidebar module rounded"> | ||
| 187 | <H3>Website Projects</H3> | ||
| 188 | |||
| 189 | <ul> | ||
| 190 | <!--BEGIN WEBPROJS--> | ||
| 191 | <li> | ||
| 192 | <img src="/theme/images/icons/tag_<!--WEBPROJS.COLOR-->.png" alt="<!--WEBPROJS.TITLE-->" /> | ||
| 193 | <a href="<!--WEBPROJS.URL-->"><!--WEBPROJS.TITLE--></a> | ||
| 194 | </li> | ||
| 195 | <!--END WEBPROJS--> | ||
| 196 | </ul> | ||
| 197 | </DIV> | ||
| 198 | |||
| 199 | <P /> | ||
| 200 | |||
| 201 | <DIV class="sidebar module rounded"> | ||
| 202 | <H3>Popular Posts</H3> | ||
| 203 | |||
| 204 | <UL> | ||
| 205 | <!--BEGIN POPULAR--> | ||
| 206 | <LI STYLE="font-size: 0.9em"><A HREF="/blog/<!--POPULAR.CODED-->/"><!--POPULAR.TITLE--></A></LI> | ||
| 207 | <!--END POPULAR--> | ||
| 208 | </UL> | ||
| 209 | </DIV> | ||
| 210 | |||
| 211 | <P /> | ||
| 212 | <DIV class="sidebar module rounded"> | ||
| 213 | <H3>Tag Cloud</H3> | ||
| 214 | |||
| 215 | <P> | ||
| 216 | <!--BEGIN TAGCLOUD--> | ||
| 217 | <A HREF="/blog/tag/<!--TAGCLOUD.TAG-->.php" STYLE="font-size: <!--TAGCLOUD.SIZE-->pt" TITLE="<!--TAGCLOUD.TAG--> (<!--TAGCLOUD.COUNT-->)"><!--TAGCLOUD.TAG--></A> | ||
| 218 | <!--END TAGCLOUD--> | ||
| 219 | </P> | ||
| 220 | </DIV> | ||
| 221 | |||
| 222 | <P /> | ||
| 223 | |||
| 224 | <DIV class="sidebar module rounded"> | ||
| 225 | <H3>Recent Comments</H3> | ||
| 226 | |||
| 227 | <UL> | ||
| 228 | <!--BEGIN COMMENTS--> | ||
| 229 | <LI STYLE="font-size: 0.9em"><!--COMMENTS.AUTHOR--> on <A HREF="/<!--COMMENTS.AREA-->/<!--COMMENTS.CODED--><!--COMMENTS.ENDING-->#comment-<!--COMMENTS.ID-->"><!--COMMENTS.TITLE--></A></LI> | ||
| 230 | <!--END COMMENTS--> | ||
| 231 | </UL> | ||
| 232 | </DIV> | ||
| 233 | |||
| 234 | <P /> | ||
| 235 | |||
| 236 | <DIV class="sidebar module rounded"> | ||
| 237 | <H3>Recent Fourm Posts</H3> | ||
| 238 | |||
| 239 | <UL> | ||
| 240 | <!--BEGIN FOURM--> | ||
| 241 | <LI STYLE="font-size: 0.9em"><!--FOURM.USERNAME--> on <A HREF="/fourm/viewtopic.php?t=<!--FOURM.TOPIC-->&p=<!--FOURM.POST-->#p<!--FOURM.POST-->"><!--FOURM.SUBJECT--></A></LI> | ||
| 242 | <!--END FOURM--> | ||
| 243 | </UL> | ||
| 244 | </DIV> | ||
| 245 | |||
| 246 | <P /> | ||
| 247 | |||
| 248 | <DIV class="sidebar module rounded"> | ||
| 249 | <H3>Top Commenters</H3> | ||
| 250 | |||
| 251 | <UL> | ||
| 252 | <!--BEGIN TOP--> | ||
| 253 | <LI STYLE="font-size: 0.9em"><!--TOP.USERNAME--> (<!--TOP.COUNT-->)</LI> | ||
| 254 | <!--END TOP--> | ||
| 255 | </UL> | ||
| 256 | </DIV> | ||
| 257 | |||
| 258 | <P /> | ||
| 259 | |||
| 260 | <DIV CLASS="sidebar module rounded pimped"> | ||
| 261 | Like something you see here on Four Island? | ||
| 262 | |||
| 263 | <P> | ||
| 264 | Well, the best way to promote a post here is to link to it from your blog. | ||
| 265 | We always appreciate Pingbacks.<BR> | ||
| 266 | |||
| 267 | Of course, if you don't have a blog, | ||
| 268 | you could simply comment on the post in question.<BR> | ||
| 269 | |||
| 270 | Can't be bothered to think up a comment? Well, you can always rate it then.<BR> | ||
| 271 | |||
| 272 | There's always a way to show how you feel about a post on Four Island. | ||
| 273 | </P> | ||
| 274 | </DIV> | ||
| 275 | |||
| 276 | <CITE CLASS="rounded light-at-night"><STRONG>Hatkirby</STRONG> on Four Island</CITE> | ||
| 277 | |||
| 278 | <!--BEGIN SIDEBARS--> | ||
| 279 | <DIV class="sidebar"> | ||
| 280 | <DIV CLASS="bubble"> | ||
| 281 | <DIV CLASS="rounded"> | ||
| 282 | <BLOCKQUOTE> | ||
| 283 | <H3><!--SIDEBARS.TITLE--></H3> | ||
| 284 | |||
| 285 | <P> | ||
| 286 | <!--SIDEBARS.TEXT--> | ||
| 287 | </P> | ||
| 288 | </BLOCKQUOTE> | ||
| 289 | </DIV> | ||
| 290 | </DIV> | ||
| 291 | </DIV> | ||
| 292 | <!--END SIDEBARS--> | ||
| 293 | </DIV> | ||
| 294 | <!--END RIGHTBAR--> | ||
| 295 | |||
| 296 | <DIV id="content"> | ||
| 297 | <!--CONTENT--> | ||
| 298 | </DIV> | ||
| 299 | |||
| 300 | <DIV CLASS="cleardiv"></DIV> | ||
| 301 | |||
| 302 | <!--BEGIN ONFOURM--> | ||
| 303 | <DIV> | ||
| 304 | <!--END ONFOURM--> | ||
| 305 | </DIV> | ||
| 306 | |||
| 307 | <DIV ID="footer"> | ||
| 308 | <UL CLASS="rows"> | ||
| 309 | <LI>Four Island (<a href="http://code.fourisland.com/fourisland/">r<!--REVISION--></a>) is by <a href="http://fourisland.com">Starla Insigna</a></LI> | ||
| 310 | <LI>Licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/us/">Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License</a>.</LI> | ||
| 311 | <LI><A HREF="/wiki/privacy-policy/">Privacy Policy</A></LI> | ||
| 312 | </UL> | ||
| 313 | |||
| 314 | <UL CLASS="together"> | ||
| 315 | <LI><A HREF="http://jigsaw.w3.org/css-validator/"><IMG SRC="/theme/images/icons/css_valid.png" ALT="Valid CSS"></A></LI> | ||
| 316 | <LI><A HREF="/blog/sortof-valid-html-no-lt-doctype-gt/"><IMG SRC="/theme/images/icons/html_valid.png" ALT="Sortof Valid HTML"></A></LI> | ||
| 317 | <LI><A class="noVisit" HREF="/rss.php"><IMG SRC="/theme/images/icons/feed.png" ALT="RSS Feed"></A></LI> | ||
| 318 | </UL> | ||
| 319 | </DIV> | ||
| 320 | </DIV> | ||
| 321 | |||
| 322 | <!--Google Analytics--> | ||
| 323 | <script type="text/javascript"> | ||
| 324 | var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); | ||
| 325 | document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); | ||
| 326 | </script> | ||
| 327 | <script type="text/javascript"> | ||
| 328 | var pageTracker = _gat._getTracker("UA-2895652-1"); | ||
| 329 | pageTracker._initData(); | ||
| 330 | pageTracker._trackPageview(); | ||
| 331 | </script> | ||
| 332 | <!--Google Analytics--> | ||
| 333 | </BODY> | ||
| 334 | </HTML> | ||
