changed category title and excrept width to full

This commit is contained in:
jorge 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--> <!-- index categories-->
<div id="main" class="maingran"> <div id="main" class="">
<div id="content" class="indexall"> <div id="content" class="indexall wide">
<!-- 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"); ?>>
<div id="post-<?php the_ID(); ?>" <?php post_class("boxentry ie nofons"); ?>>
<div class="entry-content"> <div class="entry-content">
<?php echo '<h2 class="box index">'; <?php echo '<h2 class="box index">';
echo single_cat_title( '', false ) ; echo '</h2>' ; ?> echo single_cat_title( '', false ) ; echo '</h2>' ; ?>
@ -16,13 +26,12 @@
echo '<div class="descseccio">'. category_description(). '</div>'; echo '<div class="descseccio">'. category_description(). '</div>';
endif; endif;
?> ?>
<p class="textanunci"></p>
</div><!-- .entry-content --> </div><!-- .entry-content -->
</div><!-- post .hentry --> </div><!-- post .boxentry -->
</div><!-- .indexall.wide -->
<?php $catt2 = get_query_var('cat'); ?> <?php $catt2 = get_query_var('cat'); ?>
<div id="content" class="indexall fills">
<ul> <ul>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
@ -35,7 +44,6 @@
<?php endwhile; ?> <?php endwhile; ?>
</ul> </ul>
<?php wp_pagenavi(); /* kriesi_pagination();*/?> <?php wp_pagenavi(); /* kriesi_pagination();*/?>
<?php else: ?> <?php else: ?>
@ -47,17 +55,8 @@
<?php endif; ?> <?php endif; ?>
</div><!-- .content --> </div><!-- .indexall.fills -->
</div><!--end #main-->
</div>
<!--end Content-->
</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(); ?>