文件操作 - aria-labels.php
返回文件管理
返回主菜单
删除本文件
文件: /storage/v12552/jimbrandstatter/public_html/wp-content/themes/Total/inc/functions/aria-labels.php
编辑文件内容
<?php defined( 'ABSPATH' ) || exit; /** * Return default aria-labels. */ function wpex_aria_label_defaults() { return [ 'site_navigation' => esc_attr_x( 'Main menu', 'aria-label', 'total' ), 'footer_callout' => '', 'footer_bottom_menu' => esc_attr_x( 'Footer menu', 'aria-label', 'total' ), 'mobile_menu_toggle' => esc_attr_x( 'Toggle mobile menu', 'aria-label', 'total' ), 'mobile_menu_close' => esc_attr_x( 'Close mobile menu', 'aria-label', 'total' ), 'mobile_menu' => esc_attr_x( 'Mobile menu', 'aria-label', 'total' ), 'search' => esc_attr_x( 'Search', 'aria-label', 'total' ), 'breadcrumbs' => esc_attr_x( 'You are here:', 'aria-label', 'total' ), 'shop_cart' => esc_attr_x( 'Your cart', 'aria-label', 'total' ), // @deprecated in 5.3 'mobile_menu_search' => esc_attr_x( 'Search', 'aria-label', 'total' ), 'search_submit' => esc_attr_x( 'Submit search', 'aria-label', 'total' ), ]; } /** * Get aria label based on location. */ function wpex_get_aria_label( $location = null ) { if ( ! $location || ! get_theme_mod( 'aria_labels_enable', true ) ) { return; } $defaults = wpex_aria_label_defaults(); $labels = wp_parse_args( (array) get_theme_mod( 'aria_labels' ), $defaults ); $label = $labels[ $location ] ?? ''; $label = (string) apply_filters( 'wpex_aria_label', $label, $location ); return $label; } /** * Output aria-label HTML. */ function wpex_aria_label( $location ) { $label = wpex_get_aria_label( $location ); if ( ! empty( $label ) ) { echo ' aria-label="' . esc_attr( trim( $label ) ) .'"'; } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件