✏️ 编辑:password.php
路径:
/home/forge/yith-woocommerce-compare/plugin-fw/templates/fields/password.php
大小:1019 B · 修改:2023-08-03 14:10:49 · 权限:0644 · 可写
← 返回目录
👁 查看
⬇ 下载
<?php /** * Template for displaying the password field * * @var array $field The field. * @package YITH\PluginFramework\Templates\Fields */ defined( 'ABSPATH' ) || exit; // Exit if accessed directly. list ( $field_id, $class, $name, $std, $value, $custom_attributes, $data ) = yith_plugin_fw_extract( $field, 'id', 'class', 'name', 'std', 'value', 'custom_attributes', 'data' ); $class = isset( $class ) ? $class : 'yith-plugin-fw-text-input'; $class = $class . ' yith-password'; ?> <div class="yith-password-wrapper"> <input type="password" id="<?php echo esc_attr( $field_id ); ?>" name="<?php echo esc_attr( $name ); ?>" class="<?php echo esc_attr( $class ); ?>" value="<?php echo esc_attr( $value ); ?>" <?php if ( isset( $std ) ) : ?> data-std="<?php echo esc_attr( $std ); ?>" <?php endif; ?> <?php yith_plugin_fw_html_attributes_to_string( $custom_attributes, true ); ?> <?php yith_plugin_fw_html_data_to_string( $data, true ); ?> /> <span class="yith-password-eye"></span> </div>
💾 保存
取消
保存为 UTF-8,换行统一为 LF