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-solution-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">
    <div class="cat_desc_heading">
        Solutions Guide
    </div>
    <div class="cat_desc_text">
    	<?php 
			global $wp_post_types;
			$post_type = 'solution-guide';
			$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">
	<header>
        <div class="headerSearch container-part">
            <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 Solution Guide', 'nicethemes')); ?></label>
                            <input placeholder="Search in Solution Guide" type="text" name="s" id="s" />
                            <input type="submit" id="searchsubmit" value="&#xf002;" />
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </header>
    <div class="product-solutions-main nice-knowledgebase clearfix ">
	<?php
        $custom_terms = get_terms('category');
        foreach($custom_terms as $custom_term) {
            wp_reset_query();
            $args = array('post_type' => 'solution-guide',
                'tax_query' => array(
                    array(
                        'taxonomy' => 'category',
                        'field' => 'slug',
                        'terms' => $custom_term->slug
                    ),
                ),
                'orderby' => 'date', 
                'order' => 'ASC'
             );
    
            $loop = new WP_Query($args);
            if($loop->have_posts()) {
                ?>
                <div class="row clearfix product-solutions-index">
                <div class="product-solutions-canvas product-solutions-container container-part">
                <div class="cat_post_canvas_inner">
                    <div class="columns-1">
                        <h1 class="page_cat_title"><?php echo $custom_term->name; ?> </h1>
                        <div class="features-cat-desc"><?php echo $custom_term->description ; ?></div> 
                    </div>
                    <?php
                  	while($loop->have_posts()) : $loop->the_post(); ?>
                    <div class="columns-3">
                    	<div class="product-solutions-inner">
                        	<?php 
								$checkbox_value = (types_render_field( 'disable-more-link', array() ));
								if($checkbox_value == 1) {
							?>
                                <div class="more-link">
                                    <?php 
                                        $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' );
                                        if($image[0] != '') { 
                                    ?>
                                    <div class="feature-image">
                                        <img src="<?php echo $image[0]; ?>" />
                                    </div>
                                    <?php } ?>
                                    <div class="ps-title">
                                        <?php echo get_the_title(); ?>
                                    </div>
                                    <div class="ps-text">
                                        <?php echo the_excerpt(); ?>
                                    </div>
                                    
                                    <div class="ps-download" style="visibility: hidden;">
                                        <p class="more-link"><strong class="moreTxt">more</strong><img src="<?php echo get_stylesheet_directory_uri() ?>/images/more-btn.jpg"/> </span> </p>
                                    </div>
                                </div>
                        	<?php } else { ?>
                                <a class="more-link" href="<?php echo get_home_url(); ?>/solution-guide/<?php echo $post_slug = get_post_field( 'post_name', get_post() ); ?>">
                                    <?php 
                                        $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' );
                                        if($image[0] != '') { 
                                    ?>
                                    <div class="feature-image">
                                        <img src="<?php echo $image[0]; ?>" />
                                    </div>
                                    <?php } ?>
                                    <div class="ps-title">
                                        <?php echo get_the_title(); ?>
                                    </div>
                                    <div class="ps-text">
                                        <?php echo the_excerpt(); ?>
                                    </div>
                                    
                                    <div class="ps-download">
                                        <p class="more-link"><strong class="moreTxt">more</strong><img src="<?php echo get_stylesheet_directory_uri() ?>/images/more-btn.jpg"/> </span> </p>
                                    </div>
                                </a>
                            <?php } ?>
                       	</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