changed category title and excrept width to full

This commit is contained in:
jorge-vitrubio 2022-07-11 20:24:06 +02:00
parent c181c24b13
commit 349da7c6c9
2 changed files with 85 additions and 23 deletions

View File

@ -1,12 +1,22 @@
<?php get_header(); ?>
<?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(); ?>
<!-- index categories-->
<div id="main" class="maingran">
<div id="content" class="indexall">
<!-- la primera caixa és la de títol i descripció de la categoria i pot portar publicitat, no fons blanc-->
<div id="post-<?php the_ID(); ?>" <?php post_class("boxentry ie nofons"); ?>>
<div id="main" class="">
<div id="content" class="indexall wide">
<div id="post-<?php the_ID(); ?>" <?php post_class("boxentry"); ?>>
<div class="entry-content">
<?php echo '<h2 class="box index">';
echo single_cat_title( '', false ) ; echo '</h2>' ; ?>
@ -16,13 +26,12 @@
echo '<div class="descseccio">'. category_description(). '</div>';
endif;
?>
<p class="textanunci"></p>
</div><!-- .entry-content -->
</div><!-- post .hentry -->
</div><!-- post .boxentry -->
</div><!-- .indexall.wide -->
<?php $catt2 = get_query_var('cat'); ?>
<div id="content" class="indexall fills">
<ul>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
@ -35,7 +44,6 @@
<?php endwhile; ?>
</ul>
<?php wp_pagenavi(); /* kriesi_pagination();*/?>
<?php else: ?>
@ -47,17 +55,8 @@
<?php endif; ?>
</div><!-- .content -->
</div><!-- .indexall.fills -->
</div>
<!--end Content-->
</div><!--end #main-->
</div>
<!--end Main-->
<?php get_footer(); ?>
<?php get_footer(); ?>

63
category.php.2021 Normal file
View File

@ -0,0 +1,63 @@
<?php get_header(); ?>
<!-- index categories-->
<div id="main" class="maingran">
<div id="content" class="indexall">
<!-- la primera caixa és la de títol i descripció de la categoria i pot portar publicitat, no té fons blanc-->
<div id="post-<?php the_ID(); ?>" <?php post_class("boxentry ie nofons"); ?>>
<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;
?>
<p class="textanunci"></p>
</div><!-- .entry-content -->
</div><!-- post .hentry -->
<?php $catt2 = get_query_var('cat'); ?>
<ul>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php $tipus = 'catt';
$category = get_the_category();
?>
<?php include(TEMPLATEPATH . "/caixes.php"); ?>
<?php endwhile; ?>
</ul>
<?php wp_pagenavi(); /* kriesi_pagination();*/?>
<?php else: ?>
<p class="no-data">
<?php _e( 'Apologies, but no results were found.', 'hangar' ); ?>
</p><!-- .no-data -->
<?php endif; ?>
</div><!-- .content -->
</div>
<!--end Content-->
</div>
<!--end Main-->
<?php get_footer(); ?>