added section with extra content but normar width

This commit is contained in:
jorge-vitrubio 2022-09-02 18:04:21 +02:00
parent f4ae7b231a
commit 4c319fe1cf
1 changed files with 62 additions and 0 deletions

62
seccions-extra.php Normal file
View File

@ -0,0 +1,62 @@
<?php
/**
* Template Name: Seccions extras
*
* Seccions de pàgines índex amb contingut i fills, però el contingut presentat com un índex
* @link http://themehybrid.com/themes/hybrid/page-templates/categories
*
* @package Hangar
* @subpackage Template
*/
get_header(); ?>
<!-- index pàgina pare-->
<div id="main">
<div id="content" class="indexall">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class("boxentry"); ?>>
<div class="entry-content">
<h2 class="box index"><?php the_title(); ?></h2>
<?php if ( has_post_thumbnail() ) : // check if the post has a Post Thumbnail assigned to it.
the_post_thumbnail('thumbnail'); ?>
<p class="excerptbox"><?php echo get_the_excerpt(); ?></p>
<?php else : ?>
<div class="contentcurt">
<?php //echo get_the_content_with_formatting(); ?>
<?php the_content(); ?>
</div>
<?php endif; ?>
<?php wp_link_pages( array( 'before' => '<p class="page-links pages">' . __( 'Pages:', 'hangar' ), 'after' => '</p>' ) ); ?>
</div><!-- .entry-content -->
</div><!-- post .hentry -->
<?php $pare = get_the_ID(); endwhile; ?>
<?php else: ?>
<p class="no-data">
<?php //_e( 'Apologies, but no results were found.', 'hangar' ); ?>
</p><!-- .no-data -->
<?php endif; ?>
</div>
<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 Main-->
<?php get_footer(); ?>