Advertisement
Guest User

Untitled

a guest
Sep 30th, 2013
15
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.20 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. <div id="topnav">
  43. <div id="topmenu-leftbg"></div>
  44.  
  45. <div id="topmenu">
  46. <?php $menuClass = 'superfish nav';
  47. $primaryNav = '';
  48.  
  49. if (function_exists('wp_nav_menu')) {
  50. $primaryNav = wp_nav_menu( array( 'theme_location' => 'primary-menu', 'container' => '', 'fallback_cb' => '', 'menu_class' => $menuClass, 'echo' => false ) );
  51. };
  52. if ($primaryNav == '') { ?>
  53. <ul class="<?php echo $menuClass; ?>">
  54. <?php if (get_option('myproduct_home_link') == 'on') { ?>
  55. <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>
  56. <?php }; ?>
  57.  
  58. <?php show_categories_menu($menuClass,false); ?>
  59.  
  60. <?php show_page_menu($menuClass,false,false); ?>
  61. </ul> <!-- end ul#nav -->
  62. <?php }
  63. else echo($primaryNav); ?>
  64.  
  65. <!-- Start Searchbox -->
  66. <div id="search-form">
  67. <form method="get" id="searchform1" action="<?php echo home_url(); ?>/">
  68. <input type="text" value="<?php esc_attr_e('Wyszukiwarka ...','MyProduct'); ?>" name="s" id="searchinput" />
  69. </form>
  70.  
  71. </div>
  72. <!-- End Searchbox -->
  73.  
  74. </div> <!-- end #topmenu -->
  75. <div id="topmenu-rightbg"></div>
  76. </div> <!-- end #topnav -->
  77.  
  78. <div id="logo2">
  79. <a href="<?php bloginfo('url'); ?>"><?php $logo = (get_option('myproduct_logo') <> '') ? get_option('myproduct_logo') : get_bloginfo('template_directory').'/images/logo.png'; ?><img src="<?php echo esc_url($logo); ?>" alt="<?php echo esc_attr(get_bloginfo('name')); ?>" id="logo"/></a>
  80. </div>
  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. <!-- PRODUCT IMAGES SWITCHER -->
  107.  
  108. <div id="image_slideshow">
  109. <div id="images">
  110. <?php $productsNumber = (int) get_option('myproduct_product_images_number');
  111. for ($i = 1; $i <= $productsNumber; $i++) { ?>
  112. <img src="<?php echo esc_url(get_option('myproduct_product_image_'.$i)); ?>" alt="" />
  113. <?php }; ?>
  114. </div> <!-- end #images -->
  115.  
  116. <?php if ($productsNumber > 1) { ?>
  117. <div id="switcher">
  118. <div id="switcher-left"></div>
  119.  
  120. <div id="switcher-content">
  121. <?php for ($i = 1; $i <= $productsNumber; $i++) { ?>
  122. <a href="#"<?php if($i==1) echo(' class="active"'); ?>><?php echo $i; ?></a>
  123. <?php }; ?>
  124. </div> <!-- end #switcher-content -->
  125.  
  126. <div id="switcher-right"></div>
  127. </div><!-- end #switcher -->
  128. <?php }; ?>
  129. </div> <!-- end #image_slideshow -->
  130. <!-- end PRODUCT IMAGES SWITCHER -->
  131.  
  132. <?php } else get_template_part('includes/pagetop'); ?>
  133.  
  134. </div> <!-- end .container -->
  135.  
  136. </div> <!-- end #header -->
  137. </div> <!-- end #header-wrapper -->
  138. <div id="content"<?php global $fullwidth; if ( is_page_template('page-full.php') || $fullwidth ) echo 'class="fullwidth-page"'; ?>>
  139. <div id="content-wrap">
  140. <div class="container clearfix">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement