Ja ich verwende das Plugin Ubermenu. Das Plugin konnte ich mit der makierten Codezeile einfach integrieren.
header.php
PHP
<!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">
<head>
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<?php
$zenverse_global_meta = get_option('zenverse_global_meta');
if ($zenverse_global_meta != '') { echo stripslashes($zenverse_global_meta); }
?>
<title><?php
if (is_home ()) {
echo get_bloginfo('name').' - '.get_bloginfo('description');
} else {
wp_title('|', true, 'right');
echo get_bloginfo('name');
}
?></title>
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/tabber.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/zenverse_gallery.js"></script>
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/tabber.css" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/comments.css" type="text/css" media="screen" />
<link rel="stylesheet" type="text/css" media="screen" href="<?php bloginfo('template_url');?>/css/pagenavi-css.css" />
<!--[if IE]>
<link rel="stylesheet" type="text/css" media="screen" href="<?php bloginfo('template_url');?>/css/ie.css" />
<![endif]-->
<!--WP Head-->
<?php wp_head(); ?>
<!--End of WP Head-->
</head>
<body>
<a name="top"></a>
<div id="page">
<div id="headertop">
<div id="homelink">
<a href="<?php echo get_option('home'); ?>" title="Home"><img src="<?php bloginfo('template_directory'); ?>/images/home.gif" alt="" /> Home</a>
</div>
<div id="pagenav">
<ul>
<?php wp_list_pages('sort_column=menu_order&depth=1&title_li=');?>
</ul>
</div><!--/pagenav-->
<div class="clear"></div>
</div>
<div id="header">
<div class="ninenineo_wrap">
<div id="logo">
<?php
$zevion_logo = get_option('zevion_logo');
$zevion_customlogo = get_option('zevion_customlogo');
if ($zevion_logo == "1" && $zevion_customlogo != '') { ?>
<h1><a href="<?php echo get_option('home'); ?>/" title="<?php htmlspecialchars(bloginfo('name')); ?>"><img src="<?php echo $zevion_customlogo; ?>" alt="<?php htmlspecialchars(bloginfo('name')); ?>" title="<?php htmlspecialchars(bloginfo('name')); ?>" /></a></h1>
<?php } else { ?>
<div class="textlogo">
<h1><a href="<?php echo get_option('home'); ?>/" title="<?php htmlspecialchars(bloginfo('name')); ?>"><?php bloginfo('name'); ?></a></h1>
<h2><?php bloginfo('description'); ?></h2>
</div>
<?php } ?>
</div><!--/logo-->
</div>
</div><!--/header-->
<div class="clear"></div>
[B]<?php uberMenu_easyIntegrate(); ?>[/B]
<?php
$zenverse_global_showcats = get_option('zenverse_global_showcats');
$zenverse_global_showcats_sortby = get_option('zenverse_global_showcats_sortby');
$zenverse_global_showcats_order = get_option('zenverse_global_showcats_order');
$zevion_cat_sort_db = array('name','ID','slug ','count','term_group');
$zevion_cat_order_db = array('ASC','DESC');
$addtionstr = '';
if ($zenverse_global_showcats && is_numeric(str_replace(',','',$zenverse_global_showcats)) ) {
if ($zenverse_global_showcats_order && is_numeric($zenverse_global_showcats_order) && $zenverse_global_showcats_order<2 && $zenverse_global_showcats_order>=0) { $addtionstr .= '&order='.$zevion_cat_order_db[$zenverse_global_showcats_order]; } else { $addtionstr .= ''; }
if ($zenverse_global_showcats_sortby && is_numeric($zenverse_global_showcats_sortby) && $zenverse_global_showcats_sortby<5 && $zenverse_global_showcats_sortby>=0) { $addtionstr .= '&orderby='.$zevion_cat_sort_db[$zenverse_global_showcats_sortby]; } else { $addtionstr .= ''; }
wp_list_categories('style=list&hierarchical=0&title_li=&include='.$zenverse_global_showcats.$addtionstr);
} else {
wp_list_categories('style=list&hierarchical=0&title_li=&number=9');
}
?>
</ul>
</div>
Alles anzeigen
