Sindbad~EG File Manager
<?php
/*
* Template Name: E-Book
*/
if (!defined('WPINC')) {
die;
}
get_header();
$term = get_term_by('slug', get_query_var('ebooks'), 'ebooks');
$arg = array(
'hierarchical' => 1,
'show_option_none' => '',
'hide_empty' => 0,
'parent' => $term->term_id,
'taxonomy' => 'ebooks'
);
$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" style="background-color: #f2f5f7;">
<div style="height: 114px;"></div>
</section>
<?php /*?><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 E-book?', 'nicethemes')); ?></label>
<input placeholder="Search in E-book?" type="text" name="s" id="s" />
<input type="submit" id="searchsubmit" value="" />
</div>
</form>
</div>
</div>
</div>
</header>
</div>
</section><?php */?>
<section <?php nice_content_class('main-content'); ?> role="main">
<div class="nice-knowledgebase clearfix">
<div class="row clearfix article-index">
<div class="ebook-canvas">
<?php
global $post;
$args = array( 'post_type' => 'ebook', 'posts_per_page' => -1,'order' => 'ASC' );
$loop = new WP_Query( $args );
while ( $loop->have_posts() ) : $loop->the_post(); ?>
<div class="columns-3">
<a class="ebook-inner" href="<?php echo get_home_url(); ?>/ebook/<?php echo $post_slug = get_post_field( 'post_name', get_post() ); ?>">
<div class="ebook-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="ebook-title">
<?php the_title(); ?>
</div>
<div class="feature-download">
<span> GET-E-BOOK <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