Uname:Linux Sandbox-A 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64

Base Dir : /var/www/html

User : gavin


403WebShell
403Webshell
Server IP : 68.183.124.220  /  Your IP : 216.73.216.141
Web Server : Apache/2.4.18 (Ubuntu)
System : Linux Sandbox-A 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64
User : gavin ( 1000)
PHP Version : 7.0.33-0ubuntu0.16.04.16
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/wp-content/plugins/aperture-real-estate-pro/templates/blocks/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/wp-content/plugins/aperture-real-estate-pro/templates/blocks/agents.php
<div class="section agents-section clear">
    <div class="grid-wide">
        <?php
        $title = get_sub_field('section_title');
        $agents = get_sub_field('number_of_agents');
        $agent = get_field('agent_title');
        $email = get_field('email');
        
        //Section header
        echo '<h2 class="section-title">'. $title .'</h2>';

        if($agents == '2'){
            $columns = 'col-6-12';
        }elseif($agents == '3') {
            $columns = 'col-4-12';
        }elseif($agents >= '4'){
            $columns = 'col-3-12';
        }
        $arg = array(
            'post_type' => 'agents',
            'posts_per_page'  => $agents,
        );
        $agent = new WP_Query($arg);
        if($agents > '1') {
        if($agent->have_posts()):
            while($agent->have_posts()): $agent->the_post();
            echo '<div class="'.$columns.' agent">';
            if ( has_post_thumbnail() ) { 
                $thumb = get_the_post_thumbnail_url(get_the_ID(),'large');
            }
            echo '<div class="thumb" style="background-image: url('.$thumb.'); background-size: cover;"></div>';
            the_title( '<h4 class="agent-title">', '</h4>' );
            echo '<h5>'. get_field('email') .'</h5>';
            echo '<h5>'. get_field('telephone') .'</h5>';
            //echo '<a href="#">'. __( 'View Listings','aperture-real-estate-pro') .'</a>';
            echo '</div>';
            endwhile;
            wp_reset_postdata();
        endif;
        } elseif($agents == '1') {
            if($agent->have_posts()):
                while($agent->have_posts()): $agent->the_post();
                echo '<div class="agent">';
                if ( has_post_thumbnail() ) { 
                    $thumb = get_the_post_thumbnail_url(get_the_ID(),'large');
                }
                echo '<div class="col-6-12"><div class="thumb" style="background-image: url('.$thumb.'); background-size: cover;"></div></div>';
                echo '<div class="col-6-12 agent-details">';
                the_title( '<h2 class="agent-title">', '</h2>' );
                the_content();
                echo '<h5>'. get_field('email') .'</h5>';
                echo '<h5>'. get_field('telephone') .'</h5>';
                //echo '<a href="#">'. __( 'View Listings','aperture-real-estate-pro') .'</a>';
                echo '</div></div>';
                endwhile;
                wp_reset_postdata();
            endif;           
        }

        ?>
    </div>
</div>

Youez - 2016 - github.com/yon3zu
LinuXploit