Server : LiteSpeed
System : Linux server64.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
User : nimalaab ( 3358)
PHP Version : 8.1.33
Disable Function : NONE
Directory :  /home/nimalaab/public_html/wp-content/themes/as/lib/kubio-themebase/src/Components/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]


Current File : /home/nimalaab/public_html/wp-content/themes/as/lib/kubio-themebase/src/Components/PageContent.php
<?php


namespace Kubio\Theme\Components;

use ColibriWP\Theme\View;

class PageContent extends \ColibriWP\Theme\Components\PageContent {

	public function wrapPostContent( $content ) {
		return "<div class='kubio-post-content entry-content'>{$content}</div>";
	}

	public function renderContent( $parameters = array() ) {

		add_filter( 'the_content', array( $this, 'wrapPostContent' ), 100 );

		?>
			<div id="content">
			<?php
			while ( have_posts() ) :
				the_post();
				View::partial( 'content', 'page' );
			endwhile;
			?>
			</div> 
		<?php

		remove_filter( 'the_content', array( $this, 'wrapPostContent' ), 100 );
	}

}

F1le Man4ger