hangar-wp-theme/category.php

65 lines
1.4 KiB
PHP
Raw Permalink Normal View History

<?php
/**
* Template Name: Category ample
*
* Seccions de categories amd presentaçio de contingut ample.
* @link http://themehybrid.com/themes/hybrid/page-templates/categories
*
* @package Hangar
* @subpackage Template
*/
get_header(); ?>
2021-02-18 14:09:56 +01:00
<!-- index categories-->
<div id="main" class="">
<div id="content" class="indexall">
<div id="post-<?php the_ID(); ?>" <?php post_class("boxentry"); ?>>
2021-02-18 14:09:56 +01:00
<div class="entry-content">
<?php echo '<h2 class="box index">';
echo single_cat_title( '', false ) ; echo '</h2>' ; ?>
<?php $category_description = category_description();
if ( ! empty( $category_description ) ) :
echo '<div class="descseccio">'. category_description(). '</div>';
endif;
?>
2021-02-18 14:09:56 +01:00
</div><!-- .entry-content -->
</div><!-- post .boxentry -->
</div><!-- .indexall.wide -->
<?php $catt2 = get_query_var('cat'); ?>
<div id="content" class="indexall">
<ul>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php
$tipus = 'catt';
$category = get_the_category();
?>
<?php include(TEMPLATEPATH . "/caixes.php"); ?>
2021-02-18 14:09:56 +01:00
<?php endwhile; ?>
2021-02-18 14:09:56 +01:00
</ul>
</div><!-- .indexall.fills -->
<?php wp_pagenavi(); /* kriesi_pagination();*/?>
<?php else: ?>
2021-02-18 14:09:56 +01:00
<p class="no-data">
<?php _e( 'Apologies, but no results were found.', 'hangar' ); ?>
</p><!-- .no-data -->
</div><!-- .indexall.fills -->
2021-02-18 14:09:56 +01:00
<?php endif; ?>
2021-02-18 14:09:56 +01:00
</div><!--end #main-->
2021-02-18 14:09:56 +01:00
<?php get_footer(); ?>