Current File : /home/pacjaorg/public_html/kmm/components/com_djclassifieds/layouts/moduleajaxload.php
<?php
/**
 * @package DJ-Classifieds
 * @copyright Copyright (C) DJ-Extensions.com, All rights reserved.
 * @license http://www.gnu.org/licenses GNU/GPL
 * @author url: http://dj-extensions.com
 * @author email contact@dj-extensions.com
 */

defined ('_JEXEC') or die('Restricted access');

$module = $displayData['module'];

?>
<div class="<?php echo $module->module; ?> clearfix"  id="<?php echo $module->module; ?><?php echo $module->id; ?>">
    <div id="mod_loader<?php echo $module->id; ?>" class="mod-loader djloader" style="display:flex"><img style="margin:auto" src="<?php echo JURI::root().DJClassifiedsTheme::getImgAssetPath('loading.gif'); ?>"/></div>
</div>

<script>
    jQuery(function($){
        jQuery.ajax({
            url: '<?php echo JRoute::_('index.php'); ?>',
            type: 'post',
            data: {
                'option': 'com_ajax',
                'module': 'djclassifieds_items',
                'method': 'getModuleWithAjax',
                'format': 'raw',
                'mod_name': '<?php echo $module->name; ?>',
                'mod_id': '<?php echo $module->id; ?>'
            }
        }).done(function(response, textStatus, jqXHR){
            if(textStatus == 'success'){
                var module_id = '<?php echo $module->module; ?><?php echo $module->id; ?>';
                var $module = jQuery(response).filter('#'+module_id);
                if(!$module.length){
                    $module = jQuery(response).find('#'+module_id);
                }
                $('#'+module_id).replaceWith($module);
                $(document).trigger('ready.<?php echo $module->name; ?>.<?php echo $module->id; ?>');
            }
        });
    });
</script>
Site is undergoing maintenance

PACJA Events

Maintenance mode is on

Site will be available soon. Thank you for your patience!