<?php
/**
* @package com_spmedical
* @author JoomShaper http://www.joomshaper.com
* @copyright Copyright (c) 2010 - 2022 JoomShaper
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or later
*/

// No Direct Access
defined ('_JEXEC') or die('Restricted Access');

use Joomla\CMS\Helper\ModuleHelper;
use Joomla\CMS\Layout\LayoutHelper;

$modules = ModuleHelper::getModules('departments-top-position');
?>

<div id="spmedical" class="spmedical view-spmedical-departments spmedical-departments-list">
	<!-- specialist top modules -->
	<?php foreach($modules as $module) { ?>
		<?php echo ModuleHelper::renderModule($module, array('style' => 'sp_xhtml')); ?>
	<?php } ?>

	<?php echo LayoutHelper::render('departments.departments', array('departments' => $this->items, 'columns' => $this->columns, 'logo_type' => $this->logo_type)); ?>
</div> <!-- /#spmedical -->

<?php if ($this->params->get('hide_pagination') == 0) {?>
	<?php if ($this->pagination->pagesTotal > 1) { ?>
	<div class="pagination">
		<?php echo $this->pagination->getPagesLinks(); ?>
	</div>
	<?php } ?>
<?php } ?>

