| Server IP : 192.241.186.36 / Your IP : 216.73.216.164 Web Server : Apache/2.4.29 (Ubuntu) System : Linux webserver7 4.15.0-194-generic #205-Ubuntu SMP Fri Sep 16 19:49:27 UTC 2022 x86_64 User : root ( 0) PHP Version : 7.4.32 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_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/carsdaddy/wp-content/themes/cardealer/ |
Upload File : |
<?php /** * The Template for displaying cars listings. * * @link https://developer.wordpress.org/themes/basics/template-hierarchy/ * * @package CarDealer */ get_header(); global $car_dealer_options; $layout = cardealer_get_vehicle_listing_page_layout(); $container_class = ( 'lazyload' === $layout ) ? 'container-fluid' : 'container'; $template = ( 'lazyload' === $layout ) ? 'lazy-load' : $layout; $template = ( wp_is_mobile() ) ? 'mobile' : $template; $layout_class = ( wp_is_mobile() ) ? 'mobile default' : $layout; $inv_page_id = ( isset( $car_dealer_options['cars_inventory_page'] ) && ! empty( $car_dealer_options['cars_inventory_page'] ) ) ? $car_dealer_options['cars_inventory_page'] : ''; $inv_page_content = get_post_field( 'post_content', $inv_page_id ); $inv_page_content_class = ( $inv_page_id && $inv_page_content ) ? 'cd-content' : 'cd-no-content'; ?> <section <?php post_class( 'product-listing page-section-ptb ' . $layout_class ); ?>> <div class="<?php echo esc_attr( $container_class ); ?>"> <?php do_action( 'before_vehicle_inventory_page_content', $layout ); get_template_part( 'template-parts/cars/archive-layout/' . $template, null, apply_filters( 'cardealer/cars/archive/layout/args', array( 'layout' => $layout, 'inv_page_id' => $inv_page_id, 'inv_page_content' => $inv_page_content, 'inv_page_content_class' => $inv_page_content_class, ), $car_dealer_options ) ); do_action( 'after_vehicle_inventory_page_content', $layout ); ?> </div> </section> <!--.product-listing--> <?php get_footer();