File: //home/bristolfilton.co.uk/public_html/wp-content/themes/promote/template-team.php
<?php
/*
Template Name: Our Team
*/
?>
<?php get_header(); ?>
<div id="sub_banner" <?php if ( get_header_image() ) : ?>style="background:url(<?php header_image(); ?>)no-repeat center center /cover;" <?php endif; ?>>
<h1>
<?php the_title(); ?>
</h1>
</div>
<div id="team-page" >
<?php
if ( is_active_sidebar( 'sidebar-teampage' ) ) {
dynamic_sidebar( 'sidebar-teampage' );
} elseif ( current_user_can( 'edit_theme_options' ) && ! defined( 'PROMOTE_EXTEN_VERSION' ) ) {
echo '<div class="promote-extensions">';
if ( is_customize_preview() ) {
printf( __( 'You need to install the %s plugin to be able to add Team members, counter, service block and Clients widgets.','promote' ), 'promote extensions' );
} else {
printf( __( 'You need to install the %s plugin to be able to add Team members, counter, service block and Clients widgets.','promote' ), sprintf( '<a href="%1$s">%2$s</a>', esc_url( wp_nonce_url( self_admin_url( 'update.php?action=install-plugin&plugin=promote-extensions' ), 'install-plugin_promote-extensions' ) ), 'promote extensions' ) );
}
echo '</div>';
}?>
<!-- /team widgets -->
</div> <!-- end-->
<!--Content-->
<div id="content">
<div class="row">
<div class="large-12 columns ">
<?php if(have_posts()): ?>
<?php while(have_posts()): ?>
<?php the_post();?>
<div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
<div class="post_content">
<a class="postimg"><?php the_post_thumbnail('medium');?></a>
<div class="metadate">
<?php
edit_post_link(
sprintf(
/* translators: %s: Name of current post */
__( 'Edit<span class="screen-reader-text"> "%s"</span>', 'promote' ),
get_the_title()
),
'<span class="edit-link">',
'</span>'
);
?>
</div>
</div>
<div style="clear:both"></div>
<div class="post_info_wrap">
<?php
the_content();
wp_link_pages( array(
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'promote' ) . '</span>',
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>',
'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'promote' ) . ' </span>%',
'separator' => '<span class="screen-reader-text">, </span>',
) );
?>
</div>
<div style="clear:both"></div>
<?php endwhile ?>
</div>
<?php endif ;?>
</div>
<!--PAGE END-->
</div>
</div>
<?php get_footer(); ?>