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/7/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/7/layout.tpl')
-rw-r--r-- | theme/layouts/7/layout.tpl | 234 |
1 files changed, 234 insertions, 0 deletions
diff --git a/theme/layouts/7/layout.tpl b/theme/layouts/7/layout.tpl new file mode 100644 index 0000000..48eb1e6 --- /dev/null +++ b/theme/layouts/7/layout.tpl | |||
@@ -0,0 +1,234 @@ | |||
1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
2 | |||
3 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | ||
4 | <head> | ||
5 | <title><!--EXTRATITLE-->Four Island</title> | ||
6 | <link rel="stylesheet" type="text/css" href="http://fourisland.com/theme/css.php" /> | ||
7 | <!--[if IE]><link rel="stylesheet" type="text/css" href="http://fourisland.com/theme/css/ie.css" /><![endif]--> | ||
8 | <link rel="stylesheet" type="text/css" href="http://fourisland.com/theme/css/print.css" media="print" /> | ||
9 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
10 | <meta http-equiv="Content-Language" content="en" /> | ||
11 | <link rel="alternate" type="application/rss+xml" href="http://feeds.feedburner.com/FourIsland?format=xml" title="Four Island" /> | ||
12 | <link rel="shortcut" href="/images/kirbyfolder.ico" /> | ||
13 | <link rel="icon" href="/images/kirbyfolder.ico" /> | ||
14 | <link rel="pingback" href="http://fourisland.com/xmlrpc.php" /> | ||
15 | <script type="text/javascript" src="/theme/js/jquery.js"></script> | ||
16 | </head> | ||
17 | |||
18 | <body id="<!--CATEGORY-->"> | ||
19 | <div id="flash"><!--FLASH--></div> | ||
20 | |||
21 | <div id="header"> | ||
22 | <div id="banner"><a href="http://fourisland.com/">Four Island</a></div> | ||
23 | </div> | ||
24 | |||
25 | <div id="page-content"> | ||
26 | <div id="sidebar"> | ||
27 | <div class="module rounded pimped sidebar"> | ||
28 | Hi! My name is Hatkirby, and I run Four Island. | ||
29 | |||
30 | <p> | ||
31 | Four Island is a fun place with a blog, | ||
32 | a fourm, a wiki, many projects and a quotes database!<br /> | ||
33 | |||
34 | I hope you enjoy your time on Four Island! | ||
35 | </p> | ||
36 | </div> | ||
37 | |||
38 | <cite class="rounded"><strong>Hatkirby</strong> on Four Island</cite> | ||
39 | |||
40 | <p /> | ||
41 | |||
42 | <!--BEGIN CREATE_HATNAV--> | ||
43 | <ul class="hatnav"> | ||
44 | <!--END CREATE_HATNAV--> | ||
45 | |||
46 | <!--BEGIN HATNAV--> | ||
47 | <li> | ||
48 | <a href="<!--HATNAV.URL-->"> | ||
49 | <img src="/theme/images/icons/<!--HATNAV.ICON-->.png" alt="<!--HATNAV.TITLE-->" /> | ||
50 | <span><!--HATNAV.TITLE--></span> | ||
51 | </a> | ||
52 | </li> | ||
53 | <!--END HATNAV--> | ||
54 | |||
55 | <!--BEGIN CREATE_HATNAV--> | ||
56 | </ul> | ||
57 | <!--END CREATE_HATNAV--> | ||
58 | |||
59 | <div class="module rounded sidebar"> | ||
60 | <h3>Poll of the Week</h3> | ||
61 | |||
62 | <!--POTW--> | ||
63 | </div> | ||
64 | |||
65 | <div class="module rounded sidebar"> | ||
66 | <h3>Affiliates</h3> | ||
67 | |||
68 | <ul> | ||
69 | <!--BEGIN AFFILIATES--> | ||
70 | <li> | ||
71 | <img src="/theme/images/icons/tag_<!--AFFILIATES.COLOR-->.png" alt="<!--AFFILIATES.TITLE-->" /> | ||
72 | <a href="<!--AFFILIATES.URL-->"><!--AFFILIATES.TITLE--></a> | ||
73 | </li> | ||
74 | <!--END AFFILIATES--> | ||
75 | </ul> | ||
76 | </div> | ||
77 | |||
78 | <div class="module rounded sidebar"> | ||
79 | <h3>Website Projects</h3> | ||
80 | |||
81 | <ul> | ||
82 | <!--BEGIN WEBPROJS--> | ||
83 | <li> | ||
84 | <img src="/theme/images/icons/tag_<!--WEBPROJS.COLOR-->.png" alt="<!--WEBPROJS.TITLE-->" /> | ||
85 | <a href="<!--WEBPROJS.URL-->"><!--WEBPROJS.TITLE--></a> | ||
86 | </li> | ||
87 | <!--END WEBPROJS--> | ||
88 | </ul> | ||
89 | </div> | ||
90 | |||
91 | <div class="module rounded sidebar"> | ||
92 | <h3>HatBar</h3> | ||
93 | |||
94 | <p> | ||
95 | Hits: <!--HITS--><br /> | ||
96 | Today: <!--TODAY--><br /> | ||
97 | <!--DATEFINDER--> | ||
98 | </p> | ||
99 | |||
100 | <p align="center"> | ||
101 | <a href="/addresses.php" title="goodemail@happybobby.com"><img src="/images/btn_bot.png" alt="Addresses galore!" /></a> | ||
102 | <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> | ||
103 | <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> | ||
104 | <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> | ||
105 | <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> | ||
106 | </p> | ||
107 | |||
108 | <p> | ||
109 | <strong>Theme Switcher</strong>: | ||
110 | <select style="width: 55%" onchange="document.location='<!--ME-->?layout='+this.options[this.selectedIndex].value"> | ||
111 | <option value="7" selected="selected">7</option> | ||
112 | <option value="6.2">6.2</option> | ||
113 | <option value="4.5">4.5</option> | ||
114 | </select> | ||
115 | </p> | ||
116 | </div> | ||
117 | </div> | ||
118 | |||
119 | <div id="content"> | ||
120 | <ul id="navbar"> | ||
121 | <li<!--BLOGACTIVE-->> | ||
122 | <a href="http://fourisland.com/"> | ||
123 | <img src="/theme/images/icons/newspaper.png" alt="Blog" /> | ||
124 | <span>Blog</span> | ||
125 | </a> | ||
126 | </li> | ||
127 | |||
128 | <li> | ||
129 | <a href="http://projects.fourisland.com/">Projects</a> | ||
130 | </li> | ||
131 | |||
132 | <li<!--FOURMACTIVE-->> | ||
133 | <a href="http://fourisland.com/fourm/"> | ||
134 | <img src="/theme/images/icons/comment.png" alt="The Fourm" /> | ||
135 | <span>The Fourm</span> | ||
136 | </a> | ||
137 | </li> | ||
138 | |||
139 | <li<!--POLLACTIVE-->> | ||
140 | <a href="http://fourisland.com/poll/"> | ||
141 | <img src="/theme/images/icons/overlays.png" alt="Polls" /> | ||
142 | <span>Polls</span> | ||
143 | </a> | ||
144 | </li> | ||
145 | |||
146 | <li<!--QUOTESACTIVE-->> | ||
147 | <a href="http://fourisland.com/quotes/"> | ||
148 | <img src="/theme/images/icons/16-file-page.png" alt="Quotes" /> | ||
149 | <span>Quotes</span> | ||
150 | </a> | ||
151 | </li> | ||
152 | |||
153 | <!--BEGIN MEMBERS--> | ||
154 | <li<!--LOGACTIVE-->> | ||
155 | <a href="http://fourisland.com/fourm/ucp.php?mode=log<!--LOGDATA-->&redirect=<!--REDIRPAGE-->&sid=<!--SID-->"> | ||
156 | <img src="/theme/images/icons/door_in.png" alt="Log<!--LOGDATA-->" /> | ||
157 | <span>Log<!--LOGDATA--></span> | ||
158 | </a> | ||
159 | </li> | ||
160 | <!--END MEMBERS--> | ||
161 | |||
162 | <!--BEGIN ADMIN--> | ||
163 | <li<!--PANELACTIVE-->> | ||
164 | <a href="http://fourisland.com/admin/"> | ||
165 | <img src="/theme/images/icons/rainbow.png" alt="Admin" /> | ||
166 | <span>Admin</span> | ||
167 | </a> | ||
168 | </li> | ||
169 | <!--END ADMIN--> | ||
170 | </ul> | ||
171 | |||
172 | <div id="window" class="rounded"> | ||
173 | <div id="actual-content" class="rounded"> | ||
174 | <!--CONTENT--> | ||
175 | </div> | ||
176 | </div> | ||
177 | </div> | ||
178 | |||
179 | <div class="cleardiv"></div> | ||
180 | </div> | ||
181 | |||
182 | <div id="footer"> | ||
183 | <div class="foot-module"> | ||
184 | <h3>Recent Comments</h3> | ||
185 | |||
186 | <ul> | ||
187 | <!--BEGIN COMMENTS--> | ||
188 | <li style="font-size: 0.9em"><!--COMMENTS.AUTHOR--> on <a href="/<!--COMMENTS.AREA-->/<!--COMMENTS.CODED--><!--COMMENTS.ENDING-->#comment-<!--COMMENTS.ID-->"><!--COMMENTS.TITLE--></a></li> | ||
189 | <!--END COMMENTS--> | ||
190 | </ul> | ||
191 | </div> | ||
192 | |||
193 | <div class="foot-module"> | ||
194 | <h3>Recent Fourm Posts</h3> | ||
195 | |||
196 | <ul> | ||
197 | <!--BEGIN FOURM--> | ||
198 | <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> | ||
199 | <!--END FOURM--> | ||
200 | </ul> | ||
201 | </div> | ||
202 | |||
203 | <div class="foot-module"> | ||
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 | <div class="foot-module"> | ||
214 | <h3>Popular Posts</h3> | ||
215 | |||
216 | <ul> | ||
217 | <!--BEGIN POPULAR--> | ||
218 | <li style="font-size: 0.9em"><a href="/blog/<!--POPULAR.CODED-->/"><!--POPULAR.TITLE--></a></li> | ||
219 | <!--END POPULAR--> | ||
220 | </ul> | ||
221 | </div> | ||
222 | |||
223 | <div class="cleardiv"></div> | ||
224 | |||
225 | <p> | ||
226 | Four Island (<a href="http://code.fourisland.com/fourisland/">r<!--REVISION--></a>) is by <a href="http://fourisland.com">Starla Insigna</a>. | ||
227 | 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>. | ||
228 | <a href="http://jigsaw.w3.org/css-validator/"><img src="/theme/images/icons/css_valid.png" alt="Valid CSS" /></a> | ||
229 | <a href="http://validator.w3.org/check/referer"><img src="/theme/images/icons/xhtml_valid.png" alt="Valid XHTML" /></a> | ||
230 | <a class="noVisit" href="/rss.php"><img src="/theme/images/icons/feed.png" alt="RSS Feed" /></a> | ||
231 | </p> | ||
232 | </div> | ||
233 | </body> | ||
234 | </html> | ||