Sid Gifari File Manager
🏠 Root
/
home
/
ailwtbdh
/
lynchestinegroup.com
/
wp-content
/
themes
/
koncrete
/
template-parts
/
team
/
Editing: related-team.php
<?php /** * @author RadiusTheme * @since 1.0 * @version 1.0 * forked from koncrete-core/team/view-2 */ namespace radiustheme\Koncrete; use radiustheme\Koncrete\Helper; /** team_single_section_more has_team_single_others_team team_single_title has_team_single_subtitle team_single_subtitle team_single_no_of_others_team_member **/ $posts_per_page = isset( RDTheme::$options['team_single_no_of_others_team_member'] ) ? RDTheme::$options['team_single_no_of_others_team_member'] : 4; $title = isset( RDTheme::$options['team_single_title'] ) ? RDTheme::$options['team_single_title'] : 'Our Expert People'; $subtitle = isset( RDTheme::$options['team_single_subtitle'] ) ? RDTheme::$options['team_single_subtitle'] : 'Morbi accumsan ipsum velit Nam nec tellus aodio tincidunt auctor '; $allow_subtitle = isset( RDTheme::$options['has_team_single_subtitle'] ) ? RDTheme::$options['has_team_single_subtitle'] : true; $current_post = get_the_ID(); $col_class = "col-md-3 col-sm-2"; if ( Helper::has_sidebar() ) { $col_class = "col-md-4"; } $prefix = Constants::$theme_prefix; $thumb_size = "{$prefix}-size4"; $args = array( 'post_type' => "{$prefix}_team", 'posts_per_page' => $posts_per_page, 'suppress_filters' => false, 'orderby' => 'title', ); if ($current_post) { $args['post__not_in'] = array($current_post) ; } $posts = get_posts( $args ); ?> <div class="related-team"> <div class="related-team-heading"> <h2><?php echo esc_html( $title ); ?></h2> <?php if ( $allow_subtitle ): ?> <p><?php echo esc_html( $subtitle ); ?></p> <?php endif ?> </div> <div class="rtel-team-gallery rtel-team-gallery2"> <div class="row gutters-15"> <?php foreach ($posts as $post): ?> <?php $img = Helper::generate_thumbnail_image( $post, $thumb_size, true ); $designation = get_post_meta( $post->ID, "{$prefix}_team_designation", true ); $socials = get_post_meta( $post->ID, "{$prefix}_team_socials", true ); $permalink = get_the_permalink($post); $content = Helper::generate_excerpt($post, 15); ?> <div class="<?php echo esc_attr( $col_class ); ?>"> <div class="rtin-team-layout2"> <?php if ($img): ?> <div class="item-img"> <img src="<?php echo esc_url( $img ); ?>" alt="<?php echo esc_attr( $post->post_title ); ?>" class="img-fluid"> </div> <?php endif ?> <div class="item-content-team"> <h3 class="item-title"><a href="<?php echo esc_url( $permalink ); ?>"><?php echo esc_html( $post->post_title ); ?></a></h3> <div class="item-subtitle"><?php echo esc_html( $designation ); ?></div> <ul class="item-social"> <?php foreach (Helper::team_social_infos() as $social_info): ?> <?php if ($link = $socials[$social_info['key']]): ?> <li> <a href="<?php echo esc_url($link); ?>"> <i class="<?php echo esc_attr( $social_info['icon'] ); ?>"></i> </a> </li> <?php endif ?> <?php endforeach ?> </ul> <a href="<?php echo esc_url( $permalink ); ?>" class="item-btn">View Profile</a> </div> </div> </div> <?php endforeach ?> </div> </div> </div>
Save
Cancel