CSS
Aquasoft / MGP-Forum style CSS background graphical menu for Drupal primary links
Key words and phrases:
Aquasoft primary links CSS images
php strip punctuation
aquasoft css template.php
punctuation function
remove periods exclamation points
Description & Info:
We first used this technique from the aquasoft theme on a 4.7 site, MGP-Forum, and just used it again, updated for Drupal 5 and with one enhancement by us.
Here's the D5 version from Aquasoft:
<?php
function aquasoft_primary_links() {
$links = menu_primary_links();
if ($links) {
foreach ($links as $link) {
$cssid = str_replace(' ', '_', strip_tags($link));
Agaric wants to parse our CSS files for declarations unused by our sites
Key words and phrases:
css remove if not used
find obsolete historical vestige cascading stylesheet statements
Description & Info:
Ask the internet and ye shall receive:
http://www.sitepoint.com/blogs/2007/07/30/find-unused-css-selectors-with...
http://www.sitepoint.com/dustmeselectors/
As with any automated tool, use your human intelligence and discretion if you can find where you put it.
