Don't like ads? PRO users don't see any ads ;-)
Guest

Double Logo situation

By: majomedia on May 2nd, 2012  |  syntax: None  |  size: 4.64 KB  |  hits: 25  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" dir="<?php bloginfo('text_direction'); ?>" xml:lang="<?php bloginfo('language'); ?>">
  3. <head>
  4.     <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
  5.         <title>
  6.         <?php
  7.             global $page, $paged;
  8.             wp_title('|', true, 'right');
  9.             bloginfo('name');
  10.             $site_description = get_bloginfo('description', 'display');
  11.             if ( $site_description && ( is_home() || is_front_page()))
  12.                 echo " | $site_description";
  13.             if ($paged >= 2 || $page >= 2)
  14.                 echo ' | ' . sprintf( __('Page %s'), max($paged, $page));
  15.         ?>
  16.     </title>
  17.     <meta http-equiv="Content-language" content="<?php bloginfo('language'); ?>" />
  18.     <link rel="profile" href="http://gmpg.org/xfn/11" />
  19.     <link rel="shortcut icon" href="<?php bloginfo('template_url'); ?>/images/favico.ico" type="image/x-icon" />
  20.     <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('stylesheet_url'); ?>" />
  21.     <!--[if IE]><link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('template_url'); ?>/ie.css" /><![endif]-->
  22.     <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
  23.     <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
  24.     <link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>"/>
  25.     <link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
  26.     <?php
  27.         wp_enqueue_script( 'jquery' );
  28.         wp_enqueue_script( 'lazyload', get_template_directory_uri() . '/js/jquery.lazyload.mini.js', 'jquery', false );
  29.         if ( is_singular() ) wp_enqueue_script( 'comment-reply' );
  30.         wp_enqueue_script( 'script', get_template_directory_uri() . '/js/script.js', 'jquery', false );
  31.     ?>
  32.     <?php wp_head(); ?>
  33. </head>
  34. <body>
  35.         <div id="wrapper">
  36.                 <div class="header clear">
  37.  
  38.  
  39.                         <?php                  
  40.                         ob_start();
  41.                                 ob_implicit_flush(0);
  42.                                 echo get_option('suburbia_custom_logo');
  43.                                 $my_logo = ob_get_contents();
  44.                                 ob_end_clean();
  45.                         if (
  46.                         $my_logo == ''
  47.                         ): ?>
  48.                         <a href="<?php bloginfo("url"); ?>/">
  49.                                 <img src="<?php bloginfo('template_url'); ?>/images/logo.png" alt="<?php bloginfo('name'); ?>" /></a>
  50.                         <?php else: ?>
  51.                         <a href="<?php bloginfo("url"); ?>/"><img src="<?php echo get_option('suburbia_custom_logo'); ?>" alt="<?php bloginfo('name'); ?>" /></a>                      
  52.                         <?php endif ?>                 
  53.                        
  54.                        
  55.                        
  56.             <div class="desc">
  57.                 <?php if (is_page()) { ?>
  58.  
  59.  
  60.                                 <?php                  
  61.                                         ob_start();
  62.                                                 ob_implicit_flush(0);
  63.                                                 echo get_option('suburbia_apropos');
  64.                                                 $my_logo = ob_get_contents();
  65.                                                 ob_end_clean();
  66.                                         if (
  67.                                         $my_logo == ''
  68.                                         ): ?>
  69.                                         <a href="<?php bloginfo("url"); ?>/">
  70.                                                 <img src="<?php bloginfo('template_url'); ?>/images/logo2.gif" class="dem-home" alt="<?php bloginfo('name'); ?>" width="155" height="155" /></a>
  71.                                         <?php else: ?>
  72.                                         <a href="<?php bloginfo("url"); ?>/"><img src="<?php echo get_option('suburbia_apropos'); ?>" class="dem-home" width="155" height="155" /></a>                 
  73.                                         <?php endif ?>
  74.  
  75.  
  76.                                 <?php } else if (is_home()) { ?>
  77.                                 <p><?php bloginfo('description'); ?></p>
  78.                                 <?php } else { ?>
  79.                                 <?php } ?>
  80.                
  81.                 <?php if ( is_404() ) :?>
  82.                     <p class="err404">404 Page not found</p>
  83.                 <?php endif; ?>
  84.             </div>
  85.             <div class="space">
  86.                 <?php if (is_single()) { ?>
  87.                 <p></p>
  88.                 <?php } else { ?>
  89.  
  90.  
  91.                                 <?php                  
  92.                                         ob_start();
  93.                                                 ob_implicit_flush(0);
  94.                                                 echo get_option('suburbia_apropos');
  95.                                                 $my_logo = ob_get_contents();
  96.                                                 ob_end_clean();
  97.                                         if (
  98.                                         $my_logo == ''
  99.                                         ): ?>
  100.                                         <a href="<?php bloginfo("url"); ?>/">
  101.                                                 <img src="<?php bloginfo('template_url'); ?>/images/logo2.gif" class="dem-home" alt="<?php bloginfo('name'); ?>" width="155" height="155" /></a>
  102.                                         <?php else: ?>
  103.                                         <a href="<?php bloginfo("url"); ?>/"><img src="<?php echo get_option('suburbia_apropos'); ?>" class="dem-home" width="155" height="155" /></a>                 
  104.                                         <?php endif ?>
  105.  
  106.  
  107.                                 <?php } ?>
  108.                         </div>
  109.                 </div>
  110.         <div class="middle clear">