Esempio n. 1
0
* Copyright: 	2015 ParaTheme
*/
if (!defined('ABSPATH')) {
    exit;
}
// if direct access
include team_plugin_dir . '/templates/team-grid-variables.php';
$html = '';
$html .= '<div  class="team-container team-container-' . $post_id . '" >
		<div  id="team-' . $post_id . '" class="team-items team-' . $team_themes . '">';
include team_plugin_dir . '/templates/team-grid-query.php';
// use to detect mobile and tablet device Mobile_Detect class
$Mobile_Detect = new Mobile_Detect();
$is_mobile = $Mobile_Detect->isMobile();
$is_tablet = $Mobile_Detect->isTablet();
$is_ipad = $Mobile_Detect->is_ipad();
if ($is_mobile) {
    $team_items_max_width = $team_items_width_mobile;
} elseif ($is_tablet) {
    $team_items_max_width = $team_items_width_tablet;
} elseif ($is_ipad) {
    $team_items_max_width = $team_items_width_tablet;
} else {
    $team_items_max_width = $team_items_max_width;
}
if ($wp_query->have_posts()) {
    $i = 0;
    while ($wp_query->have_posts()) {
        $wp_query->the_post();
        $team_member_position = get_post_meta(get_the_ID(), 'team_member_position', true);
        $team_member_social_links = get_post_meta(get_the_ID(), 'team_member_social_links', true);