$rowRecentAdded = get_prfiles_status(); //$rowRecentAdded = $objDatabase->dbQuery("Select * FROM ".TBL_PROFILES." where status='4' order by postdate desc limit 12"); foreach ($rowRecentAdded as $profileRow) { $youtubeURl = $profileRow->video; if (!empty($youtubeURl)) { parse_str(parse_url($youtubeURl, PHP_URL_QUERY), $my_array_of_vars); $youtubeCode = $my_array_of_vars['v']; } else { $youtubeCode = "1iBm60uJXvs"; } $profileImage = $profileRow->image; //$regOb = $objDatabase->fetchRows("Select * FROM ".TBL_REGIONS." where status=1 and id in (".$profileRow->region_id.")"); $regOb = get_Regions_with_in($profileRow->region_id); $regionName = $regOb[0]->region_name; //$rowRecentreg = $objDatabase->dbQuery("Select * FROM ".TBL_REGIONS." where status=1 and id in (".$profileRow->region_id.") limit 6"); $rowRecentreg = get_Regions_with_in_limit($profileRow->region_id); $regimg = ''; foreach ($rowRecentreg as $profileregRow) { $regimg .= '<li> <img src="' . base_url() . 'library/upload/' . $profileregRow->ragion_map . '" class="sm_image lazy"><p>' . ucfirst($profileregRow->region_name) . '</p> </li>'; } ?> <div class="col span_3" style="position: relative;"> <?php if ($profileImage == '' && $youtubeCode != '') { ?> <a id="rec<?php echo $profileRow->id; ?> " data-postid="<?php echo removeUnsed($regionName); ?>
<?php /*<a class="disqusBox" href="javascript:void(0)" onclick="reset('<?php echo $disqusIdPrefix.$arrProfiles->id?>', '<?php echo $disqusUrlPrefix."#".removeUnsed($regionName)."-profile";?>', '<?php echo $disqusTitlePrefix.htmlentities(stripslashes($arrProfiles->title));?>', 'persone_<?php echo $arrProfiles->id;?>');"><img src="<?php echo BASE_URL;?>show-thumbpj.php?src=images/disqus-btn.png&w=99&h=32" class="lazy"/></a> */ ?> </div> <div class="clear"></div> </section> <div id="persone_<?php echo $arrProfiles->id; ?> "></div> </div> </div> </div> <?php //$regimg = '<li> <img class="sm_image lazy" src="'.base_url().'library/upload/'.$regionObject->ragion_map.'"><p>'.stripslashes($regionName).'</p></li>'; $rowRecentreg = get_Regions_with_in_limit($arrProfiles->region_id); $regimg = ''; if (!empty($rowRecentreg)) { foreach ($rowRecentreg as $profileregRow) { $regimg .= '<li> <img src="' . base_url() . 'library/upload/' . $profileregRow["ragion_map"] . '" class="sm_image lazy"><p>' . ucfirst($profileregRow["region_name"]) . '</p> </li>'; } } ?> <div class="row thumbs1 clearfix"> <?php foreach ($resProfiles as $profileRow) { $youtubeURl = $profileRow->video; if (!empty($youtubeURl)) { parse_str(parse_url($youtubeURl, PHP_URL_QUERY), $my_array_of_vars);
/*<a class="disqusBox" href="javascript:void(0)" onclick="reset('<?php echo $disqusIdPrefix.$arrProfiles->id?>', '<?php echo $disqusUrlPrefix."#".removeUnsed($regionName)."-profile";?>', '<?php echo $disqusTitlePrefix.htmlentities(stripslashes($arrProfiles->title));?>', 'persone_<?php echo $arrProfiles->id;?>');"><img src="<?php echo BASE_URL;?>show-thumbpj.php?src=images/disqus-btn.png&w=99&h=32" class="lazy"/></a> */ ?> </div> <div class="clear"></div> </section> <div id="persone_<?php echo $arrProfiles->id; ?> "></div> </div> </div> </div> <?php //$regimg = '<li> <img class="sm_image lazy" src="'.base_url().'library/upload/'.$regionObject->ragion_map.'"><p>'.stripslashes($regionName).'</p></li>'; // $rowRecentreg = get_Regions_with_in_limit($arrProfiles->region_id); $rowRecentreg = get_Regions_with_in_limit($getregion_id); $regimg = ''; if (!empty($rowRecentreg)) { foreach ($rowRecentreg as $profileregRow) { $regimg .= '<li> <img src="' . base_url() . 'library/upload/' . $profileregRow["ragion_map"] . '" class="sm_image lazy"><p>' . ucfirst($profileregRow["region_name"]) . '</p> </li>'; } } ?> <div class="row thumbs1 clearfix"> <?php foreach ($resProfiles as $profileRow) { $youtubeURl = $profileRow->video; if (!empty($youtubeURl)) { parse_str(parse_url($youtubeURl, PHP_URL_QUERY), $my_array_of_vars);