Created
December 21, 2017 17:29
-
-
Save denniskeefe/3f4467eecbab1ef45446b74b82e79123 to your computer and use it in GitHub Desktop.
HTTP_REFERER
This file contains 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
public static function lower_links(){ | |
$options = get_option( 'purecharity_sponsorships_settings' ); | |
$go_back = htmlspecialchars($_SERVER['HTTP_REFERER']); | |
$html = ''; | |
if(isset($options['show_back_link'])){ | |
$html .= '<a href="'. $go_back .'" class="back"><span> < </span>Back to all kids</a>'; | |
} | |
if(isset($options['show_more_link']) && !empty($options['more_link'])){ | |
$html .= '<a href="'. $options['more_link'] .'" class="learn-more">Learn more about sponsorships <span> > </span></a>'; | |
} | |
return $html; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment