Last active
February 10, 2017 04:46
-
-
Save robertpassaro/be6f8fa42cc9e8e43cca90feda3448ec to your computer and use it in GitHub Desktop.
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
/* | |
* FQ website credit line | |
* | |
* Template tag that echoes html for a website credit line for FQ; | |
* includes option to have a small logo appear in either black or white. | |
* | |
* @param (string) $text Optional. Text you want displayed before link and FQ name. Defaults to "Website by". | |
* @param (string) $logo Optional. Whether to display a version of our logo. Accepted values are 'black', 'white, or false. Defaults to false. | |
* | |
* Example: the_fq_credit( 'Website developed by', 'white' ); | |
*/ | |
function the_fq_credit( $text = 'Another project by', $logo = false ) { | |
$output = '<p class="fq-credit-line">'; | |
if( $logo && ( $logo == 'black' || $logo == 'white' ) ) { | |
$output .= '<img src="https://www.figoliquinn.com/xxx_path_to_somewhere_xxxxx/fq-logo-' . $logo . '.png" alt="Figoli Quinn & Associates">'; | |
} | |
$output .= $text . ' <a href="https://www.figoliquinn.com/" title="The Small Office of Big Ideas">Figoli Quinn & Associates</a>'; | |
$output .= '</p>'; | |
echo $output; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment