Sindbad~EG File Manager

Current Path : /var/www/quickscrum.com/wp-content/themes/Quickscrum-child/
Upload File :
Current File : /var/www/quickscrum.com/wp-content/themes/Quickscrum-child/archive-scrum-guide.php

<?php
/**
 * Quickscrum by NiceThemes.
 *
 * Used to display archive-type pages if nothing more specific matches a query. For example, puts
 * together date-based pages if no date.php file exists.
 *
 * If you'd like to further customize these archive views, you may create a new template file for
 * each specific one. For example, we already have tag.php for Tag archives and a category.php for
 * Category archives.
 *
 * @link      http://codex.wordpress.org/Template_Hierarchy
 *
 * @package   Quickscrum
 * @author    NiceThemes <hello@nicethemes.com>
 * @license   GPL-2.0+
 * @link      http://nicethemes.com/theme/Quickscrum
 * @copyright 2016 NiceThemes
 * @since     1.0.0
 */
// If this file is called directly, abort.
if (!defined('WPINC')) {
    die;
}
get_header();
global $nice_options;
?>
<!-- BEGIN #content -->
<!--<section id="content" <?php //nice_content_class( 'main-content' );  ?> role="main">-->
<section class="cat_desc" style="height: 200px;">
    <div class="cat_desc_heading">
        Scrum Guide
    </div>
    <div class="cat_desc_text">
    	<?php 
			global $wp_post_types;
			$post_type = 'scrum-guide';
			$description = $wp_post_types[$post_type]->description;
 		?>
        <p><?php echo $description; ?></p>
   	</div>
</section>
<section class="divider-shapes">
    <div style="height: 114px;"></div>
</section>
<section <?php nice_content_class('main-content'); ?> role="main">
	<br/>
	<header>
        <div class="headerSearch">
            <div class="hbreadcrumb">
                <?php echo custom_breadcrumbs(); ?>
            </div>
            <div class="hsearchform">
                <div id="search-wrap">
                    <form role="search" method="get" id="searchform" class="clearfix" action="<?php echo home_url('/'); ?>" autocomplete="off">
                        <div class="input">
                            <label for="s"><?php echo apply_filters('nice_livesearch_label', __('Search in Scrum Guide', 'nicethemes')); ?></label>
                            <input placeholder="Search in Scrum Guide" type="text" name="s" id="s" />
                            <input type="submit" id="searchsubmit" value="&#xf002;" />
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </header>
    <div class="nice-knowledgebase clearfix">
    	<div class="row clearfix article-index">
			<?php
            $custom_terms = get_terms('category');
            foreach($custom_terms as $custom_term) {
                wp_reset_query();
                $args = array('post_type' => 'scrum-guide',
                    'tax_query' => array(
                        array(
                            'taxonomy' => 'category',
                            'field' => 'slug',
                            'terms' => $custom_term->slug,
                        ),
                    ),
                 );
        
				
                $loop = new WP_Query($args);
                if($loop->have_posts()) {
					?>
                    <div class="columns-3">
                        <header>
                            <h3 class="cat_title"><?php echo $custom_term->name; ?> </h3>
                        </header>
                        <ul class="category-posts">
                        <?php
							$i = 0;
                            while($loop->have_posts()) : $loop->the_post(); 
                            	$i++;
                                if ( $i > 4 ) {
                                    $class = 'class="hide_it"';
                                } else {
                                    $class = '';
                                }
                                ?>	
                                <li <?php echo $class; ?>>
                                    <i class="fa fa-file-o"></i>
                                    <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
                                </li>
                        <?php
                            endwhile;
                        ?>
                        
						<?php
							global $wp;
							$current_url = home_url( $wp->request );
							$get_cat = explode("/help/", $current_url);
							$current_category = $get_cat[1];
							
                            if ($i >= 5) {
                                echo '<li> <a href="'. home_url()  .'/category/'. $custom_term->slug .'"> <strong class="moreTxt">more</strong> <img src="' . get_stylesheet_directory_uri() . '/images/more-btn.jpg"></a> </li>';
                            }
                        ?>
                        </ul>
                    </div>
                <?php } ?>
                
        	<?php } ?>
    	</div>
	</div>
</section>
<?php
get_footer();

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists