Advertisement
Guest User

Untitled

a guest
Sep 21st, 2014
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. <header class="fix header_top_area">
  2. <div class="fix container header_top">
  3. <?php if ( ! dynamic_sidebar( 'header-top' ) ) : ?>
  4.  
  5. <div class="fix floatright header_top_text">
  6. <div class="fix floatleft call">
  7. <p>Chicago, USA, Call : 00 000 0000</p>
  8. </div>
  9. <div class="fix floatleft sign_in">
  10. <a href="">Sign In</a>
  11. </div>
  12. </div>
  13. <?php endif; ?>
  14. </div>
  15. </header>
  16.  
  17. <header class="fix header_bottom_area">
  18. <?php if ( ! dynamic_sidebar( 'header-bottom' ) ) : ?>
  19. <div class="fix container header_bottom">
  20. <figure class="fix floatleft logo">
  21. <a href="<?php bloginfo('home'); ?>"><img src="<?php bloginfo('template_url');?>/img/logo.png" alt="" /></a>
  22. </figure>
  23. <figure class="fix floatright image_header">
  24. <a href=""><img src="<?php bloginfo('template_url');?>/img/image_header.jpg" alt="" /></a>
  25. </figure>
  26. </div>
  27. <?php endif; ?>
  28.  
  29. add_action('widgets_init', 'wp_widget_areas');
  30. function wp_widget_areas() {
  31. register_sidebar( array(
  32. 'name' => __( 'Home Page Widget Header Top', 'Perfect Point' ),
  33. 'id' => 'header-top',
  34. 'before_widget' => '<div class="fix floatright header_top_text">',
  35. 'after_widget' => '</div>',
  36. 'before_title' => '<h2 style="display:none">',
  37. 'after_title' => '</h2>',
  38.  
  39. ) );
  40.  
  41. register_sidebar( array(
  42. 'name' => __( 'Home Page Widget Header Bottom', 'Perfect Point' ),
  43. 'id' => 'header-bottom',
  44. 'before_widget' => '<div class="fix container header_bottom">',
  45. 'after_widget' => '</div>',
  46. 'before_title' => '<h2 style="display:none">',
  47. 'after_title' => '</h2>',
  48.  
  49. ) );
  50.  
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement