Created
January 8, 2011 00:42
-
-
Save tarnfeld/770377 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
<?php | |
function stylesheet($title = 'Home Page') | |
{ | |
$filename = trim(strtolower($title)); // EG: "Home Page" => "homepage" | |
echo '<link rel="stylesheet" href="../css/' . $filename . '.css" type="text/css" media="all" />'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment