posts, 4);// at first chunk, it will have 1 dummy item and 3 members. and the rest chunks will have 4 members.
$themeID = 'ID-'.rand(1, 9999);
// add some items to the style array to pass to the style.php
$st1['themeID'] = $themeID;
// data to be sent css and fonts to the partials/style.php
$data = array(
'st1' => $st1,
'fs' => $fs,
);
?>
loadTheme('style1/partials/style', array('data' => $data)); // loads style with dynamic data
?>
$four_members ) {
echo '
';
// Second Loop start
foreach ($four_members as $member ) {
$member_info = $ADL_team->get_all_info_of_member($member);
$member_info['show_member_detail'] = !empty($show_member_detail) ? $show_member_detail: '';
$member_info['crop_image'] = !empty($crop_image) ? $crop_image: '';
$member_info['image_upscale'] = !empty($image_upscale) ? $image_upscale: '';
$member_info['popup_show'] = !empty($popup_show) ? $popup_show: '';
$member_info['image_width'] = !empty($st1['image_width']) ? $st1['image_width']: '270';
$member_info['image_height'] = !empty($st1['image_height']) ? $st1['image_height']: '260';
$ADL_team->loadTheme( 'style1/partials/member', [ 'member_info' => $member_info ] );
} // Ends Second Loop
echo '
'; // Ends adl-row
} // Ends First Loop
?>