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
function ShortenText($text, $chars) { | |
// Change to the number of characters you want to display | |
$text = $text." "; | |
$text = substr($text,0,$chars); | |
//$text = substr($text,0,strrpos($text,' ')); | |
$text = $text."..."; | |
return $text; | |
} |
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
function ShortenText($text) { | |
// Change to the number of characters you want to display | |
$chars = 25; | |
$text = $text." "; | |
$text = substr($text,0,$chars); | |
//$text = substr($text,0,strrpos($text,' ')); | |
$text = $text."..."; | |
return $text; | |
} |
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
/* Clear Fixes - two methods, clear-fix is attached to the element you want to clear, .clear-all you can attach to a hr or br tag to clear the item before it as a last resort when you're in a hurry */ | |
.clear-fix { display: inline-block; } /* This needs to be first because FF3 is now supporting this */ | |
.clear-fix:after { content: " "; display: block; height: 0; clear: both; font-size: 0; visibility: hidden; } | |
.clear-all { visibility: hidden; clear: both; margin: 0 !important; padding: 0 !important; font-size: 0; height: 1px; } |
NewerOlder