403Webshell
Server IP : 198.38.94.67  /  Your IP : 216.73.217.74
Web Server : LiteSpeed
System : Linux d6054.dxb1.stableserver.net 5.14.0-570.25.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 9 04:57:09 EDT 2025 x86_64
User : azfilmst ( 1070)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/azfilmst/royalopus.ae/wp-content/themes/wpresidence/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/azfilmst/royalopus.ae/wp-content/themes/wpresidence/single-estate_agent.php
<?php
/**MILLDONE
 * WPResidence Agent Page Template
 * src: single-estate_agent.php
 * This file serves as the main template for displaying individual agent pages
 * within the WPResidence theme. It determines which specific agent template
 * to load based on theme options.
 *
 * @package    WPResidence
 * @subpackage Templates
 * @since      1.0.0
 */

// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
    exit;
}

get_header();
$use_defualt_template=true;
// Check if Elementor is being used to render this page
if (!function_exists('elementor_theme_do_location') || !elementor_theme_do_location('single')) {

    if( did_action( 'elementor/loaded' ) && function_exists('wpestate_single_agent_enabled') && wpestate_single_agent_enabled()  ) {
        wpestate_render_single_agent();
        $use_defualt_template=false;
    }
}




// Retrieve theme options and settings
$wpestate_options       = get_query_var('wpestate_options');
$show_compare           = 1; // This seems unused in this file, consider removing if not needed



// if we use default template
if($use_defualt_template):
    $wpestate_currency      = esc_html( wpresidence_get_option('wp_estate_currency_symbol', '') );
    $where_currency         = esc_html( wpresidence_get_option('wp_estate_where_currency_symbol', '') );
    $agent_page_template    = intval( wpresidence_get_option('wp_estate_agent_layouts', '') );

    // Load the appropriate agent template based on the theme option
    switch ($agent_page_template) {
        case 1:
            $template_path = 'templates/realtor_templates/agent_template_1.php';
            break;
        case 2:
            $template_path = 'templates/realtor_templates/agent_template_2.php';
            break;
        default:
            $template_path = 'templates/realtor_templates/agent_template_1.php';
            break;
    }

    // Include the selected template file
    if ( file_exists( get_theme_file_path( $template_path ) ) ) {
        include( get_theme_file_path( $template_path ) );
    } else {
        // Fallback in case the template file is missing
        esc_html_e( 'Error: Agent template file not found.', 'wpresidence' );
    }
endif;


get_footer();

Youez - 2016 - github.com/yon3zu
LinuXploit