source: trunk/www.guidonia.net/wp/wp-content/plugins/wordpress-mobile-edition/carrington-mobile-1.0.2/footer/footer-default.php@ 44

Last change on this file since 44 was 44, checked in by luciano, 14 years ago
File size: 1.8 KB
Line 
1<?php
2
3// This file is part of the Carrington Mobile Theme for WordPress
4// http://carringtontheme.com
5//
6// Copyright (c) 2008-2009 Crowd Favorite, Ltd. All rights reserved.
7// http://crowdfavorite.com
8//
9// Released under the GPL license
10// http://www.opensource.org/licenses/gpl-license.php
11//
12// **********************************************************************
13// This program is distributed in the hope that it will be useful, but
14// WITHOUT ANY WARRANTY; without even the implied warranty of
15// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16// **********************************************************************
17
18if (__FILE__ == $_SERVER['SCRIPT_FILENAME']) { die(); }
19if (CFCT_DEBUG) { cfct_banner(__FILE__); }
20
21cfct_form('search');
22
23if (is_page()) {
24 global $post;
25 $parent = $post->ID;
26 ob_start();
27 wp_list_pages('title_li=&depth=1&child_of='.$parent);
28 $sub_pages = ob_get_contents();
29 ob_end_clean();
30} else {
31 $sub_pages = '';
32}
33
34if (!empty($sub_pages)) {
35 $sub_pages = '<li><strong class="title">'.__('Sub Pages', 'carrington-mobile').'</strong></li>'.$sub_pages.'<li><strong class="title">'.__('Top Level Pages', 'carrington-mobile').'</strong></li>';
36}
37
38?>
39<hr />
40
41<div class="tabbed">
42 <div id="recent_tab">
43 <hr />
44 <h2 class="table-title" id="recent"><?php _e('Recent Posts'); ?></h2>
45 <ul class="disclosure table group">
46 <?php wp_get_archives('type=postbypost&limit=10'); ?>
47 </ul>
48 </div>
49 <div id="pages_tab">
50 <hr />
51 <h2 class="table-title" id="pages"><?php _e('Pages'); ?></h2>
52 <ul class="disclosure table group">
53 <?php echo $sub_pages; wp_list_pages('title_li=&depth=1'); ?>
54 </ul>
55 </div>
56</div>
57
58<hr />
59
60<p id="navigation-bottom" class="navigation">
61 <?php cfct_misc('main-nav'); ?>
62</p>
63
64<hr />
65
66<?php
67
68cfct_template_file('footer', 'bottom');
69
70?>
Note: See TracBrowser for help on using the repository browser.