function model_gallery() { $i = 0; $file_ext = ".jpg"; $g_name = ""; $m = new Models(); $m->Add("profile_ad", "profile_ad.png"); $c = $m->model_count(); foreach ($m->GetList() as $key => $profile) { if ($i == 0) { $m_list .= "<ul id=\"mycarousel\" class=\"jcarousel-skin-tango1\">\n"; } $m_list .= "<li>\n"; $file = $profile->picture; $m_link = "<a href=\"perfil/chica-escort-monterrey-{$profile->name}\"><img src=\"/img/{$profile->name}/main/{$profile->picture}\" alt=\"\" width=\"217\" height=\"402\"></a>"; if ($profile->name == "Espacio Disponible") { $m_link = "<a href=\"/contacto\"><img src=\"/img/{$profile->name}/main/{$profile->picture}\" alt=\"\" width=\"217\" height=\"402\"></a>"; } $m_list .= "<div class=\"box-6\">" . "<div>" . "{$m_link}" . "<div class=\"fc\">" . "<div class=\"padding\">" . "<span>{$profile->name}</span>" . "<div class=\"padding\">" . "{$profile->age}<br>Ojos\t{$profile->eyes}" . "</div>" . "</div>" . "</div></div>" . "</div>\n"; $i++; $m_list .= "\n</li>\n"; if ($i == 4) { $m_list .= "</ul>\n"; $i = 0; } } //$m_list .= "</ul>"; return $m_list; }