header.php 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. /**
  3. * The header for our theme
  4. *
  5. * @package spice-software
  6. */
  7. ?>
  8. <!DOCTYPE html>
  9. <html <?php language_attributes(); ?> >
  10. <head>
  11. <meta charset="<?php bloginfo('charset'); ?>">
  12. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  13. <meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
  14. <?php if (is_singular() && pings_open(get_queried_object())) :
  15. echo '<link rel="pingback" href=" '.esc_url(get_bloginfo( 'pingback_url' )).' ">';
  16. endif;
  17. wp_head(); ?>
  18. </head>
  19. <?php
  20. $spice_software_layout_selector = get_theme_mod('spice_software_layout_style', 'wide');
  21. if ($spice_software_layout_selector == "boxed") {
  22. $spice_software_class = "boxed";
  23. } else {
  24. $spice_software_class = "wide";
  25. }
  26. ?>
  27. <body <?php body_class($spice_software_class." ".get_theme_mod('spice_software_color_skin','light')); ?> >
  28. <?php wp_body_open(); ?>
  29. <div id="page" class="site">
  30. <a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'spice-software' ); ?></a>
  31. <div id="wrapper">
  32. <?php
  33. global $template;
  34. global $woocommerce;
  35. if ( ! function_exists( 'spice_software_plus_activate' ) ):
  36. do_action('spice_software_preloader_feaure_section_hook');
  37. get_template_part('inc/header/header-nav');
  38. if(basename($template)!='template-business.php'):
  39. spice_software_breadcrumbs();
  40. endif;
  41. else:
  42. do_action('spice_software_plus_preloader_feaure_section_hook');
  43. do_action('spice_software_plus_header_feaure_section_hook');
  44. if(basename($template)!='template-business.php'):
  45. spice_software_breadcrumbs();
  46. endif;
  47. endif;?>
  48. <div id="content">