403Webshell
Server IP : 89.108.64.180  /  Your IP : 216.73.216.229
Web Server : Apache/2.4.41 (Ubuntu)
System : Linux 89-108-64-180.cloudvps.regruhosting.ru 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User : www-root ( 1010)
PHP Version : 8.0.30
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/www-root/data/www/hostelkey.ru/wp-content/themes/izo/inc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/www-root/data/www/hostelkey.ru/wp-content/themes/izo/inc/class_izo_breadcrumbs.php
<?php
/**
 * Class to handle breadcrumbs support
 *
 * @package Izo
 */


if ( !class_exists( 'Izo_Breadcrumb' ) ) :

	/**
	 * Izo_Breadcrumb 
	 */
	Class Izo_Breadcrumb {

		/**
		 * Instance
		 */		
		private static $instance;

		/**
		 * Initiator
		 */
		public static function get_instance() {
			if ( ! isset( self::$instance ) ) {
				self::$instance = new self;
			}
			return self::$instance;
		}

		/**
		 * Constructor
		 */
		public function __construct() {	
			add_action( 'izo_header_after', array( $this, 'get_breadcrumb' ), 19 );
		}

		/**
		 * Get the breadcrumbs from the supported plugin
		 */
		public function get_breadcrumb() {

			//Don't show breadcrumbs on stretched pages
			if ( 'layout-stretched' == $this->page_layout() ) {
				return;
			}

			if ( function_exists( 'yoast_breadcrumb' ) ) { //Yoast breadcrumbs
				?>
				<div class="izo-container">				
				<?php yoast_breadcrumb( '<p id="breadcrumbs">','</p>' ); ?>
				</div>
				<?php
			} elseif ( function_exists( 'bcn_display' ) ) { //Breadcrumb NavXT
				?>
				<div class="izo-container">
					<p class="izo-breadcrumbs breadcrumbs" typeof="BreadcrumbList" vocab="https://schema.org/">
						<?php bcn_display(); ?>
					</p>
				</div>
				<?php
			} elseif ( function_exists('rank_math_the_breadcrumbs') ) { //Rank Math breadcrumbs
				?>
				<div class="izo-container">
					<?php rank_math_the_breadcrumbs(); ?>
				</div>
				<?php
			} else {
				return;
			}

			//If we reached this point, remove the Woocommerce breadcrumbs
			remove_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 20, 0 );
		}

		/**
		 * Check page layout
		 */
		public function page_layout() {

			if ( is_404() ) {
				return;
			}

			global $post;

			$id = $post->ID;

			$layout = get_post_meta( $id, '_izo_page_layout', 'layout-stretched' );

			return $layout;
		}

	}

	/**
	 * Initialize class
	 */
	Izo_Breadcrumb::get_instance();

endif;

Youez - 2016 - github.com/yon3zu
LinuXploit