Merge lp:~mac9416/www-ubuntu-us-tn/trunk into lp:www-ubuntu-us-tn
- trunk
- Merge into trunk
Status: | Superseded |
---|---|
Proposed branch: | lp:~mac9416/www-ubuntu-us-tn/trunk |
Merge into: | lp:www-ubuntu-us-tn |
Diff against target: | None lines |
To merge this branch: | bzr merge lp:~mac9416/www-ubuntu-us-tn/trunk |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Christopher Lunsford (community) | Needs Resubmitting | ||
Review via email: mp+11459@code.launchpad.net |
This proposal has been superseded by a proposal from 2009-09-10.
Commit message
Description of the change
mac9416 (mac9416) wrote : | # |
mac9416 (mac9416) wrote : | # |
Clarification: I did all that in the Wordpress theme. ;-)
On Wed, Sep 9, 2009 at 1:10 PM, mac9416<email address hidden> wrote:
> mac9416 has proposed merging lp:~mac9416/www-ubuntu-us-tn/trunk into lp:www-ubuntu-us-tn.
>
> Requested reviews:
> TennesseeTeam (tennessee.team)
>
> Improved sidebars, corrected background color, and added a theme control panel for quick editing of announcement and footer text.
> --
> https:/
> You are the owner of lp:~mac9416/www-ubuntu-us-tn/trunk.
>
Christopher Lunsford (binarymutant) wrote : | # |
Can you review my changes first, I've added wordpress to the repo under news/ and moved your theme into the correct wordpress directory
Unmerged revisions
- 17. By mac9416
-
WP theme: stopped content bg from seperating from footer bg
- 16. By mac9416
-
Merged with latest revisions
- 15. By mac9416
-
WP theme: random code cleanup
- 14. By mac9416
-
WP theme: added theme control panel
- 13. By mac9416
-
WP theme: improved sidebars
- 12. By mac9416
-
WP theme: changed content background color
- 11. By mac9416
-
Added Wordpress theme
Preview Diff
1 | === added directory 'wp-theme' |
2 | === added directory 'wp-theme/ubuntu-us-tn' |
3 | === added file 'wp-theme/ubuntu-us-tn/404.php' |
4 | --- wp-theme/ubuntu-us-tn/404.php 1970-01-01 00:00:00 +0000 |
5 | +++ wp-theme/ubuntu-us-tn/404.php 2009-09-08 13:09:12 +0000 |
6 | @@ -0,0 +1,12 @@ |
7 | +<?php get_header(); ?> |
8 | + |
9 | +<?php get_sidebar(); ?> |
10 | + |
11 | +<div class="text"> |
12 | + |
13 | + <h1 class="title">Not Found</h1> |
14 | + <p>The page you are looking is not here..</p> |
15 | + |
16 | +</div> |
17 | + |
18 | +<?php get_footer(); ?> |
19 | \ No newline at end of file |
20 | |
21 | === added file 'wp-theme/ubuntu-us-tn/archive.php' |
22 | --- wp-theme/ubuntu-us-tn/archive.php 1970-01-01 00:00:00 +0000 |
23 | +++ wp-theme/ubuntu-us-tn/archive.php 2009-09-08 13:09:12 +0000 |
24 | @@ -0,0 +1,68 @@ |
25 | +<?php get_header(); ?> |
26 | + |
27 | +<?php get_sidebar(); ?> |
28 | +<div id="content"><a name="content"></a> |
29 | +<?php if (have_posts()) : ?> |
30 | + |
31 | + <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?> |
32 | +<?php /* If this is a category archive */ if (is_category()) { ?> |
33 | + <h2 class="pagetitle">Archive for the ‘<?php echo single_cat_title(); ?>’ Category</h2> |
34 | + |
35 | + <?php /* If this is a daily archive */ } elseif (is_day()) { ?> |
36 | + <h2 class="pagetitle">Archive for <?php the_time('F jS, Y'); ?></h2> |
37 | + |
38 | + <?php /* If this is a monthly archive */ } elseif (is_month()) { ?> |
39 | + <h2 class="pagetitle">Archive for <?php the_time('F, Y'); ?></h2> |
40 | + |
41 | + <?php /* If this is a yearly archive */ } elseif (is_year()) { ?> |
42 | + <h2 class="pagetitle">Archive for <?php the_time('Y'); ?></h2> |
43 | + |
44 | + <?php /* If this is an author archive */ } elseif (is_author()) { ?> |
45 | + <h2 class="pagetitle">Author Archive</h2> |
46 | + |
47 | + <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?> |
48 | + <h2 class="pagetitle">Blog Archives</h2> |
49 | + |
50 | + <?php } ?> |
51 | + |
52 | + <?php while (have_posts()) : the_post(); ?> |
53 | +<div class="post" id="post-<?php the_ID(); ?>"> |
54 | +<div class="date"> |
55 | +<?php the_time('M'); ?><br /><span class="day"><?php the_time('d'); ?></span></div> |
56 | +<div class="title"> |
57 | +<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2> |
58 | + |
59 | +<div class="sub"><span>Posted by <?php the_author(); ?> under <?php the_category(', '); ?></span></div> |
60 | + |
61 | +</div> |
62 | +<div class="cover"> |
63 | +<div class="entry"> |
64 | + <?php the_content('Read the rest of this entry »'); ?> |
65 | + |
66 | +</div> |
67 | + |
68 | +</div> |
69 | +<div class="postinfo"> |
70 | + <div class="edit"><?php edit_post_link('Edit this entry', '| ', ''); ?> </div> |
71 | + <div class="com"><?php comments_popup_link('ADD COMMENTS', '1 COMMENT', '% COMMENTS'); ?></div> |
72 | +</div> |
73 | + |
74 | + |
75 | +</div> |
76 | + <?php endwhile; ?> |
77 | + |
78 | + <div class="navigation"> |
79 | + <div class="alignleft"><?php next_posts_link('« Previous Entries') ?></div> |
80 | + <div class="alignright"><?php previous_posts_link('Next Entries »') ?></div> |
81 | + </div> |
82 | + |
83 | + <?php else : ?> |
84 | + |
85 | + <h1 class="title">Not Found</h1> |
86 | + <p>Sorry, but you are looking for something that isn't here.</p> |
87 | + |
88 | + <?php endif; ?> |
89 | + |
90 | +</div> |
91 | + |
92 | +<?php get_footer(); ?> |
93 | \ No newline at end of file |
94 | |
95 | === added file 'wp-theme/ubuntu-us-tn/comments.php' |
96 | --- wp-theme/ubuntu-us-tn/comments.php 1970-01-01 00:00:00 +0000 |
97 | +++ wp-theme/ubuntu-us-tn/comments.php 2009-09-08 13:09:12 +0000 |
98 | @@ -0,0 +1,100 @@ |
99 | +<?php // Do not delete these lines |
100 | + if ('comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) |
101 | + die ('Please do not load this page directly. Thanks!'); |
102 | + |
103 | + if (!empty($post->post_password)) { // if there's a password |
104 | + if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) { // and it doesn't match the cookie |
105 | + ?> |
106 | + |
107 | + <p class="nocomments">This post is password protected. Enter the password to view comments.<p> |
108 | + |
109 | + <?php |
110 | + return; |
111 | + } |
112 | + } |
113 | + |
114 | + /* This variable is for alternating comment background */ |
115 | + $oddcomment = 'alt'; |
116 | +?> |
117 | + |
118 | +<!-- You can start editing here. --> |
119 | + |
120 | +<div class="comments" id="comments"> |
121 | + |
122 | +<?php if ($comments) : ?> |
123 | + <ol> |
124 | + |
125 | + <?php foreach ($comments as $comment) : ?> |
126 | + |
127 | + <li class="<?php echo $oddcomment; ?>" id="comment-<?php comment_ID() ?>"> |
128 | + <strong><?php comment_author_link() ?></strong> Said, |
129 | + <?php if ($comment->comment_approved == '0') : ?> |
130 | + <p><em>Your comment is awaiting moderation.</em></p> |
131 | + <?php endif; ?> |
132 | + |
133 | + <?php comment_text() ?> |
134 | + |
135 | + </li> |
136 | + |
137 | + <?php /* Changes every other comment to a different class */ |
138 | + if ('alt' == $oddcomment) $oddcomment = ''; |
139 | + else $oddcomment = 'alt'; |
140 | + ?> |
141 | + |
142 | + <?php endforeach; /* end for each comment */ ?> |
143 | + |
144 | + </ol> |
145 | + |
146 | + <?php else : // this is displayed if there are no comments so far ?> |
147 | + |
148 | + <?php if ('open' == $post->comment_status) : ?> |
149 | + <!-- If comments are open, but there are no comments. --> |
150 | + |
151 | + <?php else : // comments are closed ?> |
152 | + <!-- If comments are closed. --> |
153 | + <p class="nocomments">Comments are closed.</p> |
154 | + |
155 | + <?php endif; ?> |
156 | +<?php endif; ?> |
157 | + |
158 | + |
159 | +<?php if ('open' == $post->comment_status) : ?> |
160 | + |
161 | +<h2 id="respond">Add A Comment</h2> |
162 | + |
163 | +<?php if ( get_option('comment_registration') && !$user_ID ) : ?> |
164 | +<p>You must be <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>">logged in</a> to post a comment.</p> |
165 | +<?php else : ?> |
166 | + |
167 | +<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"> |
168 | + |
169 | +<?php if ( $user_ID ) : ?> |
170 | + |
171 | +<p>Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="Log out of this account">Logout »</a></p> |
172 | + |
173 | +<?php else : ?> |
174 | + |
175 | +<p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" /> <label for="author"><small>Name <?php if ($req) echo "(required)"; ?></small></label></p> |
176 | + |
177 | +<p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" /> <label for="email"><small>Mail (will not be published) <?php if ($req) echo "(required)"; ?></small></label></p> |
178 | + |
179 | +<p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" /> <label for="url"><small>Website</small></label></p> |
180 | + |
181 | +<?php endif; ?> |
182 | + |
183 | +<!--<p><small><strong>XHTML:</strong> You can use these tags: <?php echo allowed_tags(); ?></small></p>--> |
184 | + |
185 | +<p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea></p> |
186 | + |
187 | +<p><input name="submit" type="submit" id="submit" tabindex="5" value="Post" /> |
188 | +<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /> |
189 | +</p> |
190 | +<?php do_action('comment_form', $post->ID); ?> |
191 | + |
192 | +</form> |
193 | + |
194 | +<?php endif; // If registration required and not logged in ?> |
195 | + |
196 | +<?php endif; // if you delete this the sky will fall on your head ?> |
197 | + |
198 | +</div> |
199 | \ No newline at end of file |
200 | |
201 | === added file 'wp-theme/ubuntu-us-tn/footer.php' |
202 | --- wp-theme/ubuntu-us-tn/footer.php 1970-01-01 00:00:00 +0000 |
203 | +++ wp-theme/ubuntu-us-tn/footer.php 2009-09-09 17:59:24 +0000 |
204 | @@ -0,0 +1,27 @@ |
205 | +<?php |
206 | +global $options; |
207 | +foreach ($options as $value) { |
208 | + if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); } |
209 | +} |
210 | +?> |
211 | +<div class="clear"></div> |
212 | + </div> |
213 | + |
214 | +<div id="footer"> |
215 | +<div id="footer"><?php print($ubuntu_us_tn_footer_phrase); ?></div> |
216 | +</div> |
217 | + |
218 | +</div> |
219 | + |
220 | +<script type="text/javascript"> |
221 | +var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); |
222 | +document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); |
223 | +</script> |
224 | +<script type="text/javascript"> |
225 | +try { |
226 | +var pageTracker = _gat._getTracker("UA-10529254-1"); |
227 | +pageTracker._trackPageview(); |
228 | +} catch(err) {}</script> |
229 | + |
230 | +</body> |
231 | +</html> |
232 | \ No newline at end of file |
233 | |
234 | === added file 'wp-theme/ubuntu-us-tn/functions.php' |
235 | --- wp-theme/ubuntu-us-tn/functions.php 1970-01-01 00:00:00 +0000 |
236 | +++ wp-theme/ubuntu-us-tn/functions.php 2009-09-09 17:59:24 +0000 |
237 | @@ -0,0 +1,189 @@ |
238 | +<?php |
239 | +if ( function_exists('register_sidebar') ) |
240 | + register_sidebar(array('name'=>'Sidebar')); |
241 | + |
242 | +if ( !is_admin() ) wp_deregister_script('jquery'); |
243 | +?> |
244 | +<?php |
245 | +/* Function used to list pings separated from the comments */ |
246 | +function list_pings($comment, $args, $depth) { |
247 | + $GLOBALS['comment'] = $comment; |
248 | +?> |
249 | + <li id="comment-<?php comment_ID(); ?>" class="ping"><?php comment_author_link(); ?> |
250 | +<?php } ?> |
251 | +<?php |
252 | +$themename = "Ubuntu-US-TN"; |
253 | +$shortname = "ubuntu_us_tn"; |
254 | +$options = array ( |
255 | +array( "name" => "Theme Options", |
256 | + "type" => "title"), |
257 | + |
258 | +array( "type" => "open"), |
259 | + |
260 | +array( "name" => "Announcement Text", |
261 | + "desc" => "Choose some the text that will appear at the top of the page. Leave empty for noe.", |
262 | + "id" => $shortname."_announcement_text", |
263 | + "type" => "text", |
264 | + "std" => "Announcement here!"), |
265 | + |
266 | +array( "name" => "Footer Phrase", |
267 | + "desc" => "Choose the phrase that will appear at the bottom of the page. Use the <tt>br</tt> tag to force the line break.", |
268 | + "id" => $shortname."_footer_phrase", |
269 | + "type" => "text", |
270 | + "std" => "Powered by Wordpress"), |
271 | + |
272 | +array( "type" => "close") |
273 | + |
274 | +); |
275 | + |
276 | + |
277 | +function mytheme_add_admin() { |
278 | + |
279 | + global $themename, $shortname, $options; |
280 | + |
281 | + if ( $_GET['page'] == basename(__FILE__) ) { |
282 | + |
283 | + if ( 'save' == $_REQUEST['action'] ) { |
284 | + |
285 | + foreach ($options as $value) { |
286 | + update_option( $value['id'], $_REQUEST[ $value['id'] ] ); } |
287 | + |
288 | + foreach ($options as $value) { |
289 | + if( isset( $_REQUEST[ $value['id'] ] ) ) { update_option( $value['id'], $_REQUEST[ $value['id'] ] ); } else { delete_option( $value['id'] ); } } |
290 | + |
291 | + header("Location: themes.php?page=functions.php&saved=true"); |
292 | + die; |
293 | + |
294 | + } else if( 'reset' == $_REQUEST['action'] ) { |
295 | + |
296 | + foreach ($options as $value) { |
297 | + delete_option( $value['id'] ); } |
298 | + |
299 | + header("Location: themes.php?page=functions.php&reset=true"); |
300 | + die; |
301 | + |
302 | + } |
303 | + } |
304 | + |
305 | + add_theme_page($themename." Options", "".$themename." Options", 'edit_themes', basename(__FILE__), 'mytheme_admin'); |
306 | + |
307 | +} |
308 | + |
309 | +function mytheme_admin() { |
310 | + |
311 | + global $themename, $shortname, $options; |
312 | + |
313 | + if ( $_REQUEST['saved'] ) echo '<div id="message" class="updated fade"><p><strong>'.$themename.' settings saved.</strong></p></div>'; |
314 | + if ( $_REQUEST['reset'] ) echo '<div id="message" class="updated fade"><p><strong>'.$themename.' settings reset.</strong></p></div>'; |
315 | + |
316 | +?> |
317 | +<div class="wrap"> |
318 | +<h2><?php echo $themename; ?> settings</h2> |
319 | + |
320 | +<form method="post"> |
321 | + |
322 | +<?php foreach ($options as $value) { |
323 | +switch ( $value['type'] ) { |
324 | + |
325 | +case "open": |
326 | +?> |
327 | +<table width="100%" border="0" style="background-color:#eef5fb; padding:10px;"> |
328 | + |
329 | +<?php break; |
330 | + |
331 | +case "close": |
332 | +?> |
333 | + |
334 | +</table><br /> |
335 | + |
336 | +<?php break; |
337 | + |
338 | +case "title": |
339 | +?> |
340 | +<table width="100%" border="0" style="background-color:#dceefc; padding:5px 10px;"><tr> |
341 | + <td colspan="2"><h3 style="font-family:Georgia,'Times New Roman',Times,serif;"><?php echo $value['name']; ?></h3></td> |
342 | +</tr> |
343 | + |
344 | +<?php break; |
345 | + |
346 | +case 'text': |
347 | +?> |
348 | + |
349 | +<tr> |
350 | + <td width="20%" rowspan="2" valign="middle"><strong><?php echo $value['name']; ?></strong></td> |
351 | + <td width="80%"><input style="width:400px;" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" type="<?php echo $value['type']; ?>" value="<?php if ( get_settings( $value['id'] ) != "") { echo get_settings( $value['id'] ); } else { echo $value['std']; } ?>" /></td> |
352 | +</tr> |
353 | + |
354 | +<tr> |
355 | + <td><small><?php echo $value['desc']; ?></small></td> |
356 | +</tr><tr><td colspan="2" style="margin-bottom:5px;border-bottom:1px dotted #000000;"> </td></tr><tr><td colspan="2"> </td></tr> |
357 | + |
358 | +<?php |
359 | +break; |
360 | + |
361 | +case 'textarea': |
362 | +?> |
363 | + |
364 | +<tr> |
365 | + <td width="20%" rowspan="2" valign="middle"><strong><?php echo $value['name']; ?></strong></td> |
366 | + <td width="80%"><textarea name="<?php echo $value['id']; ?>" style="width:400px; height:200px;" type="<?php echo $value['type']; ?>" cols="" rows=""><?php if ( get_settings( $value['id'] ) != "") { echo get_settings( $value['id'] ); } else { echo $value['std']; } ?></textarea></td> |
367 | + |
368 | +</tr> |
369 | + |
370 | +<tr> |
371 | + <td><small><?php echo $value['desc']; ?></small></td> |
372 | +</tr><tr><td colspan="2" style="margin-bottom:5px;border-bottom:1px dotted #000000;"> </td></tr><tr><td colspan="2"> </td></tr> |
373 | + |
374 | +<?php |
375 | +break; |
376 | + |
377 | +case 'select': |
378 | +?> |
379 | +<tr> |
380 | + <td width="20%" rowspan="2" valign="middle"><strong><?php echo $value['name']; ?></strong></td> |
381 | + <?php $isOptionSelected = false; ?> |
382 | + <td width="80%"><select style="width:240px;" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>"><?php foreach ($value['options'] as $option) { ?><option<?php if ( get_settings( $value['id'] ) == $option) { echo ' selected="selected"'; $isOptionSelected = true; } elseif ($option == $value['std'] && !$isOptionSelected ) { echo ' selected="selected"'; } ?>><?php echo $option; ?></option><?php } ?></select></td> |
383 | +</tr> |
384 | + |
385 | +<tr> |
386 | + <td><small><?php echo $value['desc']; ?></small></td> |
387 | +</tr><tr><td colspan="2" style="margin-bottom:5px;border-bottom:1px dotted #000000;"> </td></tr><tr><td colspan="2"> </td></tr> |
388 | + |
389 | +<?php |
390 | +break; |
391 | + |
392 | +case "checkbox": |
393 | +?> |
394 | + <tr> |
395 | + <td width="20%" rowspan="2" valign="middle"><strong><?php echo $value['name']; ?></strong></td> |
396 | + <td width="80%"><? if(get_settings($value['id'])){ $checked = "checked=\"checked\""; }else{ $checked = ""; } ?> |
397 | + <input type="checkbox" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" value="true" <?php echo $checked; ?> /> |
398 | + </td> |
399 | + </tr> |
400 | + |
401 | + <tr> |
402 | + <td><small><?php echo $value['desc']; ?></small></td> |
403 | + </tr><tr><td colspan="2" style="margin-bottom:5px;border-bottom:1px dotted #000000;"> </td></tr><tr><td colspan="2"> </td></tr> |
404 | + |
405 | +<?php break; |
406 | + |
407 | +} |
408 | +} |
409 | +?> |
410 | + |
411 | +<p class="submit"> |
412 | +<input name="save" type="submit" value="Save changes" /> |
413 | +<input type="hidden" name="action" value="save" /> |
414 | +</p> |
415 | +</form> |
416 | +<form method="post"> |
417 | +<p class="submit"> |
418 | +<input name="reset" type="submit" value="Reset" /> |
419 | +<input type="hidden" name="action" value="reset" /> |
420 | +</p> |
421 | +</form> |
422 | + |
423 | +<?php |
424 | +} |
425 | + |
426 | +add_action('admin_menu', 'mytheme_add_admin'); ?> |
427 | |
428 | === added file 'wp-theme/ubuntu-us-tn/header.php' |
429 | --- wp-theme/ubuntu-us-tn/header.php 1970-01-01 00:00:00 +0000 |
430 | +++ wp-theme/ubuntu-us-tn/header.php 2009-09-09 17:59:24 +0000 |
431 | @@ -0,0 +1,37 @@ |
432 | +<?php |
433 | +global $options; |
434 | +foreach ($options as $value) { |
435 | + if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); } |
436 | +} |
437 | +?> |
438 | +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
439 | +<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>> |
440 | +<head profile="http://gmpg.org/xfn/11"> |
441 | +<link rel="icon" href="favicon.ico" type="image/x-icon"> |
442 | +<meta name="verify-v1" content="c2F4BIhbzzY3xg1R58p8rOuYxaF4K7xr3qcQMH8v3PA=" /> |
443 | +<meta name="msvalidate.01" content="0D691860E18010B8D23550E0E9C190CD" /> |
444 | +<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> |
445 | +<title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> » Blog Archive <?php } ?> <?php wp_title(); ?></title> |
446 | +<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats --> |
447 | +<meta name="verify-v1" content="n63oSkyWHnaocf2whEYQzxOXIECYXsU9Zk1vK/iSfx4=" /> |
448 | +<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="all" /> |
449 | +<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" /> |
450 | +<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> |
451 | + |
452 | + <?php wp_get_archives('type=monthly&format=link'); ?> |
453 | + <?php //comments_popup_script(); // off by default ?> |
454 | + <?php wp_head(); ?> |
455 | +</head> |
456 | +<body> |
457 | +<div id="wrapper"> |
458 | +<div id="top"> |
459 | + <a href="<?php bloginfo('siteurl');?>/"><img alt="Ubuntu Tennessee" src="<?php bloginfo('stylesheet_directory'); ?>/images/tnbanner.png" /></a> |
460 | +</div> |
461 | + <div id="menu"> |
462 | + <ul> |
463 | + <?php if (is_page()) { $highlight = "page_item"; } else {$highlight = "page_item current_page_item"; } ?> |
464 | + <?php wp_list_pages('exclude='.get_page_by_title('Sitemap')->ID.','.get_page_by_title('Our Logo')->ID.'&sort_column=menu_order&depth=1&title_li='); ?> |
465 | + </ul> |
466 | + </div> |
467 | +<div class="content"> |
468 | +<div id="announcement"><h3><?php print($ubuntu_us_tn_announcement_text); ?></h3></div> |
469 | \ No newline at end of file |
470 | |
471 | === added directory 'wp-theme/ubuntu-us-tn/images' |
472 | === added file 'wp-theme/ubuntu-us-tn/images/blank.gif' |
473 | Binary files wp-theme/ubuntu-us-tn/images/blank.gif 1970-01-01 00:00:00 +0000 and wp-theme/ubuntu-us-tn/images/blank.gif 2009-09-08 13:09:12 +0000 differ |
474 | === added file 'wp-theme/ubuntu-us-tn/images/tnbanner.png' |
475 | Binary files wp-theme/ubuntu-us-tn/images/tnbanner.png 1970-01-01 00:00:00 +0000 and wp-theme/ubuntu-us-tn/images/tnbanner.png 2009-09-08 13:09:12 +0000 differ |
476 | === added file 'wp-theme/ubuntu-us-tn/index.php' |
477 | --- wp-theme/ubuntu-us-tn/index.php 1970-01-01 00:00:00 +0000 |
478 | +++ wp-theme/ubuntu-us-tn/index.php 2009-09-08 13:09:12 +0000 |
479 | @@ -0,0 +1,38 @@ |
480 | +<?php get_header(); ?> |
481 | +<?php get_sidebar(); ?> |
482 | +<div id="content"><a name="content"></a> |
483 | +<?php if (have_posts()) : ?> |
484 | + |
485 | +<?php while (have_posts()) : the_post(); ?> |
486 | +<div class="post" id="post-<?php the_ID(); ?>"> |
487 | +<div class="title"> |
488 | +<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2> |
489 | + |
490 | +</div> |
491 | +<div class="cover"> |
492 | +<div class="entry"> |
493 | + <?php the_content('Read the rest of this entry »'); ?> |
494 | +</div> |
495 | +</div> |
496 | +</div> |
497 | + <?php endwhile; ?> |
498 | + |
499 | + <div class="navigation"> |
500 | + <div class="alignleft"><?php next_posts_link('« Previous Entries') ?></div> |
501 | + <div class="alignright"><?php previous_posts_link('Next Entries »') ?></div> |
502 | + </div> |
503 | + |
504 | + <?php else : ?> |
505 | + |
506 | + <div class="post"> |
507 | + <h1 class="title">Not Found</h1> |
508 | + <p>YOU are looking for something that ISN'T HERE.</p> |
509 | + </div> |
510 | + |
511 | + <?php endif; ?> |
512 | + |
513 | +</div> |
514 | + |
515 | +<?php get_sidebar(); ?> |
516 | + |
517 | +<?php get_footer(); ?> |
518 | |
519 | === added file 'wp-theme/ubuntu-us-tn/page.php' |
520 | --- wp-theme/ubuntu-us-tn/page.php 1970-01-01 00:00:00 +0000 |
521 | +++ wp-theme/ubuntu-us-tn/page.php 2009-09-08 13:09:12 +0000 |
522 | @@ -0,0 +1,27 @@ |
523 | +<?php get_header(); ?> |
524 | + |
525 | +<?php get_sidebar(); ?> |
526 | + |
527 | +<div id="content"><a name="content"></a> |
528 | +<?php if (have_posts()) : ?> |
529 | + |
530 | +<?php while (have_posts()) : the_post(); ?> |
531 | +<div class="post" id="post-<?php the_ID(); ?>"> |
532 | +<div class="title"> |
533 | +<!--<h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h1>--> |
534 | + |
535 | +</div> |
536 | +<div class="cover"> |
537 | +<div class="entry"> |
538 | + <?php the_content('Read the rest of this entry »'); ?> |
539 | + |
540 | +</div> |
541 | + |
542 | +</div> |
543 | +<div class="postinfo"></div> |
544 | +</div> |
545 | + <?php endwhile; endif; ?> |
546 | + |
547 | +</div> |
548 | + |
549 | +<?php get_footer(); ?> |
550 | \ No newline at end of file |
551 | |
552 | === added file 'wp-theme/ubuntu-us-tn/screenshot.gif' |
553 | Binary files wp-theme/ubuntu-us-tn/screenshot.gif 1970-01-01 00:00:00 +0000 and wp-theme/ubuntu-us-tn/screenshot.gif 2009-09-08 13:09:12 +0000 differ |
554 | === added file 'wp-theme/ubuntu-us-tn/search.php' |
555 | --- wp-theme/ubuntu-us-tn/search.php 1970-01-01 00:00:00 +0000 |
556 | +++ wp-theme/ubuntu-us-tn/search.php 2009-09-08 13:09:12 +0000 |
557 | @@ -0,0 +1,49 @@ |
558 | +<?php get_header(); ?> |
559 | + |
560 | +<?php get_sidebar(); ?> |
561 | + |
562 | +<div id="content"><a name="content"></a> |
563 | +<?php if (have_posts()) : ?> |
564 | + <h2 class="pagetitle">Search Results</h2> |
565 | +<?php while (have_posts()) : the_post(); ?> |
566 | +<div class="post" id="post-<?php the_ID(); ?>"> |
567 | +<div class="date"> |
568 | +<?php the_time('M'); ?><br /><span class="day"><?php the_time('d'); ?></span></div> |
569 | +<div class="title"> |
570 | +<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2> |
571 | + |
572 | +<div class="sub"><span>Posted by <?php the_author(); ?> under <?php the_category(', '); ?></span></div> |
573 | + |
574 | +</div> |
575 | +<div class="cover"> |
576 | +<div class="entry"> |
577 | + <?php the_content('Read the rest of this entry »'); ?> |
578 | + |
579 | +</div> |
580 | + |
581 | +</div> |
582 | +<div class="postinfo"> |
583 | + <div class="edit"><?php edit_post_link('Edit this entry', '| ', ''); ?> </div> |
584 | + <div class="com"><?php comments_popup_link('ADD COMMENTS', '1 COMMENT', '% COMMENTS'); ?></div> |
585 | +</div> |
586 | + |
587 | + |
588 | + |
589 | +</div> |
590 | + <?php endwhile; ?> |
591 | + |
592 | + <div class="navigation"> |
593 | + <div class="alignleft"><?php next_posts_link('« Previous Entries') ?></div> |
594 | + <div class="alignright"><?php previous_posts_link('Next Entries »') ?></div> |
595 | + </div> |
596 | + |
597 | + <?php else : ?> |
598 | + |
599 | + <h1 class="title">Not Found</h1> |
600 | + <p>Sorry, no post matched your criteria. Try a different search?</p> |
601 | + |
602 | + <?php endif; ?> |
603 | + |
604 | +</div> |
605 | + |
606 | +<?php get_footer(); ?> |
607 | \ No newline at end of file |
608 | |
609 | === added file 'wp-theme/ubuntu-us-tn/sidebar.php' |
610 | --- wp-theme/ubuntu-us-tn/sidebar.php 1970-01-01 00:00:00 +0000 |
611 | +++ wp-theme/ubuntu-us-tn/sidebar.php 2009-09-09 01:44:01 +0000 |
612 | @@ -0,0 +1,16 @@ |
613 | +<?php if ( is_dynamic_sidebar() ) : ?> |
614 | +<div class="boxes"> |
615 | +<div class="lbox"> |
616 | + <h3>Quick Links</h3> |
617 | + <ul> |
618 | + <li>Launchpad</li> |
619 | + <li>etc.</li> |
620 | + <li>etc.</li> |
621 | + </ul> |
622 | +</div> |
623 | +<div class="rbox"> |
624 | + <h3>Rbox</h3> |
625 | + <p>Do something with me!</p> |
626 | +</div> |
627 | +</div> |
628 | +<?php endif; ?> |
629 | \ No newline at end of file |
630 | |
631 | === added file 'wp-theme/ubuntu-us-tn/single.php' |
632 | --- wp-theme/ubuntu-us-tn/single.php 1970-01-01 00:00:00 +0000 |
633 | +++ wp-theme/ubuntu-us-tn/single.php 2009-09-08 13:09:12 +0000 |
634 | @@ -0,0 +1,35 @@ |
635 | +<?php get_header(); ?> |
636 | + |
637 | +<?php get_sidebar(); ?> |
638 | +<div id="content"><a name="content"></a> |
639 | +<?php if (have_posts()) : ?> |
640 | + |
641 | +<?php while (have_posts()) : the_post(); ?> |
642 | +<div class="post" id="post-<?php the_ID(); ?>"> |
643 | +<div class="title"> |
644 | +<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2> |
645 | + |
646 | +</div> |
647 | +<div class="cover"> |
648 | +<div class="entry"> |
649 | + <?php the_content('Read the rest of this entry »'); ?> |
650 | +</div> |
651 | +</div> |
652 | +<div class="postinfo"> |
653 | + <div class="alignleft"><?php previous_post_link('« %link') ?></div> |
654 | + <div class="alignright"><?php next_post_link('%link »') ?></div> |
655 | +</div> |
656 | + |
657 | + |
658 | +</div> |
659 | +<?php comments_template(); ?> |
660 | + <?php endwhile; else: ?> |
661 | + |
662 | + <h1 class="title">Not Found</h1> |
663 | + <p>I'm Sorry, YOU are looking for something that ISN'T HERE. </p> |
664 | + |
665 | +<?php endif; ?> |
666 | + |
667 | +</div> |
668 | + |
669 | +<?php get_footer(); ?> |
670 | \ No newline at end of file |
671 | |
672 | === added file 'wp-theme/ubuntu-us-tn/style.css' |
673 | --- wp-theme/ubuntu-us-tn/style.css 1970-01-01 00:00:00 +0000 |
674 | +++ wp-theme/ubuntu-us-tn/style.css 2009-09-09 01:44:01 +0000 |
675 | @@ -0,0 +1,163 @@ |
676 | +/* |
677 | +Theme Name: Ubuntu-US-TN |
678 | +Description: 2-column Ubuntu-esque theme |
679 | +Author: mac9416 |
680 | +*/ |
681 | + |
682 | +body { |
683 | + margin: 0; |
684 | + padding-top: 10px; |
685 | + padding-bottom: 10px; |
686 | + padding-left: 15px; |
687 | + padding-right: 15px; |
688 | + background-color: #DCD4B0; |
689 | + font-family: serif; |
690 | + font-size: 13px; |
691 | + } |
692 | +img { |
693 | + border: 0; |
694 | + } |
695 | +blockquote { |
696 | + padding-left: 10px; |
697 | + color: #555; |
698 | + font-style: normal; |
699 | + } |
700 | + |
701 | +/* The Wrapper */ |
702 | + |
703 | +#wrapper { |
704 | + padding-left: 20px; |
705 | + padding-right: 20px; |
706 | + margin: 0 auto; |
707 | + } |
708 | + |
709 | +/* The Top */ |
710 | + |
711 | +#top { |
712 | + height: 210px; |
713 | + margin: auto; |
714 | + background-color: #F1F1DD; |
715 | + border-radius-topleft: 15px; |
716 | + border-radius-topright: 15px; |
717 | + -webkit-border-top-right-radius: 15px; |
718 | + -webkit-border-top-left-radius: 15px; |
719 | + -moz-border-radius-topleft: 15px; |
720 | + -moz-border-radius-topright: 15px; |
721 | + } |
722 | +#top img { |
723 | + display: block; |
724 | + padding-top: 5px; |
725 | + margin-left: auto; |
726 | + margin-right: auto; |
727 | + border: none; |
728 | + } |
729 | + |
730 | +#announcement { |
731 | + display: block; |
732 | + width: 100%; |
733 | + background-color: #F5CD2E; |
734 | + text-align: center; |
735 | + margin: 0px; |
736 | + padding: 0px; |
737 | + font-weight: bold; |
738 | +} |
739 | + |
740 | +.content { |
741 | + background-color: #F1F1DD; |
742 | + padding-top: 25px; |
743 | + padding-left: 20px; |
744 | + padding-right: 20px; |
745 | + min-height: 350px; |
746 | + } |
747 | + |
748 | +/* The Menu */ |
749 | + |
750 | +#menu { |
751 | + display: block; |
752 | + width: 100%; |
753 | + margin: 0px; |
754 | + } |
755 | +#menu ul { |
756 | + margin: 0px; |
757 | + list-style-type: none; |
758 | + width: auto; |
759 | + float: left; |
760 | + } |
761 | +#menu ul li{ |
762 | + display: block; |
763 | + float: left; |
764 | + margin: 0 0 0 2px; |
765 | + width: auto; |
766 | + } |
767 | +#menu ul li a{ |
768 | + display: block; |
769 | + float: left; |
770 | + color: #D3000E; |
771 | + text-align: center; |
772 | + text-decoration: none; |
773 | + padding: 5px 10px 0 10px; |
774 | + width: auto; |
775 | + font-family: sans-serif; |
776 | + font-size: 14pt; |
777 | + font-weight: bold; |
778 | + } |
779 | +#menu ul li a:hover,#menu ul li.current_page_item a { |
780 | + color: #FF6209; |
781 | + text-align: center; |
782 | + } |
783 | + |
784 | +#content { |
785 | + margin: auto; |
786 | + width: 60%; |
787 | + } |
788 | + |
789 | +/* The Sidebar */ |
790 | +.boxes h1, .boxes h2, .boxes h3{ |
791 | + margin: 0; |
792 | + background-color: #808080; |
793 | + -moz-border-radius: 5px; |
794 | + padding: 3px; |
795 | + } |
796 | +.lbox { |
797 | + float: left; |
798 | + width: 16%; |
799 | + font-family: sans-serif; |
800 | + } |
801 | +.rbox { |
802 | + float: right; |
803 | + width: 16%; |
804 | + font-family: sans-serif; |
805 | + } |
806 | +/* --- FOOTER --- */ |
807 | + |
808 | +#footer { |
809 | + color: white; |
810 | + background-color: #2f2f2f; |
811 | + font-size: 8pt; |
812 | + font-weight: normal; |
813 | + text-align: center; |
814 | + border-radius-bottomleft: 15px; |
815 | + border-radius-bottomright: 15px; |
816 | + -webkit-border-bottom-right-radius: 15px; |
817 | + -webkit-border-bottom-left-radius: 15px; |
818 | + -moz-border-radius-bottomleft: 15px; |
819 | + -moz-border-radius-bottomright: 15px; |
820 | + } |
821 | + |
822 | +/* The Page Title */ |
823 | + |
824 | +h2.pagetitle { |
825 | + padding: 0; |
826 | + margin: 0 0 20px 0; |
827 | + font-size: 25px; |
828 | + text-align: center; |
829 | + } |
830 | + |
831 | +.alignright { |
832 | + float: right; |
833 | + width: auto; |
834 | + } |
835 | +.alignleft { |
836 | + float: left; |
837 | + width: auto; |
838 | +} |
839 | \ No newline at end of file |
Improved sidebars, corrected background color, and added a theme control panel for quick editing of announcement and footer text.