HEX
Server: nginx/1.24.0
System: Linux DGT-WORDPRESS-VM-SERVER 6.14.0-1014-azure #14~24.04.1-Ubuntu SMP Fri Oct 3 20:52:11 UTC 2025 x86_64
User: ubuntu (1000)
PHP: 8.4.12
Disabled: NONE
Upload Files
File: /mnt/data/dreamsrent-wp-demo/wp-content/themes/dreamsrent/footer.php
<?php 
 



$current_user = wp_get_current_user();
$roles = (array) $current_user->roles;
if(is_page_template('template-dashboard-vendors.php')) {
if (in_array('dreamsrent_vendor', $roles, true) || in_array('administrator', $roles, true)) {
    get_template_part('templates/footer/footer', 'provider');
} else {
    get_template_part('templates/footer/footer', 'normal');
}
} else {
    get_template_part('templates/footer/footer', 'normal');
}
?>