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/template-case-study.php

<?php
/*
 * Template Name: Case Study
 */

if (!defined('WPINC')) {

    die;
}
get_header();

$term = get_term_by('slug', get_query_var('case-study-category'), 'case-study-category');
$arg = array(
    'hierarchical' => 1,
    'show_option_none' => '',
    'hide_empty' => 0,
    'parent' => $term->term_id,
    'taxonomy' => 'case-study-category'
);
$categories = get_categories($arg);
$category_name = $categories[0]->name;
$category_desc = $categories[0]->description;
?>
<!-- BEGIN #content -->
<section class="cat_desc" style="height: 150px;">
    <div class="cat_desc_heading">
        <?php echo $category_name; ?>
    </div>
    <div class="cat_desc_text">
        <p><?php echo $category_desc; ?></p>
    </div>
</section>
<section class="divider-shapes">
    <div style="height: 114px;"></div>
</section>
<section id="blog-header" class="header-blog-menu" >
    <div class="container">
        <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 Case Study', 'nicethemes')); ?></label>
                                <input placeholder="Search in Case Study" type="text" name="s" id="s" />
                                <input type="submit" id="searchsubmit" value="&#xf002;" />
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </header>
    </div>
</section>
<section <?php nice_content_class('main-content'); ?> role="main">
    <div class="nice-knowledgebase clearfix">
        <div class="row clearfix article-index">
            <div class="case-study-canvas">
            <?php 
            global $post;
            $args = array( 'post_type' => 'case-study', 'posts_per_page' => -1,'order' => 'ASC' );
            $loop = new WP_Query( $args );
            while ( $loop->have_posts() ) : $loop->the_post(); ?>
                <div class="columns-3 case-study-canvas-inner">
                    <?php if  ( types_render_field( 'casestudylink' ) == '' ) { ?>
                    <a class="cs-inner" href="<?php echo get_home_url(); ?>/case-study/<?php echo $post_slug = get_post_field( 'post_name', get_post() ); ?>">
						<?php } else {?>
						<a class="cs-inner" href="<?php echo types_render_field( 'casestudylink' ); ?>">
						<?php } ?>
                        <div class="case-study-image">
                            <?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' ); ?>
                            <img src="<?php echo $image[0]; ?>" />
                        </div>
                        <div class="case-study-title">
                            <?php the_title(); ?>
                        </div>
                        <?php /*?><div class="case-study-excerpt">
                            <?php the_excerpt() ?>
                        </div>
                        <div class="case-study-more-link">
                            <a href="<?php the_permalink(); ?>"><span>more</span><img src="<?php echo get_stylesheet_directory_uri().'/images/more-btn.jpg' ?>" /></a>
                        </div><?php */?>
                        <div class="read-more">
                            <span> Read More &nbsp; <img src="<?php echo get_stylesheet_directory_uri() ?>/images/ebook-more.png"/> </span>
                        </div>
                 	</a>
                </div>
            <?php endwhile;
            ?>
            </div>
        </div>
    </div>
    <!-- END #content -->
</section>
<?php
get_footer();

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