<footer class="<?php 
                    if (!get_theme_mod( 'wpdevart_wedding_photography_footer_template' )) { echo esc_attr('wpdevart-footer-one'); }
                    $wpdevartFooterStyle = get_theme_mod( 'wpdevart_wedding_photography_footer_template' ); echo esc_attr($wpdevartFooterStyle);
                ?>">

        <?php if ( ( is_active_sidebar( 'wpdevart_wedding_photography_footer_widget_01' ) ) OR ( is_active_sidebar( 'wpdevart_wedding_photography_footer_widget_02' ) ) OR ( is_active_sidebar( 'wpdevart_wedding_photography_footer_widget_03' ) ) OR ( is_active_sidebar( 'wpdevart_wedding_photography_footer_widget_04' ) ) ) { ?>

            <div class="wpdevart-footer-container">

                    <div class="site-footer-four-widgets-group">
                        <div class="wpdevart-footer-col-layout-four">
                        <div class="wpdevart-widgets-inner">
                        <?php        
                                if ( is_active_sidebar( 'wpdevart_wedding_photography_footer_widget_01' ) ) {
                                    dynamic_sidebar( 'wpdevart_wedding_photography_footer_widget_01' ); 
                                }
                        ?>
                        </div>
                        </div>

                        <div class="wpdevart-footer-col-layout-four">
                        <div class="wpdevart-widgets-inner">
                        <?php
                                if ( is_active_sidebar( 'wpdevart_wedding_photography_footer_widget_02' ) ) {
                                    dynamic_sidebar( 'wpdevart_wedding_photography_footer_widget_02' ); 
                                } 
                        ?>    
                        </div>
                        </div>
                    </div>
                    <div class="site-footer-four-widgets-group">
                        <div class="wpdevart-footer-col-layout-four">
                        <div class="wpdevart-widgets-inner">
                        <?php        
                                if ( is_active_sidebar( 'wpdevart_wedding_photography_footer_widget_03' ) ) {
                                    dynamic_sidebar( 'wpdevart_wedding_photography_footer_widget_03' ); 
                                }
                        ?>
                        </div>
                        </div>

                        <div class="wpdevart-footer-col-layout-four">
                        <div class="wpdevart-widgets-inner">
                        <?php
                                if ( is_active_sidebar( 'wpdevart_wedding_photography_footer_widget_04' ) ) {
                                    dynamic_sidebar( 'wpdevart_wedding_photography_footer_widget_04' ); 
                                } 
                        ?>    
                        </div>
                        </div>
                    </div>
                    
            </div>

            <?php } ?>

			<div class="wpdevart-footer-copyright-section">
				<div class="wpdevart-footer-copyright-text">
					<?php
					$wpdevartFooterOption = get_theme_mod( 'wpdevart_wedding_photography_footer_copyright_text' );
					$wpdevartFooterWP = sprintf( esc_html__( ' %s Powered by WordPress.', 'wedding-photography' ), '<a target="_blank" title="WordPress Wedding Photography Theme" href="'. esc_url( 'https://wordpress.org/themes/wedding-photography' ) .'">Wedding Photography</a>' );
					?>
					<p><?php echo esc_html($wpdevartFooterOption); echo $wpdevartFooterWP; ?></p>
                    <?php if ( ! get_theme_mod( 'wpdevart_wedding_photography_footer_copyright_section_image' )) { } else { ?> <span class="wpdevart-footer-copyright-image"><img src="<?php echo esc_url( get_theme_mod( 'wpdevart_wedding_photography_footer_copyright_section_image' ) ); ?>"></span><?php } ?>
				</div>
			</div>

</footer>