403Webshell
Server IP : 104.26.3.156  /  Your IP : 216.73.216.185
Web Server : nginx/1.27.1
System : Linux us-1 5.15.0-131-generic #141-Ubuntu SMP Fri Jan 10 21:18:28 UTC 2025 x86_64
User : vinodai ( 3134)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /storage/v1396/wwwindicidolscom/public_html/wp-content/themes/shakti/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /storage/v1396/wwwindicidolscom/public_html/wp-content/themes/shakti/index.php
<?php
/**
 * The main template file.
 *
 * This is the most generic template file in a WordPress theme
 * and one of the two required files for a theme (the other being style.css).
 * It is used to display a page when nothing more specific matches a query.
 * E.g., it puts together the home page when no home.php file exists.
 * Learn more: //codex.wordpress.org/Template_Hierarchy
 *
 * @package SHAKTI
 * @since SHAKTI 1.0
 */

$shakti_template = apply_filters( 'shakti_filter_get_template_part', shakti_blog_archive_get_template() );

if ( ! empty( $shakti_template ) && 'index' != $shakti_template ) {

	get_template_part( $shakti_template );

} else {

	shakti_storage_set( 'blog_archive', true );

	get_header();

	if ( have_posts() ) {

		// Query params
		$shakti_stickies   = is_home()
								|| ( in_array( shakti_get_theme_option( 'post_type' ), array( '', 'post' ) )
									&& (int) shakti_get_theme_option( 'parent_cat' ) == 0
									)
										? get_option( 'sticky_posts' )
										: false;
		$shakti_post_type  = shakti_get_theme_option( 'post_type' );
		$shakti_args       = array(
								'blog_style'     => shakti_get_theme_option( 'blog_style' ),
								'post_type'      => $shakti_post_type,
								'taxonomy'       => shakti_get_post_type_taxonomy( $shakti_post_type ),
								'parent_cat'     => shakti_get_theme_option( 'parent_cat' ),
								'posts_per_page' => shakti_get_theme_option( 'posts_per_page' ),
								'sticky'         => shakti_get_theme_option( 'sticky_style' ) == 'columns'
															&& is_array( $shakti_stickies )
															&& count( $shakti_stickies ) > 0
															&& get_query_var( 'paged' ) < 1
								);

		shakti_blog_archive_start();

		do_action( 'shakti_action_blog_archive_start' );

		if ( is_author() ) {
			do_action( 'shakti_action_before_page_author' );
			get_template_part( apply_filters( 'shakti_filter_get_template_part', 'templates/author-page' ) );
			do_action( 'shakti_action_after_page_author' );
		}

		if ( shakti_get_theme_option( 'show_filters' ) ) {
			do_action( 'shakti_action_before_page_filters' );
			shakti_show_filters( $shakti_args );
			do_action( 'shakti_action_after_page_filters' );
		} else {
			do_action( 'shakti_action_before_page_posts' );
			shakti_show_posts( array_merge( $shakti_args, array( 'cat' => $shakti_args['parent_cat'] ) ) );
			do_action( 'shakti_action_after_page_posts' );
		}

		do_action( 'shakti_action_blog_archive_end' );

		shakti_blog_archive_end();

	} else {

		if ( is_search() ) {
			get_template_part( apply_filters( 'shakti_filter_get_template_part', 'templates/content', 'none-search' ), 'none-search' );
		} else {
			get_template_part( apply_filters( 'shakti_filter_get_template_part', 'templates/content', 'none-archive' ), 'none-archive' );
		}
	}

	get_footer();
}

Youez - 2016 - github.com/yon3zu
LinuXploit