Skip to content

Instantly share code, notes, and snippets.

@billerickson
Created September 5, 2014 21:21
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save billerickson/fd71646d69bdf60918c6 to your computer and use it in GitHub Desktop.
Save billerickson/fd71646d69bdf60918c6 to your computer and use it in GitHub Desktop.
<?php
function be_call_to_action() {
$title = esc_html( get_option( 'options_be_cta_title' ) );
$button_text = esc_html( get_option( 'options_be_cta_button_text' ) );
$button_url = esc_url( get_option( 'options_be_cta_button_url' ) );
if( $title && $button_text && $button_url )
echo '<div class="call-to-action"><div class="wrap"><p>' . $title . '</p><p><a href="' . $button_url . '" class="button">' . $button_text . '</a></p></div></div>';
}
add_action( 'genesis_before_footer', 'be_call_to_action' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment