comments moved under its proper code condition

This commit is contained in:
jorge-vitrubio 2022-11-03 17:01:39 +01:00
parent 71530461cc
commit 6c26965c26
1 changed files with 6 additions and 5 deletions

View File

@ -1,6 +1,6 @@
<li id="post-<?php the_ID(); ?>" <?php echo 'class ="boxentry ' . $tipus; if (in_category("destacado")) echo ' destacat'; echo '"'; ?>>
<!-- les pàgines fixes (no categories ni artistes) -->
<?php if ((!$category) and ($tipus == 'pag')) : ?>
<!-- les pàgines fixes (no categories ni artistes) -->
<article class="not-category tipus-pag">
<div class="head-entry">
<h2 class="box <?php echo $tipus;?>">
@ -19,8 +19,8 @@
</div>
</article>
<!-- els artistes -->
<?php elseif ((!$category) and (($tipus == 'art')) or ($tipus == 'obra')): ?>
<!-- els artistes -->
<article class="not-category tipus-art tipus-obra tipus-artistes">
<div class="head-entry">
<?php if (is_home()) : ?>
@ -34,6 +34,7 @@
</div>
<?php if ($tipus == 'art') :?>
<!-- es artiste -->
<?php if(get_post_meta($post->ID, 'autor_tipo_resid', true) && get_post_meta($post->ID, 'autor_data_resid', true)): ?>
<p class="meta box">
<?php echo __(get_post_meta($post->ID, 'autor_tipo_resid', true)) ?>
@ -68,7 +69,6 @@
<?php endif; ?>
</div>
</article>
<!-- EQUIP i MATRONAT -->
<?php elseif ((!$category) and ($tipus == 'equip')):
$lang = qtrans_getLanguage();
if($lang == 'ca'): $carrec = get_post_meta($post->ID, 'carrec', true);
@ -78,6 +78,7 @@
$email = get_post_meta($post->ID, 'email', true);
$telefon = get_post_meta($post->ID, 'telefon', true);
?>
<!-- EQUIP i MATRONAT -->
<article class="not-category tipus-eqip tipus-matronat">
<div class="head-entry"> <!-- els equips només són índex, no tenen enllça a pàgina ni peu-->
<h3 class="equip <?php echo $tipus;?>"><?php the_title() ;?> </h3>
@ -100,8 +101,8 @@
<div class="contingut curt"><?php echo hangar_trim_excerpt(); ?></div>
<?php endif; ?>
</article>
<!-- els descarregables -->
<?php elseif ((!$category) and ($tipus == 'desc')): ?>
<!-- els descarregables -->
<article class="not-category tipus-descarregables tipus-desc">
<div class="head-entry">
@ -131,10 +132,10 @@
</article>
<!-- resta de categories -->
<?php else :
// echo " category " . $category . " catt2 " . $catt2 . " category 0 " . $category[0]->term_id;?>
<!-- resta de categories -->
<article class="category">
<div class="head-entry">