PageRenderTime 47ms CodeModel.GetById 12ms RepoModel.GetById 0ms app.codeStats 0ms

/wp-content/plugins/wptouch/themes/default/header.php

https://gitlab.com/endomorphosis/jeffersonsmithmayor
PHP | 212 lines | 211 code | 0 blank | 1 comment | 2 complexity | becf3cccebf033116e50aebb28f4c8e1 MD5 | raw file
  1. <?php
  2. include( dirname(__FILE__) . '/../core/core-header.php' );
  3. // End WPtouch Core Header
  4. ?>
  5. <body class="<?php wptouch_core_body_background(); ?> <?php wptouch_idevice_classes(); ?>">
  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 &rsaquo; 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. <?php if (bnc_is_login_button_enabled()) { ?>
  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" placeholder="<?php _e("Username", "wptouch"); ?>" tabindex="1" value="" /></label>
  28. <label><input type="password" name="pwd" placeholder="<?php _e("Password", "wptouch"); ?>" tabindex="2" id="pwd" value="" /></label>
  29. <input type="hidden" name="rememberme" value="forever" />
  30. <input type="submit" id="logsub" name="submit" value="<?php _e("Login", "wptouch"); ?>" tabindex="3" />
  31. <input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>"/>
  32. <a href="javascript:return false;"><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. <?php } ?>
  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('url'); ?>/">
  41. <input type="text" placeholder="<?php _e( "Search...", "wptouch" ); ?>" name="s" id="s" />
  42. <input name="submit" type="submit" tabindex="1" id="search-submit" placeholder="<?php _e("Search...", "wptouch"); ?>" />
  43. <a href="javascript:return false;"><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. <div id="wptouch-menu" class="dropper">
  48. <div id="wptouch-menu-inner">
  49. <div id="menu-head">
  50. <div id="tabnav">
  51. <a href="#head-pages"><?php _e("Menu", "wptouch"); ?></a>
  52. <?php if (bnc_is_tags_button_enabled()) { wptouch_tags_link(); } ?>
  53. <?php if (bnc_is_cats_button_enabled()) { wptouch_cats_link(); } ?>
  54. <?php if (bnc_is_login_button_enabled()) { ?>
  55. <?php if (!is_user_logged_in()) { ?>
  56. <a id="loginopen" href="#head-account"><?php _e( "Login", "wptouch" ); ?></a>
  57. <?php } else { ?>
  58. <a href="#head-account"><?php _e( "My Account", "wptouch" ); ?></a>
  59. <?php } ?>
  60. <?php } ?>
  61. </div>
  62. <ul id="head-pages">
  63. <?php wptouch_core_header_home(); ?>
  64. <?php wptouch_core_header_pages(); ?>
  65. <?php wptouch_core_header_rss(); ?>
  66. <?php wptouch_core_header_email(); ?>
  67. </ul>
  68. <?php if (bnc_is_cats_button_enabled()) { ?>
  69. <ul id="head-cats">
  70. <?php bnc_get_ordered_cat_list( 35 ); ?>
  71. </ul>
  72. <?php } ?>
  73. <?php if (bnc_is_tags_button_enabled()) { ?>
  74. <ul id="head-tags">
  75. <li><?php wptouch_ordered_tag_list( 35 ); ?></li>
  76. </ul>
  77. <?php } ?>
  78. <?php if (bnc_is_login_button_enabled()) { ?>
  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. <br /><br />
  85. <?php _e( "Not registered yet?", "wptouch"); ?>
  86. <br />
  87. <?php echo sprintf(__( "You can %ssign-up here%s.", "wptouch" ), '<a href="' . get_bloginfo('wpurl') . '/wp-register.php" target="_blank">','</a>'); ?>
  88. <?php endif; ?>
  89. </li>
  90. <?php } else { ?>
  91. <?php if (current_user_can('edit_posts')) : ?>
  92. <li><a href="<?php bloginfo('wpurl'); ?>/wp-admin/"><?php _e("Admin", "wptouch"); ?></a></li>
  93. <?php endif; ?>
  94. <?php if (get_option('comment_registration')) { ?>
  95. <li><a href="<?php bloginfo('wpurl'); ?>/wp-register.php"><?php _e( "Register for this site", "wptouch" ); ?></a></li>
  96. <?php } ?>
  97. <?php if (is_user_logged_in()) { ?>
  98. <li><a href="<?php bloginfo('wpurl'); ?>/wp-admin/profile.php"><?php _e( "Account Profile", "wptouch" ); ?></a></li>
  99. <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>
  100. <?php } ?>
  101. <?php } ?>
  102. </ul>
  103. <?php } ?>
  104. </div>
  105. </div>
  106. </div>
  107. <div id="headerbar">
  108. <div id="headerbar-title">
  109. <!-- This fetches the admin selection logo icon for the header, which is also the bookmark icon -->
  110. <img id="logo-icon" src="<?php echo bnc_get_title_image(); ?>" alt="<?php $str = bnc_get_header_title(); echo stripslashes($str); ?>" />
  111. <a href="<?php bloginfo('url'); ?>"><?php wptouch_core_body_sitetitle(); ?></a>
  112. </div>
  113. <div id="headerbar-menu">
  114. <a href="javascript:return false;"></a>
  115. </div>
  116. </div>
  117. <div id="drop-fade">
  118. <?php if (bnc_is_search_enabled()) { ?>
  119. <a id="searchopen" class="top" href="javascript:return false;"><?php _e( 'Search', 'wptouch' ); ?></a>
  120. <?php } ?>
  121. <?php if (bnc_is_prowl_direct_message_enabled()) { ?>
  122. <a id="prowlopen" class="top" href="javascript:return false;"><?php _e( 'Message', 'wptouch' ); ?></a>
  123. <?php } ?>
  124. <?php if ( function_exists( 'wordtwit_get_recent_tweets' ) && wordtwit_is_valid() && bnc_can_show_tweets() ) { ?>
  125. <a id="wordtwitopen" class="top" href="javascript:return false;"><?php _e( 'Twitter', 'wptouch' ); ?></a>
  126. <?php } ?>
  127. <?php if ( function_exists( 'gigpress_shows' ) && bnc_is_gigpress_enabled()) { ?>
  128. <a id="gigpressopen" class="top" href="javascript:return false;"><?php _e( 'Tour Dates', 'wptouch' ); ?></a>
  129. <?php } ?>
  130. <!-- #start the Prowl Message Area -->
  131. <div id="prowl-message" style="display:none">
  132. <div id="push-style-bar"></div><!-- filler to get the styling just right -->
  133. <img src="<?php echo compat_get_plugin_url( 'wptouch' ); ?>/themes/core/core-images/push-icon.png" alt="push icon" />
  134. <h4><?php _e( 'Send a Message', 'wptouch' ); ?></h4>
  135. <p><?php _e( 'This message will be pushed to the admin\'s iPhone instantly.', 'wptouch' ); ?></p>
  136. <form id="prowl-direct-message" method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
  137. <p>
  138. <input name="prowl-msg-name" id="prowl-msg-name" type="text" />
  139. <label for="prowl-msg-name"><?php _e( 'Name', 'wptouch' ); ?></label>
  140. </p>
  141. <p>
  142. <input name="prowl-msg-email" id="prowl-msg-email" type="text" />
  143. <label for="prowl-msg-email"><?php _e( 'E-Mail', 'wptouch' ); ?></label>
  144. </p>
  145. <textarea name="prowl-msg-message"></textarea>
  146. <input type="hidden" name="wptouch-prowl-message" value="1" />
  147. <input type="hidden" name="_nonce" value="<?php echo wp_create_nonce( 'wptouch-prowl' ); ?>" />
  148. <input type="submit" name="prowl-submit" value="<?php _e('Send Now', 'wptouch' ); ?>" id="prowl-submit" />
  149. </form>
  150. <div class="clearer"></div>
  151. </div>
  152. <?php if ( function_exists( 'wordtwit_get_recent_tweets' ) && wordtwit_is_valid() && bnc_can_show_tweets() ) { ?>
  153. <!-- #start the WordTwit Twitter Integration -->
  154. <?php $tweets = wordtwit_get_recent_tweets(); ?>
  155. <div id="wptouch-wordtwit" class="dropper" style="display:none">
  156. <div id="twitter-style-bar"></div><!-- filler to get the styling just right -->
  157. <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>
  158. <div id="wordtwit-avatar">
  159. <img src="<?php echo wordtwit_get_profile_url(); ?>" alt="Twitter Avatar" />
  160. <p class="twitter_username"><?php echo wordtwit_get_username(); ?></p>
  161. <p><a href="http://twitter.com/<?php echo wordtwit_get_username(); ?>" target="_blank"><?php _e( 'Follow me on Twitter', 'wptouch' ); ?></a></p>
  162. </div>
  163. <?php $now = time(); ?>
  164. <ul id="tweets">
  165. <?php if ( $tweets ) { ?>
  166. <?php foreach( $tweets as $tweet ) { ?>
  167. <li>
  168. <?php echo strip_tags( $tweet['content'], ''); ?>
  169. <p class="time"><?php echo wordtwit_friendly_date( $tweet['published'] ); ?></p>
  170. </li>
  171. <?php } ?>
  172. <?php } else { ?>
  173. <li><?php _e( "No recent Tweets.", "wptouch" ); ?><br /><br /></li>
  174. <?php } ?>
  175. </ul>
  176. </div>
  177. <?php } ?>
  178. <?php if (function_exists ('gigpress_shows')) { ?>
  179. <!-- #start the GigPress Area -->
  180. <div id="wptouch-gigpress" class="dropper" style="display:none">
  181. <div id="gigpress-style-bar"></div><!-- filler to get the styling just right -->
  182. <img src="<?php echo compat_get_plugin_url( 'wptouch' ); ?>/themes/core/core-images/gigpress.png" id="music-icon" alt="GigPress" />
  183. <h4><?php _e( 'Upcoming Tour Dates', 'wptouch' ); ?></h4>
  184. <?php
  185. $options = array('scope' => 'upcoming', 'limit' => 10);
  186. echo gigpress_shows($options);
  187. ?>
  188. </div>
  189. <?php } ?>
  190. </div>
  191. <?php wptouch_core_header_check_use();