Files
Pruebas/Wordpress/wordpress/wp-content/plugins/all-bootstrap-blocks/blocks/strip.php
2026-04-14 13:50:04 -06:00

28 lines
805 B
PHP

<?php
function areoi_render_block_strip( $attributes, $content )
{
$allow_pattern = true;
$class = trim(
areoi_get_class_name_str( array(
'areoi-strip',
'areoi-element',
'strip',
( !empty( $attributes['align'] ) ? 'align' . $attributes['align'] : '' ),
( !empty( $attributes['className'] ) ? $attributes['className'] : '' ),
areoi_get_utilities_classes( $attributes ),
) )
. ' ' .
areoi_get_display_class_str( $attributes, 'block' )
);
$background = include( AREOI__PLUGIN_DIR . '/blocks/_partials/background.php' );
$output = '
<div ' . areoi_return_id( $attributes ) . ' class="' . areoi_format_block_id( $attributes['block_id'] ) . ' ' . $class . '">
' . $background . '
' . $content . '
</div>
';
return $output;
}