Menu code in php

Hello Everyone,
I am new in this forum and I hope I can find help from the experts.
The following code is for user drop down menu, when the user log in a new menu appears when we click on the photo profile :

  • My dashboard
  • my listings
  • edit profil
  • logout

I want to modify this menu and replace it by another one, for example:

  • My dashboard
  • my listings —> my favourites
  • my cart
  • edit profil —> mes messages
  • logout
    Off course with the link of the pages. How to insert the links that stars by https://

How to modify this code please? I am not expert and I know nothing in coding.

global $pacz_settings;

$preset_header_style = $pacz_settings[‘preset_headers’];

$logedin_user = wp_get_current_user()->ID;

$logedin_user_display_name = get_the_author_meta( ‘display_name’, $logedin_user );

$logedin_user_name = get_the_author_meta( ‘user_nicename’, $logedin_user );

require_once PACZ_THEME_PLUGINS_CONFIG . “/image-cropping.php”;

$avatar_id = get_user_meta( $logedin_user, ‘avatar_id’, true );

$author_avatar_url = wp_get_attachment_image_src( $avatar_id, ‘full’ );

$image_src_array = $author_avatar_url[0];

if($preset_header_style == 12){

if(!empty($image_src_array)) {

$params = array( ‘width’ => 37, ‘height’ => 37, ‘crop’ => true );

$user_thumb = ‘<img src=”‘ . bfi_thumb( $image_src_array, $params ) . ‘” alt=”‘.$logedin_user_name.’” />’;

} else{

$avatar_url = get_avatar_url($logedin_user, [‘size’ => ’37’]);

$user_thumb =’<img src=”‘.$avatar_url.’” alt=”‘.$logedin_user_name.’” />’;

}

}else{

if(!empty($image_src_array)) {

$params = array( ‘width’ => 48, ‘height’ => 48, ‘crop’ => true );

$user_thumb = ‘<img src=”‘ . bfi_thumb( $image_src_array, $params ) . ‘” alt=”‘.$logedin_user_name.’” />’;

} else{

$avatar_url = get_avatar_url($logedin_user, [‘size’ => ’48’]);

$user_thumb =’<img src=”‘.$avatar_url.’” alt=”‘.$logedin_user_name.’” />’;

}

}

$login = $pacz_settings[‘pacz-login-slug’];

$register = $pacz_settings[‘pacz-register-slug’];

if(!empty($pacz_settings[‘pacz-logreg-header-btn’]) && isset($pacz_settings[‘pacz-logreg-style’]) && $pacz_settings[‘pacz-logreg-style’] == 1){

if(is_user_logged_in()){

if(class_exists(‘alsp_dashboard_controller’)){

echo ‘<div class=”dropdown clearfix”>’;

echo ‘’.$user_thumb .’

’.$logedin_user_display_name.’’.$logedin_user_name.’

’;

global $frontend_controller;

//if($frontend_controller->listings_count > 0){

//$listing_count = $frontend_controller->listings_count;

//}else{

//$listing_count = 0;

//}

echo ‘

’;

echo ‘’;

}elseif(class_exists(‘Directorypress_Frontend’)){

echo ‘<div class=”dropdown clearfix”>’;

echo ‘’.$user_thumb .’

’.$logedin_user_display_name.’’.$logedin_user_name.’

’;

global $frontend_controller;

//if($frontend_controller->listings_count > 0){

//$listing_count = $frontend_controller->listings_count;

//}else{

//$listing_count = 0;

//}

echo ‘

    ’;

    echo ‘

  • <a href=”‘.alsp_dashboardUrl().’”>’.esc_html__(‘My Dashboard’, ‘classiadspro’).’
  • ’;

    echo ‘

  • <a href=”‘.alsp_dashboardUrl().’”>’.esc_html__(‘Mes messages’, ‘classiadspro’).’
  • ’;

    echo ‘

  • <a href=”‘.alsp_dashboardUrl(array(‘alsp_action’ => ‘profile’)).’”>’.esc_html__(‘Edit Profile’, ‘classiadspro’).’
  • ’;

    echo ‘

  • <a href=”‘.wp_logout_url(esc_url( home_url(‘/’))).’”>’.esc_html__(‘logout’, ‘classiadspro’).’
  • ’;

    echo ‘

    ’;

    echo ‘’;

    }elseif(class_exists(‘Gd_User_Dashboard’)){

    echo ‘<div class=”dropdown clearfix”>’;

    echo ‘’.$user_thumb .’

    ’.$logedin_user_display_name.’’.$logedin_user_name.’

    ’;

    echo ‘

      ’;

      echo ‘

    • <a href=”‘.gdud_dashboard_uri().’”>’.esc_html__(‘My Dashboard’, ‘classiadspro’).’
    • ’;

      echo ‘

    • <a href=”‘.gdud_dashboard_uri().’”>’.esc_html__(‘Mes messages’, ‘classiadspro’).’
    • ’;

      echo ‘

    • <a href=”‘.gdud_dashboard_uri().’?gdud_action=user-profile”>’.esc_html__(‘Edit Profile’, ‘classiadspro’).’
    • ’;

      echo ‘

    • <a href=”‘.wp_logout_url(esc_url( home_url(‘/’))).’”>’.esc_html__(‘logout’, ‘classiadspro’).’
    • ’;

      echo ‘

      ’;

      echo ‘’;

      }else{

      echo ‘<a class=”pacz-logout clearfix” href=”‘.wp_logout_url(esc_url( home_url(‘/’))).’”>’.esc_html__(‘logout’, ‘classiadspro’).’’;

      }

      }else{

      echo ‘<a class=”pacz-login clearfix” href=”‘.esc_url(home_url(‘/’).$login).’”>’.esc_html__(‘login’, ‘classiadspro’).’’;

      echo ‘<a class=”pacz-register” href=”‘.esc_url(home_url(‘/’).$register).’”>’.esc_html__(‘Register’, ‘classiadspro’).’’;

      }

      }else if(!empty($pacz_settings[‘pacz-logreg-header-btn’]) && isset($pacz_settings[‘pacz-logreg-style’]) && $pacz_settings[‘pacz-logreg-style’] == 2){

      if(is_user_logged_in()){

      if(class_exists(‘alsp_dashboard_controller’)){

      echo ‘

      ’;

      echo ‘’.$user_thumb .’

      ’.$logedin_user_display_name.’’.$logedin_user_name.’

      ’;

      echo ‘

        ’;

        echo ‘

      • <a href=”‘.alsp_dashboardUrl().’”>’.esc_html__(‘My Dashboard’, ‘classiadspro’).’
      • ’;

        echo ‘

      • <a href=”‘.alsp_dashboardUrl().’”>’.esc_html__(‘Mes messages’, ‘classiadspro’).’
      • ’;

        echo ‘

      • <a href=”‘.alsp_dashboardUrl(array(‘alsp_action’ => ‘profile’)).’”>’.esc_html__(‘Edit Profile’, ‘classiadspro’).’
      • ’;

        echo ‘

      • <a href=”‘.wp_logout_url(esc_url( home_url(‘/’))).’”>’.esc_html__(‘logout’, ‘classiadspro’).’
      • ’;

        echo ‘

        ’;

        echo ‘

        ’;

        }elseif(class_exists(‘Directorypress_Frontend’)){

        echo ‘

        ’;

        echo ‘’.$user_thumb .’

        ’.$logedin_user_display_name.’’.$logedin_user_name.’

        ’;

        echo ‘

          ’;

          echo ‘

        • <a href=”‘.directorypress_dashboardUrl().’”>’.esc_html__(‘My Dashboard’, ‘classiadspro’).’
        • ’;

          echo ‘

        • <a href=”‘.directorypress_dashboardUrl().’”>’.esc_html__(‘My Listings’, ‘classiadspro’).’
        • ’;

          echo ‘

        • <a href=”‘.directorypress_dashboardUrl(array(‘directorypress_action’ => ‘profile’)).’”>’.esc_html__(‘Edit Profile’, ‘classiadspro’).’
        • ’;

          echo ‘

        • <a href=”‘.wp_logout_url(esc_url( home_url(‘/’))).’”>’.esc_html__(‘logout’, ‘classiadspro’).’
        • ’;

          echo ‘

          ’;

          echo ‘

          ’;

          }elseif(class_exists(‘Gd_User_Dashboard’)){

          echo ‘

          ’;

          echo ‘’.$user_thumb .’

          ’.$logedin_user_display_name.’’.$logedin_user_name.’

          ’;

          echo ‘

            ’;

            echo ‘

          • <a href=”‘.gdud_dashboard_uri().’”>’.esc_html__(‘My Dashboard’, ‘classiadspro’).’
          • ’;

            echo ‘

          • <a href=”‘.gdud_dashboard_uri().’”>’.esc_html__(‘My Listings’, ‘classiadspro’).’
          • ’;

            echo ‘

          • <a href=”‘.gdud_dashboard_uri().’?gdud_action=user-profile”>’.esc_html__(‘Edit Profile’, ‘classiadspro’).’
          • ’;

            echo ‘

          • <a href=”‘.wp_logout_url(esc_url( home_url(‘/’))).’”>’.esc_html__(‘logout’, ‘classiadspro’).’
          • ’;

            echo ‘

            ’;

            echo ‘

            ’;

            }else{

            echo ‘<a class=”pacz-logout-2 clearfix” href=”‘.wp_logout_url(esc_url( home_url(‘/’))).’”>’.esc_html__(‘logout’, ‘classiadspro’).’’;

            }

            }else{

            if($preset_header_style == 12){

            echo ‘<a class=”pacz-login-3 clearfix” href=”‘.esc_url(home_url(‘/’).$login).’”>’.esc_html__(‘login’, ‘classiadspro’).’’;

            echo ‘/’;

            echo ‘<a class=”pacz-register-3″ href=”‘.esc_url(home_url(‘/’).$register).’”>’.esc_html__(‘Register’, ‘classiadspro’).’’;

            }else{

            echo ‘<a class=”pacz-login-2 clearfix” href=”‘.esc_url(home_url(‘/’).$login).’”>’.esc_html__(‘login’, ‘classiadspro’).’’;

            echo ‘<a class=”pacz-register-2″ href=”‘.esc_url(home_url(‘/’).$register).’”>’.esc_html__(‘Register’, ‘classiadspro’).’’;

            }

            }

            }

            }