$oneValue) { if (is_array($oneValue) || is_object($oneValue)) { $oneValue = json_encode($oneValue); } elseif ($oneValue === true) { $oneValue = $oneAttribute; } echo ' '.esc_attr($oneAttribute).'="'.esc_attr($oneValue).'"'; } echo '>'; } echo wp_kses( $button, [ 'i' => [ 'class' => true, 'data-acy-elementid' => true, 'data-open' => true, 'data-ajax' => true, 'data-iframe' => true, 'data-iframe-class' => true, 'id' => true, 'acym-data-domain' => true, ], 'input' => [ 'data-open' => true, 'class' => true, 'type' => true, 'value' => true, 'readonly' => true, 'onchange' => true, ], 'span' => [ 'class' => true, ], 'div' => [ 'class' => true, 'id' => true, 'data-iframe' => true, 'data-iframe-class' => true, 'data-open' => true, ], ] ); if ($isButton) { echo ''; } echo '
$oneValue) { if (is_array($oneValue) || is_object($oneValue)) { $oneValue = json_encode($oneValue); } elseif ($oneValue === true) { $oneValue = $oneAttribute; } echo ' '.esc_attr($oneAttribute).'="'.esc_attr($oneValue).'"'; } echo '>'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped by the caller, too many cases. echo $data; echo '
'; } function acym_modalInclude( string $button, string $file, string $id, array $data, string $classModal = '', array $containerAttributes = [] ): void { if (empty($id)) { $id = 'acymodal_'.acym_rand(1000, 9000); } // Both can be used in the included file $dataModal = $data; $containerAttributes['data-open'] = $id; echo '
$oneValue) { if (is_array($oneValue) || is_object($oneValue)) { $oneValue = json_encode($oneValue); } elseif ($oneValue === true) { $oneValue = $oneAttribute; } echo ' '.esc_attr($oneAttribute).'="'.esc_attr($oneValue).'"'; } echo '>'; echo wp_kses( $button, [ 'button' => [ 'type' => true, 'id' => true, 'class' => true, ], 'span' => [ 'class' => true, ], 'b' => [], ] ); echo '
'; include $file; echo '
'; } function acym_modalPaginationLists( string $inputEventId, string $checkedLists = '[]', bool $needDisplaySubscribers = false ): void { ?>