<?php
/**
 * @package ClassifiedListing/Templates
 * @version 2.2.1.1
 */

use Rtcl\Helpers\Functions;
use RadiusTheme\ClassifiedLite\Helper;

defined( 'ABSPATH' ) || exit;

get_header( 'listing' );

do_action( 'rtcl_before_content_wrapper' );

/**
 * Hook: rtcl_before_main_content.
 *
 * @hooked rtcl_output_content_wrapper - 10 (outputs opening divs for the content)
 */
do_action( 'rtcl_before_main_content' );

Functions::get_template( 'listing/author-content' );

/**
 * Hook: rtcl_after_main_content.
 *
 * @hooked rtcl_output_content_wrapper_end - 10 (outputs closing divs for the content)
 */
do_action( 'rtcl_after_main_content' );

if ( Helper::has_sidebar() ) {
	/**
	 * Hook: rtcl_sidebar.
	 *
	 * @hooked rtcl_get_sidebar - 10
	 */

	do_action( 'rtcl_sidebar' );
}

do_action( 'rtcl_after_content_wrapper' );

get_footer( 'listing' );
