HEX
Server: LiteSpeed
System: Linux linux31.centraldnserver.com 4.18.0-553.83.1.lve.el8.x86_64 #1 SMP Wed Nov 12 10:04:12 UTC 2025 x86_64
User: salamatk (1501)
PHP: 8.1.33
Disabled: show_source, system, shell_exec, passthru, exec, popen, proc_open
Upload Files
File: /home/salamatk/.trash/woodmart1/inc/integrations/gutenberg/src/layouts/sp-meta/attributes.php
<?php

use XTS\Gutenberg\Block_Attributes;

if ( ! function_exists( 'wd_get_single_product_block_meta_attrs' ) ) {
	function wd_get_single_product_block_meta_attrs() {
		$attr = new Block_Attributes();

		$attr->add_attr(
			array(
				'showSku'        => array(
					'type'    => 'boolean',
					'default' => true,
				),
				'showCategories' => array(
					'type'    => 'boolean',
					'default' => true,
				),
				'showTags'       => array(
					'type'    => 'boolean',
					'default' => true,
				),
				'showBrand'      => array(
					'type'    => 'boolean',
					'default' => false,
				),
				'layout'         => array(
					'type'    => 'string',
					'default' => 'default',
				),
				'textAlign'      => array(
					'type'       => 'string',
					'responsive' => true,
				),
			)
		);

		$attr->add_attr( wd_get_color_control_attrs( 'labelColor' ) );
		$attr->add_attr( wd_get_typography_control_attrs(), 'labelTp' );

		$attr->add_attr( wd_get_color_control_attrs( 'valueColor' ) );
		$attr->add_attr( wd_get_typography_control_attrs(), 'valueTp' );

		$attr->add_attr( wd_get_advanced_tab_attrs() );

		return $attr->get_attr();
	}
}