✏️ 正在编辑: inner-shadow.php
路径:
/home/ubuntu/plugins-bkp-26012025/styler-for-wpforms/includes/inner-shadow.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php /** * For Shoadow but not in use. */ $wp_customize->add_section( 'sfwf_form_id_form_inner_shadow', array( 'title' => 'Form Inner Shadow', 'panel' => 'sfwf_panel', ) ); $wp_customize->add_setting( 'sfwf_form_id_' . $current_form_id . '[box-shadow][inner-horizontal-offset]', array( 'default' => '0px', 'transport' => 'postMessage', 'type' => 'option', ) ); $wp_customize->add_control( 'sfwf_form_id_' . $current_form_id . '[box-shadow][inner-horizontal-offset]', array( 'type' => 'text', 'priority' => 10, // Within the section. 'section' => 'sfwf_form_id_form_inner_shadow', // Required, core or custom. 'label' => __( 'Horizontal Offset' ), 'input_attrs' => array( 'placeholder' => 'Example: 4px or 10%', ), ) ); $wp_customize->add_setting( 'sfwf_form_id_' . $current_form_id . '[box-shadow][inner-vertical-offset]', array( 'default' => '0px', 'transport' => 'postMessage', 'type' => 'option', ) ); $wp_customize->add_control( 'sfwf_form_id_' . $current_form_id . '[box-shadow][inner-vertical-offset]', array( 'type' => 'text', 'priority' => 10, // Within the section. 'section' => 'sfwf_form_id_form_inner_shadow', // Required, core or custom. 'label' => __( 'Vertical Offset' ), 'input_attrs' => array( 'placeholder' => 'Example: 4px or 10%', ), ) ); $wp_customize->add_setting( 'sfwf_form_id_' . $current_form_id . '[box-shadow][inner-blur-radius]', array( 'default' => '0px', 'transport' => 'postMessage', 'type' => 'option', ) ); $wp_customize->add_control( 'sfwf_form_id_' . $current_form_id . '[box-shadow][inner-blur-radius]', array( 'type' => 'text', 'priority' => 10, // Within the section. 'section' => 'sfwf_form_id_form_inner_shadow', // Required, core or custom. 'label' => __( 'Blur Radius' ), 'input_attrs' => array( 'placeholder' => 'Example: 4px or 10%', ), ) ); $wp_customize->add_setting( 'sfwf_form_id_' . $current_form_id . '[box-shadow][inner-spread-radius]', array( 'default' => '0px', 'transport' => 'postMessage', 'type' => 'option', ) ); $wp_customize->add_control( 'sfwf_form_id_' . $current_form_id . '[box-shadow][inner-spread-radius]', array( 'type' => 'text', 'priority' => 10, // Within the section. 'section' => 'sfwf_form_id_form_inner_shadow', // Required, core or custom. 'label' => __( 'Spread Radius' ), 'input_attrs' => array( 'placeholder' => 'Example: 4px or 10%', ), ) ); $wp_customize->add_setting( 'sfwf_form_id_' . $current_form_id . '[box-shadow][inner-color]', array( 'default' => '#000000', 'transport' => 'postMessage', 'type' => 'option', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, // WP_Customize_Manager. 'sfwf_form_id_' . $current_form_id . '[box-shadow][inner-color]', // Setting id. array( // Args, including any custom ones. 'label' => __( 'Shadow Color' ), 'section' => 'sfwf_form_id_form_inner_shadow', ) ) );
💾 保存文件
← 返回文件管理器