Sindbad~EG File Manager
<?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">
Quickscrum Solutions
</div>
<div class="cat_desc_text">
<?php
global $wp_post_types;
$post_type = 'solution';
$description = $wp_post_types[$post_type]->description;
?>
<p><?php echo $description; ?></p>
<!--<p>This is Photoshop's version of Lorem Ipsum roin gravida nibh vel velit auctor aliquet.</p>-->
</div>
</section>
<section <?php nice_content_class('main-content'); ?> role="main">
<div class="nice-knowledgebase clearfix ">
<?php
$custom_terms = get_terms('category');
foreach($custom_terms as $custom_term) {
wp_reset_query();
$args = array('post_type' => 'solution',
'tax_query' => array(
array(
'taxonomy' => 'category',
'field' => 'slug',
'terms' => $custom_term->slug,
),
),
);
$loop = new WP_Query($args);
if($loop->have_posts()) {
?>
<div class="row clearfix solution-index">
<div class="solution-canvas solution-container">
<div class="cat_post_canvas_inner">
<div class="columns-1"><h2 class="cat_title"><?php echo $custom_term->name; ?> </h2></div>
<div class="row solution-list">
<?php
while($loop->have_posts()) : $loop->the_post(); ?>
<div class="columns-3">
<?php
$checkbox_value = (types_render_field( 'disable-more-link', array() ));
if($checkbox_value == 1) {
?>
<div class="solution-inner">
<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]; ?>" />
</div>
<div class="solution-title">
<?php echo get_the_title(); ?>
</div>
<div class="feature-text">
<?php echo the_excerpt(); ?>
</div>
<?php /*?><div class="feature-download">
<span> more <img src="<?php echo get_stylesheet_directory_uri() ?>/images/more-btn.jpg"/> </span>
</div><?php */?>
</div>
<?php } else { ?>
<a class="solution-inner" href="<?php echo get_home_url(); ?>/solution/<?php echo $post_slug = get_post_field( 'post_name', get_post() ); ?>">
<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]; ?>" />
</div>
<div class="solution-title">
<?php echo get_the_title(); ?>
</div>
<div class="feature-text">
<?php echo the_excerpt(); ?>
</div>
<div class="feature-download">
<span> more <img src="<?php echo get_stylesheet_directory_uri() ?>/images/more-btn.jpg"/> </span>
</div>
</a>
<?php } ?>
</div>
<?php
endwhile;
?>
</div>
</div>
</div>
</div>
<?php } ?>
<?php } ?>
</div>
</section>
<?php
get_footer();
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists