| name | language | licence |
|---|---|---|
| delay function | JavaScript | Other |
| RwSetGet | JavaScript | Other |
| Contact Form 1 | PHP | Other |
| Email Obfuscation | PHP | Other |
| MultiSort | PHP | Other |
| Show Recent Posts 2 | PHP | Other |
| JavaScript Compressor - PHP | PHP | GPL 2 |
| officeHours OPEN/CLOSE visitor notification | PHP | Other |
< 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 >
language: PHP
licence: Other
Show Recent Posts 2
options: view full snippet • send to code collector
<h3>Recent posts</h3>
<?php
function shortdesc($string, $length)
{
$suffix = '...';
$short_desc = trim(str_replace(array("\r","\n", "\t"), ' ', strip_tags(StupefyEntities($string))));
$desc = trim(substr($short_desc, 0, $length));
$lastchar = substr($desc, -1, 1);
if ($lastchar == '.' || $lastchar == '!' || $lastchar == '?') $suffix='';



library
css (23)