Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
- <head profile="http://gmpg.org/xfn/11">
- <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
- <title><?php wp_title('«', true, 'right'); ?> <?php bloginfo('name'); ?> - <?php bloginfo('description'); ?></title>
- <!-- Include all the Javascripts -->
- <script src="<?php bloginfo('template_directory'); ?>/js/jquery-1.3.2.min.js" type="text/javascript"></script>
- <script src="<?php bloginfo('template_directory'); ?>/js/jquery.cycle.all.min.js" type="text/javascript"></script>
- <script src="<?php bloginfo('template_directory'); ?>/js/swfobject.js" type="text/javascript"></script>
- <script type="text/javascript"> var tb_pathToImage = "<?php bloginfo('template_directory'); ?>/images/loadingAnimation.gif"; </script>
- <script src="<?php bloginfo('template_directory'); ?>/js/thickbox-compressed.js" type="text/javascript" ></script>
- <script src="<?php bloginfo('template_directory'); ?>/js/jquery.bt.min.js" type="text/javascript" ></script>
- <script src="<?php bloginfo('template_directory'); ?>/js/jquery.pngFix.pack.js" type="text/javascript" ></script>
- <script src="<?php bloginfo('template_directory'); ?>/js/cufon-yui.js" type="text/javascript" ></script>
- <script src="<?php bloginfo('template_directory'); ?>/js/VAG_Rounded_Light_200.font.js" type="text/javascript" ></script>
- <!-- Get all Stylesheets -->
- <link rel="stylesheet" type="text/css" media="screen" href="<?php bloginfo('template_directory'); ?>/thickbox.css" />
- <link rel="stylesheet" type="text/css" media="screen" href="<?php echo get_bloginfo('stylesheet_url'); ?>" />
- <link rel="stylesheet" href="<?php bloginfo('template_url');?>/pagenavi-css.css" type="text/css" media="screen" />
- <!-- Get the Color Scheme -->
- <?php $colorscheme = get_settings("ftoptions_color_scheme"); ?>
- <?php
- if($colorscheme == "dark")
- {
- ?>
- <link rel="stylesheet" type="text/css" media="screen" href="<?php bloginfo('template_directory'); ?>/dark.css" />
- <?php
- }
- else
- {
- ?>
- <link rel="stylesheet" type="text/css" media="screen" href="<?php bloginfo('template_directory'); ?>/light.css" />
- <?php
- }
- ?>
- <!--[if IE 6]>
- <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_url');?>/ie_hacks.css" />
- <![endif]-->
- <script type="text/javascript">
- $(document).ready(function(){
- $("#logo").pngFix();
- $("#content").pngFix();
- $(".more").pngFix();
- $(".ratings").pngFix();
- $("#pageHeader").pngFix();
- });
- </script>
- <!-- Other Blog Metadata -->
- <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
- <link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
- <link rel="alternate" type="application/atom+xml" title="Atom 1.0" href="<?php bloginfo('atom_url'); ?>" />
- <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
- <!-- This is required for Threaded comments -->
- <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
- <!-- Include other information for header -->
- <?php wp_head(); ?>
- </head>
- <body>
- <!-- This is the div which is displayed when page is being loaded -->
- <div id="loading" style="display: none;"><img src="<?php echo get_bloginfo('template_directory'); ?>/images/ajax-loader.gif" style="float: left; margin-right: 10px;"> Loading...</div>
- <div id="wrapper" style="">
- <div id="header">
- <div class="right topmenu">
- <small>
- <?php
- get_currentuserinfo();
- global $user_level;
- if ($user_level > 0)
- {
- wp_register('','');
- echo " | <a href='".wp_logout_url($redirect)."'>Logout</a>";
- }
- else
- {
- ?>
- <?php
- echo "<a href='".wp_login_url($redirect)."'>Login</a> | ";
- ?>
- <a>/wp-login.php?action=register"><?php _e('Register') ?></a>
- <?php
- }
- ?>
- </small>
- </div>
- <?php $logo = get_bloginfo('template_directory') . "/images/logo.png"; ?>
- <?php
- if (@fclose(@fopen($logo, "r")))
- {
- ?>
- <a>/"><img src="<?php echo $logo; ?>" alt="<?php bloginfo('name'); ?>"></a>
- <?php
- }
- else
- {
- ?>
- <h1><a>/"><?php bloginfo('name')?></a></h1>
- <?php
- }
- ?>
- <?php
- $ignoredCategories = get_settings("ftoptions_ignored_categories");
- $q1 = "";
- if($ignoredCategories)
- {
- foreach ($ignoredCategories as $value)
- {
- $value = str_replace(" ", "-",$value);
- $id = get_cat_id($value);
- $q1 = $q1 . $id . ",";
- }
- $q1 = substr($q1, 0, strlen($q1)-1);
- }
- $ignoredPages = get_settings("ftoptions_ignored_pages");
- $q2 = "";
- if($ignoredPages)
- {
- foreach ($ignoredPages as $value)
- {
- $value = str_replace(" ", "-",$value);
- $id = $wpdb->get_var("SELECT ID FROM $wpdb->posts WHERE post_name = '".$value."'");
- if($id != "") { $q2 = $q2 . $id . ","; }
- }
- $q2 = substr($q2, 0, strlen($q2)-1);
- }
- ?>
- <div class="left">
- <ul id="subnavbar">
- <li class="page_item<?php if(is_home()){echo(' current_page_item');} ?>"><a title="Latest">">Home</a>
- <?php
- $stickyCategories = get_settings("ftoptions_sticky_categories");
- if($stickyCategories)
- {
- foreach ($stickyCategories as $value)
- {
- $value = str_replace(" ", "-",$value);
- $id = get_cat_id($value);
- wp_list_categories('include='.$id.'&title_li=');
- }
- }
- ?>
- <?php //wp_page_menu('show_home=0&exclude='.$q2.'&menu_class=page_item&sort_column=menu_order'); ?>
- <?php wp_list_pages('title_li=&exclude='.$q2); ?>
- </div>
- </div>
- <div class="clear"></div>
- <div id="navigation">
- <ul id="navbar">
- <div class="right"><?php include (TEMPLATEPATH . '/searchform.php'); ?></div>
- <?php
- $max = (!get_settings("ftoptions_max_categories")) ? '5' : get_settings("ftoptions_max_categories");
- $current_category = single_cat_title("",false);
- $categories = wp_list_categories('orderby=name&titile_li=&depth=1&style=none&echo=0&exclude='.$q1);
- $regex_pattern = "/<a href="(.*)" title="(.*)">(.*)<\/a>/";
- preg_match_all($regex_pattern,$categories,$matches);
- if(count($matches[0]) > $max) { $total = $max; } else { $total = count($matches[0]); }
- for($i=0; $i<$total; $i++)
- {
- $className = "";
- if( $current_category == $matches[3][$i] )
- {
- $className = "current-cat";
- }
- echo "<li class='cat-item ".$className."'>" .$matches[0][$i] . "\n";
- }
- if(count($matches[0]) > $max)
- {
- echo "<li class='cat-item more'></a><a href=''><img style='float: left; margin-right: 5px; ' src='".get_bloginfo('template_directory')."/images/more_icon.png'> More...</a>";
- echo "<ul id='navbar_more'>";
- for($i=$max; $i<count($matches[0]); $i++)
- {
- $className = "";
- if( $current_category == $matches[3][$i] )
- {
- $className = "current-cat";
- }
- echo "<li class='children ".$className."'>" .$matches[0][$i] . "\n";
- }
- echo "";
- }
- ?>
- <div class="clear"></div>
- </div>
- <?php
- $tempvalue = wp_list_categories('echo=0&title_li=&style=list&child_of=' . intval(get_query_var('cat')));
- if ( get_query_var('cat') && $tempvalue != "
- <li>No categories</li>
- ")
- {
- echo '<div style="background: #666;height: 27px;">';
- echo '<ul id="navbar_sub">';
- echo $tempvalue;
- echo '';
- echo '</div>';
- echo '<div class="clear"></div>';
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement