changed thumbnails call. commented when no content found.

This commit is contained in:
jorge-vitrubio 2022-09-12 14:03:18 +02:00
parent 1096b798fa
commit 12c0e5b8ca
1 changed files with 15 additions and 15 deletions

View File

@ -22,7 +22,7 @@ get_header(); ?>
<div class="entry-content"> <div class="entry-content">
<h2 class="box index"><?php the_title(); ?></h2> <h2 class="box index"><?php the_title(); ?></h2>
<?php if ( has_post_thumbnail() ) : // check if the post has a Post Thumbnail assigned to it. <?php if ( has_post_thumbnail() ) : // check if the post has a Post Thumbnail assigned to it.
the_post_thumbnail('thumbnail'); ?> the_post_thumbnail(); ?>
<p class="excerptbox"><?php echo get_the_excerpt(); ?></p> <p class="excerptbox"><?php echo get_the_excerpt(); ?></p>
<?php else : ?> <?php else : ?>
<div class="contentcurt"> <div class="contentcurt">
@ -33,7 +33,7 @@ get_header(); ?>
<?php wp_link_pages( array( 'before' => '<p class="page-links pages">' . __( 'Pages:', 'hangar' ), 'after' => '</p>' ) ); ?> <?php wp_link_pages( array( 'before' => '<p class="page-links pages">' . __( 'Pages:', 'hangar' ), 'after' => '</p>' ) ); ?>
</div><!-- .entry-content --> </div><!-- .entry-content -->
</div><!-- post .hentry --> </div><!-- post .boxentry -->
<?php $pare = get_the_ID(); endwhile; ?> <?php $pare = get_the_ID(); endwhile; ?>
@ -45,18 +45,18 @@ get_header(); ?>
<?php endif; ?> <?php endif; ?>
</div> </div> <!-- end indexall wide -->
<div id="content" class="indexall tags"> <div id="content" class="indexall tags">
<?php <?php
// Detect plugin. For use on Front End only. // Detect plugin. For use on Front End only.
include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
// check for plugin using plugin name // check for plugin using plugin name
if ( is_plugin_active( 'hangar-wp-plugin/hangar-wp-plugin.php' ) ) { if ( is_plugin_active( 'hangar-wp-plugin/hangar-wp-plugin.php' ) ) {
//plugin is activated do //plugin is activated do
hangar_show_extra_content(); hangar_show_extra_content();
} }
?> ?>
</div>
<!--end Main--> </div><!-- end indexall tags -->
<?php get_footer(); ?> <?php get_footer(); ?>