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/4.5/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/4.5/layout.tpl')
| -rw-r--r-- | theme/layouts/4.5/layout.tpl | 272 |
1 files changed, 272 insertions, 0 deletions
| diff --git a/theme/layouts/4.5/layout.tpl b/theme/layouts/4.5/layout.tpl new file mode 100644 index 0000000..0ce0e5b --- /dev/null +++ b/theme/layouts/4.5/layout.tpl | |||
| @@ -0,0 +1,272 @@ | |||
| 1 | <HTML> | ||
| 2 | <HEAD> | ||
| 3 | <TITLE><!--EXTRATITLE-->Four Island</TITLE> | ||
| 4 | |||
| 5 | <LINK REL="stylesheet" TYPE="text/css" HREF="http://fourisland.com/theme/css.php?id=<!--BODYID-->&cat=<!--CATEGORY-->" /> | ||
| 6 | <LINK REL="stylesheet" TYPE="text/css" HREF="http://fourisland.com/theme/css/thickbox.css" /> | ||
| 7 | <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8" /> | ||
| 8 | <META HTTP-EQUIV="Content-Language" CONTENT="en" /> | ||
| 9 | <LINK REL="alternate" TYPE="application/rss+xml" HREF="http://feeds.feedburner.com/FourIsland?format=xml" TITLE="Four Island" /> | ||
| 10 | <LINK REL="shortcut" HREF="/images/kirbyfolder.ico" /> | ||
| 11 | <LINK REL="icon" HREF="/images/kirbyfolder.ico" /> | ||
| 12 | <LINK REL="pingback" HREF="http://fourisland.com/xmlrpc.php" /> | ||
| 13 | <SCRIPT TYPE="text/javascript" SRC="/theme/js/jquery.js"></SCRIPT> | ||
| 14 | |||
| 15 | <!--HEADTAGS--> | ||
| 16 | </HEAD> | ||
| 17 | |||
| 18 | <BODY ID="<!--BODYID-->" CLASS="<!--CATEGORY--> <!--AID--> <!--CATEGORY-->-<!--AID-->"<!--BODYTAGS-->> | ||
| 19 | <DIV ID="flash"> | ||
| 20 | You can get notifications on new Four Island posts either via | ||
| 21 | <A HREF="http://feeds.feedburner.com/FourIsland">RSS</A> | ||
| 22 | or | ||
| 23 | <A HREF="http://www.feedburner.com/fb/a/emailverifySubmit?feedId=1464430">Email</A> | ||
| 24 | </DIV> | ||
| 25 | |||
| 26 | <DIV ID="wrap"> | ||
| 27 | <DIV ID="page-header"> | ||
| 28 | <SPAN CLASS="side-left"></SPAN> | ||
| 29 | <DIV ID="banner" STYLE="position: relative;"> | ||
| 30 | <H1 ID="logo-banner"><A HREF="/" TITLE="Four Island">Four Island</A></H1> | ||
| 31 | </DIV> | ||
| 32 | <SPAN CLASS="side-right"></SPAN> | ||
| 33 | </DIV> | ||
| 34 | |||
| 35 | <DIV ID="banner-nav"> | ||
| 36 | <UL ID="bannernav"> | ||
| 37 | <LI id="bannernav-home"><A HREF="/" REL="home"><B><SPAN>Home</SPAN></B></A></LI> | ||
| 38 | <LI id="bannernav-projects"><A HREF="http://projects.fourisland.com"><B><SPAN>Projects</SPAN></B></A></LI> | ||
| 39 | <LI id="bannernav-fourm"><A HREF="/fourm/"><B><SPAN>Fourm</SPAN></B></A></LI> | ||
| 40 | <LI id="bannernav-poll"><A HREF="/poll/"><B><SPAN>Poll</SPAN></B></A></LI> | ||
| 41 | <LI id="bannernav-quotes"><A HREF="/quotes/"><B><SPAN>Quotes</SPAN></B></A></LI> | ||
| 42 | <LI id="bannernav-<!--LOWERLOGDATA-->"><A HREF="http://fourisland.com/fourm/ucp.php?mode=log<!--LOGDATA-->&redirect=<!--REDIRPAGE-->&sid=<!--SID-->"><B><SPAN>Log<!--LOGDATA--></SPAN></B></A></LI> | ||
| 43 | <!--BEGIN PANEL--> | ||
| 44 | <LI id="bannernav-panel"><A HREF="/admin/"><B><SPAN>Panel</SPAN></B></A></LI> | ||
| 45 | <!--END PANEL--> | ||
| 46 | </UL> | ||
| 47 | </DIV> | ||
| 48 | |||
| 49 | <DIV CLASS="push"></DIV> | ||
| 50 | |||
| 51 | <DIV id="page-body"> | ||
| 52 | <DIV id="content"> | ||
| 53 | <!--CONTENT--> | ||
| 54 | </DIV> | ||
| 55 | |||
| 56 | <!--BEGIN RIGHTBAR--> | ||
| 57 | <DIV ID="rightbar"> | ||
| 58 | <DIV CLASS="rounded module pimped sidebar"> | ||
| 59 | Hi! My name is Hatkirby, and I run Four Island. | ||
| 60 | |||
| 61 | <P> | ||
| 62 | Four Island is a fun place with a blog, | ||
| 63 | a fourm, a wiki, many projects and a quotes database!<BR> | ||
| 64 | |||
| 65 | I hope you enjoy your time on Four Island! | ||
| 66 | </P> | ||
| 67 | </DIV> | ||
| 68 | |||
| 69 | <CITE CLASS="rounded light-at-night"><STRONG>Hatkirby</STRONG> on Four Island</CITE> | ||
| 70 | |||
| 71 | <P /> | ||
| 72 | |||
| 73 | <!--BEGIN CREATE_HATNAV--> | ||
| 74 | <div class="rounded module sidebar"> | ||
| 75 | <h3>Hatnav</h3> | ||
| 76 | |||
| 77 | <ul> | ||
| 78 | <!--END CREATE_HATNAV--> | ||
| 79 | |||
| 80 | <!--BEGIN HATNAV--> | ||
| 81 | <LI STYLE="margin-left: 10"><A HREF="<!--HATNAV.URL-->"><IMG SRC="/theme/images/icons/<!--HATNAV.ICON-->.png" ALT="<!--HATNAV.TITLE-->"><!--HATNAV.TITLE--></A></LI> | ||
| 82 | <!--END HATNAV--> | ||
| 83 | |||
| 84 | <!--BEGIN CREATE_HATNAV--> | ||
| 85 | </ul> | ||
| 86 | </div> | ||
| 87 | |||
| 88 | <P /> | ||
| 89 | <!--END CREATE_HATNAV--> | ||
| 90 | |||
| 91 | <div class="module rounded sidebar"> | ||
| 92 | <h3>Poll of the Week</h3> | ||
| 93 | |||
| 94 | <!--POTW--> | ||
| 95 | </div> | ||
| 96 | |||
| 97 | <P /> | ||
| 98 | |||
| 99 | <DIV class="sidebar module rounded"> | ||
| 100 | <H3>Hatbar</H3><P> | ||
| 101 | |||
| 102 | <P> | ||
| 103 | <SPAN ID="hitcounter"> | ||
| 104 | Hits: <!--HITS--><BR> | ||
| 105 | Today: <!--TODAY--> | ||
| 106 | </SPAN> | ||
| 107 | </P> | ||
| 108 | |||
| 109 | <p><!--DATEFINDER--></p> | ||
| 110 | |||
| 111 | <P ALIGN="center"> | ||
| 112 | <A HREF="/addresses.php" TITLE="goodemail@happybobby.com"><IMG SRC="/images/btn_bot.png" ALT="Addresses galore!"></A><BR> | ||
| 113 | |||
| 114 | <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> | ||
| 115 | |||
| 116 | <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> | ||
| 117 | |||
| 118 | <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> | ||
| 119 | |||
| 120 | <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> | ||
| 121 | |||
| 122 | <A HREF="/rss.php?mode=comments">Comments Feed</A> | ||
| 123 | </P> | ||
| 124 | |||
| 125 | <p> | ||
| 126 | <strong>Theme Switcher</strong>: | ||
| 127 | <select style="width: 55%" onchange="document.location='<!--ME-->?layout='+this.options[this.selectedIndex].value"> | ||
| 128 | <option value="7">7</option> | ||
| 129 | <option value="6.2">6.2</option> | ||
| 130 | <option value="4.5" selected="selected">4.5</option> | ||
| 131 | </select> | ||
| 132 | </p> | ||
| 133 | </DIV> | ||
| 134 | |||
| 135 | <P /> | ||
| 136 | |||
| 137 | <DIV class="sidebar module rounded"> | ||
| 138 | <H3>Affiliates</H3> | ||
| 139 | |||
| 140 | <ul> | ||
| 141 | <!--BEGIN AFFILIATES--> | ||
| 142 | <li> | ||
| 143 | <img src="/theme/images/icons/tag_<!--AFFILIATES.COLOR-->.png" alt="<!--AFFILIATES.TITLE-->" /> | ||
| 144 | <a href="<!--AFFILIATES.URL-->"><!--AFFILIATES.TITLE--></a> | ||
| 145 | </li> | ||
| 146 | <!--END AFFILIATES--> | ||
| 147 | </ul> | ||
| 148 | </DIV> | ||
| 149 | |||
| 150 | <P /> | ||
| 151 | |||
| 152 | <DIV class="sidebar module rounded"> | ||
| 153 | <H3>Website Projects</H3> | ||
| 154 | |||
| 155 | <ul> | ||
| 156 | <!--BEGIN WEBPROJS--> | ||
| 157 | <li> | ||
| 158 | <img src="/theme/images/icons/tag_<!--WEBPROJS.COLOR-->.png" alt="<!--WEBPROJS.TITLE-->" /> | ||
| 159 | <a href="<!--WEBPROJS.URL-->"><!--WEBPROJS.TITLE--></a> | ||
| 160 | </li> | ||
| 161 | <!--END WEBPROJS--> | ||
| 162 | </ul> | ||
| 163 | </DIV> | ||
| 164 | |||
| 165 | <P /> | ||
| 166 | |||
| 167 | <DIV class="sidebar module rounded"> | ||
| 168 | <H3>Popular Posts</H3> | ||
| 169 | |||
| 170 | <UL> | ||
| 171 | <!--BEGIN POPULAR--> | ||
| 172 | <LI STYLE="font-size: 0.9em"><A HREF="/blog/<!--POPULAR.CODED-->/"><!--POPULAR.TITLE--></A></LI> | ||
| 173 | <!--END POPULAR--> | ||
| 174 | </UL> | ||
| 175 | </DIV> | ||
| 176 | |||
| 177 | <P /> | ||
| 178 | |||
| 179 | <DIV class="sidebar module rounded"> | ||
| 180 | <H3>Recent Comments</H3> | ||
| 181 | |||
| 182 | <UL> | ||
| 183 | <!--BEGIN COMMENTS--> | ||
| 184 | <LI STYLE="font-size: 0.9em"><!--COMMENTS.AUTHOR--> on <A HREF="/<!--COMMENTS.AREA-->/<!--COMMENTS.CODED--><!--COMMENTS.ENDING-->#comment-<!--COMMENTS.ID-->"><!--COMMENTS.TITLE--></A></LI> | ||
| 185 | <!--END COMMENTS--> | ||
| 186 | </UL> | ||
| 187 | </DIV> | ||
| 188 | |||
| 189 | <P /> | ||
| 190 | |||
| 191 | <DIV class="sidebar module rounded"> | ||
| 192 | <H3>Recent Fourm Posts</H3> | ||
| 193 | |||
| 194 | <UL> | ||
| 195 | <!--BEGIN FOURM--> | ||
| 196 | <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> | ||
| 197 | <!--END FOURM--> | ||
| 198 | </UL> | ||
| 199 | </DIV> | ||
| 200 | |||
| 201 | <P /> | ||
| 202 | |||
| 203 | <DIV class="sidebar module rounded"> | ||
| 204 | <H3>Top Commenters</H3> | ||
| 205 | |||
| 206 | <UL> | ||
| 207 | <!--BEGIN TOP--> | ||
| 208 | <LI STYLE="font-size: 0.9em"><!--TOP.USERNAME--> (<!--TOP.COUNT-->)</LI> | ||
| 209 | <!--END TOP--> | ||
| 210 | </UL> | ||
| 211 | </DIV> | ||
| 212 | |||
| 213 | <P /> | ||
| 214 | |||
| 215 | <DIV CLASS="sidebar module rounded pimped"> | ||
| 216 | Like something you see here on Four Island? | ||
| 217 | |||
| 218 | <P> | ||
| 219 | Well, the best way to promote a post here is to link to it from your blog. | ||
| 220 | We always appreciate Pingbacks.<BR> | ||
| 221 | |||
| 222 | Of course, if you don't have a blog, | ||
| 223 | you could simply comment on the post in question.<BR> | ||
| 224 | |||
| 225 | Can't be bothered to think up a comment? Well, you can always rate it then.<BR> | ||
| 226 | |||
| 227 | There's always a way to show how you feel about a post on Four Island. | ||
| 228 | </P> | ||
| 229 | </DIV> | ||
| 230 | |||
| 231 | <CITE CLASS="rounded light-at-night"><STRONG>Hatkirby</STRONG> on Four Island</CITE> | ||
| 232 | |||
| 233 | <!--BEGIN SIDEBARS--> | ||
| 234 | <DIV class="sidebar"> | ||
| 235 | <DIV CLASS="bubble"> | ||
| 236 | <DIV CLASS="rounded"> | ||
| 237 | <BLOCKQUOTE> | ||
| 238 | <H3><!--SIDEBARS.TITLE--></H3> | ||
| 239 | |||
| 240 | <P> | ||
| 241 | <!--SIDEBARS.TEXT--> | ||
| 242 | </P> | ||
| 243 | </BLOCKQUOTE> | ||
| 244 | </DIV> | ||
| 245 | </DIV> | ||
| 246 | </DIV> | ||
| 247 | <!--END SIDEBARS--> | ||
| 248 | </DIV> | ||
| 249 | <!--END RIGHTBAR--> | ||
| 250 | |||
| 251 | <DIV CLASS="cleardiv"></DIV> | ||
| 252 | |||
| 253 | <!--BEGIN ONFOURM--> | ||
| 254 | <DIV> | ||
| 255 | <!--END ONFOURM--> | ||
| 256 | </DIV> | ||
| 257 | |||
| 258 | <DIV ID="footer"> | ||
| 259 | <UL CLASS="rows"> | ||
| 260 | <LI><span xmlns:dc="http://purl.org/dc/elements/1.1/" property="dc:title">Four Island</span> (<a href="http://code.fourisland.com/fourisland/">r<!--REVISION--></a>) by <a xmlns:cc="http://creativecommons.org/ns#" href="http://www.fourisland.com" property="cc:attributionName" rel="cc:attributionURL">Starla Insigna</a> is 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> | ||
| 261 | <LI><A HREF="/wiki/privacy-policy/">Privacy Policy</A></LI> | ||
| 262 | </UL> | ||
| 263 | |||
| 264 | <UL CLASS="together"> | ||
| 265 | <LI><A HREF="http://jigsaw.w3.org/css-validator/"><IMG SRC="/theme/images/icons/css_valid.png"></A></LI> | ||
| 266 | <LI><A HREF="/no-doctype.php"><IMG SRC="/theme/images/icons/html_valid.png"></A></LI> | ||
| 267 | <LI><A class="noVisit" HREF="/rss.php"><IMG SRC="/theme/images/icons/feed.png"></A></LI> | ||
| 268 | </UL> | ||
| 269 | </DIV> | ||
| 270 | </DIV> | ||
| 271 | </BODY> | ||
| 272 | </HTML> | ||
