%3$s',
$font,
esc_attr($wt),
dtq_resolve_icon_unicode($uni)
);
}
}
} elseif (!empty($icon_image)) {
$inner = sprintf(
'',
esc_url($icon_image),
esc_attr($image_alt)
);
}
if (!empty($icon_value) || !empty($icon_image)) {
return sprintf(
'
", which printed an empty // .dtq-iconbox__desc that kept its margin (#112). $description = TextValue::any_visible($attrs['description']['innerContent'] ?? []) ? $elements->render(['attrName' => 'description']) : ''; $is_row = 'left' === $placement || 'right' === $placement; $inner_class = 'dtq-iconbox-inner dtq-bg-support' . ($is_row ? ' dtq-iconbox--' . $placement : ''); $content = $is_row ? sprintf('', $title, $description) : $title . $description; $children = sprintf( '', $badge, 'absolute' === $placement ? $icon : '', esc_attr($inner_class), 'absolute' !== $placement ? $icon : '', $content ); return Module::render( [ 'attrs' => $attrs, 'elements' => $elements, 'id' => $block->parsed_block['id'], 'name' => $block->block_type->name, 'moduleCategory' => $block->block_type->category, 'classnamesFunction' => [self::class, 'module_classnames'], 'stylesComponent' => [self::class, 'module_styles'], 'scriptDataComponent' => [self::class, 'module_script_data'], 'orderIndex' => $block->parsed_block['orderIndex'] ?? 0, 'storeInstance' => $block->parsed_block['storeInstance'] ?? null, 'children' => [ // Background pattern/mask and the box-shadow overlay are DOM, // not CSS. Without this call Divi renders them in the builder // and nowhere else, so the options silently do nothing on the // front end. $elements->style_components(['attrName' => 'module']), $children, ], ] ); } }