✏️ 编辑:panel-field-container.php
路径:
/home/forge/yith-woocommerce-compare/plugin-fw/templates/panel/panel-field-container.php
大小:1.31 KB · 修改:2023-08-03 14:10:49 · 权限:0644 · 可写
← 返回目录
👁 查看
⬇ 下载
<?php /** * The Template for displaying the panel field container. * * @var array $option The field. * @var mixed $db_value The field value stored in DB. * @author YITH <plugins@yithemes.com> * @since 3.0.0 * @package YITH\PluginFramework\Templates */ defined( 'ABSPATH' ) || exit; // Exit if accessed directly. $field_id = $this->get_id_field( $option['id'] ); $name = $this->get_name_field( $option['id'] ); $field_type = $option['type']; $field = $option; $field['id'] = $field_id; $field['name'] = $name; $field['value'] = $db_value; if ( ! empty( $custom_attributes ) ) { $field['custom_attributes'] = $custom_attributes; } $container_id = $field_id . '-container'; $container_classes = array( 'yit_options', 'yith-plugin-fw-field-wrapper', "yith-plugin-fw-{$field_type}-field-wrapper", ); $container_classes = implode( ' ', $container_classes ); ?> <div id="<?php echo esc_attr( $container_id ); ?>" class="<?php echo esc_attr( $container_classes ); ?>" <?php echo yith_panel_field_deps_data( $option, $this ); ?>> <div class="option"> <?php yith_plugin_fw_get_field( $field, true, false ); ?> </div> <?php if ( ! empty( $field['desc'] ) ) : ?> <span class="description"><?php echo wp_kses_post( $field['desc'] ); ?></span> <?php endif; ?> <div class="clear"></div> </div>
💾 保存
取消
保存为 UTF-8,换行统一为 LF