HEX
Server: Apache
System: Linux hp3-wp-1011494.hostingp3.local 3.10.0-1160.139.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Nov 3 13:30:41 UTC 2025 x86_64
User: csh2729955 (2121743)
PHP: 7.4.33
Disabled: shell_exec,exec,system,popen,set_time_limit
Upload Files
File: /home/storage/162/3480162/user/htdocs/wp-content/themes/gutenbiz/classes/support/class-jetpack.php
<?php
/**
 * Activate Jetpack Plugin Support
 *
 * @since 1.0.1
 *
 * @package Gutenbiz WordPress theme
 */
if( !class_exists( 'Support_Jetpack' ) ){
	class Support_Jetpack extends Gutenbiz_Helper{
		/**
		 * constructor
		 *
		 * @since 1.0.1
		 *
		 * @package Gutenbiz WordPress Theme
		 */
		public function __construct(){
			add_action( 'after_setup_theme', array( __CLASS__ , 'support' ) );
		}

		/**
		* Jetpack Plugin support
		*
		* @static
		* @access public
		* @since  1.0.1
		* @return array
		*
		* @package Gutenbiz WordPress Theme
		*/
		public static function support(){

			add_theme_support( 'infinite-scroll', array(
			    'container'      => 'load-more',
			    'footer_widgets' => false,
			    'wrapper'        => true,
			    'render'         => array( __CLASS__, 'render' )
			) );
		}

		/**
		* Load more posts in infinity scroll
		*
		* @static
		* @access public
		* @since  1.0.1
		*
		* @package Gutenbiz WordPress Theme
		*/
		public static function render() {
		    while (have_posts()) {
		    	?>
			    <div class="<?php echo esc_attr( Gutenbiz_Theme::is_sidebar_active() ? 'col-md-6 col-lg-6' : 'col-md-4 col-lg-4' ); ?>">
			    	<?php
				        the_post();
				        get_template_part( 'templates/content/content' ); 
			        ?>
		        </div>
		    <?php }
		}
	}
}
new Support_Jetpack();