49 lines
1.6 KiB
PHP
49 lines
1.6 KiB
PHP
<?php
|
|
/**
|
|
* The default template for displaying content
|
|
*
|
|
* Used for both single and index/archive/search.
|
|
*/
|
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
exit; // Exit if accessed directly
|
|
}
|
|
|
|
$ext_team_settings = fw()->extensions->get( 'team' )->get_settings();
|
|
$taxonomy_name = $ext_team_settings['taxonomy_name'];
|
|
|
|
$pID = get_the_ID();
|
|
$atts = fw_get_db_post_option($pID);
|
|
?>
|
|
|
|
<article id="post-<?php the_ID(); ?>" <?php post_class( 'vertical-item content-padding big-padding with_background ' ); ?>>
|
|
<?php solarify_post_thumbnail(); ?>
|
|
|
|
<div class="item-content">
|
|
|
|
<?php if ( is_sticky() && is_home() && ! is_paged() ) {
|
|
echo '<div class="featured-post grey"><i class="rt-icon2-clip highlight"></i>' . esc_html__( ' Sticky: ', 'solarify' ) . '</div>';
|
|
} ?>
|
|
|
|
<?php
|
|
the_title( '<h3 class="entry-title bottommargin_0"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h3>' );
|
|
?>
|
|
|
|
<?php if ( ! empty( $atts['position'] ) ) : ?>
|
|
<p class="small-text highlight"><?php echo wp_kses_post( $atts['position'] ); ?></p>
|
|
<?php endif; //position ?>
|
|
|
|
<?php if ( ! empty( $atts['social_icons'] ) ) : ?>
|
|
<div class="team-social-icons">
|
|
<?php
|
|
//get icons-social shortcode to render icons in team member item
|
|
$shortcodes_extension = fw()->extensions->get( 'shortcodes' );
|
|
if ( ! empty( $shortcodes_extension ) ) {
|
|
echo fw_ext( 'shortcodes' )->get_shortcode( 'icons_social' )->render( array( 'social_icons' => $atts['social_icons'] ) );
|
|
}
|
|
?>
|
|
</div><!-- eof social icons -->
|
|
<?php endif; //social icons ?>
|
|
</div><!-- eof .item-content -->
|
|
</article><!-- #post-## -->
|