added styles and code to support extra content at the bottom of pages and posts
This commit is contained in:
parent
310c99a740
commit
0411d8ab58
42
page.php
42
page.php
|
@ -7,17 +7,17 @@
|
||||||
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
|
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
|
||||||
|
|
||||||
<h2><?php the_title(); ?></h2>
|
<h2><?php the_title(); ?></h2>
|
||||||
|
|
||||||
|
|
||||||
<!-- buscar el nom de l'artista i la data: metatgs -->
|
<!-- buscar el nom de l'artista i la data: metatgs -->
|
||||||
<?php $tiporesid = get_post_meta($post->ID, 'autor_tipo_resid', true);
|
<?php $tiporesid = get_post_meta($post->ID, 'autor_tipo_resid', true);
|
||||||
if ($tiporesid) : ?>
|
if ($tiporesid) : ?>
|
||||||
<p class="curt"><?php echo __($tiporesid); ?> </p>
|
<p class="curt"><?php echo __($tiporesid); ?> </p>
|
||||||
<?php endif;?>
|
<?php endif;?>
|
||||||
<?php $dataresid = get_post_meta($post->ID, 'autor_data_resid', true);
|
<?php $dataresid = get_post_meta($post->ID, 'autor_data_resid', true);
|
||||||
if ($dataresid) : ?>
|
if ($dataresid) : ?>
|
||||||
<p class="curt"><?php echo __($dataresid); ?> </p>
|
<p class="curt"><?php echo __($dataresid); ?> </p>
|
||||||
<?php endif;?>
|
<?php endif;?>
|
||||||
|
|
||||||
<?php $autorobra = get_post_meta($post->ID, 'autor_obra', true);
|
<?php $autorobra = get_post_meta($post->ID, 'autor_obra', true);
|
||||||
if ($autorobra) : ?>
|
if ($autorobra) : ?>
|
||||||
|
@ -26,17 +26,17 @@
|
||||||
<?php $dataobra = get_post_meta($post->ID, 'data_obra', true);
|
<?php $dataobra = get_post_meta($post->ID, 'data_obra', true);
|
||||||
if ($dataobra) : ?>
|
if ($dataobra) : ?>
|
||||||
<p class="peullarg"><?php echo $dataobra; ?> </p>
|
<p class="peullarg"><?php echo $dataobra; ?> </p>
|
||||||
<?php endif;?>
|
<?php endif;?>
|
||||||
<?php $carrec = get_post_meta($post->ID, 'carrec', true);
|
<?php $carrec = get_post_meta($post->ID, 'carrec', true);
|
||||||
if ($carrec) : ?>
|
if ($carrec) : ?>
|
||||||
<p class="peullarg"><?php echo $carrec; ?> </p>
|
<p class="peullarg"><?php echo $carrec; ?> </p>
|
||||||
<p class="curt"><?php echo get_post_meta($post->ID, 'telefon', true) ?> </p>
|
<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>
|
<p class="peullarg"><?php echo get_post_meta($post->ID, 'email', true) ?> </p>
|
||||||
<?php endif;?>
|
<?php endif;?>
|
||||||
|
|
||||||
<?php the_content(); ?>
|
<?php the_content(); ?>
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
|
|
||||||
<?php wp_link_pages( array( 'before' => '' . __( 'Pages:', 'hangar' ), 'after' => '' ) ); ?>
|
<?php wp_link_pages( array( 'before' => '' . __( 'Pages:', 'hangar' ), 'after' => '' ) ); ?>
|
||||||
<?php edit_post_link( __( 'Edit this page →', 'hangar' ), '', '' ); ?>
|
<?php edit_post_link( __( 'Edit this page →', 'hangar' ), '', '' ); ?>
|
||||||
|
|
||||||
|
@ -46,20 +46,34 @@
|
||||||
<!--<div id="navegacio" class="dins">
|
<!--<div id="navegacio" class="dins">
|
||||||
<p class="previous"><?php previous_post_link( '%link', '' . _x( '← Previous Post', 'Previous post link', 'hangar' ) . '' ); ?></p>
|
<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>
|
<p class="next"><?php next_post_link( '%link', __('') . _x( 'Next Post →', 'Next post link', 'hangar' ) . '' ); ?></p>
|
||||||
</div>-->
|
</div>-->
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<!--end Page-->
|
<!--end Page-->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<!--end Content-->
|
<!--end Content-->
|
||||||
|
|
||||||
|
<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 -->
|
||||||
|
|
||||||
|
|
||||||
<?php //get_sidebar('secondary'); ?>
|
<?php //get_sidebar('secondary'); ?>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<!--end Main-->
|
<!--end Main-->
|
||||||
|
|
||||||
<?php get_footer(); ?>
|
<?php get_footer(); ?>
|
||||||
|
|
|
@ -199,8 +199,11 @@ li.news a:hover{background: transparent url('images/newshover.png') no-repeat 0
|
||||||
|
|
||||||
#content.unic, #content.mix, #content.resultats {
|
#content.unic, #content.mix, #content.resultats {
|
||||||
width:30rem;
|
width:30rem;
|
||||||
z-index:4;
|
/* z-index:4; */
|
||||||
float:left;
|
/* float:left; */
|
||||||
|
float: none;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue