File: /home/nudepix.eu/public_html/wp-content/themes/cpp/header.php
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<title><?php imwb_interest_get_blogtitle(); ?></title>
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
<!--[if !IE]>-->
<meta name="viewport" content="initial-scale=1.0,width=device-width">
<!--<![endif]-->
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<?php
$favicon = imwb_interest_get_option('faviconurl');
if(empty($favicon))
echo '<link rel="Shortcut Icon" href="'.get_template_directory_uri().'/images/favicon.ico" type="image/x-icon" />';
else
echo '<link rel="Shortcut Icon" href="'.$favicon.'" type="image/x-icon" />';
?>
<?php wp_head(); ?>
<script src="<?php echo get_template_directory_uri(); ?>/scripts/script.js" type="text/javascript"></script>
<script>
<?php
if((is_home() || is_category() || is_search()) && imwb_interest_get_option('homesidebar') == '2') {
?>
function imwb_move_sidebar() {
var cols = Math.floor( ( jQuery('#wrapper').width() + 15 ) / 222 );
cols = Math.max( cols, 1 );
jQuery('#content_sidebar').insertAfter(jQuery('.masonry-brick').eq(cols-1));
jQuery('#wrapper').masonry( 'reload' );
}
<?php
}
else {
?>
function imwb_move_sidebar() {}
<?php
}
?>
jQuery(document).ready(function($) {
$('#wrapper').infinitescroll({
navSelector : '.infinitescroll',
nextSelector : '.infinitescroll a',
itemSelector : '#wrapper .tack',
loading: {
img : "<?php echo get_template_directory_uri(); ?>/images/ajax-loader.gif",
selector: '#footer',
msgText: '<?php echo imwb_interest_get_option('ftrmsgloading')?>',
finishedMsg: '<?php echo imwb_interest_get_option('ftrmsgdone')?>'
}
}, function(arrayOfNewElems) {
var $newElems = $( arrayOfNewElems ).css({ opacity: 0 });
// ensure that images load before adding to masonry layout
$newElems.imagesLoaded(function(){
// show elems now they're ready
$newElems.css({ opacity: 1 });
$('#wrapper').masonry( 'appended', $newElems, true );
});
});
});
</script>
</head>
<!--[if lt IE 7 ]> <body <?php body_class("ie6"); ?> > <![endif]-->
<!--[if IE 7 ]> <body <?php body_class("ie7"); ?> > <![endif]-->
<!--[if IE 8 ]> <body <?php body_class("ie8"); ?> > <![endif]-->
<!--[if IE 9 ]> <body <?php body_class("ie9"); ?> > <![endif]-->
<!--[if (gt IE 9) ]> <body <?php body_class("modern"); ?> > <![endif]-->
<!--[!(IE)]><!--> <body <?php body_class("notIE modern"); ?> > <!--<![endif]-->
<div style="position: relative">
<div id="header-wrapper">
<div id="header">
<div id="search">
<?php get_search_form(); ?>
</div>
<?php imwb_interest_get_logo();
if(imwb_interest_get_option('hidepagemenu') == 'N') {
if(imwb_interest_get_option('pagemenutype') == '0') {
?>
<ul class="header-nav">
<?php
$exclude = imwb_interest_get_option('excludepages');
wp_list_pages('depth=0&title_li=&exclude='.$exclude);
?>
</ul>
<?php } else {
wp_nav_menu( array( 'theme_location' => 'cpp_page_menu', 'container' => false, 'menu_class' => 'header-nav', 'fallback_cb' => false ) );
}
} ?>
</div>
</div>
<div id="header-bar">
<?php if(imwb_interest_get_option('hidecatmenu') == 'N') { ?>
<ul id="header-bar-nav">
<?php if(imwb_interest_get_option('othercatmenu') == 'N') { ?>
<li <?php
if (is_home ()) {
echo ' class="current-cat" ';
}
?>>
<a title="<?php echo imwb_interest_get_option('othercatmenutxt');?>" href="<?php bloginfo('url'); ?>"><?php echo imwb_interest_get_option('othercatmenutxt');?></a>
</li> ยท
<?php }
$currentcategory = "";
if (is_single()){
$cat = get_the_category();
$catId = $cat[0]->cat_ID;
$currentcategory = '¤t_category='.$catId;
}
imwb_wp_list_categories('depth=0&orderby=name&use_desc_for_title=1&title_li='.$currentcategory); ?>
</ul>
<?php } ?>
</div>
<?php if((is_home() && imwb_interest_get_option('hidenag') == 'N') || ((is_category() || is_search() || is_archive()) && imwb_interest_get_option('hidenag') == 'N') || ((is_single() || is_page()) && imwb_interest_get_option('hideptnag') == 'N') ) {?>
<div id="header_banner" <?php if(imwb_interest_get_option('hidecatmenu') == 'Y') echo "class='no-header-bar-nav'"; ?> >
<?php if(is_active_sidebar("nag-bar-widget")) { ?>
<div class="nag-bar-widget">
<?php dynamic_sidebar("nag-bar-widget"); ?>
</div>
<?php } ?>
</div>
<div id="hbspacer_nag"></div>
<?php }
else { ?>
<div id="hbspacer_nonag" <?php if(imwb_interest_get_option('hidecatmenu') == 'Y') echo "class='no-header-bar-nav'"; ?>></div>
<?php } ?>
</div>