Description
Reformats the links linePuts some spans in the parts of the text which aren't inside anchor tags. e.g.
<a ...>lt1</a> plt1 <a ...>lt2</a> plt2becomes
<a ...>lt1</a><span> plt1 </span><a ...>lt2</a><span> plt2</span>This allows each span to be styled.
Usage
bw_tides_format_links( $stuff );Parameters
- $stuff
- ( string ) required –
Returns
voidSource
File name: uk-tides/shortcodes/uk-tides.phpLines:
1 to 6 of 6
function bw_tides_format_links( $stuff ) { $stuff = str_replace( "> ", "><span> ", $stuff ); $stuff = str_replace( " <", " </span><", $stuff ); $stuff .= "</span>"; e( $stuff ); }View on GitHub View on Trac
