PageRenderTime 46ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/blog/wp-content/themes/notepad/header.php

https://bitbucket.org/sergiohzlz/reportaprod
PHP | 60 lines | 47 code | 9 blank | 4 comment | 6 complexity | d98269b9ebe5ee19100fbfb25edcdc01 MD5 | raw file
Possible License(s): GPL-2.0, GPL-3.0, AGPL-1.0, LGPL-2.1
  1. <?php
  2. /**
  3. * @package WordPress
  4. * @subpackage Notepad
  5. */
  6. ?>
  7. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  8. <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
  9. <head profile="http://gmpg.org/xfn/11">
  10. <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
  11. <title><?php wp_title(); ?> <?php bloginfo('name'); ?></title>
  12. <link href="<?php bloginfo( 'stylesheet_url' ); ?>" media="screen" rel="stylesheet" type="text/css" />
  13. <link href="<?php bloginfo( 'template_directory' ); ?>/css/print.css" media="print" rel="stylesheet" type="text/css" />
  14. <!--[if IE]>
  15. <link href="<?php bloginfo( 'template_directory' ); ?>/ie.css" media="screen" rel="stylesheet" type="text/css" />
  16. <![endif]-->
  17. <!--[if lte IE 6]>
  18. <link href="<?php bloginfo( 'template_directory' ); ?>/ie6.css" media="screen" rel="stylesheet" type="text/css" />
  19. <![endif]-->
  20. <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
  21. <?php if ( is_singular() && comments_open() ) { wp_enqueue_script( 'comment-reply' ); } ?>
  22. <?php wp_head(); ?>
  23. </head>
  24. <body <?php body_class(); ?>>
  25. <div id="pagewrapper">
  26. <div id="header">
  27. <h1 id="logo">
  28. <a href="<?php echo home_url( '/' ); ?>"><?php bloginfo( 'name' ); ?></a>
  29. </h1>
  30. <p class="description"><?php bloginfo( 'description' ); ?></p>
  31. <p class="socialmedia">
  32. <?php
  33. global $notepad_media_links;
  34. $options = get_option('notepad_theme_options');
  35. foreach ( $notepad_media_links as $notepad_media_link ) :
  36. if ( $options["$notepad_media_link[0]url"] != '' ) :
  37. ?>
  38. <a href="<?php echo $options["$notepad_media_link[0]url"]; ?>"><img alt="<?php echo $notepad_media_link[1]; ?>" src="<?php bloginfo( 'template_directory' ); ?>/img/socialmedia/<?php echo $notepad_media_link[0]; ?>.png"><?php echo $notepad_media_link[1]; ?></a>
  39. <?php
  40. endif;
  41. endforeach;
  42. if ( $options['rss'] != '' ) : ?>
  43. <a href="<?php bloginfo( 'rss2_url' ); ?>"><img alt="<?php _e( 'RSS', 'notepad-theme' ); ?>" src="<?php bloginfo( 'template_directory' ); ?>/img/socialmedia/rss.png"><?php _e( 'RSS', 'notepad-theme' ); ?></a>
  44. <?php
  45. endif;
  46. ?>
  47. </p>
  48. <?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
  49. </div>
  50. <!--/header -->
  51. <div id="wrapper">