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 -->
<?php
global $wp;
//$current_url = wp_get_referer();
$current_url = $_SERVER['REQUEST_URI'];
//$get_cat = explode("quickscrum.com/", $current_url);
$get_cat = explode("/", $current_url);
$get_custom_post_type_url = $get_cat[1];
$get_custom_post_type = explode("/", $get_custom_post_type_url);
$custom_post_type = $get_custom_post_type[0];
$custom_post_name = str_replace("-", " ", $custom_post_type);
$custom_post_name = str_replace("_", " ", $custom_post_name);
$current_custom_post_name = ucwords($custom_post_name);
?>
<section id="content" <?php nice_content_class('main-content full-width blog-masonry'); ?> role="main">
<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', 'nicethemes')); ?></label>
<input placeholder="Search in <?php echo $current_custom_post_name ?>" type="text" name="s" id="s" />
<input type="submit" id="searchsubmit" value="" />
</div>
</form>
</div>
</div>
</div>
</header>
<div class="nice-knowledgebase clearfix category_page">
<div class="row clearfix article-index">
<div class="columns-3">
<?php if (have_posts()) : ?>
<header>
<h3 class="cat_title"><?php echo single_cat_title(); ?> </h3>
</header>
<ul class="category-posts">
<?php
while (have_posts()) : the_post();
$current_custom_post_type = get_post_type( get_the_ID() );
if ( $current_custom_post_type == $custom_post_type ) {
?>
<li>
<i class="fa fa-file-o"></i>
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</li>
<?php } endwhile; ?>
</ul>
</div>
<?php echo custom_pagination(); ?>
<!-- END #content -->
<?php else : ?>
<?php _e('Sorry, no posts matched your criteria.', 'nicethemes'); ?>
<?php endif; ?>
<!-- END #content -->
</section>
<?php get_footer(); ?>
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists