Advertisement
Guest User

Untitled

a guest
Sep 30th, 2013
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.25 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
  3. <head profile="http://gmpg.org/xfn/11">
  4. <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
  5. <title><?php elegant_titles(); ?></title>
  6. <?php elegant_description(); ?>
  7. <?php elegant_keywords(); ?>
  8. <?php elegant_canonical(); ?>
  9.  
  10. <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
  11. <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
  12. <link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" />
  13. <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
  14.  
  15. <script type="text/javascript">
  16. document.documentElement.className = 'js';
  17. </script>
  18.  
  19. <!--[if lt IE 7]>
  20. <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/css/ie6style.css" />
  21. <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/DD_belatedPNG_0.0.8a-min.js"></script>
  22. <script type="text/javascript">DD_belatedPNG.fix('#logo, #images img, #testimonial, .testimonials, .service img.icon, #footer .widget ul li, #switcher-left, #switcher-right, #switcher-content a, #switcher-content a.active');</script>
  23. <![endif]-->
  24. <!--[if IE 7]>
  25. <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/css/ie7style.css" />
  26. <![endif]-->
  27.  
  28. <script type="text/javascript">
  29. document.documentElement.className = 'js';
  30. </script>
  31.  
  32. <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
  33. <?php wp_head(); ?>
  34.  
  35. </head>
  36. <body<?php if (is_front_page() || is_home()) echo(' id="home"'); ?> <?php body_class(); ?>>
  37. <div id="header-wrapper">
  38. <div id="header">
  39.  
  40. <div class="container">
  41.  
  42.  
  43. <div id="topnav">
  44. <div id="topmenu-leftbg"></div>
  45.  
  46. <div id="topmenu">
  47. <?php $menuClass = 'superfish nav';
  48. $primaryNav = '';
  49.  
  50. if (function_exists('wp_nav_menu')) {
  51. $primaryNav = wp_nav_menu( array( 'theme_location' => 'primary-menu', 'container' => '', 'fallback_cb' => '', 'menu_class' => $menuClass, 'echo' => false ) );
  52. };
  53. if ($primaryNav == '') { ?>
  54. <ul class="<?php echo $menuClass; ?>">
  55. <?php if (get_option('myproduct_home_link') == 'on') { ?>
  56. <li <?php if (is_front_page() || is_home()) echo('class="current_page_item"') ?>><a href="<?php bloginfo('url'); ?>" id="homelink"><span><?php esc_html_e('Home','MyProduct'); ?></span></a></li>
  57. <?php }; ?>
  58.  
  59. <?php show_categories_menu($menuClass,false); ?>
  60.  
  61. <?php show_page_menu($menuClass,false,false); ?>
  62. </ul> <!-- end ul#nav -->
  63. <?php }
  64. else echo($primaryNav); ?>
  65.  
  66. <!-- Start Searchbox -->
  67. <div id="search-form">
  68. <form method="get" id="searchform1" action="<?php echo home_url(); ?>/">
  69. <input type="text" value="<?php esc_attr_e('Wyszukiwarka ...','MyProduct'); ?>" name="s" id="searchinput" />
  70. </form>
  71.  
  72. </div>
  73. <!-- End Searchbox -->
  74. <div id="logo2">
  75. <a href="<?php bloginfo('url'); ?>"><?php $logo = (get_option('myproduct_logo') <> '') ? get_option('myproduct_logo') : get_bloginfo('template_directory').'/images/logo.png'; ?>
  76. <img src="<?php echo esc_url($logo); ?>" alt="<?php echo esc_attr(get_bloginfo('name')); ?>" id="logo"/></a></div>
  77.  
  78. </div> <!-- end #topmenu -->
  79. <div id="topmenu-rightbg"></div>
  80. </div> <!-- end #topnav -->
  81.  
  82. <?php if (is_front_page() || is_home()) { ?>
  83.  
  84. <!-- WELCOME PAGE -->
  85. <?php query_posts('page_id=' . get_pageId(html_entity_decode(get_option('myproduct_welcome_page'))) );
  86. if(have_posts()) : while (have_posts()) : the_post(); ?>
  87. <div id="top-box">
  88. <h2><?php the_title(); ?></h2>
  89. <?php global $more;
  90. $more = 0; the_content(''); ?>
  91. <?php $button1 = get_post_meta($post->ID, 'Button', true);
  92. $button1Url = get_post_meta($post->ID, 'Buttonurl', true);
  93. $button2 = get_post_meta($post->ID, 'Button2', true);
  94. $button2Url = get_post_meta($post->ID, 'Button2url', true); ?>
  95.  
  96. <?php if ($button1 <> '') { ?>
  97. <a href="<?php echo esc_url($button1Url); ?>" class="featured-button"><span><?php echo esc_html($button1); ?></span></a>
  98. <?php }; ?>
  99. <?php if ($button2 <> '') { ?>
  100. <a href="<?php echo esc_url($button2Url); ?>" class="featured-button"><span><?php echo esc_html($button2); ?></span></a>
  101. <?php }; ?>
  102. </div> <!-- end #top-box -->
  103. <?php endwhile; endif; wp_reset_query(); ?>
  104. <!-- end WELCOME PAGE -->
  105.  
  106.  
  107. <!-- PRODUCT IMAGES SWITCHER -->
  108.  
  109. <div id="image_slideshow">
  110. <div id="images">
  111. <?php $productsNumber = (int) get_option('myproduct_product_images_number');
  112. for ($i = 1; $i <= $productsNumber; $i++) { ?>
  113. <img src="<?php echo esc_url(get_option('myproduct_product_image_'.$i)); ?>" alt="" />
  114. <?php }; ?>
  115. </div> <!-- end #images -->
  116.  
  117. <?php if ($productsNumber > 1) { ?>
  118. <div id="switcher">
  119. <div id="switcher-left"></div>
  120.  
  121. <div id="switcher-content">
  122. <?php for ($i = 1; $i <= $productsNumber; $i++) { ?>
  123. <a href="#"<?php if($i==1) echo(' class="active"'); ?>><?php echo $i; ?></a>
  124. <?php }; ?>
  125. </div> <!-- end #switcher-content -->
  126.  
  127. <div id="switcher-right"></div>
  128. </div><!-- end #switcher -->
  129. <?php }; ?>
  130. </div> <!-- end #image_slideshow -->
  131. <!-- end PRODUCT IMAGES SWITCHER -->
  132.  
  133. <?php } else get_template_part('includes/pagetop'); ?>
  134.  
  135. </div> <!-- end .container -->
  136.  
  137. </div> <!-- end #header -->
  138. </div> <!-- end #header-wrapper -->
  139. <div id="content"<?php global $fullwidth; if ( is_page_template('page-full.php') || $fullwidth ) echo 'class="fullwidth-page"'; ?>>
  140. <div id="content-wrap">
  141. <div class="container clearfix">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement