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/ |
<?php namespace Kubio\Theme\Components; use ColibriWP\Theme\View; class MainContent extends \ColibriWP\Theme\Components\MainContent { public function renderContent( $parameters = array() ) { ?> <div id="content"> <?php if ( have_posts() ) { View::partial( 'content', 'index', array( 'component' => $this, ) ); } else { View::partial( 'content', '404', array( 'component' => $this, ) ); } $this->doMasonry(); ?> </div> <?php } public function doMasonry() { $value = $this->mod( 'blog_enable_masonry', false ); if ( $value ) { wp_enqueue_script( 'jquery-masonry' ); } else { ?> <script> (function () { document.querySelector('.wp-block-kubio-query-loop').setAttribute('data-kubio-settings', '{}') })(); </script> <?php } } }