Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2011
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.25 KB | None | 0 0
  1. <?php
  2.  
  3. require_once get_template_directory()."/BX_functions.php";
  4.  
  5.  
  6.  
  7. if (!$blix_sidebar && is_page() && get_page_template() != get_template_directory() . '/archives.php') {
  8.  
  9. $col_class = ' class="singlecol"';
  10.  
  11. } else {
  12.  
  13. $col_class = ' class="doublecol"';
  14.  
  15. }
  16.  
  17. ?>
  18.  
  19. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  20.  
  21. <html <?php language_attributes( $doctype ) ?> xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
  22.  
  23. <head>
  24.  
  25. <title><?php bloginfo('name'); wp_title(); ?></title>
  26.  
  27. <meta http-equiv="Content-Type" content="<?php bloginfo('charset'); ?>" />
  28.  
  29. <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" />
  30.  
  31. <?php if ($blix_layout == 'Fixed Width') { ?>
  32.  
  33. <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen, projection" />
  34.  
  35. <?php } else if ($blix_layout == 'Fluid Width') { ?>
  36.  
  37. <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/style-fluid.css" type="text/css" media="screen, projection" />
  38.  
  39. <?php } ?>
  40.  
  41. <!--[if IE 7]>
  42.  
  43. <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/css/ie7.css" type="text/css" media="screen, projection" />
  44.  
  45. <![endif]-->
  46.  
  47. <!--[if IE 6]>
  48.  
  49. <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/css/ie6.css" type="text/css" media="screen, projection" />
  50.  
  51. <![endif]-->
  52.  
  53. <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
  54.  
  55. <link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
  56.  
  57. <link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
  58.  
  59. <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
  60.  
  61. <?php /*comments_popup_script(520, 550);*/ ?>
  62.  
  63. <?php wp_head();?>
  64.  
  65. </head>
  66.  
  67. <body>
  68.  
  69. <div id="container"<?php echo $col_class; ?>>
  70.  
  71. <div id="header">
  72.  
  73.  
  74. <h1><a href="http://bequjuice.com/">beQu Juice::Premium Juice Brand</a></h1>
  75.  
  76. <h3><?php bloginfo('description'); ?></h3>
  77.  
  78. </div>
  79.  
  80. <div id="navigation">
  81.  
  82. <ul>
  83.  
  84. <li<?php if (is_front_page()) echo ' class="selected"'; ?>><a href="<?php bloginfo('url'); ?>"><?php _e('Blog Home'); ?></a></li>
  85.  
  86. <?php
  87.  
  88. $param_parent = $blix_navigation_hide_subpages ? '&parent=0' : '';
  89.  
  90. if ($blix_navigation_location == 'Sidebar') {
  91.  
  92. $include_pages = array('about', 'archives', 'contact');
  93.  
  94. $param_include = '&include=';
  95.  
  96. foreach ($include_pages as $page) {
  97.  
  98. $include_page = get_page_by_path($page);
  99.  
  100. if ($include_page != NULL) {
  101.  
  102. if ($include_page->ID != get_option('page_on_front')) {
  103.  
  104. $param_include .= $include_page->ID . ',';
  105.  
  106. }
  107.  
  108. }
  109.  
  110. }
  111.  
  112. $param_include = rtrim($param_include, ',');
  113.  
  114. }
  115.  
  116. if ($param_include != '&include=') {
  117.  
  118. $pages = get_pages('sort_column=menu_order' . $param_parent . $param_include . '&exclude=' . get_option('page_on_front'));
  119.  
  120. foreach ($pages as $page) {
  121.  
  122. switch ($page->post_name) {
  123.  
  124. case 'archives':
  125.  
  126. (is_page($page->ID) || is_archive() || is_search() || is_single())?$selected = ' class="selected"':$selected='';
  127.  
  128. echo ' <li', $selected, '><a href="', get_page_link($page->ID), '">', __('Archives'), '</a></li>', "\n";
  129.  
  130. break;
  131.  
  132. case 'about':
  133.  
  134. (is_page($page->ID))?$selected = ' class="selected"':$selected='';
  135.  
  136. echo ' <li', $selected, '><a href="', get_page_link($page->ID),'">', __('About'), '</a></li>', "\n";
  137.  
  138. break;
  139.  
  140. case 'contact':
  141.  
  142. (is_page($page->ID))?$selected = ' class="selected"':$selected='';
  143.  
  144. echo ' <li', $selected, '><a href="', get_page_link($page->ID), '">', __('contact'), '</a></li>', "\n";
  145.  
  146. break;
  147.  
  148. case 'about_short':
  149.  
  150. break;
  151.  
  152. default:
  153.  
  154. (is_page($page->ID))?$selected = ' class="selected"':$selected='';
  155.  
  156. echo ' <li', $selected, '><a href="', get_page_link($page->ID), '">', $page->post_title, '</a></li>', "\n";
  157.  
  158. }
  159.  
  160. }
  161.  
  162. }
  163.  
  164. $locale = get_locale();
  165.  
  166. $search = !$locale || $locale == 'en_US' ? 'Go!' : 'Search';
  167.  
  168. ?>
  169.  
  170. </ul>
  171.  
  172. <form action="<?php bloginfo('url'); ?>/" method="get">
  173.  
  174. <fieldset>
  175.  
  176. <input value="<?php echo wp_specialchars($s, 1); ?>" name="s" id="s" />
  177.  
  178. <input type="submit" value="<?php _e($search); ?>" id="searchbutton" />
  179.  
  180. </fieldset>
  181.  
  182. </form>
  183.  
  184. <div style="clear:both;"></div>
  185.  
  186. </div>
  187.  
  188.  
  189.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement