2021-02-18 14:09:56 +01:00
|
|
|
<?php get_header(); ?>
|
|
|
|
|
|
|
|
<div id="main" class="mainunic">
|
|
|
|
<div id="content" class="unic">
|
|
|
|
<?php wp_breadcrumb();?>
|
|
|
|
<div id="pagina" class="shadow">
|
|
|
|
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
|
|
|
|
|
|
|
|
<h2><?php the_title(); ?></h2>
|
2022-09-12 14:27:02 +02:00
|
|
|
|
2021-02-18 14:09:56 +01:00
|
|
|
|
|
|
|
<!-- buscar el nom de l'artista i la data: metatgs -->
|
|
|
|
<?php $tiporesid = get_post_meta($post->ID, 'autor_tipo_resid', true);
|
|
|
|
if ($tiporesid) : ?>
|
|
|
|
<p class="curt"><?php echo __($tiporesid); ?> </p>
|
2022-09-12 14:27:02 +02:00
|
|
|
<?php endif;?>
|
2021-02-18 14:09:56 +01:00
|
|
|
<?php $dataresid = get_post_meta($post->ID, 'autor_data_resid', true);
|
|
|
|
if ($dataresid) : ?>
|
|
|
|
<p class="curt"><?php echo __($dataresid); ?> </p>
|
2022-09-12 14:27:02 +02:00
|
|
|
<?php endif;?>
|
2021-02-18 14:09:56 +01:00
|
|
|
|
|
|
|
<?php $autorobra = get_post_meta($post->ID, 'autor_obra', true);
|
|
|
|
if ($autorobra) : ?>
|
|
|
|
<p class="blue curt"><?php echo $autorobra; ?> </p>
|
|
|
|
<?php endif;?>
|
|
|
|
<?php $dataobra = get_post_meta($post->ID, 'data_obra', true);
|
|
|
|
if ($dataobra) : ?>
|
|
|
|
<p class="peullarg"><?php echo $dataobra; ?> </p>
|
2022-09-12 14:27:02 +02:00
|
|
|
<?php endif;?>
|
2021-02-18 14:09:56 +01:00
|
|
|
<?php $carrec = get_post_meta($post->ID, 'carrec', true);
|
|
|
|
if ($carrec) : ?>
|
|
|
|
<p class="peullarg"><?php echo $carrec; ?> </p>
|
2022-09-12 14:27:02 +02:00
|
|
|
<p class="curt"><?php echo get_post_meta($post->ID, 'telefon', true) ?> </p>
|
|
|
|
<p class="peullarg"><?php echo get_post_meta($post->ID, 'email', true) ?> </p>
|
2021-02-18 14:09:56 +01:00
|
|
|
<?php endif;?>
|
|
|
|
|
|
|
|
<?php the_content(); ?>
|
|
|
|
<div class="clear"></div>
|
2022-09-12 14:27:02 +02:00
|
|
|
|
2021-02-18 14:09:56 +01:00
|
|
|
<?php wp_link_pages( array( 'before' => '' . __( 'Pages:', 'hangar' ), 'after' => '' ) ); ?>
|
|
|
|
<?php edit_post_link( __( 'Edit this page →', 'hangar' ), '', '' ); ?>
|
|
|
|
|
|
|
|
<?php // comments_template( '', true ); ?>
|
|
|
|
|
|
|
|
<?php endwhile; ?>
|
|
|
|
<!--<div id="navegacio" class="dins">
|
|
|
|
<p class="previous"><?php previous_post_link( '%link', '' . _x( '← Previous Post', 'Previous post link', 'hangar' ) . '' ); ?></p>
|
|
|
|
<p class="next"><?php next_post_link( '%link', __('') . _x( 'Next Post →', 'Next post link', 'hangar' ) . '' ); ?></p>
|
2022-09-12 14:27:02 +02:00
|
|
|
</div>-->
|
|
|
|
|
2021-02-18 14:09:56 +01:00
|
|
|
</div>
|
|
|
|
<!--end Page-->
|
2022-09-12 14:27:02 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-02-18 14:09:56 +01:00
|
|
|
</div>
|
|
|
|
<!--end Content-->
|
|
|
|
|
2022-09-12 14:27:02 +02:00
|
|
|
<div id="content" class="indexall tags">
|
|
|
|
<?php
|
|
|
|
// Detect plugin. For use on Front End only.
|
|
|
|
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
|
|
|
// check for plugin using plugin name
|
|
|
|
if ( is_plugin_active( 'hangar-wp-plugin/hangar-wp-plugin.php' ) ) {
|
|
|
|
//plugin is activated do
|
|
|
|
hangar_show_extra_content();
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
|
|
|
|
</div><!-- end indexall tags -->
|
|
|
|
|
|
|
|
|
2021-02-18 14:09:56 +01:00
|
|
|
<?php //get_sidebar('secondary'); ?>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<!--end Main-->
|
|
|
|
|
2022-09-12 14:27:02 +02:00
|
|
|
<?php get_footer(); ?>
|