|
1 <?php |
|
2 include( dirname(__FILE__) . '/../core/core-header.php' ); |
|
3 // End WPtouch Core Header |
|
4 ?> |
|
5 <body class="<?php wptouch_core_body_background(); ?>"> |
|
6 <!-- New noscript check, we need js on now folks --> |
|
7 <noscript> |
|
8 <div id="noscript-wrap"> |
|
9 <div id="noscript"> |
|
10 <h2><?php _e("Notice", "wptouch"); ?></h2> |
|
11 <p><?php _e("JavaScript for Mobile Safari is currently turned off.", "wptouch"); ?></p> |
|
12 <p><?php _e("Turn it on in ", "wptouch"); ?><em><?php _e("Settings › Safari", "wptouch"); ?></em><br /><?php _e(" to view this website.", "wptouch"); ?></p> |
|
13 </div> |
|
14 </div> |
|
15 </noscript> |
|
16 <!-- Prowl: if DM is sent, let's tell the user what happened --> |
|
17 <?php if (bnc_prowl_did_try_message()) { if (bnc_prowl_message_success()) { ?> |
|
18 <div id="prowl-success"><p><?php _e("Your Push Notification was sent.", "wptouch"); ?></p></div> |
|
19 <?php } else { ?> |
|
20 <div id="prowl-fail"><p><?php _e("Your Push Notification cannot be delivered at this time.", "wptouch"); ?></p></div> |
|
21 <?php } } ?> |
|
22 |
|
23 <!--#start The Login Overlay --> |
|
24 <div id="wptouch-login"> |
|
25 <div id="wptouch-login-inner"> |
|
26 <form name="loginform" id="loginform" action="<?php bloginfo('wpurl'); ?>/wp-login.php" method="post"> |
|
27 <label><input type="text" name="log" id="log" onfocus="if (this.value == 'username') {this.value = ''}" value="username" /></label> |
|
28 <label><input type="password" name="pwd" onfocus="if (this.value == 'password') {this.value = ''}" id="pwd" value="password" /></label> |
|
29 <input type="hidden" name="rememberme" value="forever" /> |
|
30 <input type="hidden" id="logsub" name="submit" value="<?php _e('Login'); ?>" tabindex="9" /> |
|
31 <input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>"/> |
|
32 <a href="javascript: return false;" onclick="bnc_jquery_login_toggle();"><img class="head-close" src="<?php echo compat_get_plugin_url( 'wptouch' ); ?>/themes/core/core-images/head-close.png" alt="close" /></a> |
|
33 </form> |
|
34 </div> |
|
35 </div> |
|
36 |
|
37 <!-- #start The Search Overlay --> |
|
38 <div id="wptouch-search"> |
|
39 <div id="wptouch-search-inner"> |
|
40 <form method="get" id="searchform" action="<?php bloginfo('home'); ?>/"> |
|
41 <input type="text" value="Search..." onfocus="if (this.value == 'Search...') {this.value = ''}" name="s" id="s" /> |
|
42 <input name="submit" type="hidden" tabindex="5" value="Search" /> |
|
43 <a href="javascript: return false;" onclick="bnc_jquery_search_toggle();"><img class="head-close" src="<?php echo compat_get_plugin_url( 'wptouch' ); ?>/themes/core/core-images/head-close.png" alt="close" /></a> |
|
44 </form> |
|
45 </div> |
|
46 </div> |
|
47 |
|
48 <div id="wptouch-menu" class="dropper"> |
|
49 <div id="wptouch-menu-inner"> |
|
50 <div id="menu-head"> |
|
51 <div id="tabnav"> |
|
52 <a href="#head-pages"><?php _e("Menu", "wptouch"); ?></a> |
|
53 <?php if (bnc_is_tags_button_enabled()) { wptouch_tags_link(); } ?> |
|
54 <?php if (bnc_is_cats_button_enabled()) { wptouch_cats_link(); } ?> |
|
55 <?php if (bnc_is_login_button_enabled()) { ?> |
|
56 <?php if (!is_user_logged_in()) { ?> |
|
57 <a href="#head-account" onclick="bnc_jquery_login_toggle();"><?php _e( 'Login', 'wptouch' ); ?></a> |
|
58 <?php } else { ?> |
|
59 <a href="#head-account"><?php _e( 'My Account', 'wptouch' ); ?></a> |
|
60 <?php } ?> |
|
61 <?php } ?> |
|
62 </div> |
|
63 |
|
64 <ul id="head-pages"> |
|
65 <?php wptouch_core_header_home(); ?> |
|
66 <?php wptouch_core_header_pages(); ?> |
|
67 <?php wptouch_core_header_rss(); ?> |
|
68 <?php wptouch_core_header_email(); ?> |
|
69 </ul> |
|
70 |
|
71 <ul id="head-cats"> |
|
72 <?php bnc_get_ordered_cat_list(); ?> |
|
73 </ul> |
|
74 |
|
75 <ul id="head-tags"> |
|
76 <li><?php wp_tag_cloud('smallest=13&largest=13&unit=px&number=30&order=asc&format=list'); ?></li> |
|
77 </ul> |
|
78 |
|
79 <ul id="head-account"> |
|
80 <?php if (!is_user_logged_in()) { ?> |
|
81 <li class="text"> |
|
82 <?php _e( "Enter your username and password<br />in the boxes above.", "wptouch" ); ?> |
|
83 <?php if (!get_option('comment_registration')) : ?> |
|
84 <?php echo sprintf(__( "<br /><br />Not registered yet?<br />You can %ssign-up here%s.", "wptouch" ), '<a href="' . get_bloginfo('wpurl') . '/wp-register.php" target="_blank">','</a>'); ?> |
|
85 <?php endif; ?> |
|
86 </li> |
|
87 <?php } else { ?> |
|
88 <?php if (current_user_can('edit_posts')) : ?> |
|
89 <li><a href="<?php bloginfo('wpurl'); ?>/wp-admin/"><?php _e("Admin", "wptouch"); ?></a></li> |
|
90 <?php endif; ?> |
|
91 <?php if (get_option('comment_registration')) { ?> |
|
92 <li><a href="<?php bloginfo('wpurl'); ?>/wp-register.php"><?php _e( "Register for this site", "wptouch" ); ?></a></li> |
|
93 <?php } ?> |
|
94 <?php if (is_user_logged_in()) { ?> |
|
95 <li><a href="<?php bloginfo('wpurl'); ?>/wp-admin/profile.php"><?php _e( "Account Profile", "wptouch" ); ?></a></li> |
|
96 <li><a href="<?php $version = (float)get_bloginfo('version'); if ($version >= 2.7) { ?><?php echo wp_logout_url($_SERVER['REQUEST_URI']); } else { bloginfo('wpurl'); ?>/wp-login.php?action=logout&redirect_to=<?php echo $_SERVER['REQUEST_URI']; ?><?php } ?>"><?php _e( "Logout", "wptouch" ); ?></a></li> |
|
97 <?php } ?> |
|
98 <?php } ?> |
|
99 </ul> |
|
100 </div> |
|
101 </div> |
|
102 </div> |
|
103 |
|
104 |
|
105 <div id="headerbar"> |
|
106 <div id="headerbar-title"> |
|
107 <!-- This fetches the admin selection logo icon for the header, which is also the bookmark icon --> |
|
108 <img id="logo-icon" src="<?php echo bnc_get_title_image(); ?>" alt="<?php $str = bnc_get_header_title(); echo stripslashes($str); ?>" /> |
|
109 <a href="<?php bloginfo('home'); ?>"><?php wptouch_core_body_sitetitle(); ?></a> |
|
110 </div> |
|
111 <div id="headerbar-menu"> |
|
112 <a href="#" onclick="bnc_jquery_menu_drop(); return false;"></a> |
|
113 </div> |
|
114 </div> |
|
115 |
|
116 <div id="drop-fade"> |
|
117 <?php if (bnc_is_search_enabled()) { ?> |
|
118 <a id="searchopen" class="top" href="#" onclick="bnc_jquery_search_toggle(); return false;"><?php _e( 'Search', 'wptouch' ); ?></a> |
|
119 <?php } ?> |
|
120 |
|
121 <?php if (bnc_is_prowl_direct_message_enabled()) { ?> |
|
122 <a id="prowlopen" class="top" href="#" onclick="bnc_jquery_prowl_open(); return false;"><?php _e( 'Message', 'wptouch' ); ?></a> |
|
123 <?php } ?> |
|
124 |
|
125 <?php if ( function_exists( 'wordtwit_get_recent_tweets' ) && wordtwit_is_valid() && bnc_can_show_tweets() ) { ?> |
|
126 <a id="wordtwitopen" class="top" href="#" onclick="bnc_jquery_wordtwit_open(); return false;"><?php _e( 'Twitter', 'wptouch' ); ?></a> |
|
127 <?php } ?> |
|
128 |
|
129 <?php if ( function_exists( 'gigpress_shows' ) && bnc_is_gigpress_enabled()) { ?> |
|
130 <a id="gigpressopen" class="top" href="#" onclick="bnc_jquery_gigpress_toggle(); return false;"><?php _e( 'Tour Dates', 'wptouch' ); ?></a> |
|
131 <?php } ?> |
|
132 |
|
133 <!-- #start the Prowl Message Area --> |
|
134 <div id="prowl-message" style="display:none"> |
|
135 <div id="push-style-bar"></div><!-- filler to get the styling just right --> |
|
136 <img src="<?php echo compat_get_plugin_url( 'wptouch' ); ?>/themes/core/core-images/push-icon.png" alt="push icon" /> |
|
137 <h4><?php _e( 'Send a Message', 'wptouch' ); ?></h4> |
|
138 <p><?php _e( 'This message will be pushed to the admin\'s iPhone instantly.', 'wptouch' ); ?></p> |
|
139 |
|
140 <form id="prowl-direct-message" method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>"> |
|
141 <p> |
|
142 <input name="prowl-msg-name" id="prowl-msg-name" type="text" /> |
|
143 <label for="prowl-msg-name"><?php _e( 'Name', 'wptouch' ); ?></label> |
|
144 </p> |
|
145 |
|
146 <p> |
|
147 <input name="prowl-msg-email" id="prowl-msg-email" type="text" /> |
|
148 <label for="prowl-msg-email"><?php _e( 'E-Mail', 'wptouch' ); ?></label> |
|
149 </p> |
|
150 |
|
151 <textarea name="prowl-msg-message"></textarea> |
|
152 <input type="hidden" name="wptouch-prowl-message" value="1" /> |
|
153 <input type="hidden" name="_nonce" value="<?php echo wp_create_nonce( 'wptouch-prowl' ); ?>" /> |
|
154 <input type="submit" name="prowl-submit" value="<?php _e('Send Now', 'wptouch' ); ?>" id="prowl-submit" /> |
|
155 </form> |
|
156 <div class="clearer"></div> |
|
157 </div> |
|
158 |
|
159 <?php if ( function_exists( 'wordtwit_get_recent_tweets' ) && wordtwit_is_valid() && bnc_can_show_tweets() ) { ?> |
|
160 <!-- #start the WordTwit Twitter Integration --> |
|
161 <?php $tweets = wordtwit_get_recent_tweets(); ?> |
|
162 <div id="wptouch-wordtwit" class="dropper" style="display:none"> |
|
163 <div id="twitter-style-bar"></div><!-- filler to get the styling just right --> |
|
164 <a id="follow-arrow" href="http://twitter.com/<?php echo wordtwit_get_username(); ?>" target="_blank"><img src="<?php echo compat_get_plugin_url( 'wptouch' ); ?>/themes/core/core-images/twitter-arrow.jpg" alt="follow me" /></a> |
|
165 <div id="wordtwit-avatar"> |
|
166 <img src="<?php echo wordtwit_get_profile_url(); ?>" alt="Twitter Avatar" /> |
|
167 <p class="twitter_username"><?php echo wordtwit_get_username(); ?></p> |
|
168 <p><a href="http://twitter.com/<?php echo wordtwit_get_username(); ?>" target="_blank">Follow me on Twitter</a></p> |
|
169 </div> |
|
170 |
|
171 <?php $now = time(); ?> |
|
172 <ul id="tweets"> |
|
173 <?php foreach( $tweets as $tweet ) { ?> |
|
174 <li> |
|
175 <?php echo strip_tags( $tweet['content'], ''); ?> |
|
176 <p class="time"><?php echo wordtwit_friendly_date( strtotime( $tweet['published'] ) ); ?></p> |
|
177 </li> |
|
178 <?php } ?> |
|
179 </ul> |
|
180 </div> |
|
181 <?php } ?> |
|
182 |
|
183 <?php if (function_exists ('gigpress_shows')) { ?> |
|
184 <!-- #start the GigPress Area --> |
|
185 <div id="wptouch-gigpress" class="dropper" style="display:none"> |
|
186 <div id="gigpress-style-bar"></div><!-- filler to get the styling just right --> |
|
187 <img src="<?php echo compat_get_plugin_url( 'wptouch' ); ?>/themes/core/core-images/gigpress.png" alt="GigPress" /> |
|
188 <h4><?php _e( 'Tour Dates', 'wptouch' ); ?></h4> |
|
189 <?php |
|
190 $options = array('scope' => 'upcoming', 'limit' => 10); |
|
191 echo gigpress_shows($options); |
|
192 ?> |
|
193 </div> |
|
194 <?php } ?> |
|
195 </div> |
|
196 <!-- #start the wptouch plugin use check --> |
|
197 <?php wptouch_core_header_check_use(); ?> |