ok hier mal header.php
<?php
/* IMPORTANT! This code retrieves the custom logo options & dynamic styling */
global $wpdb;
$style = $wpdb->get_results("SELECT custom_logo,custom_logo_image,dynamic_style,title_style,description_style FROM ".$wpdb->prefix."photocrati_styles WHERE option_set = 1");
foreach ($style as $style) {
$custom_logo = $style->custom_logo;
$custom_logo_image = $style->custom_logo_image;
$dynamic_style = $style->dynamic_style;
$title_style = $style->title_style;
$description_style = $style->description_style;
}
$rcp = $wpdb->get_results("SELECT fs_rightclick FROM ".$wpdb->prefix."photocrati_gallery_settings WHERE id = 1");
foreach ($rcp as $rcp) {
$fs_rightclick = $rcp->fs_rightclick;
}
$music = $wpdb->get_results("SELECT music_blog,music_blog_auto,music_blog_file,music_blog_controls,music_cat,music_cat_auto,music_cat_file,music_cat_controls FROM ".$wpdb->prefix."photocrati_gallery_settings WHERE id = 1");
foreach ($music as $music) {
$music_blog = $music->music_blog;
$music_blog_auto = $music->music_blog_auto;
$music_blog_controls = $music->music_blog_controls;
$music_blog_file = $music->music_blog_file;
$music_cat = $music->music_cat;
$music_cat_auto = $music->music_cat_auto;
$music_cat_controls = $music->music_cat_controls;
$music_cat_file = $music->music_cat_file;
}
?>
<!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">
<title><?php
if ( is_single() ) { single_post_title(); }
elseif ( is_home() || is_front_page() ) { bloginfo('name'); print ' | '; bloginfo('description'); get_page_number(); }
elseif ( is_page() ) { single_post_title(''); }
elseif ( is_search() ) { bloginfo('name'); print ' | Search results for ' . wp_specialchars($s); get_page_number(); }
elseif ( is_404() ) { bloginfo('name'); print ' | Not Found'; }
else { bloginfo('name'); wp_title('|'); get_page_number(); }
?></title>
<meta http-equiv="content-type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<?php
if(strpos($title_style, 'G - ') === false) { } else {
$gfont = str_replace(" ", "+", str_replace(", serif", "", str_replace("G - ", "", str_replace("'", "", str_replace("\'", "", $title_style)))));
?>
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=<?php echo $gfont; ?>">
<?php } ?>
<?php
if(strpos($description_style, 'G - ') === false) { } else {
$gfontd = str_replace(" ", "+", str_replace(", serif", "", str_replace("G - ", "", str_replace("\'", "", $description_style))));
?>
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=<?php echo $gfontd; ?>">
<?php } ?>
<!-- IMPORTANT! Do not remove this code. This is used for enabling & disabling the dynamic styling -->
<?php if($dynamic_style == 'YES') { ?>
<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/styles/dynamic-style.php" />
<?php } else { ?>
<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/styles/style.css" />
<?php } ?>
<!-- End dynamic styling -->
<!--[if IE 8]>
<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/styles/style-ie.css" type="text/css" />
<![endif]-->
<!--[if lt IE 8]>
<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/styles/style-ie7.css" type="text/css" />
<![endif]-->
<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/admin/css/jquery.lightbox-0.5.css" />
<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
<?php
if( !is_admin()){
wp_deregister_script('jquery');
wp_register_script('jquery', ("http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"), false, '');
wp_enqueue_script('jquery');
}
?>
<?php wp_head(); ?>
<link rel="alternate" type="application/rss+xml" href="<?php bloginfo('rss2_url'); ?>" title="<?php printf( __( '%s latest posts', 'photocrati-framework' ), wp_specialchars( get_bloginfo('name'), 1 ) ); ?>" />
<link rel="alternate" type="application/rss+xml" href="<?php bloginfo('comments_rss2_url') ?>" title="<?php printf( __( '%s latest comments', 'photocrati-framework' ), wp_specialchars( get_bloginfo('name'), 1 ) ); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php if($fs_rightclick == "ON") { ?>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/scripts/clickprotect.js"></script>
<?php } ?>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/scripts/jquery.jplayer.min.js"></script>
<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/scripts/jplayer.style.css" />
<?php if(is_single() || is_page()) { ?>
<?php if(get_post_meta($post->ID, 'music', true) == "YES") { ?>
<script type="text/javascript">
jQuery.noConflict();
jQuery(document).ready(function() {
jQuery("#jquery_jplayer").jPlayer({
ready: function () {
<?php if(get_post_meta($post->ID, 'music_auto', true) == "YES") { ?>
this.element.jPlayer("setFile", "<?php echo get_post_meta($post->ID, 'music_file', true); ?>").jPlayer("play");
<?php } else { ?>
this.element.jPlayer("setFile", "<?php echo get_post_meta($post->ID, 'music_file', true); ?>");
<?php } ?>
},
oggSupport: false,
preload: 'none',
swfPath: "<?php echo get_bloginfo('template_directory'); ?>/scripts"
})
.jPlayer("onSoundComplete", function() {
this.element.jPlayer("play");
});
});
</script>
<?php if(get_post_meta($post->ID, 'music_controls', true) == "NO") { ?>
<style>
.jp-single-player {
display:none;
}
</style>
<?php } ?>
<?php } ?>
<?php } ?>
<?php if(is_category() || is_archive()) { ?>
<?php if($music_cat == "ON") { ?>
<script type="text/javascript">
jQuery.noConflict();
jQuery(document).ready(function() {
jQuery("#jquery_jplayer").jPlayer({
ready: function () {
<?php if($music_cat_auto == "YES") { ?>
this.element.jPlayer("setFile", "<?php echo $music_cat_file; ?>").jPlayer("play");
<?php } else { ?>
this.element.jPlayer("setFile", "<?php echo $music_cat_file; ?>");
<?php } ?>
},
oggSupport: false,
preload: 'none',
swfPath: "<?php echo get_bloginfo('template_directory'); ?>/scripts"
})
.jPlayer("onSoundComplete", function() {
this.element.jPlayer("play");
});
});
</script>
<?php if($music_cat_controls == "NO") { ?>
<style>
.jp-single-player {
display:none;
}
</style>
<?php } ?>
<?php } ?>
<?php } ?>
</head>
<body <?php body_class(); ?> id="themebody">
<div id="main_container">
<div id="header">
<div id="masthead">
<div id="branding">
<div id="blog-title">
<span>
<a href="<?php bloginfo( 'url' ) ?>/" title="<?php bloginfo( 'name' ) ?>" rel="home">
<?php if($custom_logo == 'custom') { ?>
<img src="<?php bloginfo('template_directory'); ?>/images/uploads/<?php echo $custom_logo_image; ?>" border="0" alt="<?php bloginfo( 'name' ) ?>" />
<?php } else if($custom_logo == 'default') { ?>
<img src="<?php bloginfo('template_directory'); ?>/images/logo.png" border="0" alt="<?php bloginfo( 'name' ) ?>" />
<?php } else { ?>
<h1><?php bloginfo('name'); ?></h1>
<div class="description"><?php bloginfo('description'); ?></div>
<?php } ?>
</a>
</span>
</div>
</div><!-- #branding -->
<div id="menu_wrapper">
<?php if ( function_exists( wp_nav_menu ) ) { //Check if function exists for less than Wordpress 3.0 ?>
<?php wp_nav_menu( array( 'container_class' => 'menu', 'menu_class' => '', 'theme_location' => 'primary' ) ); ?>
<?php } else { ?>
<?php wp_page_menu( 'sort_column=menu_order' ); ?>
<?php } ?>
</div><!-- #access -->
</div><!-- #masthead -->
</div><!-- #header -->
<div id="wrapper" class="hfeed">
<div id="main">