https://t.me/RX1948
Server : Apache
System : Linux server.lienzindia.com 4.18.0-348.7.1.el8_5.x86_64 #1 SMP Wed Dec 22 13:25:12 UTC 2021 x86_64
User : plutus ( 1007)
PHP Version : 7.4.33
Disable Function : NONE
Directory :  /home/plutus/public_html/wp-content/themes/vrm/inc/header/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/plutus/public_html/wp-content/themes/vrm/inc/header/vertical.php
<?php

namespace TotalTheme\Header;

use TotalTheme\Scripts\CSS;
use TotalTheme\Mobile\Menu as Mobile_Menu;

\defined( 'ABSPATH' ) || exit;

/**
 * Vertical Header.
 */
class Vertical {

	/**
	 * Vertical header is enabled or not.
	 */
	protected static $is_enabled;

	/**
	 * The vertical header style.
	 */
	protected static $style;

	/**
	 * The vertical header position.
	 */
	protected static $position;

	/**
	 * Registers the vertical header stylesheet.
	 */
	public static function register_stylesheet(): void {
		$theme_handle = CSS::get_theme_handle();

		$mm_breakpoint = Mobile_Menu::breakpoint();

		if ( $mm_breakpoint < 9999 && \wpex_is_layout_responsive() ) {
			$min_media = 'only screen and (min-width:' . ( $mm_breakpoint + 1 )  . 'px)';
		}

		\wp_register_style(
			'wpex-vertical-header',
			\wpex_asset_url( 'css/frontend/header/vertical.css' ),
			$theme_handle ? [ $theme_handle ] : [],
			\WPEX_THEME_VERSION,
			$min_media ?? 'all'
		);

		\wp_style_add_data( 'wpex-vertical-header', 'rtl', 'replace' );
	}

	/**
	 * Enqueues the vertical header stylesheet.
	 */
	public static function enqueue_stylesheet(): void {
		\wp_enqueue_style( 'wpex-vertical-header' );
	}

	/**
	 * Enqueues the vertical header stylesheet if enabled.
	 */
	public static function maybe_enqueue_stylesheet(): void {
		if ( ! self::is_enabled() ) {
			return;
		}
		self::register_stylesheet();
		self::enqueue_stylesheet();
	}

	/**
	 * Checks if the vertical header is enabled or not.
	 */
	public static function is_enabled(): bool {
		if ( ! \is_null( self::$is_enabled ) ) {
			return self::$is_enabled;
		}

		$check = false;

		if ( 'six' === Core::style() ) {
			$check = true;
		}

		/**
		 * Filters whether the site is using a vertical header.
		 *
		 * @param bool $check
		 */
		$check = (bool) \apply_filters( 'totaltheme/header/vertical/is_enabled', $check );

		/*** deprecated ***/
		$check = (bool) \apply_filters( 'wpex_has_vertical_header', $check );

		self::$is_enabled = $check;

		return self::$is_enabled;
	}

	/**
	 * Returns the vertical header style (default or fixed).
	 */
	public static function style(): string {
		if ( ! \is_null( self::$style ) ) {
			return self::$style;
		}

		self::$style = (string) \get_theme_mod( 'vertical_header_style' );

		return self::$style;
	}

	/**
	 * Returns the vertical header position.
	 */
	public static function position(): string {
		if ( ! \is_null( self::$position ) ) {
			return self::$position;
		}

		$position = \get_theme_mod( 'vertical_header_position' ) ?: 'left';

		/**
		 * Filters whether the site is using a vertical header.
		 *
		 * @param bool $check
		 */
		$position = (string) \apply_filters( 'totaltheme/header/vertical/position', $position );

		/*** deprecated ***/
		$position = (string) \apply_filters( 'wpex_vertical_header_position', $position );

		self::$position = $position;

		return self::$position;
	}

}

https://t.me/RX1948 - 2025