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-quickwork-feature.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">
    <div class="cat_desc_heading">
        Tool Quick Work Features
    </div>
    <div class="cat_desc_text">
    	<?php 
			global $wp_post_types;
			$post_type = 'feature';
			$description = $wp_post_types[$post_type]->description;
 		?>
        <p><?php echo $description; ?></p>
    	<!--<p>Agile and Scrum centric features that helps you to manage your project effectively.</p>-->
   	</div>
</section>
<section <?php nice_content_class('main-content'); ?> role="main xasasasa">
    <div class="nice-knowledgebase clearfix ">
	<?php
        $custom_terms = get_terms('category');
        foreach($custom_terms as $custom_term) {
            wp_reset_query();
            $args = array('post_type' => 'quickwork-feature',
                'tax_query' => array(
                    array(
                        'taxonomy' => 'category',
                        'field' => 'slug',
                        'terms' => $custom_term->slug
                    ),
                ),
                'orderby' => 'date', 
                'order' => 'DESC'
             );
    
            $loop = new WP_Query($args);
            if($loop->have_posts()) {
                ?>
                <div class="row clearfix features-index">
                <div class="feature-canvas features-container">
                <div class="cat_post_canvas_inner">
                    <div class="columns-1">
                        <h2 class="cat_title"><?php echo $custom_term->name; ?> </h2>
                        <div class="features-cat-desc"><?php echo $custom_term->description ; ?></div> 
                    </div>
                    <?php
                  	while($loop->have_posts()) : $loop->the_post(); ?>
                    <div class="columns-4">
                        <div class="feature-image">
                            <?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' ); ?>
                            <img src="<?php echo $image[0]; ?>" />
                            <?php /*?><a class="more-link" href="https://guide.quickscrum.com/product/feature/<?php echo $post_slug = get_post_field( 'post_name', get_post() ); ?>"> <img src="<?php echo $image[0]; ?>" /> </a><?php */?>
                        </div>
                        <div class="feature-title">
                            <?php echo get_the_title(); ?>
                        </div>
                        <div class="feature-text">
                            <?php echo the_excerpt(); ?>
                        </div>
                        <div class="feature-download" style="display:none;" >
                            <a class="more-link" href="https://guide.quickscrum.com/product/quickwork/<?php echo $post_slug = get_post_field( 'post_name', get_post() ); ?>"> <span> more &nbsp; <img src="<?php echo get_stylesheet_directory_uri() ?>/images/more-btn.jpg"/> </span> </a>
                        </div>
                    </div>
                    <?php
                    endwhile;
                    ?>
                </div>
                </div>
                </div>
		<?php } ?>
    <?php } ?>
	</div>
</section>
<?php
get_footer();

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