Created
February 16, 2012 17:17
-
-
Save GaryJones/1846544 to your computer and use it in GitHub Desktop.
Live Toolbar
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Create the Live Toolbar. | |
* | |
* @since 1.0.0 | |
*/ | |
function radio_live_toolbar() { | |
$toolbar = genesis_get_option ( 'station_live_toolbar', $this->settings_field ); | |
$listen = genesis_get_option( 'station_listen', $this->settings_field ); | |
$phone = genesis_get_option( 'station_phone', $this->settings_field ); | |
$text = genesis_get_option( 'station_text', $this->settings_field ); | |
$email = genesis_get_option( 'station_email', $this->settings_field ); | |
if ( ! $toolbar ) | |
return; | |
?> | |
<div id="live-toolbar"> | |
<div class="live-toolbar-wrap"> | |
<?php | |
if ( $listen ) | |
echo '<a href="' . esc_url( $listen ) . '" class="live-toolbar-link icon-listen">' . __( 'Listen Live', 'radio' ) . '</a>'; | |
if ( $phone ) | |
echo '<div class="live-toolbar-phone alignright"><span>' . __( 'Request Line: ', 'radio' ) . $phone . '</span></div>'; | |
if ( $text ) | |
echo '<div class="live-toolbar-text alignright"><span>' . __( 'Text Us: ', 'radio' ) . $text . '</span></div>'; | |
if ( $stationemail ) | |
echo '<div class="live-toolbar-email alignright"><span>' . __( 'Email Us: ', 'radio' ) . '<a href="' . esc_url( 'mailto:' . $email ) . '" class="live-toolbar-link">' . $email . '</a></span></div>'; | |
?> | |
</div> | |
</div><!-- end #live-toolbar --> | |
<?php | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment