-
Notifications
You must be signed in to change notification settings - Fork 11
Function Reference: horizon_build_twitter_link
Joe McKie edited this page Jul 31, 2013
·
1 revision
Builds a clickable Twitter link from a given username. The username can be formatted as @username
, http://www.twitter.com/username
, or username
. Returns a clickable anchor to the users profile.
<?php echo horizon_build_twitter_link( $username ); ?>
$username (string) (required) The username to build an anchor for. Default: None
(string) A clickable anchor to the given profile.
<?php echo horizon_build_twitter_link( 'joemckiewebdev' ); ?>
Returns:
<?php echo horizon_build_twitter_link( 'http://www.twitter.com/joemckiewebdev' ); ?>
Returns:
<?php echo horizon_build_twitter_link( '@joemckiewebdev' ); ?>
Returns:
Outputs the HTML of a selected dynamic sidebar. For use in functions and templates where dynamic_sidebar()
would output incorrectly.
<?php echo horizon_get_dynamic_sidebar( $sidebar ); ?>
$sidebar (string) (required) The sidebar name. Default: None
<div class="twelve columns">
<?php echo horizon_get_dynamic_sidebar( 'Footer 1' ); ?>
</div>
This will output the HTML contents of the sidebar named 'Footer 1' into the container.