archive hindi sn

<?php
/*  ----------------------------------------------------------------------------
    the archive(s) template
 */

get_header();


//set the template id, used to get the template specific settings
$template_id = 'archive';

//prepare the loop variables
global $loop_module_id, $loop_sidebar_position, $part_cur_auth_obj;
$loop_module_id = td_util::get_option('tds_' . $template_id . '_page_layout', 1); //module 1 is default
$loop_sidebar_position = td_util::get_option('tds_' . $template_id . '_sidebar_pos'); //sidebar right is default (empty)

// sidebar position used to align the breadcrumb on sidebar left + sidebar first on mobile issue
$td_sidebar_position = '';
if($loop_sidebar_position == 'sidebar_left') {
	$td_sidebar_position = 'td-sidebar-left';
}

//read the current author object - used by here in title and by /parts/author-header.php
$part_cur_auth_obj = (get_query_var('author_name')) ? get_user_by('slug', get_query_var('author_name')) : get_userdata(get_query_var('author'));


//prepare the archives page title
if (is_day()) {
    $td_archive_title = __td('Daily Archives:', TD_THEME_NAME). ' ' . get_the_date();
} elseif (is_month()) {
    $td_archive_title = __td('Monthly Archives:', TD_THEME_NAME) . ' ' . get_the_date('F Y');
} elseif (is_year()) {
    $td_archive_title = __td('Yearly Archives:', TD_THEME_NAME) . ' ' . get_the_date('Y');
} else {
    $td_archive_title = __td('ALL GUITAR SONGS HINDI', TD_THEME_NAME);
}
?>
<div class="td-main-content-wrap td-container-wrap">
    <div class="td-container <?php echo $td_sidebar_position; ?>">
        <div class="my-breadcrumbs" typeof="BreadcrumbList" vocab="http://schema.org/">
			<p id="my-breadcrumbs-para">
				<span property="itemListElement" typeof="ListItem">
					<a property="item" typeof="WebPage" title="Go to GuitarUtha.com Home." href="https://skcamera.com/guitarutha/" class="my-breadcrumbs-link">
					<span property="name"><i class="fa fa-home" aria-hidden="true"></i>GuitarUtha.com</span></a>
					<meta property="position" content="1">
				</span>»&nbsp;
				
				<span property="itemListElement" typeof="ListItem">
					<a property="item" typeof="WebPage" title="Go to Guitar Songs." href="https://skcamera.com/guitar-songs/" class="my-breadcrumbs-link">
					<span property="name">Guitar Songs</span></a>
					<meta property="position" content="2">
				</span>

			</p>
		</div>
        <div class="td-pb-row">
            <?php
            switch ($loop_sidebar_position) {
                default:
                    ?>
                        <div class="td-pb-span8 td-main-content">
                            <div class="td-ss-main-content">
                                <div class="td-page-header">
                                    <h1 class="entry-title td-page-title">
                                        <span><?php echo $td_archive_title; ?></span>
                                    </h1>
                                </div>
								
								
								

                                <?php
									$type = 'hindi-songs';
									$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
									$args=array(
									  'post_type' => $type,
									  'post_status' => 'publish',
									  'posts_per_page' => 10,
									  'caller_get_posts' => 1,
									  'meta_key' => 'song_release_date',
										'orderby' => 'meta_value',
										'order' => 'DESC',
									  'paged' => $paged
									);
									$temp = $wp_query;
									$wp_query = null;
									$wp_query = new WP_Query($args);

									/**
									*?> <?php do_action('show_beautiful_filters'); ?> <?php	
									*/


									if( $wp_query->have_posts() ) : while ($wp_query->have_posts()) : $wp_query->the_post(); 
										 ?>
										<ul class="hindi-archive-list">
											<li>
												<h4 class="post-title">
												<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a>
												</h4><!--/.post-title-->
											</li>
										</ul>
										<p style="margin-left: 16px;">
											<span class="inside-spans"> <?php _e('By','hueman'); ?> <?php the_author_posts_link(); ?> </span> &middot;
											<span class="inside-spans"> <?php the_terms( $post->ID, 'hs-category', 'In ', ', ', '' ); ?> </span> &middot;
											<span class="inside-spans"> <?php echo do_shortcode('[favorite_button post_id="" site_id=""]'); ?> </span>
										</p>

										<div class="afterpostmeta">
											<div class="meta-info1">
												<span class="metainfo-spans"> <?php the_terms( $post->ID, 'artists', '<strong>Band:</strong> ', ', ', '' ); ?> </span>
												<span class="metainfo-spans"> <?php the_terms( $post->ID, 'singers', '<strong>Singer:</strong> ', ', ', '' ); ?> </span>
												<span class="metainfo-spans"> <?php the_terms( $post->ID, 'movies', '<strong>Movie:</strong> ', ', ', '' ); ?> </span>
												<span class="metainfo-spans"> <?php the_terms( $post->ID, 'albums', '<strong>Album:</strong> ', ', ', '' ); ?> </span>
												<span class="metainfo-spans"> <strong>Release: </strong> <?php echo CFS()->get( 'song_release_date' ); ?> </span>
											</div>
											
											
											<div class="meta-info1">
												<span class="metainfo-spans">
													<?php
														$terms = get_the_terms( $post->ID, 'hindi-chords' );
																		
														if ( $terms && ! is_wp_error( $terms ) ) : 

														$draught_links = array();

														foreach ( $terms as $term ) {
														$draught_links[] = $term->name;
														}
																		
														$on_draught = join( ", ", $draught_links );
													?>
													<STRONG>Chords:</STRONG> <span><?php echo $on_draught; ?></span>
													<?php endif; ?>
												</span>

												<span class="metainfo-spans"> <?php the_terms( $post->ID, 'hs-types', '<strong>Type:</strong> ', ', ', '' ); ?> </span>
												<span class="metainfo-spans"> <?php the_terms( $post->ID, 'hs-difficulty', '<strong>D.L:</strong> ', ', ', '' ); ?> </span>
											</div>
											
											
											<div class="meta-info1">
												<span class="metainfo-spans">
													<i class="fa fa-eye"></i>
													<?php if (function_exists('wpp_get_views')) echo wpp_get_views( get_the_ID() ); ?> Views
												</span>
												<span class="metainfo-spans"> <?php if(function_exists('the_ratings')) { the_ratings(); } ?> </span>
											</div>
										</div>
										<div class="clear"></div>
										<?php
									  endwhile;

									  /* PageNavi at Bottom */
									?> 

									<?php 
									echo td_page_generator::get_pagination();
										$wp_query = null; $wp_query = $temp; 
									endif;
									?> 
									<?php
									wp_reset_query(); // Restore global post data stomped by the_post().

									?>

                                
								<div class="below-extra" style="float: left; margin-top: 50px; width: 96%; height:100%; max-width: 100%; padding: 15px; box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12) !important;">		
									<h2 class="guitar-songs-heading"> <a href="https://skcamera.com/guitar-songs/hindi/cat/new">LATEST GUITAR SONGS HINDI »</a> </h2>
									<?php
									$type = 'hindi-songs';

									$args=array(
									  'post_type' => $type,
									  'tax_query' => array(
											'relation' => 'AND',
											array(
												'taxonomy' => 'hs-category',
												'field'    => 'slug',
												'terms'    => 'new'
											)
										),
									  'post_status' => 'publish',
									  'posts_per_page' => 5,
									  'caller_get_posts'=> 1
									);  
									$temp = $wp_query;
									$wp_query = null;
									$wp_query = new WP_Query($args);

									/**
									*?> <?php do_action('show_beautiful_filters'); ?> <?php	
									*/

									if( $wp_query->have_posts() ) : while ($wp_query->have_posts()) : $wp_query->the_post(); 
										 ?>
										<ul class="hindi-archive-list" style="margin-bottom: 20px; !important">
										<li>
										<h4 class="post-title" style="margin-bottom: 5px; !important">
										<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a>
										</h4><!--/.post-title-->
										
										<span>
										<span class="inside-spans"> <?php the_terms( $post->ID, 'hs-difficulty', '<strong>D.L:</strong> ', ', ', '' ); ?> </span> &middot;
										<span class="inside-spans"> <?php the_terms( $post->ID, 'hs-types', '<strong>Type:</strong> ', ', ', '' ); ?> </span> &middot;
										<span class="inside-spans">
										<?php
											$terms = get_the_terms( $post->ID, 'hindi-chords' );
															
											if ( $terms && ! is_wp_error( $terms ) ) : 

											$draught_links = array();

											foreach ( $terms as $term ) {
											$draught_links[] = $term->name;
											}
															
											$on_draught = join( ", ", $draught_links );
										?>
										<STRONG>Chords:</STRONG> <span><?php echo $on_draught; ?></span>
										</span>
										<?php endif; ?> 

										</span>	
										</li>
										</ul>	
										<div class="clear"></div>
										<?php
									  endwhile;

									  /* view all at Bottom */
									?> 
									<p class="viewallbtn" style=""> <a href="https://skcamera.com/guitar-songs/hindi/cat/new" style="color: #fff !important;"> <strong>View All »</strong></a> </p>

									<?php 
									endif;
									?> 
									 
									<?php
									wp_reset_query(); // Restore global post data stomped by the_post().
									?>	

									</div>

									<div class="below-extra" style="float: left; margin-top: 30px; margin-bottom:20px; width: 96%; height:100%; max-width: 100%; padding: 15px; box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12) !important;">	
									<h2 class="guitar-songs-heading"> <a href="https://skcamera.com/guitar-songs/hindi/dl/easy">EASY GUITAR SONGS HINDI »</a> </h2>
									<?php
									$type = 'hindi-songs';

									$args=array(
									  'post_type' => $type,
									  'tax_query' => array(
											'relation' => 'AND',
											array(
												'taxonomy' => 'hs-difficulty',
												'field'    => 'slug',
												'terms'    => 'easy'
											)
										),
									  'post_status' => 'publish',
									  'posts_per_page' => 5,
									  'caller_get_posts'=> 1
									);  
									$temp = $wp_query;
									$wp_query = null;
									$wp_query = new WP_Query($args);

									/**
									*?> <?php do_action('show_beautiful_filters'); ?> <?php	
									*/

									if( $wp_query->have_posts() ) : while ($wp_query->have_posts()) : $wp_query->the_post(); 
										 ?>
										<ul class="hindi-archive-list" style="margin-bottom: 20px; !important">
										<li>
										<h4 class="post-title" style="margin-bottom: 5px; !important">
										<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a>
										</h4><!--/.post-title-->
										
										<span>
										<span class="inside-spans"> <?php the_terms( $post->ID, 'hs-types', '<strong>Type:</strong> ', ', ', '' ); ?> </span> &middot;
										<span class="inside-spans">
										<?php
											$terms = get_the_terms( $post->ID, 'hindi-chords' );
															
											if ( $terms && ! is_wp_error( $terms ) ) : 

											$draught_links = array();

											foreach ( $terms as $term ) {
											$draught_links[] = $term->name;
											}
															
											$on_draught = join( ", ", $draught_links );
										?>
										<STRONG>Chords:</STRONG> <span><?php echo $on_draught; ?></span>
										</span>
										<?php endif; ?> 

										</span>	
										</li>
										</ul>	
										<div class="clear"></div>
										<?php
									  endwhile;

									  /* view all at Bottom */
									?> 

									<p class="viewallbtn" style=""> <a href="https://skcamera.com/guitar-songs/hindi/dl/easy" style="color: #fff !important;"> <strong>View All »</strong></a> </p>

									<?php 
									endif;
									?> 
									 
									<?php
									wp_reset_query(); // Restore global post data stomped by the_post().
									?>	

									</div>

										<div class="clear"></div>	
								
								
                            </div>
                        </div>

                        <div class="td-pb-span4 td-main-sidebar">
                            <div class="td-ss-main-sidebar">
                                <?php get_sidebar(); ?>
                            </div>
                        </div>
                    <?php
                    break;

                case 'sidebar_left':
                    ?>
                    <div class="td-pb-span8 td-main-content <?php echo $td_sidebar_position; ?>-content">
                        <div class="td-ss-main-content">
                            <div class="td-page-header">
                                <h1 class="entry-title td-page-title">
                                    <span><?php echo $td_archive_title; ?></span>
                                </h1>
                            </div>

                            <?php locate_template('loop.php', true);?>

                            <?php echo td_page_generator::get_pagination(); // get the pagination - /includes/wp_booster/td_page_generator.php ?>
                        </div>
                    </div>
	                <div class="td-pb-span4 td-main-sidebar">
		                <div class="td-ss-main-sidebar">
			                <?php get_sidebar(); ?>
		                </div>
	                </div>
                    <?php
                    break;

                case 'no_sidebar':
                    ?>
                    <div class="td-pb-span12 td-main-content">
                        <div class="td-ss-main-content">
                            <div class="td-page-header">
                                <h1 class="entry-title td-page-title">
                                    <span><?php echo $td_archive_title; ?></span>
                                </h1>
                            </div>
                            <?php locate_template('loop.php', true);?>

                            <?php echo td_page_generator::get_pagination(); // get the pagination - /includes/wp_booster/td_page_generator.php ?>
                        </div>
                    </div>
                    <?php
                    break;
            }
            ?>
        </div> <!-- /.td-pb-row -->
</div> <!-- /.td-container -->
</div> <!-- /.td-main-content-wrap -->

<?php
get_footer();