@Ghazascanner
_2019runbot
Ghazascanner File Manager
server :Linux phpmyadmin-ubuntu-m-2vcpu-16gb-blr1-01 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
Current Path :
/
var
/
www
/
html
/
wp-content
/
themes
/
wpresidence
/
Path :
Upload File :
New :
File
Dir
/var/www/html/wp-content/themes/wpresidence/user_dashboard_add_agent.php
<?php // Template Name: User Dashboard Add agent // Wp Estate Pack wpestate_dashboard_header_permissions(); $current_user = wp_get_current_user(); $dash_profile_link = wpestate_get_template_link('user_dashboard_profile.php'); get_header(); $wpestate_options = wpestate_page_details($post->ID); $user_role = get_user_meta( $current_user->ID, 'user_estate_role', true) ; if($user_role!=3 && $user_role !=4){ wp_redirect( esc_url(home_url('/')) );exit; } global $listing_edit; global $is_edit; //edit $listing_edit=0; $is_edit=0; if(isset($_GET['listing_edit'])){ $listing_edit=intval($_GET['listing_edit']); $is_edit=1; } ?> <div class="row row_user_dashboard"> <?php get_template_part('templates/dashboard-left-col'); ?> <div class="col-md-9 dashboard-margin"> <?php get_template_part('templates/breadcrumbs'); ?> <?php get_template_part('templates/user_memebership_profile'); ?> <?php get_template_part('templates/ajax_container'); ?> <?php while (have_posts()) : the_post(); ?> <?php if (esc_html( get_post_meta($post->ID, 'page_show_title', true) ) != 'no' && $is_edit==0) { ?> <h3 class="entry-title"><?php the_title(); ?></h3> <?php }else{ print '<h3 class="entry-title">'.esc_html__('Edit Agent','wpresidence').'</h3>'; } ?> <div class="single-content"><?php the_content();?></div><!-- single content--> <?php endwhile; // end of the loop. ?> <?php include( locate_template('templates/add_new_agent_template.php') ); ?> </div> </div> <?php get_footer(); ?>