$max_words && $max_words > 0) { $phrase = implode(' ',array_slice($phrase_array, 0, $max_words)).'...' ;}; return $phrase; } //-------------------------------------------------------------------------- // Return an array with all image file paths for a specified directory // function getImages($dir) { $imagetypes = array("image/jpeg", "image/gif", "image/png"); // array to hold return value $retval = array(); // add trailing slash if missing if(substr($dir, -1) != "/") $dir .= "/"; // full server path to directory $fulldir = "{$_SERVER['DOCUMENT_ROOT']}/$dir"; $d = @dir($fulldir) or die("getImages: Failed opening directory $dir for reading"); while(false !== ($entry = $d->read())) { // skip hidden files if ($entry[0] == ".") continue; // check for image files $f = escapeshellarg("$fulldir$entry"); $mimetype = trim(`file -bi $f`); foreach($imagetypes as $valid_type) { if(preg_match("@^{$valid_type}@", $mimetype)) { $retval[] = "$entry"; break; } } } $d->close(); return $retval; } // Populate the three image arrays for the slideshow $slides[0] = getImages('/images/slides00/thumbnail/'); $slides[1] = getImages('/images/slides01/thumbnail/'); $slides[2] = getImages('/images/slides02/thumbnail/'); ?>
|
terracepark.com terracepark.org Community & Government Website |
||
Terrace Park Garden Club |
|
The Terrace Park Garden Club maintains the planting beds at Wooster and Elm, Elm and Terrace Place and Wooster and Miami and participates in the Labor Day Parade with the “Garden Club Float”. The Terrace Park Garden Club also participates in Terrace Park Elementary Arbor Day activities. Contact Description of Organization Membership Information Meeting Information |
terracepark.com
|