<?php
/**
 * Template Name: Site Map
 *
 * @package Luzuk
 */
get_header(); 
?>
<header class="page-main-header">
    <?php if( get_theme_mod('innerpagesallheaderanimation_button_display','show' ) == 'show') :
                                ?>  
    <!-- <div class="layer-1">
            <img  src="<?php //echo esc_url(get_template_directory_uri().'/images/icon2.png');?>" alt="" />
        </div>  -->
        <div class="layer-2">
            <img  src="<?php echo esc_url(get_template_directory_uri().'/images/icon3.png');?>" alt="" />
        </div>
        <!-- <div class="layer-3">
            <img  src="<?php //echo esc_url(get_template_directory_uri().'/images/icon4.png');?>" alt="" />
        </div> -->
        <div class="layer-4">
            <img  src="<?php echo esc_url(get_template_directory_uri().'/images/icon5.png');?>" alt="" />
        </div>
        <!-- <div class="layer-5">
            <img  src="<?php //echo esc_url(get_template_directory_uri().'/images/icon6.png');?>" alt="" />
        </div>
        <div class="layer-6">
            <img  src="<?php //echo esc_url(get_template_directory_uri().'/images/icon7.png');?>" alt="" />
        </div> -->
        <div class="layer-7">
            <img  src="<?php echo esc_url(get_template_directory_uri().'/images/icon8.png');?>" alt="" />
        </div>
        <div class="layer-8">
            <img  src="<?php echo esc_url(get_template_directory_uri().'/images/icon6.png');?>" alt="" />
        </div>
            <div class="layer-9">
            <img  src="<?php echo esc_url(get_template_directory_uri().'/images/icon8.png');?>" alt="" />
        </div>
    <?php endif ?>
<div>
        <?php $image = wp_get_attachment_url( get_post_thumbnail_id($post->ID));?>
        <?php
        //print_r ($post);
            if (!empty($image)){
                echo '<img src="'.$image.'" class="ht-page-header-img" />';
            }
        ?>
        <!-- <img src="<?php //echo !empty($image)?$image : get_template_directory_uri().'/images/innerpage.jpg';?>" class="ht-page-header-img" alt="<?php //the_title();?>" /> -->
    </div>
       
    <div class="container">
        <div class="col-md-6 col-sm-6 inner-page-title-box word">
            <?php the_title( '<h1>', '</h1>' ); ?>
        </div>
    <div class="col-md-6 col-sm-6 breadcrumb-area">
        <?php if( get_theme_mod('breadcrumb_button_display','show' ) == 'show') :
    ?>
        <div class='button'><?php luzuk_lite_the_breadcrumb(); ?></div>
          <?php endif ?>    
    </div>
</div>
    
</header>
<div class="page-wavey">
    <svg viewBox="0 0 500 150" preserveAspectRatio="none" style="height: 100%; width: 100%;"><path d="M-21.44,-32.06 C146.72,252.13 348.75,-206.73 521.44,193.91 L500.00,0.00 L0.00,0.00 Z" style="stroke: none; "></path></svg>

</div>


<main id="innerpage-box">
	<div class="container">

		<div id="sitemap-box" class="ht-sitemap innerpage-whitebox"">
            <div class="col-md-6">
             <h3>All Pages</h3>  
             <ul><?php wp_list_pages("title_li=" ); ?></ul> 
             <div class="clearfix"></div>
         </div> 
<!-- <h3>Feeds</h3>  
    <ul>  
        <li><a title="Full content" href="feed:<?php // bloginfo('rss2_url'); ?>">Main RSS</a></li>  
        <li><a title="Comment Feed" href="feed:<?php //bloginfo('comments_rss2_url'); ?>">Comment Feed</a></li>  
    </ul>   -->


    <!-- <ul><?php //wp_list_cats('sort_column=name&optioncount=1&hierarchical=0'); ?></ul>  --> 
    <div class="col-md-6 sitemap-blogposts">
        <h3>All Blog Posts</h3>  
        <ul><?php $archive_query = new WP_Query('showposts=1000&cat=-8');  
        while ($archive_query->have_posts()) : $archive_query->the_post(); ?>  
            <div class="sitemap-posts-box">
              <div class="col-md-2 col-sm-2 col-xs-3 padding0">
                <a href="<?php the_permalink() ?>" ><?php the_post_thumbnail(array(60,60)); ?></a></div>   
                <div class="col-md-10 col-sm-10 col-xs-9 blogpostsitemap">
                    <li> 
                        <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a>  
                        (<?php comments_number('0', '1', '%'); ?>)  
                    </li>  
                </div>
                <div class="clearfix"></div>
            </div>
        <?php endwhile; ?>  
    </ul>  
</div>
<div class="clearfix"></div>
<h3>Archives</h3>  
<ul>  
    <?php wp_get_archives('type=monthly&show_post_count=true'); ?>  
</ul>  
<h3>Categories</h3>  
<ul>
    <li><?php echo get_the_category_list(', '); ?></li>
</ul>
</div>

</div>
</main>
<?php get_footer(); ?>