文件操作 - hamburger-icon.php
返回文件管理
返回主菜单
删除本文件
文件: /storage/v12552/jimbrandstatter/public_html/wp-content/themes/Total/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; } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件