Advertisement
verygoodplugins

Untitled

Jun 3rd, 2023
803
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.86 KB | None | 0 0
  1.     /**
  2.      * Displays the Hello Bar.
  3.      *
  4.      * @since 1.0.0
  5.      *
  6.      * @return mixed HTML output.
  7.      */
  8.     function hello_bar_footer() {
  9.  
  10.         if ( isset( $_COOKIE['dismiss_hello_bar'] ) ) {
  11.             return;
  12.         }
  13.  
  14.         $options = get_option( 'hello_bar_settings_options', array() );
  15.  
  16.         ?>
  17.         <div id="hello-bar" <?php echo ! empty( $options['hello_bar_box_color'] ) ? 'style="color: ' . esc_attr( $options['hello_bar_box_color'] ) . '"' : ''; ?> )">
  18.             <span class="title" <?php echo ! empty( $options['hello_bar_text_color'] ) ? 'style="color: ' . esc_attr( $options['hello_bar_text_color'] ) . '"' : ''; ?> )">
  19.                 <?php echo ! empty( $options['hello_bar_text_content'] ) ? esc_html( $options['hello_bar_text_content'] ) : 'Welcome to the website'; ?>
  20.             </span>
  21.             <a id="hello-dismiss" class="exit" href="#"><span id="hello-dismiss-exit"></span></a>
  22.         </div>
  23.  
  24.         <?php
  25.  
  26.     }
  27.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement