$content ) {
array_push( $filenames, $css_key );
}
foreach( $filenames as $cssfile ) {
if ( basename( $cssfile ) === 'style.css' ) $data = get_theme_data( $cssfile );
}
if ( !$data[ 'Tags' ] ) {
$this->error[] = __( "RECOMMENDED: Tags: is either empty or missing in style.css header.", "themecheck" );
$ret = false;
return $ret;
}
$allowed_tags = array( 'black', 'blue', 'brown', 'green', 'orange', 'pink', 'purple', 'red', 'silver', 'tan', 'white', 'yellow', 'dark', 'light', 'one-column', 'two-columns',
'three-columns', 'four-columns', 'left-sidebar', 'right-sidebar', 'fixed-width', 'flexible-width', 'custom-colors', 'custom-header', 'custom-background',
'custom-menu', 'editor-style', 'theme-options', 'threaded-comments', 'sticky-post', 'microformats', 'rtl-language-support', 'translation-ready', 'front-page-post-form',
'buddypress', 'holiday', 'photoblogging', 'seasonal' );
foreach( $data[ 'Tags' ] as $tag ) {
if ( !in_array( $tag, $allowed_tags ) ) $this->error[] = "WARNING: Found wrong tag, remove {$tag} from your style.css header.";
}
return $ret;
}
function getError() { return $this->error; }
}
$themechecks[] = new Style_Tags;