Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $icon = get_sub_field( 'law_icon_social' );
- if ( !empty( $icon ) ):
- $url = $icon['url'] ;
- $ext = pathinfo( $url, PATHINFO_EXTENSION );
- if ( $ext == 'svg' ):
- echo file_get_contents( $url ) ;
- else: ?>
- <img src="<?php echo $url; ?>" alt="<?php echo $alt; ?>">
- <?php endif;
- endif; ?>
- //// CSS
- path {
- fill: #3a4297;
- }
Add Comment
Please, Sign In to add comment