Looking For A Custom Option?
Custom options are available, including Litho Lamination, Full-Colour CMYK Printing, & Roller Coating to suit your needs.
/*
* Image Module Layout Render Template.
*
* @array $layout Layout settings (without values)
* @array $field Flexible content field settings
* @bool $is_preview True in Administration
* @string $col Column size (auto, 1, 2, 3, 4 ...)
*/
$content_alignment_x = get_sub_field('content_alignment_x');
$content_alignment_y = get_sub_field('content_alignment_y');
$button_alignment = $content_alignment_x === 'justify-content-center' ? 'center' :
($content_alignment_x === 'justify-content-end' ? 'end' : 'start');
$image = get_sub_field('image');
if ( $image ) :
$image_url = $image['url'];
$image_alt = $image['alt'];
$image_caption = $image['caption'];
endif;
$link = get_sub_field('link');
if ( $link ) :
$link_url = $link['url'];
$link_title = $link['title'];
$link_target = $link['target'] ? $link['target'] : '_self';
endif;
$video = get_sub_field('video');
$video_fallback = get_sub_field('video_fallback');
if ( $video_fallback ) :
$video_fallback_url = $video_fallback['url'];
$video_fallback_alt = $video_fallback['alt'];
endif;
if ( $video ) :
$video_url = $video['url'];
$video_caption = $video['title'];
endif;
$background_color = get_sub_field('module_background');
if ( $background_color ) :
$background_color = 'style="background-color: ' . $background_color . ';"';
$padding_class = 'py-5 px-3';
else :
$padding_class = false;
endif;
$image_or_video = get_sub_field('image_or_video');
$unique_id = uniqid('image-block-');
?>