File "SingleItemTemplate.php"

Full Path: /home/pumpbmko/public_html/wp-content/themes/momota/lib/colibriwp/src/Components/MainContent/SingleItemTemplate.php
File size: 529 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

namespace ColibriWP\Theme\Components\MainContent;

use ColibriWP\Theme\Core\ComponentBase;
use ColibriWP\Theme\View;

class SingleItemTemplate extends ComponentBase {

	protected static function getOptions() {
		return array();
	}

	public function renderContent( $parameters = array() ) {
		if ( have_posts() ) :

			View::partial(
				'main',
				'post',
				array(
					'component' => $this,
				)
			);

		else :
			View::partial(
				'main',
				'404',
				array(
					'component' => $this,
				)
			);
		endif;
	}
}