} include $sitepath . 'components/com_contact/helpers/route.php'; echo '<div class="custom module doctors">'; echo '<h3 class="page-header"><a href="/specialist"><span>Наши специалисты</span></a></h3>'; echo '<ul>'; $separate_num = sizeof($contacts); for ($i = 0; $i < sizeof($contacts); $i++) { echo '<li>'; $slug = $contacts[$i]->id . ":" . $contacts[$i]->alias; $url = ContactHelperRoute::getContactRoute($slug, $contacts[$i]->catid); $telephone_array = explode(",", $contacts[$i]->telephone); if ($params->get('show_image', '') == 1 && $contacts[$i]->name != '') { if ($params->get('link_image', '') == 1) { echo "<a href=\"" . $url . "\" class=\"thumb\">" . contactImage($contacts[$i], $params->get('thumb_size', 100)) . "</a>{$newspace}\n"; } else { echo "<span class=\"info_image\">" . contactImage($contacts[$i], $params->get('thumb_size', 100)) . "</span>{$newspace}\n"; } } list($lastname, $firstname, $middlename) = split(' ', $contacts[$i]->name); if ($params->get('show_name', '') == 1 && $contacts[$i]->name != '') { if ($params->get('link_to', '') == 1) { echo "<h4><a href=\"" . $url . "\"><strong>" . $lastname . "</strong><br/>" . $firstname . " " . $middlename . "</a></h4>{$newspace}\n"; } else { echo "<h4><strong>" . $lastname . "</strong><br/>" . $firstname . " " . $middlename . "</h4>{$newspace}\n"; } } if ($params->get('show_alias', '') == 1 && $contacts[$i]->alias != '') { if ($params->get('link_to', '') == 1 && $params->get('show_name', '') != 1) { echo "<span class=\"info_name\"><a href=\"index.php?option=com_contact&task=view&id=" . $contacts[$i]->id . "\">" . $contacts[$i]->alias . "</a></span>{$linebreak}{$newspace}\n"; } else { echo "<span class=\"info_alias\">" . $contacts[$i]->alias . "</span>{$linebreak}{$newspace}\n";
} include $sitepath . 'components/com_contact/helpers/route.php'; if (sizeof($contacts)) { echo '<div class="contactsblock"><h3>' . $module->title . '</h3><ul>'; $separate_num = sizeof($contacts); for ($i = 0; $i < sizeof($contacts); $i++) { echo '<li>'; echo '<div class="contact-cell">'; $telephone_array = explode(",", $contacts[$i]->telephone); $slug = $contacts[$i]->id . ":" . $contacts[$i]->alias; $url = ContactHelperRoute::getContactRoute($slug, $contacts[$i]->catid); if ($params->get('show_image', '') == 1 && $contacts[$i]->name != '') { if ($params->get('link_image', '') == 1) { echo "<a class=\"info_image\" href=\"" . $url . "\">" . contactImage($contacts[$i], $params->get('thumb_size', 100)) . "</a>"; } else { echo contactImage($contacts[$i], $params->get('thumb_size', 100)) . "{$linebreak}{$newspace}\n"; } } echo '</div>'; echo '<div class="contact-cell">'; if ($params->get('show_name', '') == 1 && $contacts[$i]->name != '') { if ($params->get('link_to', '') == 1) { echo "<span class=\"info_name\"><a href=\"" . $url . "\">" . $contacts[$i]->name . "</a></span>"; } else { echo "<span class=\"info_name\">" . $contacts[$i]->name . "</span>"; } } echo '<br />'; if ($params->get('show_alias', '') == 1 && $contacts[$i]->alias != '') { if ($params->get('link_to', '') == 1 && $params->get('show_name', '') != 1) { echo "<span class=\"info_name\"><a href=\"index.php?option=com_contact&task=view&id=" . $contacts[$i]->id . "\">" . $contacts[$i]->alias . "</a></span>{$linebreak}{$newspace}\n";