fbpx
Components
51
About Banner Banner Alternate Broadband Comparison Business Hero Call Strip Call Us Coming Soon Cards Contact Small Content Coverage Coverage Small Cta Callout Dual Banner Enquiry Form Example Faqs Accordion Feasibility Checker Feasibility Checker Map Fttp Hero Hero Alternate Icon Content Iframe Embed Image Text Carousel Inset Content Installation Latest News Logo Carousel News News Small Offer Hero Plans Plans Cards Post Grid Quote Testimonial Carousel Register Cta Salesforce Short Banner Speed Banner Speed Test Speed Test Banner Square Cards Status Support Text Banner Text Carousel Trustpilot Reviews Trustpilot Widget Usps Video

Usps

Caller ID Display

Call Waiting

Last Caller

Call Protect

There are no ACF fields assigned to this component.
<?php
	$block_classes     = array();
	$background_colour = get_field( 'background_colour' );

	if ( $background_colour ) {
		$block_classes[] = 'block-background--' . $background_colour[ 'background_colour' ];
	}
?>
<div class="block block-usps <?php echo implode( ' ', $block_classes ); ?>">
    <div class="container">

        <?php if ( $heading = get_field( 'heading' ) ) : ?>
            <div class="col-12 align-center">
                <h2 class="h3 aos-init aos-animate" data-aos="fade-up"> <?php echo esc_html( $heading ); ?></h2>
            </div>
        <?php endif; ?>

        <div class="block-usps-container">


            <?php if ( have_rows( 'usps' ) ) : ?>
                <?php while ( have_rows( 'usps' ) ) : the_row(); ?>

                    <div class="block-usps-container-usp" data-aos="fade-up">

                        <div class="image">
                            <?php if ( get_sub_field( 'Type' ) == 1 ) : ?>
                                <?php if ( $icon = get_sub_field( 'icon' ) ) : ?>
                                    <?php echo esc_html( $icon ); ?>
                                <?php endif; ?>
                            <?php else: ?>

                            <?php
                                $static_icon = get_sub_field( 'static_icon' );
                                if ( $static_icon ) : ?>
                                    <img src="<?php echo esc_url( $static_icon['url'] ); ?>" alt="<?php echo esc_attr( $static_icon['alt'] ); ?>" />
                                <?php endif; ?>

                            <?php endif; ?>
                        </div>

                        <?php if ( $heading = get_sub_field( 'heading' ) ) : ?>
                            <?php echo "<h4>" . esc_html( $heading ) . "</h4>"; ?>
                        <?php endif; ?>
                    </div>

                <?php endwhile; ?>
            <?php endif; ?>
        </div>
    </div>
</div>

				
There are is no SCSS file with this component.
There are is no JavaScript file with this component.
Page Title
Page Type
Page URL
There are is no readme file with this component.