Advertisement
cyberdev

Untitled

Jul 12th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.00 KB | None | 0 0
  1. <?php
  2. /**
  3. * The template part for displaying the footer stamp
  4. *
  5. * @package Bimber_Theme 4.10
  6. */
  7.  
  8. ?>
  9. <?php
  10. $bimber_footer_stamp       = bimber_get_footer_stamp();
  11. $bimber_footer_stamp_label = bimber_get_theme_option( 'footer', 'stamp_label' );
  12. ?>
  13.  
  14. <?php if ( ! empty( $bimber_footer_stamp ) ) : ?>
  15.     <a class="g1-footer-stamp" href="<?php echo esc_url( bimber_get_theme_option( 'footer', 'stamp_url' ) ); ?>" target="_blank">
  16.         <?php
  17.         printf(
  18.             '<img class="g1-footer-stamp-icon" width="%d" height="%d" src="%s" %s alt="" />',
  19.             absint( $bimber_footer_stamp['width'] ),
  20.             absint( $bimber_footer_stamp['height'] ),
  21.             esc_url( $bimber_footer_stamp['src'] ),
  22.             isset( $bimber_footer_stamp['srcset'] ) ? sprintf( 'srcset="%s"', esc_url( $bimber_footer_stamp['srcset'] ) . ' 2x' ) : ''
  23.         );
  24.         ?>
  25.         <?php if ( strlen( $bimber_footer_stamp_label ) ) : ?>
  26.             <span class="g1-footer-stamp-label"><?php echo esc_html( $bimber_footer_stamp_label ); ?></span>
  27.         <?php endif; ?>
  28.     </a>
  29. <?php endif;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement