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/dreamssalon-wp-market/wp-content/themes/dreamsalon/templates/template-dashboard.php
<?php
/**
 * Template Name: Dashboard Page
 *
 * This is the template that displays all pages by default.
 * Please note that this is the WordPress construct of pages
 * and that other 'pages' on your WordPress site will use a
 * different template.
 *
 * @package Dreamsalon
 */

get_header();
$current_user = wp_get_current_user();
$user_id = get_current_user_id();
$roles = $current_user->roles;
$role = array_shift($roles);

if (!is_user_logged_in()) {
    $login_page = dreamsalon_fl_framework_getoptions('header_login_link');

    $login_url = $login_page ? get_permalink( $login_page ) : '';
    $login_url = $login_url ? $login_url : wp_login_url();
    wp_safe_redirect( $login_url );
    exit();
}

if (!empty($current_user->user_firstname)) {
    $name = $current_user->user_firstname;
} else {
    $name =  $current_user->display_name;
}

?>


<!-- Content
================================================== -->
<div class="container">
    
    <?php
    while (have_posts()) : the_post();
        the_content();
    endwhile; // End of the loop.
    ?>
</div>
<?php get_footer(); ?>