<?php
/**
 * Dynamic render for bw/curve — emits the shared curve marker. The heavy
 * lifting (anchoring into the image column + colour detection) happens in
 * bw-curve.js; this just outputs the element and enqueues the assets.
 *
 * @var array $attributes
 */
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

if ( ! function_exists( 'bw_curve_markup' ) ) {
	return;
}

echo bw_curve_markup(
	array(
		'side'   => $attributes['side'] ?? 'right',
		'color'  => $attributes['color'] ?? '',
		'bleed'  => $attributes['bleed'] ?? '',
		'width'  => $attributes['width'] ?? '',
		'height' => $attributes['height'] ?? '',
	)
); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- markup is escaped inside bw_curve_markup().
