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/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

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

namespace TotalTheme;

\defined( 'ABSPATH' ) || exit;

/**
 * Hamburger Icon.
 */
class Hamburger_Icon {

	/**
	 * Renders the hamburger icon.
	 */
	public static function render( $args = [] ) {
		$args = self::parse_args( $args );

		$icon = '<span class="' . \esc_attr( self::get_class( $args ) ) . '" aria-hidden="true"><span></span></span>';

		/**
		 * Filters the theme hamburger icon html.
		 *
		 * @param string $icon_html
		 */
		$icon = (string) \apply_filters( 'wpex_hamburger_icon', $icon, $args );

		return $icon;
	}

	/**
	 * Parses the hamburger icon args.
	 */
	protected static function parse_args( $args ) {
		$default_args = [
			'toggle_state' => true,
			'rounded'      => false,
		];

		$args = \wp_parse_args( $args, $default_args );

		/**
		 * Filters the hamburger icon args.
		 *
		 * @param array $args
		 */
		$args = (array) \apply_filters( 'wpex_hamburger_icon_args', $args );

		return $args;
	}

	/**
	 * Returns class for the hamburger icon.
	 */
	protected static function get_class( $args ) {
		$class = 'wpex-hamburger-icon';

		if ( \wp_validate_boolean( $args['rounded'] ) ) {
			$class .= ' wpex-hamburger-icon--rounded';
		}

		if ( \wp_validate_boolean( $args['toggle_state'] ) ) {
			$class .= ' wpex-hamburger-icon--inactive';
			$animate = $args['animate'] ?? true;
			if ( $animate ) {
				$class .= ' wpex-hamburger-icon--animate';
			}
		}

		return $class;
	}

}

https://t.me/RX1948 - 2025