<?php get_header(); ?>

    <div class="press_page">
		<div class="bread_in">
	        <?php // Top before content
		    	the_archive_title( '<h1 class="press_heading">', '</h1>' ); 
		    	dimox_breadcrumbs(); 
	    	?>
    	</div>
	</div>
		
	<section id="listing" class="clear">
	    <div class="press_container">
		
		    <div class="before_table clear">
                <div class="search_something">
				
			        <div class="some_input clear">
				        <span><?php echo __('Pencarian', 'prestasi'); ?></span> <input type="text" name="student" placeholder="<?php echo esc_attr(__( 'Ketikkan Nama ...', 'prestasi')); ?>" id="student" onkeyup="sisfetch()"></input>
			    	</div>
					
			    	<div class="some_result" id="siswafetch"><span class="se_down"><?php re_search_download(); ?></span></div>
					
			    	<div class="some_cat clear">
				    	<div class="head_cat"><?php echo __('Kelas / Jurusan', 'prestasi'); ?></div>
						
			    		<?php 
					    	$taxonomy = 'kelas';
							$args =  array(
							    'hide_empty' => true,
								'orderby'    => 'name',
								'order'      => 'ASC'
							);
							$terms = get_terms( $taxonomy , $args );
							foreach( $terms as $term ) {
								$term_link = get_term_link( $term, 'kelas');
								echo '<div class="cat_term clear"><a href="' . $term_link . '">'. $term->name . ' <span>' . $term->count . ' Siswa</span></a></div>';
							}
						?>
						
					</div>
					
				</div>
				
				<div class="result_list">
				
			        <div class="down_table">
		                <?php get_template_part('archive/siswa'); ?>
		         	</div>
					
		        	<div class="clear">
	                	<?php get_template_part('archive/pagination'); ?>
		            </div>
					
		    	</div>
				
			</div>
		</div>
	</section>
	
<?php get_footer(); ?>
