Compare commits

...

2 Commits

Author SHA1 Message Date
jorge cff43e2bef changes if and elseif not beign properly applied 2022-09-12 10:50:06 +02:00
jorge 2252e3d684 tabbed properly to nest content 2022-09-12 10:49:39 +02:00
2 changed files with 31 additions and 30 deletions

View File

@ -27,8 +27,8 @@
<h3 class="box <?php echo $tipus;?>"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'hangar' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title() ;?> </a> </h3>
<?php endif;?>
</div>
<?php if ($tipus == 'art') :
if(get_post_meta($post->ID, 'autor_tipo_resid', true) && get_post_meta($post->ID, 'autor_data_resid', true)): ?>
<?php if ($tipus == 'art') :?>
<?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)) ?>
<br />
@ -42,9 +42,8 @@
<?php endif; ?>
<?php if ( has_post_thumbnail() ) : ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" >
<?php //the_post_thumbnail('artists-thumb'); ?>
<?php the_post_thumbnail('thumbnail'); ?>
<?php the_post_thumbnail('artists-thumb'); ?>
<?php //the_post_thumbnail('thumbnail'); ?>
</a>
<?php else : ?>
<img class="noimatge gran" width="200" height="230" title="imatge no disponible" alt="imatge no disponible" src="<?php echo get_template_directory_uri() .'/images/noimatgegran.jpg';?>" />

View File

@ -63,7 +63,9 @@ get_header(); ?>
<?php if ($indexseccions->have_posts()) : ?>
<?php echo '<ul>'; $i = 0; while ($indexseccions->have_posts()) : $indexseccions->the_post(); $i++;
if ($pare == 2 | 58856) : //artistes residents post=2 post=58856 por cambio página el 2022 07 19
if ($pare == 2 ) : //artistes residents post=2
$tipus = 'art';
elseif ($pare == 58856) : //artistes residents post=58856 por cambio página el 2022 07 19
$tipus = 'art';
elseif ($pare == 46565) : //artistes residents estada curta post=46565
$tipus = 'art';